/* =========================================================
   齐营情感 · 视觉样式（多页面版：深色舞台）
   颜色语义 token 由项目自持；几何、间距、圆角、动效与断点
   沿用所选风格集 flat-soft-editorial 的取值范围。
   ========================================================= */

:root {
  --canvas: #0b0e15;
  --surface: #121724;
  --surface-alt: #161c2b;
  --border: rgba(255, 255, 255, 0.10);
  --border-solid: #2a3247;
  --text: #e8ecf4;
  --muted: #9aa4b8;
  --accent: #7c8cff;
  --accent-solid: #3d5afe;
  --accent-solid-hover: #3549d8;
  --danger: #ffb4a4;
  --success: #a9ffd0;
  --radius-card: 24px;
  --radius-control: 12px;
  --maxw: 1200px;
  --readw: 760px;
  --section-y: 96px;
  --glow-1: rgba(124, 140, 255, 0.20);
  --glow-2: rgba(61, 90, 254, 0.16);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg, img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--accent-solid); color: #fff; padding: 12px 18px;
  border-radius: var(--radius-control); transition: top .16s ease-out;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 14, 21, 0.92);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; display: block; }
.brand-text { display: block; }
.brand-note { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

.nav-wrap { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: 9px 12px; border-radius: var(--radius-control);
  color: var(--text); font-size: 15px;
}
.nav a:hover { background: var(--surface-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: rgba(124, 140, 255, 0.12); font-weight: 600; }
.header-cta { display: inline-flex; gap: 10px; }
.menu-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px;
  color: var(--text); background: transparent;
  border: 1px solid var(--border-solid); border-radius: var(--radius-control); cursor: pointer;
}
.menu-btn:hover { background: var(--surface-alt); }
.menu-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius-control);
  border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-solid); color: #fff; border-color: var(--accent-solid); }
.btn-primary:hover { background: var(--accent-solid-hover); border-color: var(--accent-solid-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-solid); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 16px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 88px 0 72px; border-bottom: 1px solid var(--border); }
.hero-glow {
  position: absolute; left: -10%; right: -10%; top: -30%; height: 560px; pointer-events: none;
  background:
    radial-gradient(58% 58% at 28% 34%, var(--glow-1), transparent 72%),
    radial-gradient(48% 48% at 76% 22%, var(--glow-2), transparent 72%);
}
.hero .wrap {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center;
}
.hero h1 { font-size: 56px; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-facts { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: var(--muted); }

.hero-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.hero-panel h2 { font-size: 20px; }
.hero-panel ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.hero-panel li { margin-bottom: 8px; }
.hero-panel .meta { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* ---------- sections ---------- */

.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.section.alt { background: var(--surface); }
.section-head { max-width: 48em; margin-bottom: 40px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }

/* ---------- grids & cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.card {
  display: block; background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px; color: var(--text);
  transition: border-color .16s ease-out, transform .16s ease-out;
}
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.card .meta { font-size: 13px; color: var(--muted); }
.card .badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(124, 140, 255, 0.12); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px;
}
.card .icon { display: block; width: 30px; height: 30px; margin-bottom: 14px; }

/* ---------- chips / filters ---------- */

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  font: inherit; font-size: 15px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border-solid); background: transparent;
  color: var(--text); cursor: pointer;
}
.chip:hover { background: var(--surface-alt); }
.chip[aria-pressed="true"] { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; font-weight: 600; }

/* ---------- lists ---------- */

.article-list { display: grid; gap: 16px; }
.list-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 22px 24px; color: var(--text);
}
.list-item:hover { text-decoration: none; border-color: var(--accent); }
.list-item h3 { font-size: 19px; margin-bottom: 6px; }
.list-item p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.list-item .when { font-size: 13px; color: var(--muted); white-space: nowrap; }

.solution-list { display: grid; gap: 12px; }
.solution-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px 24px;
}
.solution-item h3 { font-size: 18px; margin-bottom: 6px; }
.solution-item p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

