/* ============================================================
   EscapeHTML — "Character Checkpoint" 字符检查站 / 轻盈口岸风
   设计隐喻：把实体编码器做成一间明亮的出入境检查站。
   瓷白薄荷底 + 点阵纹理，纯白面板，青绿(输入)/紫罗兰(输出)双主色。
   字体：Sora（展示/正文）+ IBM Plex Mono（代码/实体）。
   ============================================================ */

:root {
  --bg: #eef4f1;
  --bg-grad-1: #f0f6f3;
  --bg-grad-2: #e6efe9;
  --surface: #ffffff;
  --surface-2: #f4f8f6;
  --surface-3: #ecf2ef;
  --line: #dce7e2;
  --line-strong: #c2d4cc;
  --ink: #0b1d19;
  --ink-soft: #445a53;
  --ink-faint: #8aa19a;

  --teal: #0e8074;           /* RAW · 输入 */
  --teal-deep: #0a6157;
  --teal-soft: rgba(14, 128, 116, .10);
  --violet: #6d28d9;         /* ENTITIES · 输出 */
  --violet-deep: #581c87;
  --violet-soft: rgba(109, 40, 217, .10);
  --ok: #16a34a;
  --err: #e11d48;

  --radius: 14px;
  --radius-sm: 9px;
  --max-width: 1160px;
  --mono: "IBM Plex Mono", "SF Mono", "Fira Code", Consolas, monospace;
  --sans: "Sora", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(11, 29, 25, .06), 0 4px 12px rgba(11, 29, 25, .05);
  --shadow-md: 0 2px 6px rgba(11, 29, 25, .07), 0 18px 40px rgba(11, 29, 25, .10);
  --shadow-lg: 0 4px 12px rgba(11, 29, 25, .08), 0 30px 70px rgba(11, 29, 25, .16);
}

* { 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: linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
}

/* 点阵检疫纹理 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(14, 128, 116, .10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.85), rgba(0,0,0,.3) 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.85), rgba(0,0,0,.3) 65%, transparent 100%);
}

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

::selection { background: rgba(14, 128, 116, .18); color: var(--ink); }

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

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

/* ============================================================
   两侧检查站刻度装饰条（≥1280px 显示）
   ============================================================ */
.side-rail {
  position: fixed; top: 0; bottom: 0; width: 56px; z-index: 40;
  display: none; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 118px 0 40px;
  pointer-events: none; user-select: none;
}
@media (min-width: 1280px) {
  .side-rail { display: flex; }
  .rail-left  { left: 0;  background: linear-gradient(180deg, rgba(14,128,116,.07), transparent 35%, transparent 65%, rgba(14,128,116,.07)); }
  .rail-right { right: 0; background: linear-gradient(180deg, rgba(109,40,217,.07), transparent 35%, transparent 65%, rgba(109,40,217,.07)); }
  .rail-left::after, .rail-left::before,
  .rail-right::after, .rail-right::before {
    content: ""; position: absolute; width: 1px; top: 118px; bottom: 40px; opacity: .4;
  }
  .rail-left::before { left: 6px; background: repeating-linear-gradient(to bottom, var(--teal) 0 5px, transparent 5px 11px); }
  .rail-right::before { right: 6px; background: repeating-linear-gradient(to bottom, var(--violet) 0 5px, transparent 5px 11px); }
  .rail-left::after  { left: 12px; background: linear-gradient(var(--teal), transparent); }
  .rail-right::after { right: 12px; background: linear-gradient(var(--violet), transparent); }
}
.rail-glyph {
  font-family: var(--mono); font-size: 14px; color: var(--ink-faint); font-weight: 600;
  writing-mode: vertical-rl; letter-spacing: .08em;
}
.rail-mark {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em;
  color: var(--ink-faint); text-transform: uppercase;
  writing-mode: vertical-rl; text-orientation: mixed;
  padding: 10px 0; opacity: .6;
}

/* ============================================================
   报头
   ============================================================ */
