/* ============================================================
   卓凌智策 · 高新技术企业申报政策问答 — 全局样式
   基调：稳重深蓝 / 克制专业 / 政务与企业服务质感
   ============================================================ */
:root {
    --bg: #0b1220;
    --bg-2: #101b30;
    --surface: #111c31;
    --text: #e6ecf5;
    --text-dim: #97a8c4;
    --text-mute: #6d809f;
    --accent: #4a7bf0;
    --accent-2: #3461cc;
    --accent-3: #4fa583;
    --gold: #c8a45c;
    --card: rgba(255, 255, 255, 0.035);
    --border: rgba(148, 170, 205, 0.14);
    --border-strong: rgba(148, 170, 205, 0.28);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg);
    background-image:
        radial-gradient(90% 55% at 50% -10%, rgba(74, 123, 240, 0.10) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 58%, #0a1120 100%);
    background-attachment: fixed;
}

/* ---------- 克制的背景层（静态氛围，无大面积动效） ---------- */
#bg-canvas {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none; opacity: .5;
}
/* 细线网格静态铺底，不使用大面积光斑或粒子连线 */
.grid-overlay {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(148,170,205,0.030) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,170,205,0.030) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(100% 70% at 50% 0%, #000 15%, transparent 100%);
    -webkit-mask-image: radial-gradient(100% 70% at 50% 0%, #000 15%, transparent 100%);
}

/* 内容层级 */
.nav, .hero, .features, .policy-note, .footer { position: relative; z-index: 2; }

/* ---------- 导航栏 ---------- */
.nav {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(11,18,32,.55);
    backdrop-filter: blur(8px);
}
.nav-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 7px;
    font-weight: 700; font-size: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 1px solid rgba(255,255,255,.12);
}
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav-links a {
    color: var(--text-dim); text-decoration: none;
    font-size: 14px; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.nav-cta {
    padding: 9px 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    transition: transform .2s, filter .2s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ---------- 首屏 ---------- */
.hero {
    min-height: 74vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 48px 24px;
}
.hero-content { max-width: 860px; }
.badge {
    display: inline-block;
    padding: 7px 14px; border-radius: 4px;
    font-size: 12px; letter-spacing: .5px; color: #b9cbe8;
    background: rgba(74,123,240,.09);
    border: 1px solid rgba(74,123,240,.26);
    border-left: 2px solid var(--gold);
    margin-bottom: 26px;
}
.hero-title {
    font-size: clamp(34px, 5.2vw, 56px);
    line-height: 1.25; font-weight: 700; letter-spacing: .5px;
}
/* 静态高亮，取消流动渐变动画 */
.grad-text { color: var(--gold); }
.hero-sub {
    margin: 22px auto 34px; max-width: 660px;
    font-size: 16px; line-height: 1.85; color: var(--text-dim);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 7px;
    font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px rgba(0,0,0,.26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.32); }
.btn-ghost {
    color: var(--text);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }

/* 政策速览指标条 */
.hero-stats {
    display: flex; flex-wrap: wrap; margin-top: 52px;
    border: 1px solid var(--border); border-radius: 9px;
    background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}
.stat {
    flex: 1; min-width: 160px;
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 20px; border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat b {
    font-family: var(--mono); font-size: 23px; font-weight: 600;
    color: #eaf1ff; letter-spacing: -.5px;
}
.stat span { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ---------- 服务范围 ---------- */
.features { max-width: 1180px; margin: 32px auto 64px; padding: 0 28px; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-kicker {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 2px; color: var(--gold); margin-bottom: 12px;
}
.section-head h2 { font-size: 30px; font-weight: 700; }
.section-head p { margin-top: 10px; color: var(--text-dim); font-size: 15px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.feature-card {
    padding: 26px 24px; border-radius: 9px;
    background: var(--card); border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature-index {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 1.5px; color: var(--gold); margin-bottom: 14px;
}
.feature-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 8px; margin-bottom: 16px;
    color: #8fb0ff;
    background: rgba(74,123,240,.10);
    border: 1px solid rgba(74,123,240,.22);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.feature-card p { color: var(--text-dim); font-size: 14px; line-height: 1.75; }

/* ---------- 政策依据 / 免责说明 ---------- */
.policy-note { max-width: 1180px; margin: 0 auto 72px; padding: 0 28px; }
.policy-note-inner {
    border: 1px solid var(--border);
    border-left: 2px solid var(--gold);
    border-radius: 8px; padding: 16px 20px;
    background: var(--card);
    font-size: 13px; line-height: 1.85; color: var(--text-dim);
}
.policy-note-inner strong { color: var(--text); font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer {
    text-align: center; padding: 26px 0 36px;
    color: var(--text-mute); font-size: 13px;
    border-top: 1px solid var(--border);
}
.footer-note { margin-top: 6px; font-size: 12px; color: var(--text-mute); }

/* ---------- 对话页 / 登录页：统一收敛 ----------
   用较高优先级覆盖页面内联的大发光与大药丸圆角，
   使三个页面保持同一套克制、专业的视觉语言。 */
.sidebar-logo, .new-chat-btn, .welcome-icon, .send-btn,
.topbar-avatar, .msg-avatar.ai, .msg-avatar.usr, .about-fab,
.auth-btn { box-shadow: 0 4px 14px rgba(0,0,0,.22) !important; }
.auth-card, .about-modal-content, .msg-bubble, .suggest-card,
.input-inner, .about-card { border-radius: 9px !important; }
.new-chat-btn, .auth-btn, .tab, .field input, .send-btn,
.about-fab, .topbar-logout { border-radius: 7px !important; }
.model-badge { border-radius: 5px !important; box-shadow: none !important; }

@media (max-width: 640px) {
    .nav-links { display: none; }
    .stat { min-width: 50%; border-bottom: 1px solid var(--border); }
    .hero-title { font-size: 32px; }
}