.empty {
  border: 1px dashed var(--border-solid); border-radius: var(--radius-card);
  padding: 40px 24px; text-align: center; color: var(--muted); background: var(--surface-alt);
}
.empty strong { display: block; color: var(--text); margin-bottom: 8px; font-size: 18px; }

/* ---------- article ---------- */

.article-shell { max-width: var(--readw); }
.article-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-head h1 { font-size: 40px; }
.article-head .meta { font-size: 14px; color: var(--muted); }
.prose p { font-size: 17px; line-height: 1.7; }
.points {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px 24px; margin: 28px 0;
}
.points h2 { font-size: 18px; margin: 0 0 10px; }
.points ul { margin: 0; padding-left: 20px; color: var(--muted); }
.points li { margin-bottom: 6px; }
.link-block {
  border: 1px solid var(--border); background: var(--surface-alt);
  border-radius: var(--radius-card); padding: 20px 24px; margin: 28px 0;
}
.link-block h2 { font-size: 18px; margin: 0 0 8px; }
.link-block p { color: var(--muted); margin: 0 0 12px; }
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-nav a {
  display: inline-block; padding: 8px 14px; font-size: 14px;
  border: 1px solid var(--border-solid); border-radius: 999px;
}
.cat-nav a:hover { background: var(--surface); text-decoration: none; border-color: var(--accent); }
a.badge:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 15px; font-weight: 600; }
.related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.related h2 { font-size: 20px; }
.related ul { margin: 0; padding-left: 20px; }

/* ---------- self check ---------- */

.check-list { display: grid; gap: 12px; margin-bottom: 24px; }
.check-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 16px 20px;
}
.check-row .q { font-size: 16px; }
.check-row .q small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.scale { display: flex; gap: 6px; }
.scale button {
  min-width: 48px; min-height: 44px; font: inherit; font-size: 14px;
  border-radius: var(--radius-control); border: 1px solid var(--border-solid);
  background: transparent; color: var(--text); cursor: pointer;
}
.scale button:hover { background: var(--surface); }
.scale button[aria-pressed="true"] { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; font-weight: 600; }
.check-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.check-result { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.check-result h3 { font-size: 19px; }
.check-bars { display: grid; gap: 10px; margin: 16px 0; }
.check-bar { display: grid; grid-template-columns: 7em minmax(0, 1fr) 3em; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }

/* ---------- forms ---------- */

.form-card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 15px; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-solid); border-radius: var(--radius-control);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--danger); }
.form-msg { margin-top: 14px; font-size: 15px; color: var(--muted); }
.form-msg[data-state="error"] { color: var(--danger); }
.form-msg[data-state="ok"] { color: var(--success); }

/* ---------- cta band ---------- */

.cta-band {
  background: linear-gradient(140deg, rgba(124, 140, 255, 0.16), rgba(61, 90, 254, 0.10));
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 36px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; margin: 0 0 6px; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }

/* ---------- footer ---------- */

.site-footer { padding: 48px 0 64px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer h3 { font-size: 15px; margin-bottom: 12px; }
.site-footer p, .site-footer li { font-size: 14px; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  a.card:hover, .card:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero h1 { font-size: 44px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 40px; }
  .article-head h1 { font-size: 32px; }
  .cta-band { padding: 24px; }
  .cta-band .actions { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav-wrap { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; margin-left: 0; }
  .nav-wrap[data-open="true"] { display: flex; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a { padding: 12px 14px; }
  .header-cta { flex-direction: column; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .list-item, .check-row, .solution-item { grid-template-columns: minmax(0, 1fr); }
  .list-item .when { white-space: normal; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .cta-band .actions .btn, .header-cta .btn { width: 100%; }
  .check-bar { grid-template-columns: 1fr; gap: 4px; }
  .check-bar .bar { grid-column: 1 / -1; }
}
/* ---------- 多页面版补充 ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.section-head h1 { font-size: 32px; }
@media (max-width: 768px) { .section-head h1 { font-size: 28px; } }
.note-group { margin-bottom: 44px; scroll-margin-top: 96px; }
.note-group h2 { font-size: 24px; }
.group-meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.note-group.is-hidden { display: none; }
.stack { display: grid; gap: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
