/* ========== 全局样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-white: #FFFFFF;
    --bg-light-gray: #F0F0F0;
    --text-dark: #0D0D0D;
    --text-gray: #1A1A1A;
    --gradient-purple-start: #9D4EDD;
    --gradient-purple-end: #C77DFF;
    --accent-pink: #FF006E;
    --accent-yellow: #FFED4E;
    --button-hover: #FF006E;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', 'SF Pro Display', sans-serif;
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-purple-start), var(--gradient-purple-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--gradient-purple-start);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gradient-purple-start), var(--gradient-purple-end));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(157, 78, 221, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-gray);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== 首屏英雄区域 ========== */
.hero {
    margin-top: 80px;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light-gray) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--gradient-purple-start), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-purple-start), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-purple-start), var(--gradient-purple-end));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gradient-purple-end), var(--button-hover));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(199, 125, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--gradient-purple-start);
    padding: 1rem 2.5rem;
    border: 2px solid var(--gradient-purple-start);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--gradient-purple-start);
    color: white;
    transform: translateY(-3px);
}

/* ========== 痛点分析区域 ========== */
.pain-points {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.pain-card {
    background: var(--bg-light-gray);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pain-card:hover {
    border-color: var(--gradient-purple-start);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pain-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pain-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pain-description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== 解决方案展示 ========== */
.solution {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-light-gray) 0%, var(--bg-white) 100%);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.solution-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.solution-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--text-gray);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gradient-purple-start);
    font-weight: 700;
    font-size: 1.5rem;
}

.comparison-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--bg-light-gray);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-label {
    font-weight: 600;
    color: var(--text-gray);
}

.comparison-value {
    font-weight: 600;
}

.comparison-value.traditional {
    color: #999;
}

.comparison-value.insight {
    color: var(--gradient-purple-start);
}

/* ========== 差异化优势区 ========== */
.differentiation {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.diff-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(199, 125, 255, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: all 0.3s;
}

.diff-card:hover {
    transform: translateY(-5px);
    border-color: var(--gradient-purple-start);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2);
}

.diff-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.diff-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.diff-description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== 客户验证与案例 ========== */
.testimonials {
    padding: 5rem 2rem;
    background: var(--bg-light-gray);
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--gradient-purple-start);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-role {
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

.result-card {
    background: linear-gradient(135deg, var(--gradient-purple-start), var(--gradient-purple-end));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== 行动号召区域 ========== */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--gradient-purple-start), var(--gradient-purple-end));
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-card {
    background: white;
    color: var(--text-dark);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gradient-purple-start);
}

.cta-card-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    padding: 0.8rem;
    border: 2px solid var(--bg-light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gradient-purple-start);
}

.form-submit {
    background: linear-gradient(135deg, var(--gradient-purple-start), var(--gradient-purple-end));
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.form-submit:hover {
    transform: translateY(-2px);
}

.contact-info {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.trust-badge {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== 页脚 ========== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ========== 语言切换器 ========== */
.lang-switcher {
    position: relative;
    margin-left: 1.5rem;
    z-index: 1001;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--gradient-purple-start);
}

.lang-icon {
    font-size: 1.1rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.lang-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 1rem;
    border: none;
    background: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.lang-option:hover {
    background: var(--bg-light-gray);
    color: var(--gradient-purple-start);
}

.lang-option.selected {
    color: var(--gradient-purple-start);
    font-weight: 600;
    background: rgba(157, 78, 221, 0.05);
}

@media (max-width: 768px) {
     .lang-switcher {
        margin-left: auto;
        margin-right: 1rem;
     }
     
     .lang-dropdown {
        right: -10px;
     }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-card {
        min-width: 150px;
        padding: 1.5rem;
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pain-grid,
    .diff-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .cta-options {
        grid-template-columns: 1fr;
    }
}

/* ========== 平滑滚动 ========== */
html {
    scroll-behavior: smooth;
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

html[lang="zh-CN"] .zh-only {
    display: block !important;
}

html[lang="zh-CN"] .nonzh-only {
    display: none !important;
}

html[lang="en-US"] .zh-only {
    display: none !important;
}

html[lang="en-US"] .nonzh-only {
    display: block !important;
}

html:not([lang="zh-CN"]) .zh-only {
    display: none !important;
}

html:not([lang="zh-CN"]) .nonzh-only {
    display: block !important;
}

.wechat-qr {
    margin-top: 1.5rem;
    text-align: left;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light-gray);
}

.wechat-qr img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

/* ========== Language Specific Display ========== */
html[lang="zh-CN"] .zh-only {
    display: block !important;
}

html[lang="zh-CN"] .nonzh-only {
    display: none !important;
}

html[lang="en-US"] .zh-only {
    display: none !important;
}

html[lang="en-US"] .nonzh-only {
    display: block !important;
}

html:not([lang="zh-CN"]) .zh-only {
    display: none !important;
}

html:not([lang="zh-CN"]) .nonzh-only {
    display: block !important;
}

/* ========== WeChat QR Code ========== */
.wechat-qr {
    margin-top: 1.5rem;
    text-align: left;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light-gray);
}

.wechat-qr img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

/* ========== Language Specific Display ========== */
html[lang="zh-CN"] .zh-only {
    display: block !important;
}

html[lang="zh-CN"] .nonzh-only {
    display: none !important;
}

html[lang="en-US"] .zh-only {
    display: none !important;
}

html[lang="en-US"] .nonzh-only {
    display: block !important;
}

/* Fallback for other languages (treat as non-zh) */
html:not([lang="zh-CN"]) .zh-only {
    display: none !important;
}
html:not([lang="zh-CN"]) .nonzh-only {
    display: block !important;
}

/* ========== WeChat QR Code ========== */
.wechat-qr {
    margin-top: 1.5rem;
    text-align: left;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light-gray);
}

.wechat-qr img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

html[lang="zh-CN"] .wechat-qr { text-align: center; }
html[lang="zh-CN"] .wechat-qr img { width: 180px; display: inline-block; margin: 0 auto; }
html[lang="zh-CN"] .zh-only { display: block !important; }
