/* ============================================================
   科普知事网 · 站点样式
   设计基调：纸感米白 + 墨黑 + 朱砂红，衬线标题，网格点阵
   ============================================================ */

:root {
  --paper: #f8f5ef;
  --card: #fffdf8;
  --ink: #1b1917;
  --ink-2: #3a3531;
  --muted: #736b62;
  --line: #e4dbcc;
  --line-2: #d6cbb9;
  --red: #b5342a;
  --red-d: #8f251d;
  --red-soft: #f4e7e2;
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(27, 25, 23, .04), 0 8px 24px rgba(27, 25, 23, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27, 25, 23, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 0; line-height: 1.35; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--ink); color: #e9e2d5; font-size: 12.5px; letter-spacing: .02em; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar-l { opacity: .82; }
.topbar-r { opacity: .62; white-space: nowrap; }

/* ---------- 页头 ---------- */
.hdr { background: rgba(248, 245, 239, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(8px); }
.hdr-in { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 10px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-img { height: 42px; width: auto; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; border-left: 1px solid var(--line-2); padding-left: 12px; }
.brand-txt strong { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; color: var(--ink); font-weight: 600; }
.brand-txt em { font-style: normal; font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }

.hdr-search { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line-2); background: var(--card); border-radius: 2px; overflow: hidden; width: 240px; }
.hdr-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 10px;
  font-size: 13.5px; color: var(--ink); outline: none;
}
.hdr-search input::placeholder { color: #a49a8c; }
.hdr-search button { border: 0; background: transparent; color: var(--muted); padding: 0 10px; cursor: pointer; display: flex; align-items: center; }
.hdr-search button:hover { color: var(--red); }

.burger { display: none; width: 38px; height: 34px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; padding: 7px 9px; border-radius: 2px; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 3px 0; transition: transform .2s; }

.nav {
  display: flex; align-items: center; gap: 2px;
  border-top: 1px solid var(--line); margin-top: 2px;
  padding: 0 24px 0; max-width: 1140px; margin-left: auto; margin-right: auto;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative; padding: 11px 14px; font-size: 14.5px; color: var(--ink-2);
  white-space: nowrap; letter-spacing: .04em;
}
.nav a:hover { color: var(--red); }
.nav a.on { color: var(--red); font-weight: 600; }
.nav a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--red);
}
.nav .nav-tool { margin-left: auto; color: var(--red); }
.nav .nav-tool::before { content: "◇ "; font-size: 11px; }