.site-header {
  background: rgba(255, 255, 255, .72);
  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: 64px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { color: var(--teal-deep); }
.logo-img { width: 38px; height: 38px; display: block; }
.logo .esc-tag {
  font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .12em;
  color: #fff; background: var(--teal); 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(--teal-deep); background: var(--teal-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: #fff; 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: 68px 0 36px; position: relative; overflow: hidden; }
.hero::after {
  content: "&";
  font-family: var(--mono); font-weight: 600; font-size: clamp(9rem, 22vw, 20rem);
  position: absolute; right: -1.5rem; top: 8px; line-height: 1;
  background: linear-gradient(180deg, rgba(14,128,116,.16), rgba(109,40,217,.16));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; pointer-events: none; user-select: none;
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(2.5deg); }
}
.hero .inner { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--teal-deep);
  margin-bottom: 20px; animation: rise .5s ease both;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }
.hero h1 {
  font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.08; letter-spacing: -.03em; color: var(--ink);
  max-width: 760px; animation: rise .55s .06s ease both;
}
.hero h1 .hl {
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  color: var(--ink-soft); font-size: 1.06rem; max-width: 620px;
  margin: 20px 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(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   工作台（Workspace）
   ============================================================ */
.tool-section { padding: 30px 0 20px; }
.workspace {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: rise .6s .22s 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: #f76865; }
.win-dots i:nth-child(2) { background: #f6bf4f; }
.win-dots i:nth-child(3) { background: #4ac484; }
.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;
}

/* 检查台（选项条） */
.job-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.jt-field { display: flex; align-items: center; gap: 8px; }
.jt-label { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.jt-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.jt-seg button {
  font-family: var(--mono); font-size: .72rem; padding: 6px 14px; cursor: pointer;
  background: transparent; color: var(--ink-soft); border: none; transition: all .15s;
}
.jt-seg button.on { background: var(--teal); color: #fff; }
.jt-seg button:not(.on):hover { color: var(--teal-deep); background: var(--teal-soft); }
.jt-check { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.jt-check input { accent-color: var(--teal); width: 15px; height: 15px; cursor: pointer; }
.jt-check span { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.jt-check kbd {
  font-family: var(--mono); font-size: .66rem; color: var(--teal);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: var(--surface-2);
}

/* 自动检测徽章 */
.detect-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .06em;
  color: var(--violet-deep); background: var(--violet-soft);
  border: 1px dashed rgba(109, 40, 217, .35); border-radius: 7px; padding: 3px 10px;
}
.detect-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.detect-badge.dec { color: var(--teal-deep); background: var(--teal-soft); border-color: rgba(14, 128, 116, .35); }
.detect-badge.dec::before { background: var(--teal); }

/* 分栏编辑器 */
.split { display: grid; grid-template-columns: 1fr 44px 1fr; min-height: 440px; background: var(--surface); }
.split-pane { display: flex; flex-direction: column; background: var(--surface); }
.pane-head {
  display: flex; justify-content: space-between; align-items: center;
  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; }
.pane-label .swatch { width: 8px; height: 8px; border-radius: 2px; }
.pane-a .pane-label .swatch { background: var(--teal); }
.pane-b .pane-label .swatch { background: var(--violet); }
.pane-a .pane-label { color: var(--teal-deep); }
.pane-b .pane-label { color: var(--violet-deep); }
.pane-count { font-family: var(--mono); font-size: .64rem; color: var(--ink-faint); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
#text-input {
  flex: 1; width: 100%; border: none; resize: vertical; min-height: 360px;
  background: var(--surface); color: var(--ink);
  font-family: var(--mono); font-size: .86rem; line-height: 1.72;
  padding: 16px 18px; caret-color: var(--teal);
}
#text-input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(14, 128, 116, .14); }
#text-output {
  flex: 1; overflow: auto; min-height: 360px; margin: 0;
  background: var(--surface-2); padding: 16px 18px;
  font-family: var(--mono); font-size: .86rem; line-height: 1.72;
  color: var(--ink); white-space: pre-wrap; word-break: break-all; tab-size: 2;
  box-shadow: inset 3px 0 0 rgba(109, 40, 217, .18);
}
.out-empty { color: var(--ink-faint); font-style: italic; }

/* 输出中的实体高亮 */
#text-output .ent { color: var(--violet-deep); background: var(--violet-soft); border-radius: 4px; padding: 0 2px; }

/* 中缝按钮 */
.split-gutter {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--teal-soft), var(--violet-soft));
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.gutter-btn {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-strong); color: var(--teal-deep);
  font-family: var(--mono); font-size: .72rem; font-weight: 700; box-shadow: var(--shadow-sm); transition: all .12s;
}
.gutter-btn:hover { border-color: var(--teal); color: #fff; background: var(--teal); }
.gutter-btn:active { transform: scale(.94); background: var(--teal-deep); color: #fff; }

/* 底部工具栏 */
.workspace-bar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.workspace-bar .group { display: flex; gap: 9px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .05em;
  padding: 8px 15px; cursor: pointer; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  transition: all .14s;
}
.btn:hover { border-color: var(--teal); color: var(--teal-deep); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn.copied { border-color: var(--ok); color: var(--ok); }
.btn-ghost { background: transparent; }

/* ============================================================
   Features
   ============================================================ */
.content-section { padding: 26px 0 20px; }
.content-section h2 {
  font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em; margin: 20px 0 8px; color: var(--ink); text-align: center;
}
.content-section .sec-sub { text-align: center; color: var(--ink-soft); font-size: .96rem; max-width: 620px; margin: 0 auto 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.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(--teal); }
.feature .f-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--teal-deep); margin-bottom: 14px;
  font-family: var(--mono); font-size: 1rem; font-weight: 600;
}
.feature:nth-child(2) .f-icon { background: var(--violet-soft); color: var(--violet-deep); }
.feature:nth-child(3) .f-icon { background: rgba(22,163,74,.12); color: var(--ok); }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; letter-spacing: -.01em; }
.feature p { font-size: .88rem; color: var(--ink-soft); }
.feature code { font-family: var(--mono); font-size: .82em; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; color: var(--teal-deep); }

/* ============================================================
   实体速查表
   ============================================================ */
.cheat-wrap { max-width: 860px; }
.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: 90px 1fr 1fr 1fr 1fr; gap: 10px;
  align-items: center; padding: 11px 18px;
  border-bottom: 1px solid var(--line); font-size: .9rem;
}
.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: .64rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); background: var(--surface-3);
}
.cheat-row .ch { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--teal-deep); }
.cheat-row code { font-family: var(--mono); font-size: .8rem; color: var(--violet-deep); background: var(--violet-soft); border-radius: 5px; padding: 2px 7px; justify-self: start; }

