/* ============================================================
   宝贝鱼乐园 — 样式表
   无外部字体、无 CDN，全部本地资源
   ============================================================ */

:root {
  --ink: #0c2b31;
  --ink-2: #37575d;
  --muted: #6d8b90;
  --teal: #0d7d83;
  --teal-d: #084a54;
  --aqua: #2fb6ad;
  --sand: #f7f3ea;
  --paper: #ffffff;
  --line: #e3eae7;
  --coral: #dd6b3e;
  --wrap: 1140px;
  --radius: 14px;
  --shadow: 0 16px 36px -24px rgba(9, 60, 66, .45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; }
button { font-family: inherit; }

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

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- 公告条 ---------- */
.notice {
  background: linear-gradient(90deg, #eef7f4 0%, #f3faf8 60%, #eef7f4 100%);
  border-bottom: 1px solid #dcebe6;
}
.notice-in {
  display: flex; align-items: center; gap: 12px;
  padding-top: 10px; padding-bottom: 10px;
}
.notice-tag {
  flex: none; font-size: 11px; letter-spacing: .12em; font-weight: 700;
  padding: 2px 8px; border: 1px solid #b9ddd4; border-radius: 4px;
  color: #0d7d83;
}
.notice-txt { font-size: 13px; line-height: 1.6; color: #33565c; }

/* ---------- 页头 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; gap: 24px;
  height: 74px;
}
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 50px; width: auto; }

.nav {
  display: flex; align-items: center; gap: 22px;
  margin-left: auto;
}
.nav a {
  position: relative; font-size: 15px; color: var(--ink-2);
  padding: 6px 0; white-space: nowrap;
}
.nav a:hover { color: var(--teal); }
.nav a.on { color: var(--teal); font-weight: 600; }
.nav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--aqua); border-radius: 2px;
}
.head-more {
  flex: none; font-size: 13px; color: var(--teal);
  border: 1px solid #cfe4df; border-radius: 999px; padding: 6px 14px;
}
.head-more:hover { background: #f0f9f7; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 11px 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 4px 0; transition: transform .2s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  background: var(--teal); color: #fff;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--teal-d); }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-d); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #eafaf7; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-line { border-color: #cfe0dc; color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--aqua); color: var(--teal); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, #12707c 0%, #0a4f5b 45%, #062f38 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(71, 200, 190, .22), transparent 70%),
    radial-gradient(50% 60% at 90% 80%, rgba(35, 130, 150, .3), transparent 70%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
  padding-top: 66px; padding-bottom: 74px;
}
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.eyebrow-light { color: #7fe0d6; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.14; letter-spacing: -.02em;
}
.hero-lead {
  margin-top: 20px; max-width: 560px;
  font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, .76);
}
.hero-lead strong { color: #8fe8df; font-weight: 600; }
.hero-acts { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 30px; margin-top: 38px; padding: 0; list-style: none; flex-wrap: wrap;
}
.hero-stats b { display: block; font-size: 27px; line-height: 1.2; color: #fff; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .28)); }

/* ---------- 症状速查 ---------- */
.symptom { border-bottom: 1px solid var(--line); background: #fff; }
.symptom-in { padding-top: 26px; padding-bottom: 28px; }
.symptom-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.symptom-head .eyebrow { margin-bottom: 0; }
.symptom-head h2 { font-size: 21px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13.5px; color: var(--ink-2);
  background: #fff; transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.chip:hover { border-color: var(--aqua); color: var(--teal); background: #f6fcfb; }
.chips-lg .chip { padding: 8px 16px; font-size: 14px; }
.chip-all { border-color: #cfe4df; color: var(--teal); background: #f3fbf9; }
.chip-static { cursor: default; background: #f8fbfa; }
.chip-static:hover { border-color: var(--line); color: var(--ink-2); background: #f8fbfa; }
.chip-urgent { border-color: #f0c9b8; background: #fdf2ec; color: #b4441c; }
.chip.w-fresh { border-color: #bfe0d8; background: #f1fbf7; color: #0d6e5f; }
.chip.w-marine { border-color: #bcd8ee; background: #f0f7fd; color: #155f93; }
.chip.w-brackish { border-color: #e2d7ae; background: #fbf8e9; color: #7a6416; }

/* 难度星点 */
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #d8e4e1; display: inline-block;
}
.stars i.on { background: var(--aqua); }

/* ---------- 区块 ---------- */
.sec { padding: 68px 0; }
.sec-alt { background: var(--sand); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 26px;
}
.sec-head h2 { font-size: clamp(23px, 2.6vw, 30px); }
.sec-head .eyebrow { margin-bottom: 6px; }
.more { flex: none; font-size: 13.5px; color: var(--teal); font-weight: 600; padding-bottom: 3px; }
.more:hover { color: var(--teal-d); }
.sec-lead {
  max-width: 760px; margin: -10px 0 26px;
  font-size: 15px; line-height: 1.85; color: var(--ink-2);
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > * { min-width: 0; }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfe0dc;
}
.card-title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.card-kicker {
  font-size: 11.5px; letter-spacing: .06em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 5px;
}
.card-latin { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 2px; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 9px; font-size: 11.5px; color: var(--ink-2);
}
.card-meta span { position: relative; }
.card-meta span + span::before {
  content: "·"; position: absolute; left: -7px; color: #b9cdc9;
}

.fish-card, .plant-card { padding: 0; overflow: hidden; }
.card-art {
  display: block; padding: 6px 8px 0;
  background: linear-gradient(180deg, #eef8f6 0%, #dcefeb 100%);
}
.card-art.w-marine { background: linear-gradient(180deg, #edf6fd 0%, #d9ebf7 100%); }
.card-art.w-brackish { background: linear-gradient(180deg, #f8f6ea 0%, #eee8d2 100%); }
.fishart, .plantart { width: 100%; height: auto; display: block; }
.card-body { display: flex; flex-direction: column; padding: 14px 16px 16px; }

.post-card { padding: 20px; }
.post-cat {
  align-self: flex-start; font-size: 11px; letter-spacing: .08em;
  color: var(--teal); background: #eef8f6; border-radius: 5px;
  padding: 3px 8px; margin-bottom: 10px;
}
.post-desc { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); margin-top: 8px; }
.post-foot {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: auto; padding-top: 14px; font-size: 11.5px; color: var(--muted);
}

.tool-card { padding: 22px; gap: 8px; background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%); }
.tool-tag {
  align-self: flex-start; font-size: 11px; padding: 3px 9px; border-radius: 5px;
  background: #e7f4f2; color: var(--teal-d); margin-bottom: 6px; letter-spacing: .05em;
}
.tool-go { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--teal); }
.tool-card-lg { padding: 26px; }

.quick-links {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px;
  font-size: 13.5px; color: var(--teal);
}
.quick-links a { border-bottom: 1px solid rgba(13, 125, 131, .25); padding-bottom: 2px; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; padding: 0; margin: 8px 0 0; }
.timeline li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px; padding: 22px 0; border-top: 1px dashed #d8e5e1;
}
.timeline li:last-child { border-bottom: 1px dashed #d8e5e1; }
.tl-day { font-size: 15px; font-weight: 800; color: var(--teal); letter-spacing: .04em; }
.tl-body h3 { font-size: 18px; margin-bottom: 5px; }
.tl-body p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 术语区块 ---------- */
.sec-term { padding-top: 0; }
.term-in {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow);
}
.term-in h2 { font-size: clamp(22px, 2.4vw, 28px); }
.term-in .sec-lead { margin: 12px 0 22px; }

/* ---------- 面包屑 ---------- */
.crumb { padding-top: 18px; font-size: 12.5px; color: var(--muted); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumb li { display: flex; gap: 6px; align-items: center; }
.crumb li + li::before { content: "›"; color: #b9cdc9; }
.crumb a:hover { color: var(--teal); }

/* ---------- 页面标题 ---------- */
.page-head { padding: 30px 0 24px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; }
.page-lead {
  margin-top: 14px; max-width: 800px;
  font-size: 16px; line-height: 1.85; color: var(--ink-2);
}

.filter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 16px 0 30px;
}
.filter {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); background: #fff;
}
.filter:hover { border-color: var(--aqua); color: var(--teal); }
.filter.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter-hint { margin-left: auto; font-size: 12.5px; color: var(--muted); }

.list-block { margin: 30px 0 14px; }
.block-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.block-head h2 { font-size: 22px; }
.block-head span { font-size: 12.5px; color: var(--muted); }

/* ---------- 详情 ---------- */
.detail {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "head head" "params params" "body side";
  column-gap: 44px;
}
.detail-head {
  grid-area: head;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px; align-items: center;
  padding: 26px 0 30px; border-bottom: 1px solid var(--line);
}
.detail-head-sick { grid-template-columns: minmax(0, 1fr) 190px; }
.detail-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.detail-head .eyebrow { margin-bottom: 8px; }
.latin { font-size: 14px; font-style: italic; color: var(--muted); margin-top: 6px; }
.alias { font-size: 13px; color: var(--muted); margin-top: 4px; }
.detail-summary { margin: 16px 0 16px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.detail-art {
  border-radius: 18px; padding: 10px;
  background: linear-gradient(160deg, #eef8f6, #d8ece8);
}
.detail-art.w-marine { background: linear-gradient(160deg, #edf6fd, #d6e9f6); }
.detail-art.w-brackish { background: linear-gradient(160deg, #f8f6ea, #ece5cf); }
.detail-art.art-plant { background: linear-gradient(160deg, #f2f8ee, #dcecd6); }
.detail-art svg { display: block; width: 100%; height: auto; }

.severity {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; text-align: center; background: #fff;
}
.severity-label { display: block; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.severity strong { display: block; font-size: 44px; line-height: 1.1; color: var(--ink); }
.severity small { font-size: 15px; color: var(--muted); font-weight: 400; }

.danger-bar { display: inline-flex; gap: 3px; margin: 8px 0 2px; }
.danger-bar i { width: 16px; height: 4px; border-radius: 2px; background: #e2eae7; }
.danger-1 i:nth-child(-n+1),
.danger-2 i:nth-child(-n+2),
.danger-3 i:nth-child(-n+3),
.danger-4 i:nth-child(-n+4),
.danger-5 i:nth-child(-n+5) { background: var(--coral); }
.danger-1 i:nth-child(-n+1) { background: #e0b23c; }
.danger-2 i:nth-child(-n+2) { background: #e0b23c; }
.danger-3 i:nth-child(-n+3) { background: #e08a3c; }

.param-grid {
  grid-area: params;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 28px 0 34px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.param { background: #fff; padding: 14px 16px; }
.param span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.param b { font-size: 15px; color: var(--ink); font-weight: 600; }

.detail-body { grid-area: body; min-width: 0; }
.detail-side { grid-area: side; min-width: 0; }

.side-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; background: #fff; margin-bottom: 16px;
}
.side-card h3 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.side-card a {
  display: block; font-size: 14px; color: var(--ink-2);
  padding: 7px 0; border-bottom: 1px dashed #eef3f1;
}
.side-card a:last-child { border-bottom: 0; }
.side-card a:hover { color: var(--teal); }
.side-card dl { margin: 0; }
.side-card dt { font-size: 11.5px; color: var(--muted); }
.side-card dd { margin: 2px 0 10px; font-size: 14px; color: var(--ink); font-weight: 600; }
.side-card dd:last-child { margin-bottom: 0; }

/* ---------- 正文排版 ---------- */
.prose { font-size: 16px; line-height: 1.9; color: #23454b; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 22px; margin: 36px 0 14px; padding-left: 14px;
  border-left: 3px solid var(--aqua); line-height: 1.4;
}
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--aqua); }
.prose a { color: var(--teal); border-bottom: 1px solid rgba(13, 125, 131, .3); }
.prose a:hover { color: var(--teal-d); border-bottom-color: var(--teal-d); }
.prose strong { color: var(--ink); }
.prose em { font-style: normal; background: linear-gradient(transparent 62%, #d8f0ea 62%); }
.prose blockquote {
  margin: 20px 0; padding: 14px 20px; border-left: 3px solid #cfe4df;
  background: #f8fbfa; color: var(--ink-2); font-size: 15px;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 18px 0 22px;
  font-size: 14px; line-height: 1.7;
}
.prose th {
  background: #f2f7f5; text-align: left; padding: 10px 12px;
  border: 1px solid var(--line); font-weight: 600; color: var(--ink);
}
.prose td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose sup { font-size: 11px; }

.callout {
  margin: 20px 0; padding: 14px 18px;
  background: #f2f8f6; border-left: 3px solid var(--aqua);
  border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.8; color: #1d4a4f;
}
.callout strong { color: var(--teal-d); }

.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 28px; margin: 12px 0; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--aqua); font-weight: 700;
}

.steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  padding-left: 42px; margin: 16px 0;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.prose-foot {
  margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink-2);
}
.prose-foot h2 { font-size: 19px; }

/* ---------- 病鱼急救 ---------- */
.first-aid {
  border: 1px solid #d6e8e3; border-radius: 16px;
  background: linear-gradient(180deg, #f4faf8, #fff);
  padding: 26px 28px; margin: 8px 0 26px;
}
.first-aid h2 { font-size: 20px; margin-bottom: 12px; }
.first-aid ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.first-aid li { margin: 8px 0; }
.first-aid-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.disease-card { gap: 4px; }
.disease-card .danger-bar { margin-bottom: 6px; }
.disease-card .post-foot { margin-top: 12px; padding-top: 0; }
.disease-card .post-desc { margin-top: 6px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px;
}
.data-table th {
  text-align: left; background: #f2f7f5; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); font-weight: 600; white-space: nowrap;
}
.data-table td { padding: 11px 13px; border: 1px solid var(--line); color: var(--ink-2); }
.data-table a { color: var(--teal); border-bottom: 1px solid rgba(13, 125, 131, .28); }

/* ---------- 文章列表 ---------- */
.post-list { border-top: 1px solid var(--line); }
.post-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) 28px;
  gap: 16px; align-items: center;
  padding: 22px 6px; border-bottom: 1px solid var(--line);
  transition: background .16s ease;
}
.post-row:hover { background: #fbfdfc; }
.post-num { font-size: 13px; font-weight: 700; color: var(--aqua); letter-spacing: .08em; }
.post-row-body strong { display: block; font-size: 18px; line-height: 1.5; }
.post-row:hover strong { color: var(--teal); }
.post-row-body .post-desc { margin: 6px 0 8px; }
.post-arrow { color: #b9cdc9; font-size: 18px; }

/* ---------- 文章详情 ---------- */
.post { padding-top: 16px; }
.post-head { max-width: 840px; }
.post-head h1 { font-size: clamp(27px, 3.5vw, 42px); line-height: 1.25; }
.post-lead { margin: 16px 0 14px; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.post-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 258px;
  gap: 48px; align-items: start;
  margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line);
}
.post-main { min-width: 0; }
.post-toc {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fbfdfc; padding: 16px 18px;
}
.post-toc h2 {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.post-toc ol { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.post-toc li { margin: 7px 0; }
.post-toc a { color: var(--ink-2); }
.post-toc a:hover { color: var(--teal); }

/* ---------- 工具 ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.tool-panel {
  border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; background: #fff; box-shadow: var(--shadow);
}
.tool-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--muted); }
.field input, .field select {
  height: 44px; border: 1px solid #cfdcd9; border-radius: 9px;
  padding: 0 12px; font-size: 15px; color: var(--ink);
  background: #fff; width: 100%; min-width: 0;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(47, 182, 173, .16);
}
.tool-form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; }

.tool-out {
  margin-top: 20px; border-radius: 12px; background: #f4faf8;
  border: 1px dashed #cfe4df; padding: 0; transition: padding .2s ease;
}
.tool-out.on { padding: 20px; }
.tool-out:empty { display: none; }
.out-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.out-main b { font-size: 34px; line-height: 1.1; color: var(--teal-d); letter-spacing: -.01em; }
.out-main span { font-size: 13px; color: var(--muted); }
.out-list { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid #dcece7; }
.out-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed #dcece7; font-size: 14px;
}
.out-list li span { color: var(--ink-2); }
.out-list li b { color: var(--ink); font-weight: 600; }
.out-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.out-warn { color: #b4441c; }
.out-ok { color: var(--teal); }

.formula { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.formula p { margin: 0; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li {
  position: relative; padding-left: 16px; margin: 9px 0;
  font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
}
.side-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--aqua);
}

/* ---------- 术语表 ---------- */
.term-tools { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin: 4px 0 18px; }
.term-search { flex: 1 1 300px; max-width: 380px; }
.term-search input {
  width: 100%; height: 46px; border-radius: 999px;
  border: 1px solid #cfdcd9; padding: 0 20px; font-size: 15px; color: var(--ink);
}
.term-search input:focus {
  outline: none; border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(47, 182, 173, .16);
}
.term-empty { color: var(--muted); font-size: 14px; padding: 14px 0; }
.term-group { margin: 40px 0 0; scroll-margin-top: 90px; }
.term-group h2 {
  font-size: 21px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 12px;
}
.term-group h2 span { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.term-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; }
.term-item { padding: 14px 0; border-bottom: 1px solid #eef3f1; }
.term-item dt { font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.term-item dt em { font-size: 11.5px; font-weight: 400; font-style: normal; color: var(--muted); }
.term-item dd { margin: 5px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.about-side { min-width: 0; }

/* ---------- 404 ---------- */
.lost { padding: 48px 0 60px; max-width: 720px; }
.lost-code { font-size: 76px; font-weight: 800; line-height: 1; color: #dcebe7; letter-spacing: -.03em; }
.lost h1 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 6px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.lost-list h2 { font-size: 17px; margin-bottom: 10px; }
.lost-list ul { padding-left: 20px; font-size: 14.5px; line-height: 2; }
.lost-list a { color: var(--teal); }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 72px; padding: 54px 0 22px;
  background: #07333a; color: rgba(255, 255, 255, .72);
}
.foot-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 34px; align-items: start;
}
.foot-brand img {
  height: 44px; width: auto; background: #fff;
  padding: 7px 10px; border-radius: 9px;
}
.foot-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.85; max-width: 330px; }
.foot-col h3 {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); margin-bottom: 12px;
}
.foot-col a {
  display: block; font-size: 13.5px; color: rgba(255, 255, 255, .76);
  padding: 5px 0;
}
.foot-col a:hover { color: #8fe8df; }
.foot-bot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  margin-top: 38px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; color: rgba(255, 255, 255, .5);
}
.foot-bot a { color: rgba(255, 255, 255, .62); }
.foot-bot a:hover { color: #8fe8df; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-in { gap: 32px; }
  .detail { grid-template-columns: minmax(0, 1fr) 270px; column-gap: 30px; }
  .detail-head { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 16px; right: 16px; top: 74px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 8px; box-shadow: 0 20px 40px -22px rgba(9, 60, 66, .5);
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 11px 12px; border-radius: 8px; }
  .nav a.on { background: #f1faf8; }
  .nav a.on::after { display: none; }
  .head-more { display: none; }

  .hero-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 52px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .symptom-in { grid-template-columns: 1fr; gap: 16px; }
  .term-in { grid-template-columns: 1fr; gap: 24px; padding: 30px; }
  .post-layout { grid-template-columns: 1fr; gap: 28px; }
  .post-toc { position: static; order: -1; }
  .tool-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "params" "body" "side";
  }
  .detail-head { grid-template-columns: 1fr; }
  .detail-art { max-width: 420px; }
  .detail-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .detail-side .side-card { margin-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding: 54px 0; }
  .term-list { grid-template-columns: 1fr; }
  .param-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-hint { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .head-in { height: 66px; gap: 12px; }
  .brand img { height: 42px; }
  .nav { top: 66px; }
  .notice-txt { font-size: 11.5px; line-height: 1.55; }
  .notice-in { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .notice-tag { font-size: 10px; padding: 1px 6px; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 22px; }
  .hero-acts .btn { flex: 1 1 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; }
  .detail-side { grid-template-columns: 1fr; }
  .tool-form { grid-template-columns: 1fr; }
  .tool-panel { padding: 20px 16px; }
  .post-row { grid-template-columns: minmax(0, 1fr) 20px; }
  .post-num { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-bot { flex-direction: column; }
  .term-in { padding: 24px 20px; }
  .prose { font-size: 15.5px; }
  .prose h2 { font-size: 20px; }
  .card-title { font-size: 16.5px; }
}
