/* ==========================================================================
   ConvertAI 全站统一设计系统 theme.css
   风格：克制浅色科技感（参考火烈云，深绿色调）
   用途：前台首页及各功能页面共用。修改本文件一处，全站生效。
   ========================================================================== */

:root {
    /* ---- 品牌色（深一档绿） ---- */
    --primary: #00994E;        /* 主品牌绿 */
    --primary-light: #14B866;  /* 亮绿（hover/渐变） */
    --primary-dark: #087B3E;   /* 深绿（已实现） */
    --primary-soft: #E7F6EF;   /* 极浅绿底（图标块/标签） */

    /* ---- 中性色 ---- */
    --text: #0F172A;           /* 主文字-深空 */
    --text-2: #475569;         /* 次级文字 */
    --text-3: #94A3B8;         /* 弱文字/占位 */
    --text-muted: #64748B;     /* 兼容旧变量名 */
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;         /* 浅灰分区 */
    --border: #E2E8F0;         /* 中性边框 */
    --dark: #0F172A;           /* 深色区块(CTA/页脚) */

    /* ---- 效果 ---- */
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
    --shadow-md: 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg: 0 24px 60px rgba(15,23,42,.12);
    --transition: all .25s cubic-bezier(.4,0,.2,1);

    /* ---- 兼容旧变量 ---- */
    --success: var(--primary);
    --accent: var(--primary);
    --card: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC',
        'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { max-width: 100%; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 28px;
    border-radius: 12px; border: none; cursor: pointer;
    font-size: 15px; font-weight: 600; text-decoration: none;
    transition: var(--transition); white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff; box-shadow: 0 8px 24px rgba(0,153,78,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,153,78,.36); }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }

/* ---------- 导航 ---------- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(15,23,42,.06); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a:not(.btn) {
    text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 15px;
    padding: 9px 14px; border-radius: 8px; transition: var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active, .nav-links a.active:hover { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }
.hamburger { display: none; }

/* ---------- 区块标题 ---------- */
.sec { padding: 96px 0; }
.sec-alt { background: #F3F6F9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-eyebrow {
    display: inline-block; padding: 6px 14px; margin-bottom: 16px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 13px; font-weight: 600; border-radius: 999px; letter-spacing: .02em;
}
.sec-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; color: var(--text); }
.sec-head p { font-size: 17px; color: var(--text-muted); line-height: 1.7; }

/* ---------- HERO ---------- */
.hero {
    position: relative; padding: 160px 0 100px;
    background:
        radial-gradient(1200px 500px at 15% -10%, rgba(0,153,78,.08), transparent 60%),
        radial-gradient(1000px 500px at 90% 0%, rgba(20,184,102,.07), transparent 55%),
        var(--bg);
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-bottom: 22px;
    background: rgba(255,255,255,.8); border: 1px solid var(--border); border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--text-2);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(0,153,78,.15); }
.hero h1 {
    font-size: 54px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em;
    margin-bottom: 22px; color: var(--text);
}
.hero h1 .grad { color: var(--primary); }
.hero p.lead { font-size: 19px; color: var(--text-muted); line-height: 1.75; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; color: var(--text-3); font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--primary); }
.hero-visual { position: relative; }
.hero-shot {
    border-radius: var(--radius-xl); overflow: hidden;
    background: #fff; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border); transform: rotate(0deg);
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-float {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 14px; padding: 12px 16px;
    box-shadow: var(--shadow-md); border: 1px solid var(--border); font-size: 13px; color: var(--text);
}
.hero-float .ic { font-size: 20px; }
.hero-float b { display: block; font-size: 14px; }
.hero-float small { color: var(--text-3); }

/* ---------- 子页面 Hero / 区段骨架（全站统一） ---------- */
.page-hero { padding: 148px 0 60px; text-align: center; background: var(--bg); }
.page-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: 18px; }
.page-hero h1 .gradient-text { color: var(--primary); }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto; line-height: 1.7; }
.section { padding: 84px 0; }