/* ============================================================
   首页 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(--teal);
  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-3); padding: 1px 5px; border-radius: 4px; color: var(--teal-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(--teal); 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(--teal-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-strong); padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.article-back:hover { color: var(--teal-deep); border-color: var(--teal); }
.article-content h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; 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-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; 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: #3c4f49; font-size: 1.02rem; }
.article-content ul, .article-content ol { margin: 0 0 18px 26px; }
.article-content li { margin-bottom: 10px; color: #3c4f49; font-size: 1.02rem; }
.article-content strong { color: var(--ink); }
.article-content code { font-family: var(--mono); font-size: .86em; background: var(--surface-3); padding: 2px 6px; border-radius: 5px; color: var(--teal-deep); }
.article-content pre { background: #0b1d19; color: #d9f2ea; 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(--teal); background: var(--teal-soft); padding: 14px 20px; margin: 0 0 20px; color: var(--ink-soft); border-radius: 0 10px 10px 0; }

/* CMS FAQ 区块 */
.faq-section h2 { font-weight: 800; 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(--teal-deep); }
.faq details p { padding: 0 4px 16px 22px; color: var(--ink-soft); font-size: .92rem; }

/* CMS 相关文章 */
.related-articles { margin-top: 44px; border-top: 2px solid var(--ink); padding-top: 22px; }
.related-articles h2 { font-weight: 800; 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(255, 255, 255, .7); 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(--teal-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: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-gutter { order: -1; border: none; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .gutter-btn { transform: rotate(90deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.9rem); }
  .cheat-row { grid-template-columns: 60px 1fr 1fr; }
  .cheat-row span:nth-child(4), .cheat-row code:nth-of-type(2) { display: none; }
  .cheat-head span:nth-child(4) { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 44px 0 24px; }
  .job-bar { gap: 10px; }
  .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: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 40px rgba(11, 29, 25, .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; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .hero::after { 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; }
}
