/* ==========================================================
   天台深蓝电脑有限公司 · 官网 2027
   视觉系统：深蓝科技 / 浅底高密度信息 / 柔和光晕
   ========================================================== */
:root {
  /* ---- 品牌色（随主题微调） ---- */
  --navy-900: #061426;
  --navy-800: #0b2340;
  --navy-700: #10345c;
  --blue-600: #1e6ce0;
  --blue-500: #3f8bef;
  --accent: #6fb0ff;
  --blue-100: rgba(47, 125, 246, .16);
  --cyan-500: #17c3b2;
  --orange-500: #ff8a55;
  --orange-solid: #ff8a55;
  --orange-ink: #1a1206;

  /* ---- 语义色：默认主题「深海蓝」 ---- */
  --bg: #071a2e;
  --bg-alt: #0a2138;
  --surface: #0c2740;
  --surface-2: #103049;
  --surface-3: #163a58;
  --surface-hover: #123350;
  --ink: #e9f3ff;
  --ink-2: #b6cde6;
  --ink-strong: #ffffff;
  --muted: #86a5c4;
  --line: #1e4262;
  --line-soft: #173a56;
  --line-strong: #2a5578;
  --white: #0c2740;
  --header-bg: rgba(7, 26, 46, .86);
  --hero-grad: linear-gradient(180deg, #081d33 0%, #0a2440 100%);
  --metric-grad: linear-gradient(140deg, #0f3049, #0b2438);
  --grid-line: rgba(120, 180, 255, .06);
  --tint-blue-bg: rgba(47, 125, 246, .16);  --tint-blue-ink: #8fc0ff;
  --tint-green-bg: rgba(23, 195, 178, .14); --tint-green-ink: #5fe0cf;
  --tint-orange-bg: rgba(255, 138, 85, .14); --tint-orange-ink: #ffb08a;
  --tint-red-bg: rgba(214, 69, 54, .16);    --tint-red-ink: #ff9587; --tint-red-line: rgba(214, 69, 54, .34);
  --tint-gray-bg: rgba(255, 255, 255, .07); --tint-gray-ink: #93aec9;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .34);
  --shadow: 0 12px 36px rgba(0, 0, 0, .42);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .52);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================
   主题：默认「深海蓝」；可选 明亮白 / 石墨黑 / 雾蓝
   切换方式：<html data-theme="light|graphite|mist">，默认即深海蓝
   ========================================================== */
html[data-theme="light"] {
  --navy-900: #07162c; --navy-800: #0b2340; --navy-700: #10345c;
  --blue-600: #1769e0; --blue-500: #2f7df6; --blue-100: #e6f0ff; --orange-500: #ff7a45; --orange-solid: #b04a12; --orange-ink: #ffffff; --accent: #1461d4;
  --bg: #f6f9fd; --bg-alt: #ffffff; --surface: #ffffff; --surface-2: #fbfdff; --surface-3: #f4f9ff; --surface-hover: #fafcff;
  --ink: #12233a; --ink-2: #3a4f6b; --ink-strong: #0b2340; --muted: #5c7089;
  --line: #dfe8f3; --line-soft: #ecf2f9; --line-strong: #cadcf5; --white: #ffffff;
  --header-bg: rgba(255, 255, 255, .88);
  --hero-grad: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  --metric-grad: linear-gradient(140deg, #f2f7ff, #ffffff);
  --grid-line: rgba(23, 105, 224, .05);
  --tint-blue-bg: #e8f0ff; --tint-blue-ink: #1461d4;
  --tint-green-bg: #e3f8f0; --tint-green-ink: #0a7a60;
  --tint-orange-bg: #fff1e8; --tint-orange-ink: #a8500f;
  --tint-red-bg: #fff0ee; --tint-red-ink: #c03a2c; --tint-red-line: #f3d5d0;
  --tint-gray-bg: #eef2f7; --tint-gray-ink: #5b6b83;
  --shadow-sm: 0 2px 10px rgba(11, 35, 64, .05);
  --shadow: 0 12px 36px rgba(11, 35, 64, .09);
  --shadow-lg: 0 24px 60px rgba(11, 35, 64, .16);
}

html[data-theme="graphite"] {
  --navy-900: #0f1114; --navy-800: #171a1f; --navy-700: #20252b;
  --blue-600: #1e6ce0; --blue-500: #3f8bef; --blue-100: rgba(74, 155, 255, .14); --accent: #79b4ff; --orange-solid: #ff8a55; --orange-ink: #1a1206;
  --bg: #0c0e11; --bg-alt: #121418; --surface: #17191d; --surface-2: #1d2025; --surface-3: #252a30; --surface-hover: #1f2328;
  --ink: #e8eaed; --ink-2: #b4bac1; --ink-strong: #ffffff; --muted: #8f97a1;
  --line: #262b31; --line-soft: #1f2429; --line-strong: #343b43; --white: #17191d;
  --header-bg: rgba(12, 14, 17, .86);
  --hero-grad: linear-gradient(180deg, #101317 0%, #14171b 100%);
  --metric-grad: linear-gradient(140deg, #1c2126, #15181c);
  --grid-line: rgba(255, 255, 255, .05);
  --tint-blue-bg: rgba(74, 155, 255, .16); --tint-blue-ink: #9cc6ff;
  --tint-green-bg: rgba(23, 195, 178, .14); --tint-green-ink: #5fe0cf;
  --tint-orange-bg: rgba(255, 138, 85, .14); --tint-orange-ink: #ffb08a;
  --tint-red-bg: rgba(214, 69, 54, .16); --tint-red-ink: #ff9587; --tint-red-line: rgba(214, 69, 54, .34);
  --tint-gray-bg: rgba(255, 255, 255, .07); --tint-gray-ink: #9aa3ad;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .4);
  --shadow: 0 12px 36px rgba(0, 0, 0, .48);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

html[data-theme="mist"] {
  --navy-900: #0d2136; --navy-800: #14304c; --navy-700: #1b4267;
  --blue-600: #1769e0; --blue-500: #2f7df6; --blue-100: #e3eefb; --orange-500: #ff7a45; --orange-solid: #b04a12; --orange-ink: #ffffff; --accent: #1461d4;
  --bg: #eef3f9; --bg-alt: #f7fafd; --surface: #ffffff; --surface-2: #f4f8fc; --surface-3: #eaf1f9; --surface-hover: #f7fafd;
  --ink: #14243a; --ink-2: #3d5474; --ink-strong: #0d2136; --muted: #566d86;
  --line: #d7e3f0; --line-soft: #e5edf7; --line-strong: #bed3e9; --white: #ffffff;
  --header-bg: rgba(247, 250, 253, .88);
  --hero-grad: linear-gradient(180deg, #f7fafd 0%, #e8f0fa 100%);
  --metric-grad: linear-gradient(140deg, #eaf2fb, #ffffff);
  --grid-line: rgba(23, 105, 224, .05);
  --tint-blue-bg: #e3eefb; --tint-blue-ink: #1461d4;
  --tint-green-bg: #e3f8f0; --tint-green-ink: #0a7a60;
  --tint-orange-bg: #fff1e8; --tint-orange-ink: #a8500f;
  --tint-red-bg: #fff0ee; --tint-red-ink: #c03a2c; --tint-red-line: #f3d5d0;
  --tint-gray-bg: #e9eff7; --tint-gray-ink: #5b6b83;
  --shadow-sm: 0 2px 10px rgba(13, 33, 54, .06);
  --shadow: 0 12px 36px rgba(13, 33, 54, .1);
  --shadow-lg: 0 24px 60px rgba(13, 33, 54, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; background: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--blue-500); color: #fff; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .18em;
  color: var(--accent); background: var(--blue-100); padding: 6px 14px; border-radius: 100px;
}
.section-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; margin-top: 16px; }
.section-subtitle { color: var(--muted); font-size: 16px; margin-top: 12px; }
.section-dark .section-subtitle { color: #a9c3df; }
.section-dark .section-tag { background: rgba(47, 125, 246, .18); color: #8fc0ff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; transition: .22s ease; white-space: nowrap;
  background: none;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(23, 105, 224, .28); }
.btn-primary:hover { background: #0f57c4; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 105, 224, .36); }
.btn-outline { border-color: var(--line); color: var(--ink-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--accent); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-soft { background: var(--blue-100); color: var(--accent); }
.btn-soft:hover { background: #d6e7ff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--tint-red-bg); color: var(--tint-red-ink); }
.btn-danger:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- 顶部导航 ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--blue-500), var(--cyan-500)); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-wrap { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--blue-600)); color: #fff;
  font-weight: 900; font-size: 17px; letter-spacing: -.04em; box-shadow: 0 6px 16px rgba(23,105,224,.3);
}
.brand-logo { height: 40px; width: auto; max-width: 168px; border-radius: 8px; flex-shrink: 0; object-fit: contain; }
.footer-logo { height: 46px; max-width: 190px; }
.brand-text strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.brand-text span { display: block; font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 9px 13px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .18s; }
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--blue-100); }
.nav-link-cta, .nav-link.active.nav-link-cta, .nav-link-cta:hover { background: var(--blue-600); color: #fff !important; margin-left: 6px; }
.nav-link-cta:hover { background: #0f57c4; }
.nav-admin { font-size: 12px; color: var(--muted); padding: 8px 10px; }
.nav-admin:hover { color: var(--accent); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); align-items: center; justify-content: center; margin-left: auto; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }

.notice-bar { background: var(--navy-900); color: #c9dcf3; font-size: 13px; }
.notice-inner { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-500); box-shadow: 0 0 0 4px rgba(23,195,178,.16); flex-shrink: 0; }
.notice-inner a { margin-left: auto; color: #8fc0ff; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-grad); padding: 84px 0 88px; }
.hero::before {
  content: ''; position: absolute; width: 720px; height: 720px; right: -180px; top: -280px;
  background: radial-gradient(circle, rgba(47,125,246,.18), rgba(47,125,246,0) 68%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--surface); border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.hero-badge b { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-500); }
.hero-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.2; font-weight: 900; letter-spacing: -.035em; margin: 24px 0 20px; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--cyan-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--ink-2); font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stat strong { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.03em; color: var(--ink-strong); line-height: 1.2; }
.hero-stat span { font-size: 12px; color: var(--muted); }

.hero-visual { position: relative; min-height: 500px; }
.visual-panel {
  position: absolute; inset: 30px 0 20px 10px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700) 58%, #12508f);
  box-shadow: var(--shadow-lg); overflow: hidden; padding: 30px; color: #fff;
}
.visual-panel::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; background: radial-gradient(circle, rgba(23,195,178,.35), transparent 70%); }
.vp-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9fbde0; }
.vp-dots { display: flex; gap: 5px; }
.vp-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.vp-title { font-size: 20px; font-weight: 800; margin: 26px 0 6px; position: relative; }
.vp-sub { font-size: 13px; color: #a9c3df; position: relative; }
.vp-flow { display: grid; gap: 10px; margin-top: 26px; position: relative; }
.vp-step { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 11px 14px; font-size: 13px; }
.vp-step b { width: 24px; height: 24px; border-radius: 7px; background: rgba(47,125,246,.35); display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.vp-step span { color: #a9c3df; margin-left: auto; font-size: 11px; }
.vp-foot { position: static; display: flex; justify-content: space-between; font-size: 11px; color: #8fb0d8; border-top: 1px solid rgba(255,255,255,.12); margin-top: 20px; padding-top: 14px; }

.trust-bar { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.trust-item { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 9px; font-weight: 600; }
.trust-item b { color: var(--accent); font-size: 15px; }
.trust-sep { width: 1px; height: 18px; background: var(--line); }

/* ---------- 卡片 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); transition: .24s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-100); display: grid; place-items: center; font-size: 23px; margin-bottom: 18px; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--blue-100); border-radius: 100px; padding: 4px 10px; }
.card-title { font-size: 18px; font-weight: 800; margin: 12px 0 8px; letter-spacing: -.01em; }
.card-desc { color: var(--muted); font-size: 14px; }
.card-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--accent); }
.service-card { cursor: pointer; position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue-500), var(--cyan-500)); transition: .3s; }
.service-card:hover::after { width: 100%; }
.service-card .card-tag { float: right; }
.simple-card { padding: 22px; }
.simple-card .card-icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 14px; border-radius: 11px; }
.simple-card .card-title { font-size: 16px; margin: 0 0 6px; }

/* ---------- 案例 / 筛选 ---------- */
.filter-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-tab { padding: 8px 20px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); transition: .2s; }
.filter-tab:hover { border-color: var(--blue-500); color: var(--accent); }
.filter-tab.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.case-card { display: flex; flex-direction: column; }
.case-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.case-metrics { display: flex; gap: 14px; margin: 20px 0 16px; }
.metric { flex: 1; background: var(--metric-grad); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; }
.metric strong { display: block; font-size: 24px; font-weight: 900; color: var(--accent); line-height: 1.2; letter-spacing: -.02em; }
.metric span { font-size: 11px; color: var(--muted); }
.case-disclaimer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 26px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, #0d4b8f); border-radius: var(--r-lg); padding: 52px 56px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 420px; height: 420px; right: -80px; top: -180px; background: radial-gradient(circle, rgba(23,195,178,.22), transparent 70%); }
.cta-band h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; position: relative; }
.cta-band p { color: #a9c3df; margin-top: 10px; font-size: 15px; position: relative; }
.cta-actions { display: flex; gap: 10px; position: relative; flex-shrink: 0; }

/* ---------- 时间轴 ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 20px; }
.timeline::before { content: ''; position: absolute; left: 10%; right: 10%; top: 22px; height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-500)); opacity: .35; }
.timeline-item { text-align: center; padding: 0 12px; position: relative; }
.timeline-item::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue-500); margin: 15px auto 24px; display: block; position: relative; z-index: 1; }
.timeline-year { font-size: 22px; font-weight: 900; color: var(--ink-strong); letter-spacing: -.02em; }
.timeline-item h4 { font-size: 14px; margin: 8px 0; font-weight: 800; }
.timeline-item p { font-size: 12px; color: var(--muted); }

/* ---------- 资料 / 新闻列表 ---------- */
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.preview-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.preview-item { display: flex; align-items: center; gap: 16px; min-width: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 20px; transition: .2s; }
.preview-item:hover { border-color: var(--line-strong); transform: translateX(4px); }
.file-badge { width: 42px; height: 46px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 900; flex-shrink: 0; letter-spacing: .02em; }
.file-badge.MD { background: var(--tint-blue-bg); color: var(--tint-blue-ink); }
.file-badge.CSV { background: var(--tint-green-bg); color: var(--tint-green-ink); }
.file-badge.TXT { background: var(--tint-orange-bg); color: var(--tint-orange-ink); }
.file-badge.OTHER { background: var(--tint-gray-bg); color: var(--tint-gray-ink); }
.preview-main { min-width: 0; flex: 1; }
.preview-main strong { display: block; font-size: 15px; font-weight: 700; }
.preview-main span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 22px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line-soft); transition: .2s; }
.news-item:first-child { border-top: 1px solid var(--line-soft); }
.news-item:hover { background: var(--surface); padding-left: 18px; padding-right: 18px; border-radius: 12px; }
.news-date { font-size: 13px; color: var(--muted); }
.news-cat { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--blue-100); padding: 3px 9px; border-radius: 100px; margin-right: 10px; vertical-align: 2px; }
.news-item h4 { font-size: 16px; font-weight: 700; display: inline; }
.news-item p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; }
.contact-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-100); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.contact-item h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.contact-item p { font-size: 13px; color: var(--ink-2); }
.contact-item .muted { color: var(--muted); font-size: 12px; }
.phone-slot, .secret-slot { display: inline-flex; align-items: center; min-height: 32px; max-width: 100%; vertical-align: middle; }
.phone-img, .secret-img { display: block; height: 30px; width: auto; max-width: 100%; cursor: pointer; }
.phone-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.footer-phone .phone-img, .footer-phone .secret-img, .site-footer .secret-img { height: 26px; }
.secret-mail { border: 0; background: none; padding: 0 3px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.site-footer .secret-mail { color: #8fc0ff; padding: 2px 9px; border: 1px solid rgba(143,192,255,.38); border-radius: 999px; background: rgba(143,192,255,.08); text-decoration: none; font-size: 11px; line-height: 1.6; }
.secret-mail:hover { opacity: .8; }
.footer-label { color: #9ab4d4; font-size: 12px; }
.secret-line { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.secret-fallback { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.secret-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 14px); z-index: 300; background: #0b2340; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 11px 18px; font-size: 13px; box-shadow: 0 12px 32px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transition: .22s; max-width: calc(100vw - 32px); text-align: center; }
.secret-toast.show { opacity: 1; transform: translate(-50%, 0); }
.beian-link { color: #8fc0ff; text-decoration: none; }
.beian-link:hover { color: #fff; text-decoration: underline; }
.beian-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.ver-badge { display: inline-flex; align-items: center; padding: 1px 9px; border: 1px solid rgba(143,192,255,.45); border-radius: 999px; color: #a9d0ff; font-size: 11px; font-weight: 800; letter-spacing: .05em; line-height: 1.7; white-space: nowrap; }
.admin-beian { padding: 26px 0; }
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 20px; font-weight: 800; }
.form-card > p { color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field label i { color: var(--tint-red-ink); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--ink); outline: none; transition: .18s; font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,125,246,.12); background: var(--surface); }
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.form-actions { margin-top: 20px; display: flex; align-items: center; gap: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: #a9c3df; padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h5 { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.site-footer p, .site-footer li { font-size: 13px; line-height: 2; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.site-footer .brand-logo { height: 46px; max-width: 190px; }
.footer-phone { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 13px; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 42px; padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.footer-bottom a { color: #8fc0ff; }
.site-footer .brand-text strong { color: #ffffff; }
.site-footer .brand-text span { color: #9ab4d4; }


/* ---------- 浮层 ---------- */
.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-600); color: #fff; border: 0; box-shadow: var(--shadow); display: none; place-items: center; z-index: 90; font-size: 18px; }
.back-to-top.show { display: grid; }
.toast-wrap { position: fixed; top: 88px; right: 24px; z-index: 200; display: grid; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cyan-500); border-radius: 10px; box-shadow: var(--shadow); padding: 13px 18px; font-size: 13px; font-weight: 600; min-width: 220px; animation: toastIn .25s ease; }
.toast.error { border-left-color: var(--tint-red-ink); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.modal { position: fixed; inset: 0; z-index: 180; background: rgba(7,22,44,.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 32px; box-shadow: var(--shadow-lg); animation: modalIn .22s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.modal-head h3 { font-size: 22px; font-weight: 800; }
.modal-close { margin-left: auto; border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 9px; font-size: 17px; color: var(--ink-2); flex-shrink: 0; }
.modal-box p { color: var(--ink-2); font-size: 14px; }
.point-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 22px 0; }
.point-list li { font-size: 13px; background: var(--bg); border-radius: 9px; padding: 9px 12px; }
.point-list li::before { content: '✓'; color: var(--cyan-500); font-weight: 900; margin-right: 8px; }

/* 默认可见：即使观察器未触发也绝不出现空白；.in 只叠加一次入场动画 */
.reveal { opacity: 1; transform: none; }
.reveal.in { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- 页头（内页） ---------- */
.page-hero { background: linear-gradient(140deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 64px 0 70px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 560px; height: 560px; right: -120px; top: -260px; background: radial-gradient(circle, rgba(47,125,246,.3), transparent 68%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 900; letter-spacing: -.03em; margin: 12px 0; }
.page-hero p { color: #a9c3df; font-size: 16px; max-width: 640px; }
.crumb { font-size: 12px; color: #8fb0d8; }
.crumb a:hover { color: #fff; }

/* ---------- 下载中心 ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: var(--surface-2); }
.search-box input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,125,246,.12); }
.search-box::before { content: '⌕'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); }
.filter-bar select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); outline: none; font-size: 13px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { padding: 7px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink-2); transition: .18s; }
.chip:hover { border-color: var(--blue-500); color: var(--accent); }
.chip.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.download-layout { display: grid; grid-template-columns: 1fr 290px; gap: 26px; align-items: start; }
.doc-grid { display: grid; gap: 14px; }
.doc-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; transition: .2s; }
.doc-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-2px); }
.doc-main { flex: 1; min-width: 0; }
.doc-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.doc-title .hot { font-size: 10px; background: var(--tint-orange-bg); color: var(--tint-orange-ink); padding: 2px 8px; border-radius: 100px; font-weight: 800; }
.doc-desc { font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.doc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.doc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.doc-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.side-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.side-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.hot-list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.hot-list li:last-child { border: 0; }
.hot-rank { width: 20px; height: 20px; border-radius: 6px; background: var(--blue-100); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 900; flex-shrink: 0; }
.hot-list li:first-child .hot-rank { background: var(--orange-solid); color: var(--orange-ink); }
.hot-list li span:last-child { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: var(--surface); border-radius: var(--r); border: 1px dashed var(--line); }
.empty b { display: block; font-size: 34px; margin-bottom: 8px; }

/* ---------- 诊断问卷 ---------- */
.quiz-wrap { max-width: 780px; margin: 0 auto; }
.quiz-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line-soft); padding: 38px; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.quiz-progress i { flex: 1; height: 5px; border-radius: 100px; background: var(--line-soft); transition: .3s; }
.quiz-progress i.done { background: var(--blue-500); }
.quiz-step { font-size: 12px; color: var(--accent); font-weight: 800; letter-spacing: .1em; }
.quiz-card h2 { font-size: 25px; font-weight: 800; margin: 10px 0 6px; }
.quiz-hint { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.options { display: grid; gap: 11px; }
.option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; transition: .18s; cursor: pointer; background: var(--surface-2); }
.option:hover { border-color: var(--blue-500); background: var(--surface-3); }
.option.selected { border-color: var(--blue-600); background: var(--blue-100); box-shadow: 0 0 0 3px rgba(47,125,246,.1); }
.option-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; }
.option.selected .option-radio { border-color: var(--blue-600); }
.option.selected .option-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue-600); }
.option b { font-size: 14px; display: block; }
.option small { font-size: 12px; color: var(--muted); }
.quiz-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; }
.report { display: none; }
.report.show { display: block; }
.report-score { display: flex; align-items: center; gap: 22px; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--r); padding: 26px 30px; margin-bottom: 24px; }
.report-score strong { font-size: 46px; font-weight: 900; line-height: 1; color: #7ee0d2; }
.report-score span { font-size: 13px; color: #a9c3df; }
.report-section { margin-bottom: 22px; }
.report-section h4 { font-size: 15px; font-weight: 800; margin-bottom: 10px; padding-left: 11px; border-left: 3px solid var(--blue-500); }
.report-section li { font-size: 14px; padding: 7px 0 7px 20px; position: relative; color: var(--ink-2); }
.report-section li::before { content: '·'; position: absolute; left: 6px; color: var(--accent); font-weight: 900; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- 资讯 ---------- */
.article-list { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.article-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 26px; transition: .2s; }
.article-card:hover { box-shadow: var(--shadow); }
.article-head { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.article-card h3 { font-size: 19px; font-weight: 800; margin: 12px 0 8px; }
.article-card p { font-size: 14px; color: var(--muted); }
.article-body { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.article-card.open .article-body { display: block; }
.article-toggle { margin-top: 14px; font-size: 13px; color: var(--accent); font-weight: 700; background: none; border: 0; padding: 0; }

/* ==========================================================
   后台管理
   ========================================================== */
.admin-body { background: var(--bg); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, var(--tint-blue-bg), transparent 45%), radial-gradient(circle at 85% 85%, var(--tint-green-bg), transparent 45%), var(--bg); }
.login-box { width: min(420px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 38px; border: 1px solid var(--line-soft); }
.login-box .brand { margin-bottom: 26px; }
.login-box h1 { font-size: 22px; font-weight: 800; }
.login-box > p { font-size: 13px; color: var(--muted); margin: 8px 0 26px; }
.login-box .field { margin-bottom: 16px; }
.login-box .btn { width: 100%; margin-top: 8px; }
.login-tip { font-size: 12px; color: var(--muted); margin-top: 18px; padding: 12px; background: var(--bg); border-radius: 10px; line-height: 1.7; }
.login-back { display: block; text-align: center; margin-top: 18px; font-size: 13px; color: var(--accent); }

.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-900); color: #a9c3df; padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-side .brand-logo { height: 32px; max-width: 132px; }
.admin-side .brand-text { display: none; }
.admin-side .brand-text strong { color: #fff; }
.admin-side .brand-text span { color: #7f9dc0; }
.admin-menu { display: grid; gap: 4px; margin-top: 22px; }
.admin-menu button { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 0; border-radius: 10px; background: none; color: #a9c3df; text-align: left; font-size: 13px; font-weight: 600; width: 100%; transition: .18s; }
.admin-menu button:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-menu button.active { background: var(--blue-600); color: #fff; }
.admin-menu .sep { height: 1px; background: rgba(255,255,255,.1); margin: 12px 6px; }
.admin-side-foot { margin-top: auto; font-size: 11px; color: #6f8cad; padding: 12px 8px; border-top: 1px solid rgba(255,255,255,.1); line-height: 1.8; }
.admin-main { min-width: 0; }
.admin-top { height: 68px; background: var(--surface); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.admin-top h2 { font-size: 17px; font-weight: 800; }
.admin-top .spacer { flex: 1; }
.admin-top .who { font-size: 12px; color: var(--muted); }
.admin-content { padding: 26px 28px 60px; }
.panel { display: none; }
.panel.active { display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; }
.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card strong { display: block; font-size: 28px; font-weight: 900; color: var(--ink-strong); margin-top: 6px; line-height: 1.2; }
.stat-card small { font-size: 11px; color: var(--cyan-500); }
.admin-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.admin-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.admin-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin-toolbar .search-box { max-width: 300px; }
.admin-toolbar .btn { flex-shrink: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.admin-table th { background: var(--surface-2); text-align: left; font-size: 11px; color: var(--muted); letter-spacing: .04em; padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--surface-hover); }
.admin-table .row-title { font-weight: 700; color: var(--ink); }
.admin-table .row-sub { font-size: 11px; color: var(--muted); }
.row-actions { display: flex; gap: 6px; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--ink-2); }
.icon-btn:hover { border-color: var(--blue-500); color: var(--accent); }
.icon-btn.del:hover { border-color: var(--tint-red-line); color: var(--tint-red-ink); background: var(--tint-red-bg); }
.badge { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 100px; background: var(--blue-100); color: var(--accent); font-weight: 700; }
.badge.gray { background: var(--tint-gray-bg); color: var(--tint-gray-ink); }
.badge.green { background: var(--tint-green-bg); color: var(--tint-green-ink); }
.badge.orange { background: var(--tint-orange-bg); color: var(--tint-orange-ink); }
.empty-row { text-align: center; color: var(--muted); padding: 34px !important; }
.form-modal .modal-box { width: min(640px, 100%); }
.form-modal .form-grid { gap: 14px; }
.form-modal .field.full { grid-column: 1 / -1; }
.hint-line { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.upload-zone { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.upload-zone b { color: var(--accent); }
.upload-zone input { display: block; margin: 12px auto 0; font-size: 12px; max-width: 100%; }
.danger-zone { border: 1px solid var(--tint-red-line); background: var(--tint-red-bg); border-radius: 12px; padding: 18px; }
.danger-zone h4 { font-size: 14px; font-weight: 800; color: var(--tint-red-ink); margin-bottom: 6px; }
.danger-zone p { font-size: 12px; color: var(--ink-2); margin-bottom: 14px; }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 主题调色器 ---------- */
.theme-fab {
  position: fixed; right: 24px; bottom: 80px; z-index: 95; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; box-shadow: var(--shadow); transition: .2s;
}
.theme-fab:hover { color: var(--accent); border-color: var(--blue-500); transform: translateY(-2px); }
.theme-fab svg { width: 21px; height: 21px; }
.theme-panel {
  position: fixed; right: 24px; bottom: 136px; z-index: 96; width: 212px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 14px;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease;
}
.theme-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.theme-panel h6 { font-size: 10px; letter-spacing: .18em; color: var(--muted); margin: 0 0 10px; font-weight: 800; }
.theme-list { display: grid; gap: 5px; }
.theme-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid transparent; background: none; color: var(--ink-2);
  font-size: 13px; font-weight: 600; width: 100%; text-align: left; transition: .16s;
}
.theme-item:hover { background: var(--surface-2); color: var(--ink); }
.theme-item.active { border-color: var(--accent); background: var(--surface-2); color: var(--ink); }
.theme-dot { width: 20px; height: 20px; border-radius: 7px; flex-shrink: 0; border: 1px solid rgba(127,150,180,.4); }
.theme-dot[data-swatch="deep"] { background: linear-gradient(140deg, #0a2138, #2f7df6); }
.theme-dot[data-swatch="light"] { background: linear-gradient(140deg, #ffffff, #dbe9fb); }
.theme-dot[data-swatch="graphite"] { background: linear-gradient(140deg, #14161a, #4a5058); }
.theme-dot[data-swatch="mist"] { background: linear-gradient(140deg, #f7fafd, #b9d3ef); }
.theme-item .theme-check { margin-left: auto; color: var(--accent); font-size: 12px; opacity: 0; }
.theme-item.active .theme-check { opacity: 1; }
.theme-note { font-size: 10px; color: var(--muted); margin-top: 9px; line-height: 1.6; }

/* ---------- 页内锚点条（栏目页） ---------- */
.anchor-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; position: relative; z-index: 1; }
.anchor-chips a { font-size: 12.5px; color: #cfe2f8; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 7px 14px; transition: background .2s, border-color .2s, color .2s; }
.anchor-chips a:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .42); }

/* ---------- 首页三入口卡 ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.entry-card { display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); color: var(--ink); position: relative; overflow: hidden; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.entry-card::after { content: ''; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(47, 125, 246, .2), transparent 70%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.entry-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.entry-card:hover::after { opacity: 1; }
.entry-icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 25px; line-height: 1; border-radius: 14px; background: var(--tint-blue-bg); border: 1px solid var(--line); margin-bottom: 18px; flex-shrink: 0; }
.entry-body { flex: 1; }
.entry-body h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.entry-body p { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-top: 9px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; padding: 0; list-style: none; }
.entry-tags li { font-size: 11.5px; color: var(--tint-blue-ink); background: var(--tint-blue-bg); border-radius: 999px; padding: 4px 10px; }
.entry-go { margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; transition: gap .2s ease; }
.entry-card:hover .entry-go { gap: 9px; }

/* ---------- 首页联系带（表单统一在 contact.html，首页只留一条） ---------- */
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 38px; border-radius: var(--r-lg); background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-strip::after { content: ''; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(47, 125, 246, .18), transparent 70%); pointer-events: none; }
.cs-main { position: relative; }
.cs-main h2 { font-size: clamp(20px, 2.2vw, 27px); font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.cs-main p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.cs-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; position: relative; }
.cs-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }

/* 联系页：表单下方直接拨号 */
.form-alt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 微信公众号 ---------- */
.contact-col { display: grid; gap: 16px; align-content: start; }
.wechat-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.wechat-card .wc-qr { width: 112px; height: 112px; border-radius: 14px; flex: none; border: 1px solid var(--line-soft); }
.wechat-card h4 { font-size: 15px; font-weight: 800; margin: 0 0 3px; }
.wechat-card .wc-name { font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.wechat-card .wc-note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.wechat-fab {
  position: fixed; right: 80px; bottom: 24px; z-index: 94; height: 44px; padding: 0 15px; border-radius: 12px;
  border: 0; background: var(--blue-600); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: var(--shadow); display: grid; place-items: center; transition: .2s; letter-spacing: .04em;
}
.wechat-fab:hover { transform: translateY(-2px); filter: brightness(1.06); }
.qr-pop {
  position: fixed; right: 80px; bottom: 78px; z-index: 96; width: 232px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 16px; text-align: center;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease;
}
.qr-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.qr-pop .qr-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.qr-pop img { width: 168px; height: 168px; border-radius: 12px; border: 1px solid var(--line-soft); }
.qr-pop b { display: block; font-size: 14px; margin-top: 10px; }
.qr-pop p { font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.6; }
@media (max-width: 620px) {
  .wechat-card { flex-direction: column; text-align: center; padding: 20px; }
  .wechat-fab { right: 76px; bottom: 20px; padding: 0 12px; font-size: 12px; }
  .qr-pop { right: 12px; bottom: 74px; width: min(232px, calc(100vw - 24px)); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 0; max-width: 560px; }
  .visual-panel { position: relative; inset: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .download-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  /* 三入口卡：窄屏改为横排单列，省竖向高度 */
  .entry-grid { grid-template-columns: 1fr; gap: 14px; }
  .entry-card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px 20px 18px; }
  .entry-icon { margin-bottom: 0; width: 46px; height: 46px; font-size: 22px; }
  .entry-body h3 { font-size: 17px; }
  .entry-body p { margin-top: 6px; }
  .entry-go { margin-top: 0; align-self: center; white-space: nowrap; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; flex-direction: column; align-items: stretch; gap: 2px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-link { padding: 12px; }
  .nav-link-cta { margin: 6px 0 0; text-align: center; }
  .menu-toggle { display: flex; }
  .section { padding: 66px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px; }
  .contact-strip { flex-direction: column; align-items: flex-start; padding: 26px 22px; gap: 18px; }
  .cs-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .cs-actions .btn { text-align: center; }
  .cs-phone { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { display: none; }
  .timeline-item { display: grid; grid-template-columns: 76px 1fr; text-align: left; align-items: start; gap: 4px 12px; }
  .timeline-item::before { grid-row: 1 / 3; margin: 8px 0 0; }
  .timeline-item h4 { margin: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; gap: 8px; }
  .admin-side .brand { padding: 0 10px 0 0; border: 0; }
  .admin-menu { display: flex; margin: 0; flex-wrap: wrap; gap: 4px; }
  .admin-menu button { width: auto; padding: 8px 11px; font-size: 12px; }
  .admin-menu .sep, .admin-side-foot { display: none; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 620px) {
  .theme-fab { right: 16px; bottom: 74px; width: 42px; height: 42px; }
  .theme-panel { right: 16px; bottom: 124px; width: 196px; }
  .container { width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .preview-item { flex-wrap: wrap; }
  .preview-main { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .notice-inner, .trust-inner { flex-wrap: wrap; }
  .admin-top { flex-wrap: wrap; gap: 8px; }
  .contact-item { padding: 16px; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; margin-top: 34px; }
  .hero-stat strong { font-size: 24px; }
  .hero-visual { min-height: 0; }
  .visual-panel { position: relative; inset: auto; min-height: 0; padding: 22px; }
  .vp-foot { position: static; margin-top: 22px; }
  .brand-logo { height: 34px; max-width: 140px; }
  .brand-text { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .point-list { grid-template-columns: 1fr; }
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .doc-card { flex-direction: column; }
  .doc-actions { flex-direction: row; width: 100%; }
  .doc-actions .btn { flex: 1; }
  .cta-band { padding: 26px 22px; }
  .cta-actions { flex-wrap: wrap; width: 100%; }
  .cta-actions .btn { flex: 1 1 140px; text-align: center; }
  .quiz-card { padding: 24px; }
  .admin-content { padding: 18px 14px 50px; }
  .admin-top { padding: 0 16px; }
  .trust-sep { display: none; }
  /* 手机上隐藏入口卡的标签行，进一步压缩高度 */
  .entry-tags { display: none; }
  .entry-body p { font-size: 12.5px; line-height: 1.6; }
  .anchor-chips a { font-size: 11.5px; padding: 6px 12px; }
  .modal-box { padding: 24px; }
}
