/* ============================================================
   JSONPathHub — "Surveyor's Map" 测绘图纸风 / 宽幅浅色
   设计隐喻：JSON 是地形，JSONPath 是测绘路线。
   暖纸底 + 蓝图网格 + 罗盘等高线装饰，墨蓝 × 信号橙。
   字体：Fraunces（展示衬线）+ Archivo（正文）+ JetBrains Mono（代码）。
   ============================================================ */

:root {
  --paper: #f6f4ec;
  --paper-2: #efeadb;
  --surface: #fffdf7;
  --surface-2: #f5f2e8;
  --ink: #17304a;
  --ink-soft: #46586d;
  --ink-faint: #8494a6;

  --accent: #e8590c;          /* 信号橙 */
  --accent-deep: #c2410c;
  --accent-soft: rgba(232, 89, 12, .12);
  --teal: #0b7285;            /* 验证 OK */
  --teal-soft: rgba(11, 114, 133, .10);
  --err: #d63939;
  --err-soft: rgba(214, 57, 57, .08);

  --line: #ddd6c4;
  --line-2: #c9c1aa;
  --grid: rgba(23, 48, 74, .055);
  --grid-strong: rgba(23, 48, 74, .09);

  --radius: 14px;
  --radius-sm: 9px;
  --max-width: 1400px;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --sans: "Archivo", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(23, 48, 74, .06), 0 4px 12px rgba(23, 48, 74, .05);
  --shadow-md: 0 2px 6px rgba(23, 48, 74, .07), 0 18px 40px rgba(23, 48, 74, .10);
  --shadow-lg: 0 4px 12px rgba(23, 48, 74, .08), 0 30px 70px rgba(23, 48, 74, .15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  position: relative;
  background: var(--paper);
}

/* 蓝图网格纸底纹（细 8px + 粗 40px 双层） */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 40px 40px, 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, transparent 100%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

::selection { background: var(--accent-soft); color: var(--ink); }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

.inner { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   两侧测绘坐标装饰条（≥1380px 显示）
   ============================================================ */
.side-rail {
  position: fixed; top: 0; bottom: 0; width: 60px; z-index: 40;
  display: none; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 120px 0 42px;
  pointer-events: none; user-select: none;
}
@media (min-width: 1380px) {
  .side-rail { display: flex; }
  .rail-left  { left: 0;  border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,48,74,.04), transparent 30%, transparent 70%, rgba(23,48,74,.04)); }
  .rail-right { right: 0; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(232,89,12,.05), transparent 30%, transparent 70%, rgba(232,89,12,.05)); }
}
.rail-coord { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--ink-faint); writing-mode: vertical-rl; }
.rail-glyph { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); writing-mode: vertical-rl; }
.rail-mark {
  font-family: var(--mono); font-size: 9px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-faint); writing-mode: vertical-rl; text-orientation: mixed; padding: 10px 0; opacity: .65;
}

/* ============================================================
   报头
   ============================================================ */
.site-header {
  background: rgba(246, 244, 236, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.16rem; letter-spacing: -.015em; color: var(--ink); }
.logo:hover { color: var(--accent-deep); }
.logo-img { width: 38px; height: 38px; display: block; }
.logo .hub-tag {
  font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  color: #fff; background: var(--accent); padding: 2px 6px; border-radius: 5px;
  transform: translateY(1px);
}
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 7px 14px; font-size: .82rem; font-weight: 600;
  color: var(--ink-soft); border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--accent-deep); background: var(--accent-soft); }

.menu-btn {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; padding: 0;
}
.menu-btn .bar { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .2s; }
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero（左文案 + 右测绘图）
   ============================================================ */
.hero { padding: 72px 0 30px; position: relative; }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 20px; animation: rise .5s ease both;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  line-height: 1.05; letter-spacing: -.015em; color: var(--ink);
  max-width: 640px; animation: rise .55s .06s ease both;
}
.hero h1 em {
  font-style: italic; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: rgba(232, 89, 12, .35);
}
.lead {
  color: var(--ink-soft); font-size: 1.07rem; max-width: 560px;
  margin: 24px 0 0; animation: rise .55s .12s ease both;
}
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; list-style: none; animation: rise .55s .18s ease both; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.hero-trust li svg { width: 16px; height: 16px; flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.hero-map { animation: rise .6s .2s ease both; }
.hero-map svg { width: 100%; height: auto; display: block; }
.dash-move { stroke-dashoffset: 90; animation: dashmove 5s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: 0; } }

