/**
 * 首页 - 智能客服系统（含变量、重置，仅此一个文件）
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #10B981;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-2: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    --gradient-3: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    --font-size-body: 16px;
    --font-size-desc: 14px;
    --font-size-caption: 11px;
    --font-size-nav: 13px;
    --line-height-body: 1.5;
    --line-height-desc: 1.65;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: var(--font-size-body);
    color: var(--text-primary);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 粒子背景 */
#particles-js {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
            background: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #F093FB 100%);
        }

        /* 导航栏 */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1rem 5%;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(15px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
            z-index: 1000;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(79, 70, 229, 0.1);
        }

        .navbar.scrolled {
            padding: 0.75rem 5%;
            box-shadow: 0 6px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
        }

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

        .logo {
            font-size: 1.25rem;
            font-weight: 700;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }

        .lang-switcher {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(102, 126, 234, 0.12) 100%);
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid rgba(79, 70, 229, 0.15);
            box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
        }

        .lang-switcher:hover {
            background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(102, 126, 234, 0.2) 100%);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
            transform: translateY(-1px);
        }

        .lang-switcher span {
            font-size: var(--font-size-desc);
            color: var(--primary-color);
            font-weight: 500;
        }

        .lang-switcher span.active {
            color: var(--primary-dark);
            font-weight: 600;
        }

        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            font-size: var(--font-size-nav);
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .btn-primary, .btn-secondary {
            padding: 0.75rem 1.5rem;
            border-radius: 5px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
            display: inline-block;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

        .nav-btn-login {
            padding: 0.5rem 1rem;
            border-radius: 5px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.3s;
            display: inline-block;
            border: 1.5px solid var(--primary-color);
            background: transparent;
            color: var(--primary-color);
            font-size: var(--font-size-nav);
            box-shadow: 0 2px 6px rgba(79, 70, 229, 0.1);
        }

        .nav-btn-login:hover {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35), 0 2px 6px rgba(79, 70, 229, 0.2);
            border-color: var(--primary-dark);
        }

        .nav-btn-trial {
            padding: 0.5rem 1rem;
            border-radius: 5px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
            display: inline-block;
            background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
            color: white;
            font-size: var(--font-size-nav);
            border: none;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .nav-btn-trial::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .nav-btn-trial:hover::before {
            left: 100%;
        }

        .nav-btn-trial:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45), 0 2px 8px rgba(102, 126, 234, 0.3);
            background: linear-gradient(135deg, #764BA2 0%, #667EEA 100%);
        }

        .btn-primary {
            background: var(--gradient-1);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
            transition: left 0.5s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5), 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
        }

        .btn-secondary:hover {
            background: var(--primary-color);
            color: white;
        }

        /* Hero Section */
        .hero {
            min-height: 700px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 120px 5% 80px;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 1200px;
            z-index: 10;
            animation: fadeInUp 1s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #FFFFFF;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
            line-height: 1.25;
            letter-spacing: -0.02em;
        }

        .hero .subtitle {
            font-size: 1.125rem;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 1.5rem;
            font-weight: 400;
            text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
            letter-spacing: 0.02em;
        }

        .hero .description {
            font-size: var(--font-size-desc);
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2.5rem;
            max-width: 720px;
            margin-left: auto;
            margin-right: auto;
            text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
            line-height: var(--line-height-desc);
            letter-spacing: 0.01em;
        }

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

        .hero-buttons .btn-primary {
            padding: 0.75rem 2rem;
            font-size: var(--font-size-body);
        }

        /* 浮动动画 */
        .floating {
            animation: floating 3s ease-in-out infinite;
        }

        @keyframes floating {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        /* 特性卡片 */
        .features {
            padding: 120px 5%;
            background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 50%, #F9FAFB 100%);
            position: relative;
        }

        @media (max-width: 768px) {
            .features {
                padding: 80px 5%;
            }
        }

        .section-title {
            text-align: center;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }

        .section-subtitle {
            text-align: center;
            font-size: var(--font-size-desc);
            color: var(--text-secondary);
            margin-bottom: 3rem;
            font-weight: 400;
            line-height: var(--line-height-desc);
        }

        .features-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 4rem;
        }

        .feature-card {
            background: white;
            padding: 5rem 4rem;
            border-radius: 5px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(0, 0, 0, 0.03);
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 3rem;
            align-items: start;
        }

        @media (max-width: 968px) {
            .feature-card {
                grid-template-columns: 1fr;
                padding: 4rem 2.5rem;
                text-align: center;
            }

            .feature-icon {
                margin: 0 auto 2rem;
            }

            .feature-card h3 {
                font-size: 1.35rem;
            }

            .feature-card p {
                font-size: var(--font-size-desc);
            }
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 6px;
            height: 100%;
            background: var(--gradient-1);
            transform: scaleY(0);
            transition: transform 0.4s;
        }

        .feature-card:nth-child(1)::before {
            background: var(--gradient-1);
        }

        .feature-card:hover {
            transform: translateX(10px) translateY(-2px);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            border-color: rgba(102, 126, 234, 0.25);
            background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
        }

        .feature-card:hover::before {
            transform: scaleY(1);
        }

        .feature-icon {
            width: 120px;
            height: 120px;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3.5rem;
            background: var(--gradient-1);
            color: white;
            box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
            flex-shrink: 0;
            transition: all 0.4s;
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
        }

        .feature-card:nth-child(2) .feature-icon {
            background: var(--gradient-2);
            box-shadow: 0 12px 30px rgba(240, 147, 251, 0.35);
        }

        .feature-card:nth-child(2)::before {
            background: var(--gradient-2);
        }

        .feature-card:nth-child(2):hover .feature-icon {
            box-shadow: 0 16px 40px rgba(240, 147, 251, 0.45);
        }

        .feature-card:nth-child(3) .feature-icon {
            background: var(--gradient-3);
            box-shadow: 0 12px 30px rgba(79, 172, 254, 0.35);
        }

        .feature-card:nth-child(3)::before {
            background: var(--gradient-3);
        }

        .feature-card:nth-child(3):hover .feature-icon {
            box-shadow: 0 16px 40px rgba(79, 172, 254, 0.45);
        }

        .feature-card:nth-child(4) .feature-icon {
            background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
            box-shadow: 0 12px 30px rgba(245, 87, 108, 0.35);
        }

        .feature-card:nth-child(4)::before {
            background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
        }

        .feature-card:nth-child(4):hover .feature-icon {
            box-shadow: 0 16px 40px rgba(245, 87, 108, 0.45);
        }

        .feature-card:nth-child(5) .feature-icon {
            background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
            box-shadow: 0 12px 30px rgba(0, 242, 254, 0.35);
        }

        .feature-card:nth-child(5)::before {
            background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
        }

        .feature-card:nth-child(5):hover .feature-icon {
            box-shadow: 0 16px 40px rgba(0, 242, 254, 0.45);
        }

        .feature-card:nth-child(6) .feature-icon {
            background: linear-gradient(135deg, #43E97B 0%, #38F9D7 100%);
            box-shadow: 0 12px 30px rgba(67, 233, 123, 0.35);
        }

        .feature-card:nth-child(6)::before {
            background: linear-gradient(135deg, #43E97B 0%, #38F9D7 100%);
        }

        .feature-card:nth-child(6):hover .feature-icon {
            box-shadow: 0 16px 40px rgba(67, 233, 123, 0.45);
        }

        .feature-content {
            display: flex;
            flex-direction: column;
        }

        .feature-card h3 {
            font-size: 1.35rem;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
            font-weight: 700;
            line-height: 1.3;
            letter-spacing: -0.02em;
        }

        .feature-card p {
            color: var(--text-secondary);
            line-height: var(--line-height-desc);
            font-size: var(--font-size-desc);
        }

        /* 平台支持 */
        .platforms {
            padding: 100px 5%;
            background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
        }

        .platforms-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 2rem;
        }

        .platform-item {
            background: white;
            padding: 3rem;
            border-radius: 5px;
            text-align: center;
            transition: all 0.3s;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 2px solid rgba(37, 211, 102, 0.1);
        }

        .platform-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 40px rgba(37, 211, 102, 0.2);
            border-color: rgba(37, 211, 102, 0.3);
        }

        .platform-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }

        .platform-name {
            font-size: var(--font-size-body);
            font-weight: 600;
            color: var(--text-primary);
        }

        .platform-desc {
            font-size: var(--font-size-desc);
            color: var(--text-secondary);
            line-height: var(--line-height-desc);
            margin-top: 0.75rem;
        }

        /* CTA Section */
        .cta-section {
            padding: 80px 5%;
            background: var(--gradient-1);
            text-align: center;
            color: white;
        }

        .cta-section h2 {
            font-size: 1.75rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .cta-section p {
            font-size: var(--font-size-desc);
            margin-bottom: 2rem;
            opacity: 0.9;
            line-height: var(--line-height-desc);
        }

        .cta-section .btn-primary {
            background: white;
            color: var(--primary-color);
        }

        .cta-section .btn-primary:hover {
            background: var(--bg-light);
        }

        /* Footer */
        .footer {
            background: #1F2937;
            color: #9CA3AF;
            padding: 60px 5% 30px;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 2rem;
        }

        .footer-section h4 {
            color: white;
            margin-bottom: 0.75rem;
            font-size: var(--font-size-body);
            font-weight: 600;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.35rem;
        }

        .footer-section a,
        .footer-section p {
            font-size: var(--font-size-desc);
            color: #9CA3AF;
            text-decoration: none;
            transition: color 0.3s;
            line-height: var(--line-height-desc);
        }

        .footer-section a:hover {
            color: white;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid #374151;
            font-size: var(--font-size-caption);
            color: #6B7280;
        }


        /* 响应式 */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 1.75rem;
            }

            .hero .subtitle {
                font-size: 1rem;
            }

            .nav-links {
                gap: 1rem;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .section-subtitle {
                font-size: var(--font-size-desc);
                margin-bottom: 2rem;
            }
        }

        /* 套餐/价格区描述与列表统一 12px */
        .pricing-section .package-name {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.35rem;
        }
        .pricing-section .package-tagline {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            font-size: var(--font-size-desc);
            line-height: var(--line-height-desc);
        }
        .pricing-section .price-unit,
        .pricing-section .package-features li {
            font-size: var(--font-size-desc);
            line-height: var(--line-height-desc);
        }

        /* 滚动动画 */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* 客户支持浮动栏 */
        .customer-bar {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 999;
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: flex-end;
        }

        .customer-bar .array-icon {
            width: 16px;
            height: 16px;
            opacity: 0.7;
            transition: all 0.3s;
            cursor: pointer;
            filter: brightness(0.8);
        }

        .customer-bar .array-icon:hover {
            opacity: 1;
            filter: brightness(1);
        }

        .customer-bar.collapsed .array-icon {
            transform: rotate(180deg);
        }

        .customer-bar.collapsed .customer-item {
            display: none;
        }

        .customer-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: white;
            padding: 12px 16px;
            border-radius: 5px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            transition: all 0.3s;
            min-width: 140px;
            height: 74px;
            box-sizing: border-box;
            position: relative;
        }

        .customer-item:hover {
            transform: translateX(-5px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
        }

        .customer-item .download-icon {
            width: 50px;
            height: 50px;
            min-width: 50px;
            min-height: 50px;
            border-radius: 5px;
            flex-shrink: 0;
            object-fit: contain;
            object-position: center;
            background: #f5f5f5;
        }

        .customer-item span {
            font-size: var(--font-size-desc);
            font-weight: 500;
            color: var(--text-primary);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .weChart {
            position: relative;
        }

        .weChartModal {
            position: absolute;
            bottom: 70px;
            right: 0;
            background: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            min-width: 200px;
            animation: slideUp 0.3s ease;
            z-index: 1000;
        }

        .weChartModal.show {
            display: flex;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .weChartModal img {
            width: 100px;
            height: 100px;
            border-radius: 5px;
            border: 1px solid #e5e7eb;
        }

        .weChartModal p {
            font-size: var(--font-size-desc);
            color: var(--text-primary);
            margin: 0;
            text-align: center;
        }

        @media (max-width: 768px) {
            .customer-bar {
                right: 15px;
                bottom: 15px;
            }

            .customer-item {
                min-width: 120px;
                height: 60px;
                padding: 10px 12px;
                box-sizing: border-box;
            }

            .customer-item .download-icon {
                width: 40px;
                height: 40px;
                min-width: 40px;
                min-height: 40px;
            }

            .customer-item span {
                font-size: 12px;
            }
        }
