/* style.css - 最终完整版 (包含所有功能修复) */

/* =========================================
   1. 基础设置 (Variables & Reset)
   ========================================= */
:root {
    --bg-dark: #0b0e14;
    --bg-card: #151a25;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --border: rgba(255,255,255,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* =========================================
   2. 导航栏 (Navbar)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    gap: 10px;
}

.logo-img { height: 32px; width: auto; }

/* =========================================
   3. Hero 区域 (主视觉)
   ========================================= */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Hero 搜索栏样式 */
.hero-search-container {
    margin-bottom: 20px;
    max-width: 480px;
}

.hero-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s;
}

.hero-input-group:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-right: 10px;
}

.hero-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
    min-width: 0;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.disclaimer-text {
    font-size: 0.7rem;       /* 字体调小 (原为 0.85rem) */
    color: #ef4444;          /* 字体颜色改为红色 */
    margin-top: 15px;
    line-height: 1.4;
    opacity: 0.9;
}

.social-proof { margin-top: 40px; display: flex; align-items: center; gap: 15px; }
.avatars img {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -15px;
}
.avatars img:first-child { margin-left: 0; }

/* Dashboard 玻璃卡片 */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.floating-tag {
    position: absolute;
    background: #10b981;
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================
   4. 特性区域 (Features) - 包含新模块修复
   ========================================= */
.features { padding: 80px 0; }

/* 模拟 Tailwind 类名 (用于新特性的卡片) */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }

.bg-dark\/80 { background: rgba(21, 26, 37, 0.8); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.p-6 { padding: 1.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.border-gray-800 { border-color: rgba(255, 255, 255, 0.1); }
.border { border-width: 1px; border-style: solid; }

.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.bg-primary { background-color: var(--primary); }
.text-secondary { color: #ffffff; }
.rounded-full { border-radius: 50%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; } /* 关键居中修复 */

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-primary\/20 { box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2); }

.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.mb-3 { margin-bottom: 0.75rem; }
.text-gray-custom { color: var(--text-gray); }
.text-2xl { font-size: 1.5rem; } /* 图标大小 */

/* 悬停动画 */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.hover\:scale-105:hover { transform: scale(1.05); }
.group:hover .group-hover\:bg-primary\/90 { background-color: rgba(37, 99, 235, 0.9); }

/* 统计数据栏样式 */
.stats-banner-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(21, 26, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    backdrop-filter: blur(10px);
}

.stat-item { text-align: center; flex: 1; }
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1;
}
.stat-label { font-size: 0.95rem; color: var(--text-gray); font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: rgba(255, 255, 255, 0.1); }

/* =========================================
   5. 工作流程 (How It Works)
   ========================================= */
.how-it-works { padding: 80px 0; background: var(--bg-card); }

.process-wrapper { position: relative; margin-top: 60px; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.process-line {
    position: absolute;
    top: 30px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 1;
    opacity: 0.3;
}

.process-step { text-align: center; position: relative; }

.step-number {
    width: 60px; height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 56px;
    margin: 0 auto 25px auto;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
}

.process-step:hover .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    height: 100%;
}

.process-step:hover .step-card {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.step-img-box {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.step-img-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.process-step:hover .step-img-box img { transform: scale(1.05); }

.step-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step-card p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.5; }

/* =========================================
   6. 互动演示区 (Demo)
   ========================================= */
.demo-section { padding: 100px 0; }
.demo-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 50px;
}

.input-group { display: flex; gap: 10px; margin-top: 30px; }
.input-group input {
    flex: 1; padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 1.1rem;
    outline: none;
    min-width: 0;
}
.input-group button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 40px;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: background 0.3s;
}
.input-group button:hover { background: var(--primary-hover); }

/* 加载动画 */
.loading-stage .spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.progress-bar {
    width: 100%; height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}
.progress-fill {
    width: 0%; height: 100%;
    background: #10b981;
    transition: width 0.3s;
}

/* 结果展示 */
.success-check img { width: 80px; margin-bottom: 20px; }
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}
.btn-icon { width: 24px; height: 24px; }

/* =========================================
   7. 评价与页脚
   ========================================= */
.testimonials { padding: 80px 0; }
.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
}
.user-info { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.user-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}
.footer-links a { color: var(--text-gray); margin: 0 15px; text-decoration: none; }

/* =========================================
   8. 移动端适配 (Media Queries)
   ========================================= */
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .nav-container { justify-content: center; }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 50px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero-text { order: 1; }
    .hero-visual { order: 2; }
    
    .hero-search-container {
        margin: 0 auto 20px auto;
    }
    
    .social-proof { justify-content: center; }

    /* 统计数据栏适配 */
    .stats-banner-text {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    .stat-divider { width: 100%; height: 1px; }
    .stat-number { font-size: 2rem; }

    /* 流程步骤适配 */
    .process-grid { grid-template-columns: 1fr; }
    .process-line { display: none; }
    .step-number { margin-bottom: 15px; }

    /* 输入框适配 */
    .input-group { flex-direction: column; }
    .input-group input { width: 100%; margin-bottom: 10px; }
    .input-group button { width: 100%; padding: 15px; border-radius: 10px; }

    /* 演示区 */
    .demo-box { padding: 30px 20px; }
    /* --- 新增：结果页样式适配 (Tailwind 模拟) --- */

/* 尺寸与布局 */
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.rounded-lg { border-radius: 0.5rem; }
.max-w-xs { max-width: 20rem; }
.gap-2 { gap: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

/* 颜色系统 */
.bg-green-500 { background-color: #10b981; }
.bg-green-600 { background-color: #059669; }
.text-green-500 { color: #10b981; }
.text-white { color: #ffffff; }
.text-primary { color: var(--primary); }

/* 阴影 */
.shadow-green-500\/30 { box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3); }

/* 按钮交互 */
/* --- 按钮样式：加大版 --- */
.whatsapp-btn-new {
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    
    /* 核心修改：尺寸变大 */
    padding: 20px 50px !important;  /* 增加高度和宽度 */
    font-size: 1.4rem !important;   /* 增大文字 */
    width: 90% !important;          /* 手机端占满 */
    max-width: 450px !important;    /* 电脑端最大宽度变宽 */
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.4); /* 增加阴影更显眼 */
}

.whatsapp-btn-new:hover {
    background-color: #047857; /* hover:bg-green-700 */
    transform: translateY(-3px); /* 悬浮上移效果 */
    box-shadow: 0 15px 30px rgba(5, 150, 105, 0.5);
}

/* 单独控制图标大小 */
.whatsapp-btn-new i {
    font-size: 2rem !important; /* 图标变大 */
    margin-right: 5px;
}

.btn-text-only {
    background: none;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.7;
}
.btn-text-only:hover {
    opacity: 1;
    color: var(--primary);
}

/* 字体 */
.text-2xl { font-size: 1.5rem; }
.text-xl { font-size: 1.25rem; }
/* 专门控制免责声明的样式 */
.disclaimer-text {
    font-size: 0.75rem !important;  /* 强制字体变小 */
    color: #ef4444 !important;      /* 强制字体变红 */
    margin-top: 15px;
    margin-bottom: 0 !important;    /* 去掉多余的底部间距 */
    opacity: 0.9;
    line-height: 1.4;
    font-weight: 500;
}
}