/* ============================================================
   测绘台（Workspace，宽幅双栏 + 中缝）
   ============================================================ */
.tool-section { padding: 34px 0 20px; }
.workspace {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: rise .6s .24s ease both;
}

.win-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-dots i:nth-child(1) { background: #d63939; }
.win-dots i:nth-child(2) { background: #ddad3c; }
.win-dots i:nth-child(3) { background: #2f9e44; }
.win-title { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); letter-spacing: .05em; flex: 1; }
.win-status {
  font-family: var(--mono); font-size: .66rem; color: var(--ink-faint);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 9px; letter-spacing: .04em;
}
.win-status.ok { color: var(--teal); border-color: rgba(11, 114, 133, .35); background: var(--teal-soft); }
.win-status.bad { color: var(--err); border-color: rgba(214, 57, 57, .35); background: var(--err-soft); }

.desk { display: grid; grid-template-columns: minmax(0, 1.12fr) 34px minmax(0, 1fr); }

.pane { display: flex; flex-direction: column; min-width: 0; }
.pane-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.pane-label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.pane-label .swatch { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.pane-json .swatch { background: var(--teal); }
.pane-path .swatch { background: var(--accent); }
.pane-tools { display: flex; gap: 6px; }
.pane-count {
  font-family: var(--mono); font-size: .64rem; color: #fff; background: var(--accent);
  border-radius: 6px; padding: 2px 9px; letter-spacing: .04em; font-weight: 600;
}
.pane-count.zero { background: var(--ink-faint); }

.mini-btn {
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  padding: 4px 11px; cursor: pointer; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft);
  transition: all .14s;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.mini-btn:active { transform: translateY(1px); }
.mini-btn.copied { border-color: #2f9e44; color: #2f9e44; }

/* JSON 编辑器 */
#json-input {
  flex: 1; width: 100%; border: none; resize: none; min-height: 520px;
  background: var(--surface); color: var(--ink);
  font-family: var(--mono); font-size: .85rem; line-height: 1.7;
  padding: 16px 18px; caret-color: var(--accent); white-space: pre; overflow-wrap: normal; overflow-x: auto;
}
#json-input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(23, 48, 74, .12); }
#json-input.error { box-shadow: inset 0 0 0 2px rgba(214, 57, 57, .45); }

/* JSON 错误栏（语法预检） */
.json-error {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--err-soft); border-top: 1px solid rgba(214, 57, 57, .35);
  padding: 10px 16px;
}
.je-badge { color: var(--err); font-size: 1rem; line-height: 1.4; }
.je-msg { font-family: var(--mono); font-size: .72rem; color: var(--err); font-weight: 600; letter-spacing: .02em; }
.je-line {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-soft);
  margin-top: 4px; white-space: pre; overflow-x: auto;
}

/* 中缝十字标 */
.desk-seam {
  position: relative; background: var(--surface-2);
  border-left: 1px dashed var(--line-2); border-right: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center;
}
.desk-seam .cross {
  font-family: var(--mono); color: var(--accent); font-size: 15px; font-weight: 700;
  background: var(--surface-2); padding: 6px 2px;
}

/* 路径输入 + 智能提示 */
.path-wrap { position: relative; border-bottom: 1px solid var(--line); }
#path-input {
  width: 100%; border: none; background: var(--surface); color: var(--ink);
  font-family: var(--mono); font-size: .92rem; font-weight: 500;
  padding: 14px 18px; caret-color: var(--accent);
}
#path-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--accent); }
#path-input.error { box-shadow: inset 0 -2px 0 var(--err); }
#path-input::placeholder { color: var(--ink-faint); font-weight: 400; }

.sugg-pop {
  position: absolute; top: calc(100% + 1px); left: 10px; right: 10px; z-index: 20;
  max-height: 264px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px;
}
.sugg {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; padding: 7px 11px; cursor: pointer;
  background: none; border: none; border-radius: 7px;
  font-family: var(--mono); font-size: .8rem; color: var(--ink);
}
.sugg:hover, .sugg.active { background: var(--accent-soft); }
.sugg .s-label { font-weight: 500; }
.sugg .s-label b { color: var(--accent-deep); font-weight: 700; }
.sugg .s-hint { font-size: .64rem; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.sugg .s-hint.t-obj { color: var(--teal); }
.sugg .s-hint.t-arr { color: var(--accent-deep); }
.sugg-empty { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); padding: 8px 12px; }

