/* --- GLOBAL SETTINGS & VARIABLES --- */
:root {
    --primary-color: #5E5DF0;
    --primary-dark: #4F4CDE;
    --secondary-color: #F6F8FA;
    --text-dark: #1D1D1F;
    --text-light: #5A5A5A;
    --text-white: #FFFFFF;
    --border-color: #E1E4E8;
    --success-color: #28a745;
    --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- BASE STYLES --- */
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-sans);
    background-color: var(--text-white);
    color: var(--text-dark);
    margin: 0;
    padding-top: 80px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container.narrow {
    max-width: 800px;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-dark);
}
.hidden {
    display: none !important;
}

/* --- BUTTONS --- */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- NAVIGATION BAR --- */
.main-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.nav-logo-link {
    display: flex;
    align-items: center;
}
.nav-logo {
    height: 50px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px;
}
.lang-switcher .lang-btn {
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-light);
    transition: background-color 0.2s, color 0.2s;
}
.lang-switcher .lang-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}
.lang-switcher span {
    color: var(--border-color);
}
.nav-button {
    padding: 8px 20px;
    font-size: 0.9rem;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background-size: cover;
    background-position: center 60%;
    filter: brightness(130%);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 20, 30, 0.7), rgba(10, 20, 30, 0.5));
}
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 600px;
    padding-top: 80px;
    padding-bottom: 80px;
}
.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.subtitle-zh {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 10px 0 20px 0;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}
.hero-description {
    font-size: 1.2rem;
    margin: 0 auto 40px auto;
    max-width: 700px;
    opacity: 0.9;
}
.hero-form-container {
    padding-top: 40px;
    position: relative;
    padding-bottom: 50px; 
}
.demo-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}
.demo-form input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 18px 25px;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-white);
}
.demo-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.demo-form button {
    border: none;
    background-color: var(--primary-color);
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 18px 35px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.demo-form button:hover {
    background-color: var(--primary-dark);
}

.animated-arrow {
    position: absolute;
    bottom: 5px;
    left: 25%;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid #34D399;
    animation: bounce-up-and-down 2s infinite ease-in-out;
}

@keyframes bounce-up-and-down {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); opacity: 0.7; }
}

.loading-container {
    text-align: center;
    margin-top: 30px;
    color: var(--text-white);
}

/* --- DEMO RESULTS --- */
.result-container {
    text-align: center;
}

.result-title {
    margin-bottom: 15px;
}
.result-title a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}
.result-title a:hover {
    text-decoration: underline;
}
.result-title.flashing {
    animation: flash-animation 1.5s infinite;
}
@keyframes flash-animation {  
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animated-arrow-result {
    margin: 0 auto 10px auto;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #34D399;
    animation: bounce-down-and-up 2s infinite ease-in-out;
}
@keyframes bounce-down-and-up {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.7; }
}

.result-screenshot-preview {
    max-width: 450px;
    width: 90%;
    border-radius: 8px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* --- GENERAL SECTION STYLES --- */
.section {
    padding: 80px 0;
    text-align: center;
}
.section-highlight {
    background-color: var(--secondary-color);
}
.section-title {
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2.5rem;
    margin: 0;
}

/* --- PARTNERSHIP / HOW WE WORK --- */
.partnership-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}
.partnership-criteria {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.partnership-criteria li {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}
.partnership-criteria li::before {
    content: '✓';
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
}

/* --- FEATURES & BENEFITS --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}
.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
}
#features .feature-card, #benefits .feature-card {
    text-align: center;
}
#features .feature-card {
    background-color: var(--secondary-color);
}
.feature-icon {
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}
#benefits.section-highlight .feature-card {
    background-color: #fff;
}
.feature-card h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}
.feature-card p {
    color: var(--text-light);
    margin: 0;
}

/* --- FAQ SECTION --- */
.faq-container {
    text-align: left;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--text-light);
    transition: transform 0.2s;
}
.faq-question.active::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding: 0 10px 25px 0;
    color: var(--text-light);
    margin: 0;
}

/* --- SUSTAINABILITY SECTION --- */
.sustainability-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.sustainability-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.sustainability-item {
    background-color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
}
.main-footer strong {
    color: var(--text-white);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .nav-links, .nav-actions .lang-switcher {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-content-wrapper { 
        min-height: 500px; 
        padding-top: 40px; 
        padding-bottom: 40px; 
    }
    .hero h1 { 
        font-size: 2.5rem; 
    }
    .subtitle-zh { 
        font-size: 1.5rem; 
    }
    .hero-description { 
        font-size: 1.1rem; 
    }
}

@media (max-width: 600px) {
    body { 
        padding-top: 70px; 
    }
    .main-nav { 
        height: 70px; 
    }
    .nav-logo { 
        height: 40px; 
    }
    .demo-form { 
        flex-direction: column; 
        gap: 10px; 
        border: none; 
        background: none; 
    }
    .demo-form input, .demo-form button { 
        font-size: 1rem; 
        border-radius: 8px; 
    }
    .demo-form input { 
        border: 1px solid rgba(255, 255, 255, 0.4); 
        background: rgba(0,0,0,0.2); 
    }
    .section-title h2 { 
        font-size: 2rem; 
    }
    .animated-arrow {
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
    }

    .result-actions {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .result-actions .button {
        width: 100%;
    }
}