/* ---------- 数据统计 ---------- */
.stats { border-top: 1px solid var(--border); background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; padding: 48px 0; text-align: center; }
.stat-num { font-size: 42px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); margin-bottom: 4px; }
.stat-lbl { font-size: 14px; color: var(--text-muted); }

/* ---------- 产品/功能卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 30px; transition: var(--transition); position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15,23,42,.10); border-color: rgba(0,153,78,.30); }
.card-ic {
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff; box-shadow: 0 6px 16px rgba(0,153,78,.25);
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

/* ---------- 功能标签墙 ---------- */
.tag-wall { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.tag {
    padding: 10px 18px; background: #fff; border: 1px solid var(--border); border-radius: 999px;
    font-size: 14px; color: var(--text-2); font-weight: 500; transition: var(--transition);
}
.tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---------- 数字大图区块 ---------- */
.nums { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.num-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 20px; }
.num-val { font-size: 56px; font-weight: 800; letter-spacing: -.03em; color: var(--primary); line-height: 1.1; }
.num-unit { font-size: 26px; font-weight: 800; color: var(--primary); margin-left: 2px; }
.num-lbl { margin-top: 12px; color: var(--text-muted); font-size: 15px; }

/* ---------- 双列截图展示 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.split-text p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.split-visual { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.split-visual img { display: block; width: 100%; }

/* ---------- 对话演示 ---------- */
.herodemo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chat-card {
    background: rgba(255,255,255,.7); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--dark); color: #fff; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-name { font-weight: 600; font-size: 14px; }
.chat-status { font-size: 12px; opacity: .75; display: flex; align-items: center; gap: 6px; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }
.chat-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg,#f9fbfc,#eef3f2); }
.msg { max-width: 82%; padding: 11px 16px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.msg.bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; color: var(--text); box-shadow: var(--shadow-sm); }
.msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg b { color: var(--primary); }
.chat-in { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: #fff; }
.chat-in input { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 24px; font-size: 14px; background: var(--bg-alt); }
.chat-in button { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--primary); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* ---------- 博客 ---------- */
.grid-3-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.post:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,.10); }
.post-cover { height: 168px; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .post-cover img { transform: scale(1.05); }
.post-cover.noimg { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.post-body { padding: 22px; }
.post-tag { display: inline-block; padding: 3px 10px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; border-radius: 6px; margin-bottom: 12px; }
.post-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.post-body h3 a { text-decoration: none; color: var(--text); }
.post-body p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.post-date { font-size: 12px; color: var(--text-3); }

/* ---------- CTA / 页脚（深色，重定义覆盖旧内联） ---------- */
.cta { background: var(--dark); padding: 88px 0; text-align: center; color: #fff; position: relative; overflow: hidden; border: none; }
.cta::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(0,153,78,.35), transparent 60%); pointer-events: none;
}
.cta .container { position: relative; }
.cta h2 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.cta p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; }