/* 路径 chips */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.chip {
  font-family: var(--mono); font-size: .68rem; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 4px 12px; cursor: pointer; transition: all .14s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }

/* 结果面板（归一化数组） */
.results-head { border-top: 1px solid var(--line); }
.results {
  flex: 1; min-height: 380px; max-height: 520px; overflow-y: auto;
  background: var(--surface); padding: 10px 14px;
}
.res-empty {
  font-family: var(--mono); font-size: .8rem; color: var(--ink-faint);
  padding: 18px 8px; line-height: 1.8; font-style: italic;
}
.res-item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  border-bottom: 1px dashed var(--line); transition: background .12s;
}
.res-item:hover { background: var(--accent-soft); }
.res-no {
  font-family: var(--mono); font-size: .64rem; font-weight: 700; color: var(--accent);
  flex: none; width: 34px; letter-spacing: .08em;
}
.res-val {
  font-family: var(--mono); font-size: .8rem; color: var(--ink);
  word-break: break-all; line-height: 1.6; flex: 1;
}
.res-type {
  font-family: var(--mono); font-size: .6rem; font-weight: 600; color: var(--teal);
  background: var(--teal-soft); border-radius: 4px; padding: 1px 6px;
  flex: none; letter-spacing: .06em; text-transform: uppercase;
}
.res-type.t-arr { color: var(--accent-deep); background: var(--accent-soft); }
.res-type.t-str { color: #087f5b; background: rgba(8, 127, 91, .1); }
.res-type.t-nul { color: var(--ink-faint); background: var(--surface-2); }
.res-none { font-family: var(--mono); font-size: .8rem; color: var(--ink-faint); padding: 16px 8px; }
.res-path-err {
  font-family: var(--mono); font-size: .78rem; color: var(--err);
  padding: 14px 8px; line-height: 1.7;
}

/* ============================================================
   Features
   ============================================================ */
.content-section { padding: 30px 0 22px; }
.sec-no {
  display: block; text-align: center; font-family: var(--mono); font-size: .64rem;
  font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.content-section h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -.01em; margin: 0 0 8px; color: var(--ink); text-align: center;
}
.content-section .sec-sub { text-align: center; color: var(--ink-soft); font-size: .96rem; max-width: 640px; margin: 0 auto 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.feature .f-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 14px;
}
.feature h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 7px; letter-spacing: -.01em; }
.feature p { font-size: .85rem; color: var(--ink-soft); }
.feature code { font-family: var(--mono); font-size: .84em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--accent-deep); }

/* ============================================================
   语法速查表
   ============================================================ */
.cheat-wrap { max-width: 960px; }
.cheat-table {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.cheat-row {
  display: grid; grid-template-columns: 150px 1.2fr 1.4fr 1fr; gap: 10px;
  align-items: center; padding: 11px 18px;
  border-bottom: 1px solid var(--line); font-size: .88rem;
}
.cheat-row:last-child { border-bottom: none; }
.cheat-row:nth-child(odd):not(.cheat-head) { background: var(--surface-2); }
.cheat-head {
  font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); background: var(--paper-2);
}
.cheat-row .syn { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); border-radius: 5px; padding: 2px 8px; justify-self: start; }
.cheat-row code:not(.syn) { font-family: var(--mono); font-size: .78rem; color: var(--ink); }
.cheat-row span { color: var(--ink-soft); font-size: .86rem; }

/* ============================================================
   首页 FAQ
   ============================================================ */
.faq-block { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 24px; box-shadow: var(--shadow-sm); }
.faq-block details { border-bottom: 1px solid var(--line); }
.faq-block details:last-child { border-bottom: none; }
.faq-block summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; position: relative;
  font-weight: 700; font-size: .96rem; color: var(--ink);
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after {
  content: "+"; position: absolute; right: 0; top: 15px;
  font-family: var(--mono); font-size: 1.2rem; font-weight: 400; color: var(--accent);
  transition: transform .2s;
}
.faq-block details[open] summary::after { transform: rotate(45deg); }
.faq-block details p { padding: 0 30px 18px 0; color: var(--ink-soft); font-size: .9rem; }
.faq-block details p code { font-family: var(--mono); font-size: .84em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--accent-deep); }

