/* ============================================================
   藏瓷网 · site.css
   纸底 + 青花蓝主色，衬线标题、无衬线正文
   ============================================================ */

:root {
  --paper: #f6f4ef;
  --paper-2: #fffefa;
  --paper-3: #eceae1;
  --ink: #1a242e;
  --ink-2: #2d3d4a;
  --muted: #6d7873;
  --line: #e0dace;
  --line-2: #ece7db;
  --green: #1c5f96;
  --green-d: #123f68;
  --green-t: #e8f0f7;
  --terra: #a8492f;
  --red: #a63d2f;
  --radius: 3px;
  --wrap: 1180px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0; }
button { font: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--green); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- 头部 ---------- */

.site-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo {
  height: 44px; width: auto; max-width: 230px;
  object-fit: contain; object-position: left center;
}
.brand-text { display: none; }
.brand-text strong { font-family: var(--serif); font-size: 21px; letter-spacing: .04em; }
.brand-text em { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .22em; color: var(--muted); margin-top: 3px; }

.head-search {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; overflow: hidden;
  width: 260px; flex: 0 0 auto;
  transition: border-color .18s;
}
.head-search:focus-within { border-color: var(--green); }
.head-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0;
  padding: 8px 6px 8px 16px; font-size: 13.5px; background: transparent; color: var(--ink);
}
.head-search input::placeholder { color: #9aa39d; }
.head-search button {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 14px 8px 8px; cursor: pointer; display: flex; align-items: center;
}
.head-search button:hover { color: var(--green); }

.nav { border-top: 1px solid var(--line-2); padding-bottom: 1px; }
.nav-inner {
  display: flex; align-items: center; gap: 26px;
  overflow-x: auto; scrollbar-width: none;
  padding-top: 0; padding-bottom: 0;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative; padding: 13px 0 12px;
  font-size: 15px; color: var(--ink-2); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-link:hover { color: var(--green); border-bottom-color: #b6cbd9; }
.nav-link.is-on { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.nav-sep { width: 1px; height: 16px; background: var(--line); flex: 0 0 auto; }

.notice { background: var(--green); color: #e9f0ea; }
.notice-inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.notice-tag {
  flex: 0 0 auto; font-size: 11px; letter-spacing: .18em;
  border: 1px solid rgba(255,255,255,.45); border-radius: 2px;
  padding: 1px 6px; color: #dfeae2;
}
.notice p { margin: 0; font-size: 13.5px; letter-spacing: .02em; }

/* ---------- 首页 hero ---------- */

.hero { padding: 46px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .82fr);
  gap: 52px;
  align-items: start;
}
.kicker {
  display: inline-block;
  font-size: 12px; letter-spacing: .16em; font-weight: 600;
  color: var(--k, var(--green));
  margin-bottom: 14px;
  padding-left: 12px; position: relative;
}
.kicker::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 3px; height: 13px; background: var(--k, var(--green)); transform: translateY(-50%);
}
.hero-lead h1 {
  font-size: clamp(30px, 3.5vw, 44px);
  letter-spacing: -.005em; line-height: 1.28;
  margin-bottom: 18px;
}
.hero-link:hover h1 { color: var(--green-d); }
.hero-dek {
  font-size: 17px; line-height: 1.95; color: var(--ink-2);
  max-width: 40em; margin-bottom: 18px;
}
.meta { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

.hero-side {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 22px 24px 18px;
}
.side-title {
  font-size: 15px; letter-spacing: .1em; color: var(--green-d);
  padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.side-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.side-list li { border-bottom: 1px dashed var(--line-2); }
.side-list li:last-child { border-bottom: 0; }
.side-list a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 11px 0; font-size: 14.2px; line-height: 1.6;
}
.side-ch {
  flex: 0 0 auto; font-size: 10.5px; color: var(--green);
  border: 1px solid #d2dfe7; border-radius: 2px;
  padding: 0 4px; line-height: 1.6; background: #eff5f8;
}
.side-name { transition: color .16s; }
.side-list a:hover .side-name { color: var(--green); }
.side-more {
  display: block; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.8px; color: var(--terra);
}

/* ---------- 区块 ---------- */

.sec { padding: 54px 0 0; }
.sec-head { margin-bottom: 24px; }
.sec-head h2 {
  font-size: clamp(22px, 2.2vw, 27px);
  letter-spacing: .01em; margin-bottom: 7px;
}
.sec-head h2::after {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--green); margin-top: 12px;
}
.sec-head p { color: var(--muted); font-size: 14px; margin: 0; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-link { font-size: 13.5px; color: var(--green); white-space: nowrap; padding-bottom: 4px; }

/* ---------- 频道卡片 ---------- */

.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ch-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c, var(--green));
  padding: 22px 22px 16px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ch-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,35,31,.07); }
.ch-top { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 12px; }
.ch-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--green)) 10%, #fff);
  color: var(--c, var(--green));
  border: 1px solid color-mix(in srgb, var(--c, var(--green)) 22%, #fff);
}
.ch-icon--lg { width: 58px; height: 58px; }
.ch-card h3 { font-size: 18.5px; letter-spacing: .02em; }
.ch-card h3 a:hover { color: var(--c, var(--green)); }
.ch-tagline { font-size: 12.8px; color: var(--muted); margin: 4px 0 0; line-height: 1.6; }
.ch-links { list-style: none; margin: 0 0 10px; padding: 0; flex: 1 1 auto; }
.ch-links li { border-top: 1px dashed var(--line-2); }
.ch-links li:first-child { border-top: 0; }
.ch-links a {
  display: block; padding: 7px 0; font-size: 13.8px; line-height: 1.6; color: var(--ink-2);
}
.ch-links a:hover { color: var(--green); }
.ch-more { font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.ch-card:hover .ch-more { color: var(--c, var(--green)); }

/* ---------- 列表卡 ---------- */

.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 32px; }
.row-card {
  display: flex; gap: 14px; align-items: baseline;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
  transition: background .16s;
}
.row-card:hover { background: rgba(255,255,255,.55); }
.row-date { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-body { flex: 1 1 auto; min-width: 0; }
.row-body strong {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: 16.5px; line-height: 1.5; color: var(--ink);
}
.row-card:hover .row-body strong { color: var(--green-d); }
.row-body em {
  display: block; font-style: normal; font-size: 12.8px; color: var(--muted);
  margin-top: 3px; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-ch { flex: 0 0 auto; font-size: 11px; color: var(--green); border: 1px solid #d3e0da; background: #eff5f8; padding: 1px 6px; border-radius: 2px; }

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

.band { background: var(--paper-3); margin-top: 56px; padding: 48px 0 52px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-card {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 7px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.tool-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,35,31,.07); }
.tool-tag { font-size: 10.5px; letter-spacing: .12em; color: var(--terra); }
.tool-card strong { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.tool-card em { font-style: normal; font-size: 12.6px; color: var(--muted); line-height: 1.65; flex: 1 1 auto; }
.tool-go { font-size: 12px; color: var(--green); }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quick-card {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
  border-left: 3px solid var(--green);
  transition: background .18s;
}
.quick-card:hover { background: #fff; }
.quick-card strong { font-family: var(--serif); font-size: 16px; }
.quick-card em { font-style: normal; font-size: 12.4px; color: var(--muted); line-height: 1.65; flex: 1 1 auto; }
.quick-card span { font-size: 11.5px; color: var(--green); }

/* ---------- 面包屑 & 页头 ---------- */

.crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.2px; color: var(--muted);
  padding-top: 18px; padding-bottom: 4px;
  flex-wrap: wrap;
}
.crumb a:hover { color: var(--green); }
.crumb span { color: #b3bbb6; }
.crumb-now { color: var(--ink-2); }

.page-head { padding-top: 26px; padding-bottom: 26px; }
.page-head > * { max-width: 860px; }
.page-head h1 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 12px; }
.page-dek { font-size: 15.5px; color: var(--ink-2); line-height: 1.9; max-width: 44em; }
.page-actions { margin-top: 16px; }

/* ---------- 频道页 ---------- */

.ch-hero { background: var(--paper-2); border-top: 3px solid var(--c); border-bottom: 1px solid var(--line); margin-top: 12px; }
.ch-hero-inner { display: flex; gap: 22px; align-items: flex-start; padding-top: 30px; padding-bottom: 30px; }
.ch-hero h1 { font-size: clamp(27px, 3vw, 35px); color: var(--green-d); }
.ch-hero .ch-tagline { font-size: 14.5px; color: var(--muted); margin: 6px 0 12px; }
.ch-intro { font-size: 15px; line-height: 1.95; color: var(--ink-2); max-width: 48em; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; color: var(--green-d); background: #eef4f8;
  border: 1px solid #d3e0e9; padding: 3px 10px; border-radius: 2px;
}
.chip--num { color: var(--terra); background: #fbf3ed; border-color: #ecdccf; }

.ch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 52px; padding-top: 34px; padding-bottom: 20px; }
.post-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-item--first { padding-top: 4px; }
.post-meta { display: flex; gap: 16px; font-size: 11.8px; color: var(--muted); margin-bottom: 8px; }
.post-item h2 { font-size: 21.5px; line-height: 1.5; margin-bottom: 9px; }
.post-item h2 a:hover { color: var(--green); }
.post-item p { font-size: 14.6px; color: var(--ink-2); line-height: 1.85; margin-bottom: 10px; }
.post-tags { display: flex; gap: 10px; font-size: 11.8px; color: #8b958f; }

.ch-aside, .art-aside { position: sticky; top: 22px; align-self: start; }
.aside-box { border-top: 2px solid var(--green); padding-top: 14px; margin-bottom: 30px; }
.aside-title { font-size: 14px; letter-spacing: .08em; margin-bottom: 12px; color: var(--green-d); }
.aside-quick {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.2px;
}
.aside-quick:hover strong { color: var(--green); }
.aside-quick span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.aside-empty { font-size: 13px; color: var(--muted); }
.aside-chs { list-style: none; margin: 0; padding: 0; }
.aside-chs li { border-bottom: 1px dashed var(--line-2); }
.aside-chs a { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 13.4px; }
.aside-chs a span { width: 6px; height: 6px; background: var(--c); border-radius: 50%; }
.aside-chs a:hover { color: var(--green); }

/* ---------- 文章页 ---------- */

.art-head { padding-top: 20px; padding-bottom: 30px; }
.art-head h1, .art-dek, .art-meta, .art-head .kicker { max-width: 820px; }
.art-head .kicker { margin-bottom: 12px; }
.art-head h1 { font-size: clamp(27px, 3.4vw, 39px); line-height: 1.36; margin-bottom: 18px; }
.art-dek {
  font-size: 16.5px; line-height: 1.95; color: var(--ink-2);
  border-left: 3px solid var(--c, var(--green)); padding-left: 16px; margin-bottom: 20px;
}
.art-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.2px; color: var(--muted); }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 56px; padding-top: 10px; padding-bottom: 40px; }
.art-body { max-width: 776px; }
.art-sec { margin-bottom: 40px; }
.art-sec h2 { scroll-margin-top: 24px;
  font-size: clamp(20px, 2.1vw, 24px); line-height: 1.5;
  margin: 0 0 16px; padding-left: 14px; position: relative;
}
.art-sec h2::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 4px; height: 1.05em; background: var(--c, var(--green));
}
.art-sec p {
  font-size: 16.5px; line-height: 1.98; color: #2a3339;
  text-align: justify; text-justify: inter-ideograph;
  margin-bottom: 1.05em;
}
.art-sec p strong, .art-ul strong, .art-ol strong { font-weight: 600; color: #143f57; }
.art-ul, .art-ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.art-ul li, .art-ol li { font-size: 16px; line-height: 1.95; color: #2a3339; margin-bottom: .45em; }
.art-ul { list-style: none; padding-left: 0; }
.art-ul li { position: relative; padding-left: 1.2em; }
.art-ul li::before {
  content: ""; position: absolute; left: .15em; top: .8em;
  width: 5px; height: 5px; background: var(--c, var(--green)); border-radius: 50%;
}
.art-note {
  background: #eef4f7; border-left: 3px solid var(--green);
  padding: 12px 16px; font-size: 14.5px; line-height: 1.85; color: #35434d;
  margin: 1.2em 0;
}

.table-wrap { overflow-x: auto; margin: 1.3em 0; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--paper-2); border: 1px solid var(--line);
  min-width: 460px;
}
.data-table th, .data-table td {
  border-bottom: 1px solid var(--line-2);
  padding: 9px 12px; text-align: left; line-height: 1.65;
  vertical-align: top;
}
.data-table thead th {
  background: #efebe3; font-family: var(--sans); font-weight: 600;
  font-size: 12.8px; letter-spacing: .04em; color: var(--green-d);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tbody tr:hover { background: #fbf9f2; }
.data-table td:first-child { font-weight: 600; color: var(--ink); }

/* 误区 */
.pit-list { display: grid; gap: 12px; }
.pit { background: var(--paper-2); border: 1px solid var(--line); padding: 14px 16px; }
.pit p { margin: 0; font-size: 15px; line-height: 1.8; }
.pit-wrong { color: #7d3a2c; margin-bottom: 8px !important; }
.pit-right { color: #1f4a63; padding-top: 8px; border-top: 1px dashed var(--line); }
.pit p span {
  display: inline-block; font-size: 10.5px; letter-spacing: .1em;
  padding: 0 5px; margin-right: 8px; border-radius: 2px; vertical-align: 1px;
}
.pit-wrong span { background: #f6e6e1; color: #8f3a29; }
.pit-right span { background: #e6f0ea; color: #1b5372; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 30px 14px 0; position: relative;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-size: 20px; font-weight: 400; color: var(--green); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 30px 16px 0; font-size: 15px; line-height: 1.9; color: var(--ink-2); margin: 0; }

.art-end { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.art-verify { font-size: 12.6px; color: var(--muted); line-height: 1.8; margin: 0; }

.art-rel { margin-top: 40px; }
.art-rel h2 { font-size: 20px; margin-bottom: 16px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rel-card {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 14px 15px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .18s, transform .18s;
}
.rel-card:hover { border-color: var(--green); transform: translateY(-2px); }
.rel-ch { font-size: 10.5px; color: var(--terra); letter-spacing: .1em; }
.rel-card strong { font-family: var(--serif); font-size: 14.8px; line-height: 1.55; }
.rel-card em { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.6; }

.toc { border: 1px solid var(--line); background: var(--paper-2); padding: 16px 18px; margin-bottom: 26px; }
.toc h2 { font-size: 13px; letter-spacing: .1em; color: var(--green-d); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { font-size: 12.8px; line-height: 1.75; margin-bottom: 6px; color: var(--muted); }
.toc a:hover { color: var(--green); }

/* ---------- 速查 ---------- */

.quick-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 4px; padding-bottom: 20px;
}
.quick-nav a {
  font-size: 12.8px; border: 1px solid var(--line); background: var(--paper-2);
  padding: 5px 12px; border-radius: 2px; color: var(--ink-2);
}
.quick-nav a:hover { border-color: var(--green); color: var(--green); }
.sucha-wrap { padding-bottom: 30px; }
.sucha-sec { margin-bottom: 46px; scroll-margin-top: 20px; }
.sucha-head { margin-bottom: 14px; }
.sucha-head h2 { font-size: 22px; margin-bottom: 6px; }
.sucha-head p { font-size: 13.5px; color: var(--muted); margin: 0; }
.sucha-link { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.sucha-link a { color: var(--green); }
.page-foot-note { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; line-height: 1.8; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--green); color: #fff;
  padding: 10px 22px; font-size: 14px; letter-spacing: .04em;
  border-radius: 2px; transition: background .18s;
}
.btn:hover { background: var(--green-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--green); border: 1px solid #c3d5e0; }
.btn--ghost:hover { background: #eef4f0; color: var(--green-d); }

/* ---------- 词典 ---------- */

.dict-filter { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.dict-filter input {
  flex: 1 1 auto; max-width: 420px; border: 1px solid var(--line);
  background: #fff; padding: 10px 14px; font-size: 14px; border-radius: 2px; outline: 0;
}
.dict-filter input:focus { border-color: var(--green); }
.dict-count { font-size: 12.5px; color: var(--muted); }
.dict-wrap { padding-bottom: 40px; }
.dict-sec { margin-bottom: 36px; }
.dict-sec h2 {
  font-size: 19px; padding-bottom: 8px; margin-bottom: 4px;
  border-bottom: 2px solid var(--c, var(--green)); display: inline-block;
}
.dict-list { margin: 0; }
.dict-item { display: flex; gap: 18px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.dict-item dt {
  flex: 0 0 132px; font-family: var(--serif); font-weight: 700; font-size: 15px;
  color: var(--green-d);
}
.dict-item dd { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.dict-empty { padding: 30px 0; color: var(--muted); font-size: 14px; }

/* ---------- 工具页 ---------- */

.tool-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-bottom: 40px; align-items: start; }
.calc {
  grid-column: 1; background: var(--paper-2); border: 1px solid var(--line);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.calc-modes { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.mode { flex: 1 1 0; position: relative; }
.mode input { position: absolute; opacity: 0; inset: 0; }
.mode span {
  display: block; text-align: center; padding: 9px 4px; font-size: 13.2px;
  cursor: pointer; color: var(--ink-2); background: #fbf9f3;
}
.mode input:checked + span { background: var(--green); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.8px; color: var(--ink-2); font-weight: 600; letter-spacing: .03em; }
.field input, .field select {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 10px 12px; font-size: 15px; border-radius: 2px; outline: 0;
  width: 100%; font-family: var(--sans);
}
.field input:focus, .field select:focus { border-color: var(--green); }
.hint { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.presets { display: flex; flex-wrap: wrap; gap: 7px; }
.presets button {
  border: 1px solid var(--line); background: #fbf9f3; color: var(--ink-2);
  font-size: 12.2px; padding: 5px 10px; border-radius: 2px; cursor: pointer;
}
.presets button:hover { border-color: var(--green); color: var(--green); }

.result {
  grid-column: 2; grid-row: 1 / span 3;
  background: var(--paper-2); border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 24px; position: sticky; top: 20px;
}
.result-placeholder { color: var(--muted); font-size: 13.5px; margin: 0; }
.result-kicker { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0 0 4px; }
.result-num {
  font-family: var(--serif); font-size: 38px; line-height: 1.2; color: var(--green-d);
  margin: 0 0 10px; font-variant-numeric: tabular-nums;
}
.result-num span { font-size: 15px; margin-left: 6px; color: var(--muted); font-family: var(--sans); }
.result-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; margin: 0 0 12px; }
.result-tip { font-size: 12.5px; color: var(--muted); line-height: 1.75; border-top: 1px dashed var(--line); padding-top: 10px; margin: 0; }
.result-warn { color: var(--red); font-size: 13.5px; margin: 0; }
.result .data-table { margin: 10px 0; font-size: 12.6px; min-width: 0; }
.result .data-table th, .result .data-table td { padding: 6px 8px; }

.calc-doc { grid-column: 1; }
.calc-doc h2 { font-size: 19px; margin-bottom: 12px; }
.calc-doc p { font-size: 14.8px; line-height: 1.9; color: var(--ink-2); }
.calc-rel { grid-column: 1; margin-top: 8px; }
.calc-rel h2 { font-size: 19px; margin-bottom: 14px; }

.tool-list { display: grid; gap: 2px; padding-bottom: 30px; }
.tool-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.tool-row:hover { background: rgba(255,255,255,.6); }
.tool-row-body { flex: 1 1 auto; }
.tool-row-body strong { display: block; font-family: var(--serif); font-size: 18px; }
.tool-row-body em { font-style: normal; font-size: 13.4px; color: var(--muted); line-height: 1.7; }
.tool-note { padding-bottom: 40px; max-width: 760px; }
.tool-note h2 { font-size: 19px; margin-bottom: 10px; }
.tool-note p { font-size: 14.8px; color: var(--ink-2); line-height: 1.9; }

/* ---------- 搜索 ---------- */

.search-big { display: flex; gap: 10px; margin-top: 16px; max-width: 620px; }
.search-big input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--line); background: #fff;
  padding: 11px 16px; font-size: 15px; border-radius: 2px; outline: 0;
}
.search-big input:focus { border-color: var(--green); }
.search-big--sm { max-width: 460px; margin-top: 26px; }
.search-hints { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 14px; }
.search-hints a { color: var(--green); }
.search-wrap { padding-bottom: 40px; }
.search-count { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.empty { padding: 20px 0; }
.empty p { font-size: 14.5px; color: var(--muted); }

/* ---------- 单页 ---------- */

.prose { max-width: 760px; padding-top: 20px; padding-bottom: 50px; }
.prose h1 { font-size: clamp(27px, 3.2vw, 36px); margin-bottom: 16px; }
.prose-lead { font-size: 17px; line-height: 1.95; color: var(--ink-2); border-left: 3px solid var(--green); padding-left: 16px; }
.prose h2 { font-size: 21px; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose p { font-size: 16px; line-height: 1.95; color: #2a3339; }
.prose ul { padding-left: 1.3em; }
.prose li { font-size: 15.6px; line-height: 1.95; margin-bottom: 8px; color: #2a3339; }
.prose-sign { font-family: var(--serif); color: var(--muted); margin-top: 26px; }
.prose a { color: var(--green); border-bottom: 1px solid #c8d9e3; }

.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--green); padding: 20px 22px; margin: 26px 0 8px; }
.contact-label { font-size: 11.5px; letter-spacing: .14em; color: var(--muted); margin: 0 0 4px; }
.contact-mail { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; }
.contact-mail a { color: var(--green-d); border: 0; }
.contact-hint { font-size: 12.8px; color: var(--muted); margin: 0; }

/* ---------- 404 ---------- */

.nf { padding-top: 80px; padding-bottom: 100px; max-width: 640px; }
.nf-code { font-family: var(--serif); font-size: 74px; line-height: 1; color: #d9d3c4; margin: 0 0 6px; letter-spacing: .04em; }
.nf h1 { font-size: 27px; margin-bottom: 12px; }
.nf p { font-size: 15px; color: var(--muted); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.nf-links a { display: flex; align-items: center; gap: 7px; font-size: 13.4px; border: 1px solid var(--line); background: var(--paper-2); padding: 5px 12px; }
.nf-links a span { width: 6px; height: 6px; background: var(--c); border-radius: 50%; }
.nf-home { margin-top: 22px; font-size: 13.5px; }
.nf-home a { color: var(--green); }

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

.site-foot { background: #131d24; color: #b6c3cc; margin-top: 70px; padding-top: 44px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 34px; }
.foot-brand { font-family: var(--serif); font-size: 20px; color: #eef3f7; letter-spacing: .05em; margin-bottom: 10px; }
.foot-about p { font-size: 12.8px; line-height: 1.85; color: #98a6b0; margin-bottom: 10px; }
.foot-note { color: #7d8b95 !important; font-size: 12px !important; }
.foot-col h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: #e0e9ef; margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { font-size: 12.8px; color: #98a6b0; }
.foot-col a:hover { color: #dbe7ee; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid #22303a; padding-top: 16px; padding-bottom: 22px;
}
.foot-bottom p { margin: 0; font-size: 11.8px; color: #7d8b95; }
.foot-bottom a { color: #98a6b0; border-bottom: 1px solid #3a4a55; }
.foot-bottom a:hover { color: #dbe7ee; }

/* ---------- 数据条 ---------- */

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; }
.stats-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 18px; padding-bottom: 18px; }
.stats-inner div { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
.stats-inner div:first-child { padding-left: 0; border-left: 0; }
.stats-inner div:nth-child(3) { padding-left: 18px; }
.stats-inner strong { font-family: var(--serif); font-size: 26px; color: var(--green-d); font-variant-numeric: tabular-nums; }
.stats-inner span { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

@media (max-width: 720px) {
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; padding-top: 14px; padding-bottom: 14px; }
  .stats-inner div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats-inner strong { font-size: 22px; }
}

/* ---------- 首屏看点 ---------- */

.hero-points {
  margin-top: 26px; padding-top: 15px;
  border-top: 1px solid var(--line);
}
.hp-label {
  display: block; font-size: 11px; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 10px;
}
.hero-points ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hero-points li a {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14.2px; color: var(--ink-2); line-height: 1.65;
}
.hero-points li a span {
  font-family: var(--serif); font-size: 11.5px; color: var(--terra);
  flex: 0 0 auto; font-variant-numeric: tabular-nums;
}
.hero-points li a:hover { color: var(--green); }

@media (max-width: 720px) {
  .nav { position: relative; }
  .nav::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34px;
    background: linear-gradient(to right, rgba(255,253,248,0), rgba(255,253,248,.96));
    pointer-events: none;
  }
}

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

@media (max-width: 1080px) {
  .tool-page { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
  .hero-grid { gap: 36px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { padding: 18px 20px 14px; }
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-layout, .art-layout { grid-template-columns: 1fr; gap: 20px; }
  .ch-aside, .art-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
  .toc { display: none; }
  .tool-page { grid-template-columns: 1fr; }
  .result { grid-column: 1; grid-row: auto; position: static; }
  .calc-doc, .calc-rel { grid-column: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .head-inner { padding-top: 12px; padding-bottom: 10px; gap: 12px; }
  .brand-logo { height: 36px; max-width: 170px; }
  .head-search { width: 148px; }
  .head-search input { padding-left: 12px; font-size: 12.5px; }
  .nav-inner { gap: 20px; }
  .nav-link { font-size: 14px; padding: 11px 0 10px; }
  .notice p { font-size: 12.4px; line-height: 1.5; }
  .notice-inner { align-items: flex-start; padding-top: 7px; padding-bottom: 7px; }
  .notice-tag { margin-top: 2px; }
  .hero { padding-top: 26px; }
  .hero-lead h1 { font-size: 26px; }
  .hero-dek { font-size: 15.2px; }
  .ch-grid { grid-template-columns: 1fr; gap: 12px; }
  .list-grid { grid-template-columns: 1fr; gap: 0; }
  .row-body em { white-space: normal; }
  .tool-grid, .quick-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .ch-aside, .art-aside { grid-template-columns: 1fr; }
  .ch-hero-inner { gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .ch-icon--lg { width: 46px; height: 46px; }
  .art-sec p { font-size: 15.8px; }
  .art-ul li, .art-ol li { font-size: 15.4px; }
  .dict-item { flex-direction: column; gap: 4px; }
  .dict-item dt { flex: none; }
  .data-table { font-size: 13px; min-width: 420px; }
  .data-table th, .data-table td { padding: 8px 9px; }
  .sec { padding-top: 38px; }
  .band { margin-top: 40px; padding: 34px 0 38px; }
  .art-head h1 { font-size: 25px; }
  .art-dek { font-size: 15px; }
  .site-foot { margin-top: 48px; padding-top: 32px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
  .result-num { font-size: 32px; }
  .search-big { flex-direction: column; }
  .search-big .btn { width: 100%; }
}

@media print {
  .site-head, .site-foot, .crumb, .page-actions, .quick-nav, .sucha-link { display: none !important; }
  body { background: #fff; }
  .data-table { font-size: 11px; }
  .sucha-sec { page-break-inside: avoid; }
}

/* 工具页：防止宽表格把网格轨道撑破，导致 375px 横向溢出 */
.tool-page { min-width: 0; }
.calc, .result, .calc-doc, .calc-rel { min-width: 0; max-width: 100%; }
.table-wrap { max-width: 100%; }
/* 正文/列表网格同样禁止被宽表格撑破 */
.art-layout, .art-body, .ch-layout, .ch-main, .art-sec, .art-rel, .prose { min-width: 0; max-width: 100%; }
