/* sites/92qqtx.com/styles/style.css —— 本站主题：纸白底、墨黑字、青绿仪表盘、细网格 */
:root {
  --paper: #f6f7f4;
  --card: #ffffff;
  --ink: #121714;
  --ink-2: #37443c;
  --muted: #6c7a71;
  --line: #dde4dd;
  --line-2: #eaf0ea;
  --accent: #0a8f6c;
  --accent-2: #e8642f;
  --accent-soft: #e7f5ef;
  --warn-soft: #fff2e8;
  --shadow: 0 1px 2px rgba(18, 23, 20, .05), 0 10px 28px rgba(18, 23, 20, .06);
  --radius: 14px;
  --radius-s: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 247, 244, .97);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 14px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 800; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.top-nav { min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav ul { display: flex; gap: 2px; list-style: none; white-space: nowrap; padding: 4px 0; }
.top-nav a {
  display: inline-block; padding: 7px 10px; border-radius: 8px;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.top-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.top-nav a.on { background: var(--ink); color: #fff; }
.top-nav a.on:hover { color: #fff; }

/* ---------- common ---------- */
main { display: block; }
.hero { padding: 30px 0 10px; }
.hero-h1 { font-size: clamp(28px, 5.2vw, 42px); line-height: 1.18; letter-spacing: -.8px; font-weight: 800; }
.hero-sub { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.date-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  max-width: 100%; flex-wrap: wrap;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--muted); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.date-chip b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.lead { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; max-width: 760px; }
.crumb { padding-top: 14px; color: var(--muted); font-size: 12px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.sec { margin: 26px 0; }
.sec-t { font-size: 19px; line-height: 1.3; letter-spacing: -.2px; font-weight: 800; }
.sec-x { margin-top: 5px; color: var(--muted); font-size: 13px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* ---------- tool panel ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fff, #fbfcfa);
}
.panel-h b { font-size: 14px; letter-spacing: .2px; }
.panel-h span { color: var(--muted); font-size: 12px; }
.panel-b { padding: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 5px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; padding: 10px 11px; min-height: 46px;
  font-size: 16px; line-height: 1.4; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 143, 108, .13);
}
.field .hint { margin-top: 4px; color: var(--muted); font-size: 11px; }
.field-wide { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.btn:hover { background: #087a5c; border-color: #087a5c; color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn.mini { min-height: 36px; padding: 0 11px; font-size: 12px; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.switch button { border: 0; background: #fff; padding: 8px 12px; min-height: 38px; font-size: 13px; color: var(--ink-2); }
.switch button.on { background: var(--ink); color: #fff; }

/* ---------- answer cards ---------- */
.answer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ans {
  min-width: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow);
}
.ans.accent { border-color: #bfe4d5; background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.ans-k { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.ans-v {
  margin-top: 4px; font-size: clamp(24px, 4.4vw, 32px); line-height: 1.1;
  font-weight: 800; letter-spacing: -.8px; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ans-v small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ans-x { margin-top: 6px; color: var(--ink-2); font-size: 12px; line-height: 1.45; }

/* ---------- data grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 9px; }
.cell {
  display: block; min-width: 0; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--card); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}
.cell:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); transform: translateY(-1px); }
.cell b { display: block; font-size: 16px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cell span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.cell.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.cell.on span { color: rgba(255, 255, 255, .8); }

/* ---------- table ---------- */
.tbl-box { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl th { background: #fbfcfa; color: var(--ink-2); font-size: 12px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.tbl td:first-child { color: var(--ink-2); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fcfdfb; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .ok { color: var(--accent); font-weight: 700; }
.tbl .bad { color: #c2412d; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--card); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 13px 15px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 18px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 15px 14px; color: var(--ink-2); font-size: 14px; }

/* ---------- related ---------- */
.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rel a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.rel a::after { content: "→"; color: var(--accent); font-weight: 700; }
.rel a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---------- figures ---------- */
.fig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fig-btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); overflow: hidden;
  cursor: zoom-in; text-align: left;
}
.fig-btn:hover { border-color: var(--accent); }
.fig-btn img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.fig-cap { padding: 8px 10px; color: var(--muted); font-size: 11px; line-height: 1.4; border-top: 1px solid var(--line-2); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(10, 14, 12, .86);
}
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; width: auto; border-radius: 10px; background: #fff; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .35);
  color: #fff; font-size: 24px; line-height: 1;
}

/* ---------- footer ---------- */
.site-footer { margin-top: 44px; border-top: 1px solid var(--line); background: #f0f2ee; }
.foot-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding-top: 26px; padding-bottom: 20px; }
.foot-brand { max-width: 380px; }
.foot-logo { color: var(--ink); font-size: 17px; font-weight: 800; }
.foot-brand p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; }
.foot-nav a { display: inline-block; padding: 5px 8px; border-radius: 7px; color: var(--ink-2); font-size: 12px; }
.foot-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
  padding-top: 14px; padding-bottom: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11px;
}
.foot-base a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-base a:hover { color: var(--accent); }

/* ---------- homepage ---------- */
.home-hero { position: relative; padding: 40px 0 24px; overflow: hidden; }
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 78%);
}
.home-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; }
.home-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.home-h1 { margin-top: 8px; font-size: clamp(34px, 7vw, 56px); line-height: 1.08; letter-spacing: -1.6px; font-weight: 900; }
.home-h1 em { font-style: normal; color: var(--accent); }
.home-sub { margin-top: 12px; max-width: 680px; color: var(--ink-2); font-size: 16px; }
.home-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.home-stat {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--muted); font-size: 12px;
}
.home-stat b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.search-box { display: flex; gap: 8px; margin: 20px 0 4px; max-width: 620px; }
.search-box input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; padding: 0 14px; font-size: 16px; outline: none;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,143,108,.13); }
.search-box .btn { min-height: 48px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; box-shadow: var(--shadow);
}
.cat-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat-h b { font-size: 16px; }
.cat-h span { color: var(--muted); font-size: 11px; }
.cat-x { margin-top: 4px; color: var(--muted); font-size: 12px; }
.cat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cat-links a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 7px;
  background: #fbfcfa; color: var(--ink-2); font-size: 12px;
}
.cat-links a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tool-card {
  display: block; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.tool-card .tc-k { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .6px; }
.tool-card b { display: block; margin-top: 3px; font-size: 17px; }
.tool-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.today-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.today-cell { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.today-cell .k { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.today-cell .v { margin-top: 3px; font-size: 26px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.today-cell .x { margin-top: 4px; color: var(--ink-2); font-size: 12px; }

/* ---------- 404 ---------- */
.notfound { padding: 60px 16px 40px; text-align: center; }
.nf-code { color: var(--accent); font-size: clamp(60px, 14vw, 120px); line-height: 1; font-weight: 900; letter-spacing: -4px; }
.notfound h1 { margin-top: 4px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.6px; }
.notfound .lead { margin-left: auto; margin-right: auto; }
.nf-grid { max-width: 760px; margin: 22px auto 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---------- CPS placeholder / furniture ---------- */
[data-cps="tool_top"] { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
[data-cps="tool_top"]:empty { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .header-in { gap: 8px; }
  .brand-name { display: none; }
  .top-nav a { padding: 7px 8px; font-size: 12px; }
  .answer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr; gap: 16px; }
  .fig-grid { grid-template-columns: 1fr; }
  .fig-btn img { aspect-ratio: 4 / 3; }
  .today-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 22px; }
  .panel-b { padding: 13px; }
  .tbl { min-width: 520px; }
  .search-box { max-width: none; }
}
@media (max-width: 420px) {
  .answer { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ans { padding: 11px; }
  .ans-v { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .cell b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .lightbox, [data-btt], [data-cps] { display: none !important; }
  body { background: #fff; }
  .panel, .ans, .cell, .tbl-box { box-shadow: none; }
}