/* ============================================================
   文章列表（CMS 兼容）
   ============================================================ */
.article-list { display: grid; gap: 14px; }
.article-list a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.article-list a:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.article-list .article-title { font-weight: 700; font-size: 1.02rem; color: var(--ink); margin-bottom: 6px; line-height: 1.45; }
.article-list a:hover .article-title { color: var(--accent-deep); }
.article-list .article-desc { font-size: .86rem; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   文章正文（CMS 生成页兼容）
   ============================================================ */
.article-content { padding: 40px 0 50px; }
.article-content .inner { max-width: 800px; }
.article-back {
  display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px;
  border-bottom: 1px dashed var(--line-2); padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.article-back:hover { color: var(--accent-deep); border-color: var(--accent); }
.article-content h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; color: var(--ink); margin-bottom: 14px; }
.article-meta { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); letter-spacing: .05em; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 26px; }
.article-content h2 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--ink); margin: 38px 0 15px; }
.article-content h3 { font-weight: 700; font-size: 1.16rem; color: var(--ink); margin: 28px 0 12px; }
.article-content p { margin-bottom: 18px; color: #3b4d60; font-size: 1.02rem; }
.article-content ul, .article-content ol { margin: 0 0 18px 26px; }
.article-content li { margin-bottom: 10px; color: #3b4d60; font-size: 1.02rem; }
.article-content strong { color: var(--ink); }
.article-content code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--accent-deep); }
.article-content pre { background: var(--ink); color: #e8edf4; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 20px; font-family: var(--mono); font-size: .84rem; line-height: 1.7; }
.article-content pre code { background: none; color: inherit; padding: 0; }
.article-content blockquote { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 20px; margin: 0 0 20px; color: var(--ink-soft); border-radius: 0 10px 10px 0; }

.faq-section h2 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 13px 4px; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q  "; font-family: var(--mono); color: var(--accent-deep); }
.faq details p { padding: 0 4px 16px 22px; color: var(--ink-soft); font-size: .92rem; }

.related-articles { margin-top: 44px; border-top: 2px solid var(--ink); padding-top: 22px; }
.related-articles h2 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin-bottom: 14px; }
.related-articles ul { list-style: none; }
.related-articles li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.related-articles a { font-weight: 600; font-size: .95rem; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: 34px; border-top: 1px solid var(--line);
  background: rgba(246, 244, 236, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 28px 0 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-bottom: 14px; }
.footer-links a { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); transition: color .15s; }
.footer-links a:hover { color: var(--accent-deep); }
.copyright { text-align: center; font-family: var(--mono); font-size: .7rem; color: var(--ink-faint); letter-spacing: .05em; }
.colophon { text-align: center; font-size: .76rem; color: var(--ink-faint); margin-top: 8px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1060px) {
  .desk { grid-template-columns: 1fr; }
  .desk-seam { order: -1; border: none; border-bottom: 1px dashed var(--line-2); padding: 8px 0; }
  #json-input { min-height: 300px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .inner { grid-template-columns: 1fr; }
  .hero-map { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero { padding: 46px 0 24px; }
  .site-header .inner { position: relative; }
  .menu-btn { display: flex; }
  nav { display: contents; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 8px; margin: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 40px rgba(23, 48, 74, .14);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links li { list-style: none; }
  .nav-links a { display: block; padding: 11px 14px; font-size: .88rem; }
  .logo { font-size: 1.02rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .cheat-row { grid-template-columns: 110px 1fr 1fr; }
  .cheat-row > :nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .dash-move { animation: none; }
}
/* ===== 二级页面移动端导航保护（:has 门控） =====
   上方下拉菜单规则会误伤无汉堡按钮的页面（文章页/合规页不加载菜单 JS，
   导航会被 opacity:0 隐藏且无法打开）。仅在页面存在 .menu-btn 时
   保留下拉行为；其余页面恢复可见的换行压缩导航。 */
@media (max-width: 640px) {
  .site-header .inner:not(:has(.menu-btn)) nav { display: block; }
  .site-header .inner:not(:has(.menu-btn)) .nav-links {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    flex-direction: row; flex-wrap: wrap; gap: 6px;
    background: none; border: none; box-shadow: none; padding: 0;
    transition: none;
  }
  .site-header .inner:not(:has(.menu-btn)) .nav-links a { padding: 6px 9px; font-size: .8rem; }
}
