/* ============================================================
   职场权益问答助手 · 静态演示站
   与作品集使用同一套深色设计语言：低饱和、无光晕、内容优先。
   ============================================================ */

:root {
  --bg: #0f1115;
  --bg-soft: #14171c;
  --surface: #171a20;
  --surface-hi: #1c2029;
  --text: #e8ebf0;
  --muted: #98a1ae;
  --faint: #6b7481;
  --border: #24282f;
  --border-strong: #343a44;
  --accent: #86a8ff;
  --accent-hover: #a8c2ff;
  --accent-weak: #1a2133;
  --accent-text: #0c1017;
  --ok: #64c894;
  --warn: #e6ab52;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1020px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.32);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.55), 0 18px 42px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------------------- 顶栏 ---------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 62px; flex-wrap: wrap;
}
.brand { font-weight: 650; font-size: 15.5px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 4px; font-size: 14.5px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); padding: 7px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-nav .nav-cta { color: var(--accent); border: 1px solid var(--border-strong); }
.site-nav .nav-cta:hover { background: var(--accent-weak); border-color: var(--accent); }

/* ---------------------------- 首屏 ---------------------------- */

.hero {
  padding-block: clamp(48px, 8vw, 84px) clamp(32px, 5vw, 52px);
  background: linear-gradient(180deg, #151920 0%, var(--bg) 75%);
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 20px; font-size: clamp(27px, 4vw, 40px); line-height: 1.22;
  letter-spacing: -0.026em; font-weight: 680; max-width: 24ch;
}
.hero .lede {
  margin: 0 0 26px; color: var(--muted); font-size: clamp(16px, 1.8vw, 18px);
  max-width: 64ch;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 570; border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--faint); }

.notice {
  margin-top: 22px; padding: 14px 16px; font-size: 14px;
  color: var(--muted); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm); max-width: 64ch;
}
.notice strong { color: var(--warn); }

/* ---------------------------- 统计条 ---------------------------- */

.stats {
  display: grid; gap: 20px 30px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--border); padding-top: 26px; margin-top: 40px;
}
.stats > div { padding-left: 15px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.stats .n {
  display: block; font-size: clamp(21px, 2.5vw, 26px); font-weight: 680;
  letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.stats .l { display: block; margin-top: 5px; font-size: 13.5px; color: var(--muted); }

/* ---------------------------- 工具栏 ---------------------------- */

.toolbar {
  position: sticky; top: 62px; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}
.toolbar .wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.search {
  flex: 1 1 240px; min-width: 200px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 10px 18px; font-size: 15px; font-family: inherit;
}
.search::placeholder { color: var(--faint); }
.search:focus { outline: none; border-color: var(--accent); }

.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat {
  font-size: 13.5px; padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--muted); cursor: pointer; font-family: inherit;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.cat:hover { color: var(--text); background: var(--bg-soft); }
.cat[aria-pressed="true"] {
  background: var(--accent-weak); border-color: var(--accent); color: var(--accent); font-weight: 600;
}

.count { font-size: 13.5px; color: var(--faint); margin-left: auto; white-space: nowrap; }

/* ---------------------------- 问答条目 ---------------------------- */

.list { padding-block: 34px 60px; }
.qa {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 24px 26px; margin-bottom: 16px;
  transition: border-color 0.18s ease;
}
.qa:hover { border-color: var(--border-strong); }
.qa[hidden] { display: none; }

.qa-head {
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.qa-cat {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-weak);
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.qa-num { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.qa h3 {
  margin: 0 0 14px; font-size: 18.5px; line-height: 1.45;
  letter-spacing: -0.012em; font-weight: 640;
}

.qa p { margin: 0 0 12px; }
.qa p:last-child { margin-bottom: 0; }

.qa .concl { font-size: 15.8px; }

.qa .basis {
  font-size: 14.5px; color: var(--muted); line-height: 1.72;
  border-left: 3px solid var(--border-strong); padding: 2px 0 2px 16px;
  margin: 14px 0 0;
}
.qa .basis b { color: var(--text); font-weight: 620; }

.qa .tip {
  font-size: 14.5px; color: var(--muted);
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 12px 15px; margin-top: 12px;
}
.qa .tip b { color: var(--text); font-weight: 620; }

.empty {
  padding: 60px 20px; text-align: center; color: var(--faint); font-size: 15px;
}
.empty[hidden] { display: none; }

/* ---------------------------- 正文区块 ---------------------------- */

.section { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--border); }
.section--flush { border-top: 0; }
.section h2 {
  margin: 0 0 18px; font-size: clamp(19px, 2.3vw, 23px);
  letter-spacing: -0.018em; font-weight: 650;
}
.section p { color: var(--muted); margin: 0 0 16px; max-width: 70ch; }
.section p:last-child { margin-bottom: 0; }

/* ---------------------------- 评测集表格 ---------------------------- */

.table-scroll {
  overflow-x: auto; margin: 0 0 24px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 760px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  background: var(--bg-soft); font-weight: 620; white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
td.num { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.cat { white-space: nowrap; }
td.src { color: var(--muted); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }

.pass {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ok); font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.pass::before { content: "●"; font-size: 10px; }

/* ---------------------------- 提示框 ---------------------------- */

.callout {
  margin: 22px 0; padding: 18px 20px;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--bg-soft);
}
.callout h3 { margin: 0 0 8px; font-size: 15px; font-weight: 640; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--warn); }

/* ---------------------------- 页脚 ---------------------------- */

.site-footer {
  border-top: 1px solid var(--border); padding-block: 40px 52px;
  font-size: 14.5px; color: var(--muted);
}
.site-footer h2 { margin: 0 0 10px; font-size: 15px; color: var(--text); font-weight: 620; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }

/* ---------------------------- 响应式 ---------------------------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .toolbar { position: static; }
  .toolbar .wrap { flex-direction: column; align-items: stretch; }
  .count { margin-left: 0; }
  .qa { padding: 20px 18px; }
  .qa h3 { font-size: 17px; }
}

/* ---------------------------- 打印 ---------------------------- */

@media print {
  :root {
    --bg: #fff; --bg-soft: #fff; --surface: #fff;
    --text: #000; --muted: #333; --border: #ccc; --border-strong: #999;
  }
  .site-header, .toolbar, .site-footer, .actions, .notice, .skip-link { display: none !important; }
  .hero { background: none; padding-block: 12px; }
  .qa { break-inside: avoid; box-shadow: none; margin-bottom: 10px; }
  a { color: #000; }
}