/* ---------- 公告 ---------- */
.notice { background: #f1e9dc; border-bottom: 1px solid var(--line); }
.notice-in { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13.5px; }
.notice-tag {
  background: var(--red); color: #fff; font-size: 11.5px; letter-spacing: .16em;
  padding: 2px 7px 2px 9px; border-radius: 2px; flex-shrink: 0;
}
.notice-txt { margin: 0; color: var(--ink-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-more { color: var(--red); font-size: 12.5px; white-space: nowrap; }

/* ---------- 通用区块 ---------- */
.sec { margin: 54px auto; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sec-t { font-size: 24px; letter-spacing: .04em; }
.sec-t.light { color: #f6efe2; }
.sec-t::before {
  content: ""; display: inline-block; width: 4px; height: 17px; background: var(--red);
  margin-right: 10px; vertical-align: -1px;
}
.sec-sub { font-size: 12.5px; color: var(--muted); }
.more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.more:hover { color: var(--red); }

.kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .1em;
  color: var(--ch, var(--red)); border-left: 2px solid var(--ch, var(--red)); padding-left: 8px;
  margin-bottom: 10px; text-transform: uppercase;
}
.tag-mini {
  display: inline-block; font-size: 11px; letter-spacing: .14em; color: var(--red);
  border: 1px solid rgba(181, 52, 42, .35); padding: 1px 6px; border-radius: 2px;
}
.dot { margin: 0 6px; color: #b9ad9c; }
.meta-line { font-size: 12.5px; color: var(--muted); }

/* ---------- 首页头条 ---------- */
.p-home main { padding-top: 30px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.hero-main { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-art { display: block; border-bottom: 1px solid var(--line); background: #f1ece2; }
.hero-art .cover-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hero-body { padding: 22px 26px 24px; }
.hero-t { font-size: 33px; line-height: 1.28; letter-spacing: .01em; margin-bottom: 12px; }
.hero-t a:hover { color: var(--red-d); }
.hero-x { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

.hero-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.qa-today { background: #f2ead9; border: 1px solid var(--line-2); padding: 20px 22px 18px; position: relative; flex: 1; }
.qa-today::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.qa-today-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qa-date { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }
.qa-today-q { font-size: 19px; line-height: 1.5; margin-bottom: 8px; }
.qa-today-a { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; margin-bottom: 10px; }
.qa-today-more { font-size: 12.5px; color: var(--red); }
.qa-more { margin-top: 16px; border-top: 1px dashed rgba(27, 25, 23, .16); padding-top: 11px; }
.qa-more-t { font-size: 11px; letter-spacing: .16em; color: #94897a; }
.qa-more ul { list-style: none; margin-top: 6px; }
.qa-more li { padding: 4px 0; }
.qa-more a { font-size: 12.8px; color: var(--ink-2); display: block; line-height: 1.55; }
.qa-more a::before { content: "· "; color: var(--red); }
.qa-more a:hover { color: var(--red); }

.mini { display: block; background: var(--card); border: 1px solid var(--line); padding: 16px 18px; }
.mini:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.mini-ch { font-size: 11.5px; color: var(--ch, var(--red)); letter-spacing: .1em; }
.mini h3 { font-size: 17.5px; margin: 6px 0 6px; line-height: 1.45; }
.mini p { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 次条 ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.trio-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.trio-art { display: block; align-self: start; }
.trio-art .cover-art { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.trio-body h3 { font-size: 16.5px; line-height: 1.45; margin: 5px 0 6px; }
.trio-body p { font-size: 12.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 栏目卡 ---------- */
.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ch-card {
  position: relative; display: block; background: var(--card); border: 1px solid var(--line);
  padding: 20px 20px 18px; overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.ch-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ch-hub {
  position: absolute; right: 8px; top: -16px; font-family: var(--serif); font-size: 82px;
  color: var(--ch); opacity: .07; line-height: 1; pointer-events: none;
}
.ch-name { display: block; font-family: var(--serif); font-size: 19px; color: var(--ch); margin-bottom: 6px; letter-spacing: .04em; }
.ch-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.7; min-height: 44px; }
.ch-count { display: block; margin-top: 12px; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.ch-count::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--ch); vertical-align: 3px; margin-right: 6px; }

/* ---------- 卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card:hover { border-color: var(--line-2); }
.card-art { position: relative; display: block; border-bottom: 1px solid var(--line); background: #f1ece2; }
.card-art .cover-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.card-ch {
  position: absolute; left: 10px; top: 10px; background: rgba(255, 253, 248, .92);
  color: var(--ch); font-size: 11px; letter-spacing: .1em; padding: 2px 7px; border: 1px solid rgba(27, 25, 23, .08);
}
.card-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.card-t { font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
.card-x { font-size: 13px; color: var(--muted); line-height: 1.72; flex: 1; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 11.5px; color: #93887a; }

/* ---------- 深色带 ---------- */
.band { background: #1d1a17; color: #ddd3c2; margin: 58px 0; padding: 42px 0 46px; }
.band-in { max-width: 1140px; }
.band-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.band-sub { font-size: 13px; color: #a99d8b; margin: 8px 0 0; max-width: 620px; }
.btn-ghost { border: 1px solid #6f6355; color: #e6dccb; padding: 8px 16px; font-size: 13px; white-space: nowrap; }
.btn-ghost:hover { background: #2b2621; color: #fff; border-color: #8a7c69; }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qa-mini { display: block; background: #26221e; border: 1px solid #37312a; padding: 18px 20px; }
.qa-mini:hover { background: #2c2722; border-color: #4a4238; }
.qa-mini-cat { font-size: 11px; color: #c9a08f; letter-spacing: .12em; }
.qa-mini h3 { color: #f1e8d9; font-size: 16.5px; line-height: 1.5; margin: 6px 0 7px; }
.qa-mini p { color: #a99d8b; font-size: 12.8px; line-height: 1.75; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 工具卡 ---------- */
.tool-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 18px 18px 16px; }
.tool-card:hover { border-top-color: var(--red); box-shadow: var(--shadow); }
.tool-time { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.tool-card h3 { font-size: 17px; margin: 7px 0 7px; line-height: 1.4; }
.tool-card p { font-size: 12.8px; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 12px; }
.tool-go { font-size: 12.5px; color: var(--red); }

/* ---------- 时间线 ---------- */
.tl { list-style: none; border-left: 1px solid var(--line-2); margin-left: 72px; }
.tl li { position: relative; padding: 0 0 22px 26px; }
.tl li::before { content: ""; position: absolute; left: -4.5px; top: 8px; width: 7px; height: 7px; background: var(--paper); border: 1.5px solid var(--red); border-radius: 50%; }
.tl-y { position: absolute; left: -74px; top: 0; font-family: var(--serif); font-size: 15px; color: var(--red); letter-spacing: .02em; }
.tl-b h3, .tl-b h2 { font-size: 17px; margin-bottom: 5px; }
.tl-b p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.78; }
.tl-full { margin-top: 10px; }
.tl-full li { padding-bottom: 26px; }
.p-tl .ch-hd { padding-bottom: 6px; }

/* ---------- 编辑说明 ---------- */
.ed-note { margin: 50px auto 40px; }
.ed-note-in { border: 1px solid var(--line-2); background: #f2ebdd; padding: 22px 26px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.ed-mark { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: #fff; background: var(--ink); padding: 4px 8px 4px 11px; }
.ed-note-in p { margin: 0; font-size: 13.8px; color: var(--ink-2); }
.ed-note-in a { color: var(--red); border-bottom: 1px solid rgba(181, 52, 42, .3); }
.ed-link { font-size: 13px; color: var(--red); white-space: nowrap; }

/* ---------- 广告位 ---------- */
.ad-slot {
  border: 1px dashed var(--line-2); background: rgba(255, 253, 248, .5);
  padding: 22px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ad-label { font-size: 11px; letter-spacing: .16em; color: #9c9182; border: 1px solid var(--line-2); padding: 1px 6px; }
.ad-hint { font-size: 12px; color: #a49a8c; }
.ad-band { margin: 40px auto; }
.art-body .ad-slot { margin: 28px 0; padding: 16px 18px; }
.art-body .ad-slot .ad-hint { font-size: 11.5px; }

/* ---------- 页脚 ---------- */
.ftr { background: #1b1815; color: #b6aa99; margin-top: 30px; padding-top: 46px; }
.ftr-in { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.ftr-name { font-family: var(--serif); font-size: 25px; color: #f3eadb; letter-spacing: .1em; margin-bottom: 10px; }
.ftr-desc { font-size: 13px; line-height: 1.85; color: #9d9181; max-width: 340px; }
.ftr-search { display: flex; margin-top: 16px; max-width: 300px; border: 1px solid #3d362e; }
.ftr-search input { flex: 1; min-width: 0; background: #232019; border: 0; color: #e8dfd0; padding: 8px 10px; font-size: 13px; outline: none; }
.ftr-search button { border: 0; background: #322c25; color: #d8cdbb; padding: 0 14px; font-size: 12.5px; cursor: pointer; }
.ftr-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: #8b7f6e; margin-bottom: 12px; font-weight: 500; }
.ftr-col ul { list-style: none; }
.ftr-col li { margin-bottom: 8px; }
.ftr-col a { font-size: 13px; color: #b6aa99; }
.ftr-col a:hover { color: #f0e6d6; }
.ftr-bar { border-top: 1px solid #2e2822; }
.ftr-bar-in { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; font-size: 12px; color: #857a6b; flex-wrap: wrap; }
.ftr-note { letter-spacing: .1em; }

/* ---------- 面包屑 / 频道头 ---------- */
.crumb { font-size: 12.5px; color: var(--muted); padding: 18px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumb span[aria-current] { color: var(--ink-2); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--red); }

.ch-hd { padding: 26px 24px 8px; }
.ch-line { display: block; width: 42px; height: 3px; background: var(--ch, var(--red)); margin-bottom: 14px; }
.ch-hd h1 { font-size: 34px; letter-spacing: .04em; margin-bottom: 12px; }
.ch-intro { font-size: 15px; color: var(--muted); line-height: 1.9; max-width: 780px; }
.ch-meta { font-size: 12px; color: #9c9182; margin-top: 12px; letter-spacing: .04em; }
.p-ch .ch-hd, .p-gl .ch-hd, .p-tl .ch-hd, .p-tools .ch-hd { padding-bottom: 4px; }

.jump { display: flex; gap: 8px; max-width: 1140px; margin: 20px auto 0; padding: 0 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.jump a { font-size: 13px; color: var(--muted); padding: 6px 12px; border: 1px solid transparent; border-bottom: 2px solid transparent; }
.jump a:hover { color: var(--ink); background: rgba(255, 253, 248, .7); }
.jump a.on { color: var(--red); border-bottom-color: var(--red); }

.ch-body, .lt-body, .gl-body { padding-top: 28px; }

/* ---------- 列表行 ---------- */
.rows { list-style: none; }
.rows-full { margin-top: 26px; border-top: 1px solid var(--line); }
.row { display: flex; gap: 16px; padding: 18px 4px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.row:hover { background: rgba(255, 253, 248, .65); }
.row-no { font-family: var(--serif); font-size: 15px; color: #b5a998; padding-top: 3px; width: 26px; flex-shrink: 0; }
.row-main { min-width: 0; flex: 1; }
.row-t { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.45; display: block; margin-bottom: 4px; }
.row-t:hover { color: var(--red-d); }
.row-x { font-size: 13.2px; color: var(--muted); margin: 0 0 6px; line-height: 1.72; }
.row-meta { font-size: 11.5px; color: #9c9182; display: flex; align-items: center; gap: 12px; }
.row-ch { color: var(--ch); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 34px 0 10px; flex-wrap: wrap; }
.pg { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; background: var(--card); }
.pg:hover { border-color: var(--line-2); color: var(--ink); }
.pg.on { background: var(--ink); color: #f6efe2; border-color: var(--ink); }
.empty { font-size: 14px; color: var(--muted); padding: 30px 0; }

/* ---------- 文章 ---------- */
.p-art main { padding-top: 4px; }
.art { padding-top: 10px; }
.art-hd { max-width: 840px; margin: 22px auto 0; }
.art-hd h1 { font-size: 38px; line-height: 1.32; letter-spacing: .01em; margin-bottom: 14px; }
.art-lead { font-size: 16.5px; color: var(--muted); line-height: 1.85; margin-bottom: 14px; }
.art-meta { font-size: 12.5px; color: #94897a; }
.art-cover { max-width: 960px; margin: 26px auto 0; border: 1px solid var(--line); background: #f1ece2; }
.art-cover .cover-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 44px; max-width: 1000px; margin: 34px auto 0; align-items: start; }
.art-body { min-width: 0; font-size: 16.5px; line-height: 1.98; color: #2e2a26; }
.art-body p { margin: 0 0 1.15em; }
.art-body p.first { font-size: 17.5px; color: var(--ink); line-height: 1.95; border-left: 2px solid var(--line-2); padding-left: 16px; margin-bottom: 1.4em; }
.art-body h2 {
  font-size: 23px; margin: 2em 0 .7em; padding-left: 12px; border-left: 3px solid var(--red);
  line-height: 1.45; scroll-margin-top: 90px;
}
.art-body h2 .anchor { color: var(--line-2); font-size: 15px; margin-left: 8px; text-decoration: none; opacity: 0; }
.art-body h2:hover .anchor { opacity: 1; }
.art-body ul, .art-body ol { margin: 0 0 1.2em 1.3em; }
.art-body li { margin-bottom: .45em; }
.art-body blockquote { margin: 1.6em 0; padding: 14px 20px; background: #f2ebdd; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.art-body blockquote p { margin: 0; font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); }
.art-body table, .conv-table { border-collapse: collapse; width: 100%; font-size: 13.5px; background: var(--card); }
.art-body th, .art-body td, .conv-table th, .conv-table td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.art-body th, .conv-table th { background: #f2ebdd; font-weight: 600; color: var(--ink); font-size: 12.5px; letter-spacing: .04em; }
.art-tags { margin: 26px 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--muted); background: #f1eadc; padding: 3px 9px; }
.art-note { border: 1px solid var(--line); background: rgba(255, 253, 248, .8); padding: 14px 18px; margin: 24px 0; }
.art-note strong { font-size: 11.5px; letter-spacing: .18em; color: var(--red); display: block; margin-bottom: 6px; }
.art-note p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.8; }
.art-note a { color: var(--red); }
.art-end { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: #a0958a; font-size: 12.5px; }
.art-end span { font-family: var(--serif); letter-spacing: .3em; }
.art-end p { margin: 8px 0 0; }
.art-end a { color: var(--red); }

.art-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.toc, .side-tool, .side-qa { border: 1px solid var(--line); background: var(--card); padding: 16px 18px; }
.toc-t { font-size: 13px; letter-spacing: .16em; color: var(--muted); font-family: var(--sans); font-weight: 500; margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: t; }
.toc li { border-bottom: 1px dashed var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc a { display: flex; gap: 8px; font-size: 12.8px; color: var(--ink-2); padding: 7px 0; line-height: 1.5; }
.toc a span { color: #b7ab99; font-family: var(--serif); }
.toc a.on { color: var(--red); }
.side-tool h3 { font-size: 16.5px; margin: 8px 0 6px; }
.side-tool p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.side-tool a, .side-qa a { font-size: 12.5px; color: var(--red); }
.side-qa p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 8px 0; }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1000px; margin: 36px auto 0; }
.an { display: block; border: 1px solid var(--line); background: var(--card); padding: 14px 16px; min-height: 74px; }
.an span { font-size: 11.5px; color: var(--muted); letter-spacing: .1em; display: block; margin-bottom: 4px; }
.an strong { font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.an.next { text-align: right; }
.an:hover strong { color: var(--red); }
.an.empty { border: 0; background: transparent; }
.rel { max-width: 1000px; }

/* ---------- 常识库 ---------- */
.gl-filter { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 4px; }
.gl-filter a { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 5px 13px; background: var(--card); }
.gl-filter a:hover { color: var(--ink); border-color: var(--line-2); }
.gl-filter a.on { background: var(--red); border-color: var(--red); color: #fff; }
.gl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 46px; align-items: start; }
.gl-group { margin-bottom: 36px; min-width: 0; }
.gl-more { grid-column: 1 / -1; }
.gl-gh { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.gl-gh h2 { font-size: 21px; letter-spacing: .05em; }
.gl-gh span { font-size: 11.5px; color: var(--muted); }
.qa-list { border-top: 0; }
.qa { padding: 18px 2px 17px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.qa:target { background: #f4ecdd; }
.qa-q { font-size: 17.5px; line-height: 1.55; margin-bottom: 7px; font-weight: 600; }
.qa-mark {
  display: inline-block; font-family: var(--serif); font-size: 12px; color: #fff; background: var(--red);
  width: 20px; height: 20px; line-height: 20px; text-align: center; margin-right: 9px; vertical-align: 2px;
}
.qa-mark.a { background: var(--ink-2); }
.qa-a { font-size: 14.2px; color: var(--ink-2); line-height: 1.9; margin: 0 0 0; }
.qa-cat { font-size: 11.5px; color: var(--muted); }
.gl-more { border: 1px solid var(--line-2); background: #f2ebdd; padding: 24px; text-align: center; margin: 30px 0 10px; }
.gl-more p { font-size: 14px; color: var(--ink-2); }
.btn-solid { display: inline-block; background: var(--ink); color: #f6efe2; border: 1px solid var(--ink); padding: 9px 22px; font-size: 13.5px; cursor: pointer; letter-spacing: .06em; }
.btn-solid:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- 静态页 ---------- */
.pg { max-width: 820px; padding-top: 20px; }
.pg-hd { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.pg-hd h1 { font-size: 34px; margin-bottom: 12px; }
.pg-lede { font-size: 16px; color: var(--muted); line-height: 1.85; margin: 0; }
.pg-meta { font-size: 12px; color: #9c9182; margin-top: 10px; }
.pg-body h2 { font-size: 21px; margin: 1.8em 0 .6em; padding-left: 11px; border-left: 3px solid var(--red); }
.pg-body p { font-size: 16px; line-height: 1.95; margin-bottom: 1.1em; color: #2e2a26; }

/* ---------- 搜索 ---------- */
.sc { max-width: 820px; padding-top: 24px; }
.sc h1 { font-size: 30px; margin-bottom: 18px; }
.search-form { display: flex; max-width: 520px; border: 1px solid var(--line-2); background: var(--card); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 14px; font-size: 14.5px; outline: none; }
.search-form button { border: 0; background: var(--ink); color: #f6efe2; padding: 0 22px; font-size: 13.5px; cursor: pointer; }
.search-form button:hover { background: var(--red); }
.sc-hint { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.sc-hint a { color: var(--red); margin: 0 8px 0 0; border-bottom: 1px dotted rgba(181, 52, 42, .4); }
.sc-count { font-size: 13px; color: var(--muted); margin-top: 22px; }
.sc-empty { margin-top: 26px; }

/* ---------- 404 ---------- */
.nf { max-width: 720px; padding: 60px 24px 80px; }
.nf-code { font-family: var(--serif); font-size: 82px; color: var(--line-2); line-height: 1; letter-spacing: .1em; }
.nf h1 { font-size: 30px; margin: 6px 0 14px; }
.nf p { color: var(--muted); font-size: 15px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.nf-links a { font-size: 13px; border: 1px solid var(--line); background: var(--card); padding: 6px 13px; color: var(--ink-2); }
.nf-links a:hover { border-color: var(--red); color: var(--red); }

/* ---------- 工具页 ---------- */
.tool-hd { padding-top: 26px; padding-bottom: 10px; }
.tool-hd h1 { font-size: 32px; margin-bottom: 10px; letter-spacing: .03em; }
.tool-hd p { font-size: 14.5px; color: var(--muted); max-width: 760px; }
.tool-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; padding-top: 20px; align-items: start; }
.tool-panel { background: var(--card); border: 1px solid var(--line); padding: 24px 26px 26px; }
.tp-row { margin-bottom: 16px; }
.tp-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tp-lbl { display: block; font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.tp-input {
  width: 100%; border: 1px solid var(--line-2); background: #fffdf8; padding: 10px 12px;
  font-size: 15px; color: var(--ink); font-family: var(--sans); outline: none; border-radius: 0;
}
.tp-input:focus { border-color: var(--ink-2); }
select.tp-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8f8475 50%), linear-gradient(135deg, #8f8475 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.tp-result { margin: 6px 0 14px; padding: 16px 18px; background: #f2ebdd; border-left: 3px solid var(--red); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tpr-num { font-family: var(--serif); font-size: 34px; color: var(--ink); line-height: 1.2; word-break: break-all; }
.tpr-unit { font-size: 13px; color: var(--muted); }
.tp-hint { font-size: 12px; color: #9c9182; margin: 0; line-height: 1.7; }
.tool-side { background: var(--card); border: 1px solid var(--line); padding: 20px 22px; }
.tool-side h2 { font-size: 16px; margin-bottom: 12px; letter-spacing: .05em; }
.tool-side h2.mt { margin-top: 24px; }
.t-rows { list-style: none; margin-top: 4px; }
.t-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.t-rows li span { color: var(--muted); flex-shrink: 0; }
.t-rows li b { font-weight: 600; color: var(--ink); text-align: right; word-break: break-all; }
.ref-list { list-style: none; }
.ref-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ref-list span { display: block; font-size: 12.5px; color: var(--muted); }
.ref-list b { display: block; font-size: 15.5px; font-family: var(--serif); color: var(--ink); margin: 2px 0; }
.ref-list em { font-style: normal; font-size: 11.5px; color: #a0958a; }
.conv-table { font-size: 13px; }
.conv-table.small { font-size: 12.5px; }
.conv-table td:last-child, .conv-table th:last-child { text-align: right; }
.mini-form { border: 1px solid var(--line); background: #faf6ed; padding: 14px; }
.mf-row { display: flex; align-items: center; gap: 8px; }
.mf-row input { width: 100%; min-width: 0; border: 1px solid var(--line-2); padding: 8px 10px; font-size: 14px; background: #fffdf8; outline: none; }
.mf-row input[type="number"] { width: 76px; flex-shrink: 0; }
.mf-x { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mf-out { margin: 12px 0 0; font-size: 13px; color: var(--muted); word-break: break-all; }
.mf-out b { color: var(--ink); font-size: 16px; font-family: var(--serif); }
.tool-list { border-top: 1px solid var(--line); margin-top: 14px; }
.tool-row { display: flex; align-items: center; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.tool-row:hover { background: rgba(255, 253, 248, .7); }
.tool-no { font-family: var(--serif); font-size: 15px; color: #b5a998; flex-shrink: 0; width: 26px; }
.tool-row-b { flex: 1; min-width: 0; }
.tool-row-b h2 { font-size: 19px; margin-bottom: 4px; }
.tool-row-b p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.tool-row-go { font-size: 12.5px; color: var(--red); white-space: nowrap; }
.tool-doc { max-width: 900px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.two-col p { margin: 0; }

/* ---------- 自测 ---------- */
.quiz { max-width: 820px; padding-top: 16px; }
.q { border: 1px solid var(--line); background: var(--card); padding: 18px 20px 8px; margin-bottom: 14px; }
.q legend { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; font-family: var(--serif); color: var(--ink); padding: 0; margin-bottom: 12px; line-height: 1.6; }
.q-no { background: var(--ink); color: #f6efe2; font-size: 12px; width: 22px; height: 22px; line-height: 22px; text-align: center; flex-shrink: 0; font-family: var(--sans); }
.q-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid transparent; cursor: pointer; margin-bottom: 6px; }
.q-opt:hover { background: #f7f1e5; }
.q-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-key { width: 22px; height: 22px; line-height: 21px; text-align: center; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); flex-shrink: 0; }
.q-txt { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.q-opt input:checked ~ .q-key { background: var(--ink); color: #fff; border-color: var(--ink); }
.q-opt.ok { background: #eef3e6; border-color: #c9d6b8; }
.q-opt.ok .q-key { background: #4b6b3a; color: #fff; border-color: #4b6b3a; }
.q-opt.bad { background: var(--red-soft); border-color: #e2bdb4; }
.q-opt.bad .q-key { background: var(--red); color: #fff; border-color: var(--red); }
.q-exp { font-size: 13.2px; color: var(--ink-2); line-height: 1.85; background: #f4eee1; padding: 12px 14px; margin: 8px 0 12px; border-left: 2px solid var(--ink-2); }
.quiz-actions { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.btn-quiet { background: transparent; border: 1px solid var(--line-2); color: var(--muted); padding: 8px 18px; font-size: 13px; cursor: pointer; }
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-2); }
.quiz-progress { font-size: 12.5px; color: var(--muted); }
.quiz-result { display: flex; gap: 20px; align-items: center; border: 1px solid var(--line-2); background: #f2ebdd; padding: 22px 24px; margin-top: 18px; }
.qr-score { font-family: var(--serif); font-size: 40px; color: var(--red); line-height: 1; white-space: nowrap; }
.qr-body h2 { font-size: 19px; margin-bottom: 6px; }
.qr-body p { font-size: 13.8px; color: var(--ink-2); margin: 0; line-height: 1.8; }

/* ---------- 联系 ---------- */
.ct { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-top: 20px; align-items: start; }
.cform { background: var(--card); border: 1px solid var(--line); padding: 24px 26px; }
.field { margin-bottom: 18px; }
.lbl { display: block; font-size: 12.5px; letter-spacing: .1em; color: var(--muted); margin-bottom: 7px; }
.field input[type="text"], .field textarea {
  width: 100%; border: 1px solid var(--line-2); background: #fffdf8; padding: 10px 12px;
  font-size: 14.5px; font-family: var(--sans); color: var(--ink); outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--ink-2); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; background: #fffdf8; }
.seg label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.hint { display: block; font-size: 11.5px; color: #9c9182; margin-top: 6px; }
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.form-note { font-size: 11.8px; color: #9c9182; margin: 12px 0 0; line-height: 1.7; }
.form-note a { color: var(--red); }
.alert { padding: 12px 16px; font-size: 13.5px; margin-bottom: 18px; border: 1px solid; }
.alert.ok { background: #eef3e6; border-color: #c9d6b8; color: #3d5b2c; }
.alert.err { background: var(--red-soft); border-color: #e2bdb4; color: var(--red-d); }
.ct-side { display: flex; flex-direction: column; gap: 14px; }
.ct-card { border: 1px solid var(--line); background: var(--card); padding: 16px 18px; }
.ct-card h2 { font-size: 16px; margin-bottom: 6px; }
.ct-card p { font-size: 12.8px; color: var(--muted); line-height: 1.78; margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .hero-t { font-size: 29px; }
  .art-hd h1 { font-size: 33px; }
  .tool-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-in { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 940px) {
  .topbar-r { display: none; }
  .hdr-in { gap: 14px; flex-wrap: wrap; }
  .hdr-search { width: 200px; }
  .burger { display: block; }
  .nav {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line); padding: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; border-bottom: 1px solid var(--line); }
  .nav a.on::after { display: none; }
  .nav .nav-tool { margin-left: 0; }
  .hero { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr 1fr; }
  .ch-grid { grid-template-columns: 1fr 1fr; }
  .art-layout { grid-template-columns: 1fr; gap: 26px; }
  .art-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .art-side > * { flex: 1 1 260px; }
  .ct { grid-template-columns: 1fr; }
  .ct-side { flex-direction: row; flex-wrap: wrap; }
  .ct-side > * { flex: 1 1 240px; }
  .tool-wrap { grid-template-columns: 1fr; }
  .gl-body { grid-template-columns: 1fr; gap: 0; }
  .ftr-in { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 0; }
  .nav a { padding-left: 16px; padding-right: 16px; }
  .hdr-search { display: none; }
  .brand-img { height: 36px; }
  .brand-txt strong { font-size: 18px; }
  .brand-txt em { font-size: 10.5px; }
  .hero-t { font-size: 25px; }
  .hero-body { padding: 18px 18px 20px; }
  .qa-today { padding: 16px 18px; }
  .trio { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .ch-grid { grid-template-columns: 1fr; }
  .tool-strip { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
  .sec { margin: 38px auto; }
  .sec-t { font-size: 21px; }
  .band { padding: 32px 0 34px; margin: 40px 0; }
  .band-hd { flex-direction: column; align-items: flex-start; }
  .art-hd h1 { font-size: 26px; }
  .art-lead { font-size: 15.5px; }
  .art-body { font-size: 16px; }
  .art-body h2 { font-size: 20px; }
  .art-nav { grid-template-columns: 1fr; }
  .an.next { text-align: left; }
  .ed-note-in { grid-template-columns: 1fr; gap: 10px; }
  .ed-link { justify-self: start; }
  .ftr-in { grid-template-columns: 1fr; gap: 22px; }
  .ftr-name { font-size: 22px; }
  .two-col { grid-template-columns: 1fr; gap: 14px; }
  .tool-hd h1 { font-size: 26px; }
  .tool-panel { padding: 18px 16px; }
  .tpr-num { font-size: 27px; }
  .tp-row.two { grid-template-columns: 1fr; }
  .ch-hd h1 { font-size: 27px; }
  .ch-hd { padding-left: 16px; padding-right: 16px; }
  .quiz-result { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tl { margin-left: 60px; }
  .tl-y { left: -54px; font-size: 14px; }
  .qa-q { font-size: 16px; }
  .qa-a { font-size: 14px; }
  .pg-hd h1 { font-size: 27px; }
  .row-t { font-size: 17px; }
  .row-no { width: 20px; font-size: 13px; }
}

@media (max-width: 400px) {
  .brand-txt em { display: none; }
  .brand-txt { border-left: 0; padding-left: 0; }
  .art-hd h1 { font-size: 23px; }
  .tpr-num { font-size: 23px; }
  .sec-t { font-size: 19px; }
  .notice-more { display: none; }
}