.footer { background: var(--dark); padding: 40px 0; text-align: center; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #94A3B8; }
.footer a { color: var(--primary-light); text-decoration: none; }

.friend-links { padding: 20px 0; text-align: center; font-size: 13px; color: var(--text-3); background: var(--dark); }
.friend-links a { color: #94A3B8; text-decoration: none; margin: 0 10px; transition: color .2s; }
.friend-links a:hover { color: var(--primary-light); }
.friend-links .fl-label { margin-right: 8px; font-weight: 600; color: #64748B; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .hero-inner, .split, .herodemo { grid-template-columns: 1fr; gap: 40px; }
    .grid-3, .grid-3-cards, .nums, .stats-grid { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size: 38px; }
    .hero { padding-top: 130px; }
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; padding: 18px 24px; gap: 10px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    }
    .nav-links.mobile-active { display: flex; }
    .nav-links a:not(.btn) { padding: 12px 14px; }
    .hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 32px; cursor: pointer; }
    .hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }
}
@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .grid-3, .grid-3-cards { grid-template-columns: 1fr; }
    /* 数据统计 & 大数字：手机端一行4列横向排列 */
    .stats-grid, .nums { grid-template-columns: repeat(4, 1fr); }
    .sec { padding: 56px 0; }
    .sec-head { margin-bottom: 34px; }
    .sec-head h2 { font-size: 25px; }
    .sec-head p { font-size: 15px; }
    .sec-eyebrow { font-size: 12px; padding: 5px 12px; }

    /* Hero 紧凑化 */
    .hero { padding: 120px 0 56px; }
    .page-hero { padding: 116px 0 40px; }
    .page-hero h1 { font-size: 28px; line-height: 1.2; }
    .page-hero p { font-size: 15.5px; }
    .section { padding: 52px 0; }
    .hero h1 { font-size: 30px; line-height: 1.18; }
    .hero p.lead { font-size: 15.5px; line-height: 1.7; margin-bottom: 24px; }
    .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 16px; }
    .hero-actions { flex-direction: row; gap: 10px; margin-bottom: 22px; }
    .hero-actions .btn { flex: 1; padding: 12px 8px; font-size: 14px; text-align: center; }
    .hero-visual .hero-float { display: none; } /* 手机上隐藏浮动标签，避免拥挤 */
    .stats-grid { padding: 24px 0; gap: 12px; }
    .stat-num { font-size: 20px; }
    .stat-lbl { font-size: 11px; }
    .stats-grid > div, .stats-grid .stat-num, .stats-grid .stat-lbl { white-space: nowrap; }

    /* 卡片紧凑 */
    .card { padding: 22px 20px; }
    .card h3 { font-size: 17px; }
    .card-ic { width: 44px; height: 44px; margin-bottom: 14px; }
    .tag-wall { gap: 8px; }
    .tag { flex: 1 1 20%; padding: 8px 6px; font-size: 12.5px; text-align: center; justify-content: center; white-space: nowrap; }

    /* 数据大数字 */
    .nums { gap: 6px; }
    .num-card { padding: 11px 4px; }
    .num-val { font-size: 20px; white-space: nowrap; line-height: 1.2; }
    .num-unit { font-size: 14px; }
    .num-lbl { font-size: 10.5px; line-height: 1.3; white-space: nowrap; }

    /* 对话聊天窗（手机端压矮） */
    .chat-head { padding: 11px 16px; }
    .chat-ava { width: 32px; height: 32px; font-size: 15px; }
    .chat-name { font-size: 13px; }
    .chat-body { padding: 13px 12px; gap: 8px; }
    .msg { font-size: 12.5px; padding: 7px 11px; line-height: 1.5; }
    .chat-in { padding: 9px 12px; }
    .chat-in input { padding: 8px 13px; font-size: 12.5px; }

    /* 极窄屏（如 iPhone SE 375px 及以下）：效果数据进一步缩小防溢出 */
    @media (max-width: 380px) {
        .num-card { padding: 10px 2px; }
        .num-val { font-size: 18px; }
        .num-unit { font-size: 12px; }
        .num-lbl { font-size: 9.5px; white-space: nowrap; }
        .nums { gap: 5px; }
    }

    /* 博客 */
    .grid-3-cards { gap: 16px; }
    .post-body { padding: 18px 16px; }
    .post-body p { display: none; } /* 手机上隐藏摘要，保持卡片紧凑 */
    .btn-lg { padding: 13px 24px; font-size: 15px; }

    /* CTA / 页脚 */
    .cta { padding: 56px 0; }
    .cta h2 { font-size: 26px; }
    .cta p { font-size: 15px; margin-bottom: 26px; }
    .split, .herodemo { gap: 28px; }
    .split-text h2 { font-size: 24px; }
}