/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #2b6cb0;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a4971;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a202c;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
}

.language-switcher button {
    background: none;
    border: 1px solid #2b6cb0;
    border-radius: 4px;
    color: #2b6cb0;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 4px 10px;
    transition: all 0.3s ease;
}

.language-switcher button.active {
    background-color: #2b6cb0;
    color: white;
}

/* Default to Chinese, hide English */
.en {
    display: none;
}

.zh {
    display: inline;
}

/* When English is active */
body.en-active .en {
    display: inline;
}

body.en-active .zh {
    display: none;
}

/* Chinese App Name */
.chinese-name {
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.8;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #2b6cb0;
    white-space: nowrap;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #2b6cb0;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: #2b6cb0;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e6f7ff 0%, #d0e8f2 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a4971;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4a5568;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.app-store-badge,
.google-play-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background-color: #333;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.app-store-badge:hover,
.google-play-badge:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: #fff;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a4971;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.benefit-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a4971;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2b6cb0 0%, #1a4971 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    background-color: white;
    color: #2b6cb0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    color: #1a4971;
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.75rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    opacity: 0.6;
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, #e6f7ff 0%, #d0e8f2 100%);
    text-align: center;
}

.page-header h2 {
    color: #1a4971;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Features Page */
.features {
    padding: 5rem 0;
    background-color: #fff;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
    gap: 3rem;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    text-align: center;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    color: #1a4971;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.feature-content p {
    margin-bottom: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    color: #2b6cb0;
    position: absolute;
    left: 0;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a4971;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: #2b6cb0;
}

/* Instructions Page */
.instructions {
    padding: 5rem 0;
    background-color: #fff;
}

.guide-section {
    margin-bottom: 4rem;
}

.guide-section h3 {
    color: #1a4971;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #e6f7ff;
    padding-bottom: 0.5rem;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #2b6cb0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 1rem;
    color: #1a4971;
}

.step-image {
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.faq h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a4971;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    background-color: white;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

/* Support Section */
.support {
    padding: 5rem 0;
    background-color: #e6f7ff;
    text-align: center;
}

.support h3 {
    color: #1a4971;
    margin-bottom: 1rem;
}

.support p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    background-color: #2b6cb0;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-button:hover {
    background-color: #1a4971;
    transform: translateY(-2px);
}

/* Privacy Policy Page */
.privacy-content {
    padding: 5rem 0;
    background-color: #fff;
}

.privacy-section {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-section h3 {
    color: #1a4971;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #e6f7ff;
    padding-bottom: 0.5rem;
}

.privacy-section h4 {
    color: #2b6cb0;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-section ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
    list-style: disc;
    list-style-position: outside;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    header .container {
        flex-direction: column;
        padding: 1rem 15px;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero .container {
        flex-direction: column;
    }

    .feature-item {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-item.reverse {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .language-switcher {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .app-badges {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image,
.benefit-card,
.feature-item,
.testimonial-card,
.step-item {
    animation: fadeIn 0.5s ease-out forwards;
} 