/* ==========================================================================
   澜桥 · 跨境应急语言服务
   视觉：暖纸色 + 深墨绿 + 信号橙；编辑部式排版，强调现场感与可读性。
   ========================================================================== */

:root {
  --paper: #f2efe5;
  --paper-2: #eae5d7;
  --card: #fbf9f1;
  --card-strong: #fffdf7;
  --ink: #112b25;
  --ink-2: #2e4a42;
  --muted: #667870;
  --faint: #8a988f;
  --line: #d3d6c9;
  --line-strong: #aab4a7;
  --brand: #0d5b4a;
  --brand-deep: #0b3d33;
  --brand-soft: #dceae1;
  --signal: #dd542d;
  --signal-deep: #b53c1b;
  --signal-soft: #f6d8ca;
  --gold: #b58a43;
  --ok: #2b7957;
  --warn: #a5621b;
  --danger: #a73827;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 8px 28px rgba(17, 43, 37, .08);
  --shadow-sm: 0 3px 12px rgba(17, 43, 37, .06);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
html[data-font="large"] { font-size: 18px; }
html[data-font="xlarge"] { font-size: 20px; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 43, 37, .022) 1px, transparent 1px) 0 0 / 100% 34px,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--signal); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.view { min-height: 62vh; padding-bottom: 90px; }
.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-link {
  position: fixed; left: 14px; top: -60px; z-index: 999;
  background: var(--signal); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------- 顶栏 */
.exercise-bar {
  background: var(--brand-deep);
  color: #e8eee9;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.exercise-inner {
  min-height: 34px;
  display: flex; align-items: center; gap: 18px;
}
.exercise-inner b { color: #fff; font-weight: 650; }
.exercise-inner .dot,
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); margin-right: 7px;
  box-shadow: 0 0 0 4px rgba(221, 84, 45, .16);
}
.exercise-right { margin-left: auto; opacity: .72; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 239, 229, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  min-height: 76px;
  display: flex; align-items: center; gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo-mark { width: 42px; height: 42px; color: var(--brand); flex: 0 0 auto; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong {
  font-family: var(--serif); font-size: 22px; letter-spacing: .12em; font-weight: 700;
}
.brand-text small { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a {
  position: relative; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(13, 91, 74, .07); color: var(--brand); }
.nav a.on { color: var(--brand); font-weight: 650; }
.nav a.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--signal); border-radius: 2px;
}
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.text-tool, .icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 9px; transition: .15s;
}
.text-tool:hover, .icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.text-tool sup { font-size: 9px; margin-left: 1px; }
.head-guide {
  font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-strong);
  padding: 3px 0; margin: 0 4px;
}
.head-guide:hover { color: var(--brand); border-color: var(--brand); }
.nav-toggle {
  display: none; width: 38px; height: 38px; border: 1px solid var(--line);
  background: var(--card); border-radius: 9px; padding: 9px 8px;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---------------------------------------------------------------- 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.signal:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(242, 239, 229, .38); color: var(--paper); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn.small { min-height: 32px; padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn.tiny { min-height: 27px; padding: 3px 9px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-ic { width: 16px; height: 16px; flex: 0 0 auto; }
.cite { font-family: var(--mono); font-size: .78em; color: var(--signal); white-space: nowrap; }
.link-btn { border: 0; background: transparent; padding: 0; color: var(--brand); font-family: var(--mono); font-size: 12px; border-bottom: 1px solid var(--line-strong); }
.link-btn:hover { border-color: var(--brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--signal); }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--signal); text-transform: uppercase;
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--signal); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .45); color: var(--ink-2);
  font-size: 11.5px; line-height: 1.5; white-space: nowrap;
}
.tag.ok { background: #e6f2ea; border-color: #b9d7c4; color: #226044; }
.tag.pending { background: #f7efe0; border-color: #e3cfaa; color: #7c5a1f; }
.tag.src { background: var(--brand-soft); border-color: #bad5c6; color: var(--brand); }
.tag.signal { background: var(--signal-soft); border-color: #ecc1af; color: var(--signal-deep); }
.tag.dark { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); color: #e7eee9; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.two-col > *, .three-col > *, .about-grid > *, .feature-grid > *, .news-strip > * { min-width: 0; }
.card-pad { padding: 26px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.nowrap { white-space: nowrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card);
  padding: 7px 12px; border-radius: 99px; color: var(--ink-2);
  font-size: 12.5px; transition: .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .x { opacity: .55; }

.section { margin-top: 56px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 15px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--serif); font-size: clamp(25px, 2.6vw, 34px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2;
}
.section-head p { max-width: 620px; color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.section-head .more { color: var(--brand); font-size: 13px; white-space: nowrap; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.section-head .more:hover { border-color: var(--brand); }
.page-head { padding: 42px 0 25px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -.025em; }
.page-head p { max-width: 760px; color: var(--muted); margin-top: 10px; font-size: 14.5px; }
.page-head .kicker { margin-bottom: 10px; }

.empty-note { color: var(--faint); font-size: 13px; text-align: center; padding: 28px 10px; }
.error-note {
  padding: 14px 16px; border: 1px solid #ecc1af; background: #fbebe4;
  color: var(--signal-deep); border-radius: 9px; font-size: 13px;
}
.help { font-size: 12px; color: var(--faint); }
.req { color: var(--signal); margin-left: 3px; }

/* ---------------------------------------------------------------- 首页 Hero */
.hero {
  position: relative; overflow: hidden;
  margin-top: 22px;
  background: var(--brand-deep);
  color: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(11, 61, 51, .22);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 100% 52px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 52px 100%;
  mask-image: linear-gradient(90deg, black, transparent 82%);
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(221, 84, 45, .32), transparent 66%);
  filter: blur(4px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.18fr .82fr; gap: 30px;
  padding: 54px 54px 0;
}
.hero-copy { max-width: 660px; padding-bottom: 44px; }
.hero .kicker { color: #f29a7d; }
.hero .kicker::before { background: #f29a7d; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(48px, 6.5vw, 80px);
  line-height: .98; letter-spacing: -.04em;
  margin: 18px 0 20px;
}
.hero h1 em { font-style: normal; color: #f09a7c; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: -2px; bottom: 4px; height: 7px;
  background: rgba(221, 84, 45, .32); border-radius: 99px;
}
.hero-lead {
  max-width: 560px; color: rgba(242, 239, 229, .82);
  font-size: 15.5px; line-height: 1.85;
}
.hero-lead b { color: #fff; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions .btn { min-height: 47px; padding-inline: 21px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em;
  color: rgba(242, 239, 229, .56);
}
.hero-meta span::before { content: "·"; margin-right: 7px; color: var(--signal); }

/* 通道路线示意图 */
.route-panel {
  align-self: end; min-height: 390px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(221,84,45,.16), transparent 40%),
    rgba(255,255,255,.035);
  overflow: hidden; position: relative;
}
.route-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 17px; border-bottom: 1px solid rgba(255,255,255,.12);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.route-head .live { color: #f29a7d; }
.route-svg { display: block; width: 100%; height: 310px; }
.route-legend {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 14px;
  padding: 12px 17px 15px; font-size: 10.5px; color: rgba(255,255,255,.58);
  border-top: 1px solid rgba(255,255,255,.1);
}
.route-legend b { color: rgba(255,255,255,.9); font-weight: 600; }
.route-legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #f29a7d; margin-right: 5px; }

.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stats div { padding: 20px 24px 22px; border-right: 1px solid rgba(255,255,255,.12); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.15; color: #fff; }
.hero-stats span { display: block; font-size: 11px; color: rgba(255,255,255,.55); margin-top: 3px; letter-spacing: .03em; }

/* 定位三问 */
.position-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.q-card {
  position: relative; padding: 24px 24px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.q-card::before { content: ""; position: absolute; left: 24px; top: 0; width: 42px; height: 3px; background: var(--signal); }
.q-card h3 { font-family: var(--serif); font-size: 21px; margin: 14px 0 8px; line-height: 1.35; }
.q-card p { color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.q-index { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--faint); }

/* 流程 */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card);
}
.flow-step { position: relative; padding: 24px 22px 26px; border-right: 1px solid var(--line); }
.flow-step:last-child { border-right: 0; }
.flow-step::before {
  content: ""; position: absolute; top: 36px; right: -7px; width: 13px; height: 13px;
  background: var(--card); border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: rotate(45deg); z-index: 2;
}
.flow-step:last-child::before { display: none; }
.flow-no { font-family: var(--mono); font-size: 11px; color: var(--signal); letter-spacing: .12em; }
.flow-step h3 { font-family: var(--serif); font-size: 19px; margin: 9px 0 5px; }
.flow-step p { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.flow-step a { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--brand); border-bottom: 1px solid var(--line-strong); }

/* 核心能力 */
.cap-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cap-card {
  grid-column: span 2; position: relative; min-height: 205px;
  padding: 22px 22px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cap-card:nth-child(1), .cap-card:nth-child(2) { grid-column: span 3; }
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.cap-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cap-no { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .14em; }
.cap-icon { width: 34px; height: 34px; color: var(--brand); }
.cap-card h3 { font-family: var(--serif); font-size: 21px; margin: 18px 0 7px; line-height: 1.3; }
.cap-card p { color: var(--muted); font-size: 12.5px; line-height: 1.7; flex: 1; }
.cap-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.cap-foot b { font-family: var(--mono); font-size: 15px; color: var(--brand); }
.cap-foot span { font-size: 11px; color: var(--faint); }
.cap-link { font-size: 12px; color: var(--brand); }

/* 特色功能区 */
.feature-band {
  margin-top: 56px; padding: 38px 40px 40px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.feature-band::after {
  content: "LQ / 02"; position: absolute; right: 26px; bottom: -22px;
  font-family: var(--mono); font-size: 92px; color: rgba(255,255,255,.045); letter-spacing: -.05em;
}
.feature-band .section-head { border-color: rgba(255,255,255,.16); position: relative; z-index: 1; }
.feature-band .section-head h2 { color: #fff; }
.feature-band .section-head p { color: rgba(255,255,255,.62); }
.feature-band .section-head .more { color: #f29a7d; border-color: rgba(255,255,255,.28); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; }
.feature-card {
  padding: 21px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px;
  background: rgba(255,255,255,.035); transition: background .18s, border-color .18s;
}
.feature-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.feature-card .fno { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #f29a7d; }
.feature-card h3 { font-family: var(--serif); font-size: 20px; margin: 12px 0 8px; }
.feature-card p { font-size: 12.5px; color: rgba(255,255,255,.63); line-height: 1.7; }
.feature-card a { display: inline-block; margin-top: 15px; font-size: 12px; color: #f3b39e; }

/* 新闻 */
.news-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card {
  display: flex; flex-direction: column; padding: 21px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: .18s;
}
.news-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 11px; color: var(--faint); }
.news-card h3 { font-family: var(--serif); font-size: 18px; line-height: 1.45; margin: 12px 0 7px; }
.news-card h3 a:hover { color: var(--brand); }
.news-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.news-card .en-title { margin-top: auto; padding-top: 12px; font-size: 11px; color: var(--faint); line-height: 1.5; }

.source-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--faint);
}
.source-row b { color: var(--ink-2); font-weight: 600; }
.source-row a { border-bottom: 1px solid var(--line); }
.source-row a:hover { color: var(--brand); border-color: var(--brand); }

/* ---------------------------------------------------------------- 页头 / 布局 */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sticky { position: sticky; top: 96px; }

.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 14px; font-weight: 650; }
.panel-head .sub { font-size: 11.5px; color: var(--faint); }
.panel-body { padding: 20px; }

/* ---------------------------------------------------------------- 表单 */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 11px; color: var(--faint); line-height: 1.5; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="search"],
input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--card-strong); color: var(--ink);
  font-size: 13.5px; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
textarea { resize: vertical; min-height: 85px; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,91,74,.11); outline: none; }
input::placeholder, textarea::placeholder { color: #a7b0a6; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 17px; }
.form-section-head .no { font-family: var(--mono); font-size: 10px; color: var(--signal); letter-spacing: .1em; }
.form-section-head h3 { font-family: var(--serif); font-size: 20px; }
.form-section-head p { font-size: 11.5px; color: var(--faint); margin-left: auto; }

/* 动态清单 */
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th {
  text-align: left; font-size: 10.5px; letter-spacing: .04em; color: var(--faint);
  font-weight: 500; padding: 0 6px 7px;
}
.mini-table td { padding: 0 6px 8px; vertical-align: top; }
.mini-table input, .mini-table select { min-height: 37px; font-size: 12.5px; padding: 7px 9px; }
.mini-table .del { color: var(--faint); border: 1px solid var(--line); background: var(--card); border-radius: 7px; width: 32px; height: 37px; }
.mini-table .del:hover { color: var(--danger); border-color: #d8b3aa; }
.add-row { margin-top: 5px; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mini-table { min-width: 720px; }

/* 通关预览 */
.packet-preview { background: var(--ink); color: var(--paper); border-radius: var(--radius); overflow: hidden; }
.packet-preview .pp-head { padding: 19px 20px 17px; border-bottom: 1px solid rgba(255,255,255,.14); }
.packet-preview .pp-head .code { font-family: var(--mono); font-size: 11px; color: #f29a7d; letter-spacing: .12em; }
.packet-preview .pp-head h3 { font-family: var(--serif); font-size: 21px; margin-top: 5px; }
.packet-preview .pp-body { padding: 18px 20px; }
.packet-preview .pp-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 12px; }
.packet-preview .pp-row:last-child { border-bottom: 0; }
.packet-preview .pp-row span { color: rgba(255,255,255,.55); }
.packet-preview .pp-row b { font-weight: 600; text-align: right; }
.packet-preview .pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.packet-preview .pp-stats div { background: rgba(255,255,255,.06); border-radius: 8px; padding: 10px; text-align: center; }
.packet-preview .pp-stats b { display: block; font-family: var(--serif); font-size: 22px; }
.packet-preview .pp-stats span { font-size: 9.5px; color: rgba(255,255,255,.5); }
.packet-preview .pp-note { padding: 13px 20px; background: rgba(221,84,45,.14); font-size: 10.5px; color: #f0b7a5; line-height: 1.6; border-top: 1px solid rgba(221,84,45,.24); }
.progress { height: 5px; background: rgba(255,255,255,.13); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; background: var(--signal); border-radius: 99px; transition: width .3s; }

/* 结果 / 凭据 */
.success-card { padding: 24px; border: 1px solid #b9d7c4; background: #edf6ef; border-radius: var(--radius); }
.success-card .big-code { font-family: var(--mono); font-size: clamp(26px, 4vw, 42px); letter-spacing: .05em; color: var(--brand); margin: 8px 0; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.packet-doc { background: #fffdf7; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 30px; }
.packet-doc h2 { font-family: var(--serif); font-size: 25px; }
.packet-doc .packet-sub { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.packet-sec { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.packet-sec h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.packet-sec pre { white-space: pre-wrap; font-family: var(--sans); font-size: 12.5px; line-height: 1.8; margin: 0; }
.packet-sec table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.packet-sec th, .packet-sec td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.packet-sec th { color: var(--faint); font-weight: 500; }
.packet-lang { margin-top: 14px; padding: 12px 14px; background: var(--brand-soft); border-radius: 8px; font-size: 12.5px; line-height: 1.8; }

/* 验放 */
.verify-box { max-width: 680px; }
.code-input { display: flex; gap: 9px; }
.code-input input { font-family: var(--mono); font-size: 17px; letter-spacing: .08em; height: 50px; text-transform: uppercase; }
.check-list { display: grid; gap: 9px; margin-top: 14px; }
.check-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 15px; border: 1px solid var(--line); background: var(--card); border-radius: 9px;
}
.check-item:hover { border-color: var(--line-strong); }
.check-item.on { background: #edf6ef; border-color: #b9d7c4; }
.check-box { width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 6px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; font-size: 13px; }
.check-item.on .check-box { background: var(--ok); border-color: var(--ok); }
.check-item b { font-size: 13px; font-weight: 600; }
.check-item small { display: block; font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 99px; }
.status-pill.submitted { background: #f7efe0; color: #7c5a1f; }
.status-pill.cleared { background: #e6f2ea; color: #226044; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.recent-list { display: grid; gap: 7px; }
.recent-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 12px; }
.recent-item:hover { border-color: var(--brand); }
.recent-item b { font-family: var(--mono); font-size: 11px; color: var(--brand); }

/* ---------------------------------------------------------------- 翻译 */
.tr-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm); }
.tr-langbar { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.35); flex-wrap: wrap; }
.tr-langbar select { width: auto; min-width: 148px; min-height: 37px; font-size: 12.5px; }
.swap {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--brand); font-size: 16px; display: grid; place-items: center;
}
.swap:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.tr-badge { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--faint); }
.tr-panes { display: grid; grid-template-columns: 1fr 1fr; }
.tr-pane { min-width: 0; position: relative; }
.tr-pane + .tr-pane { border-left: 1px solid var(--line); }
.pane-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.tr-pane textarea {
  border: 0; border-radius: 0; min-height: 250px; background: transparent;
  font-size: 17px; line-height: 1.85; padding: 20px; resize: vertical;
}
.tr-pane textarea:focus { box-shadow: none; }
.tr-out { min-height: 250px; padding: 20px; font-size: 17px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-out .ph { color: var(--faint); font-size: 14px; }
.tr-foot { display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--faint); }
.tr-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,.3); }
.tr-actions .spacer { margin-left: auto; }
mark.term {
  background: #f8d9c7; color: #783117; border-radius: 3px; padding: 0 2px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
mark.term.t { background: #cfe6d7; color: #14533b; }
.typing { color: var(--faint); font-size: 13px; }
.typing::after { content: "▍"; animation: blink 1s steps(2) infinite; color: var(--signal); }
@keyframes blink { 50% { opacity: 0; } }
.err-text { color: var(--danger); font-size: 13px; }
.src-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.src-box { padding: 18px; }
.src-box h4 { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .04em; margin-bottom: 11px; }
.src-box h4 b { font-family: var(--mono); color: var(--signal); font-size: 12px; }
.src-item { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.src-item:last-child { border-bottom: 0; }
.src-item b { font-weight: 600; color: var(--ink); }
.src-item small { display: block; color: var(--faint); font-size: 10.5px; margin-top: 3px; line-height: 1.55; }
.src-item .score { float: right; font-family: var(--mono); color: var(--faint); font-size: 9.5px; }
.quick-templates { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.quick-templates button { font-size: 11.5px; }

.voice-btn { width: 44px; height: 44px; border-radius: 50%; }
.voice-btn.listening { background: var(--signal); border-color: var(--signal); color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(221,84,45,.3); } 50% { box-shadow: 0 0 0 10px rgba(221,84,45,0); } }

/* ---------------------------------------------------------------- 知识库 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
  border: 0; background: transparent; padding: 12px 16px; color: var(--muted);
  font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brand); border-color: var(--signal); font-weight: 650; }
.tab b { font-family: var(--mono); font-size: 10px; background: var(--paper-2); padding: 2px 5px; border-radius: 99px; margin-left: 5px; color: var(--faint); }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.toolbar input { flex: 1 1 240px; min-width: 0; }
.toolbar select { width: auto; min-width: 126px; }
.list-wrap { overflow: hidden; }
table.list { width: 100%; border-collapse: collapse; }
table.list th {
  text-align: left; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.3);
}
table.list td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: rgba(13,91,74,.025); }
td .en { color: var(--faint); font-size: 11px; }
td .meta { color: var(--faint); font-size: 10.5px; margin-top: 3px; }
td a.src-link { color: var(--brand); font-size: 10.5px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.pager .btns { display: flex; gap: 7px; }
.pager button { width: auto; min-height: 30px; }
.term-row { cursor: pointer; }
.lang-badges { display: inline-flex; gap: 3px; margin-left: 5px; }
.lang-badges span { font-family: var(--mono); font-size: 8.5px; background: var(--paper-2); color: var(--muted); border-radius: 3px; padding: 1px 3px; text-transform: uppercase; }
.corpus-list { display: grid; }
.corpus-item { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.corpus-item:last-child { border-bottom: 0; }
.corpus-item .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.corpus-item .en-line { font-size: 13px; line-height: 1.75; }
.corpus-item .zh-line { font-family: var(--serif); font-size: 15px; line-height: 1.8; }
.corpus-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 9px; font-size: 10.5px; color: var(--faint); }
.corpus-meta a { color: var(--brand); }
.news-list { display: grid; }
.news-item { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item h3 { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin: 8px 0 6px; }
.news-item h3 a:hover { color: var(--brand); }
.news-item p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.news-item .en { margin-top: 8px; font-size: 11px; color: var(--faint); }
.news-item .news-meta { gap: 9px; }
.region-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* 模态 */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(11, 29, 25, .55);
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px);
  animation: fade .15s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(760px, 100%); max-height: min(86vh, 900px); overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.3); animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(10px); opacity: .6; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 24px 15px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 2; }
.modal-head h2 { font-family: var(--serif); font-size: 25px; line-height: 1.3; }
.modal-head .sub { font-size: 11px; color: var(--faint); margin-top: 4px; }
.modal-body { padding: 22px 24px; }
.modal-close { border: 1px solid var(--line); background: var(--card); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.modal-close:hover { color: var(--danger); border-color: #d8b3aa; }
.term-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.term-detail-grid div { background: var(--card); padding: 13px 15px; }
.term-detail-grid dt { font-size: 9.5px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.term-detail-grid dd { font-size: 14px; margin-top: 3px; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.lang-grid div { background: var(--paper); border-radius: 8px; padding: 9px 11px; }
.lang-grid span { display: block; font-size: 9px; color: var(--faint); letter-spacing: .08em; }
.lang-grid b { font-size: 12.5px; font-weight: 500; }

/* 短语卡 */
.phrase-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.phrase-card {
  text-align: left; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 17px; transition: .16s; min-height: 132px;
  display: flex; flex-direction: column;
}
.phrase-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.phrase-card .pzh { font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.phrase-card .ptr { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--brand); line-height: 1.6; }
.phrase-card .pmeta { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .08em; }
.phrase-langbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 14px 0 18px; }
.phrase-langbar select { width: auto; }
.big-card {
  display: grid; gap: 18px; padding: 28px;
}
.big-card .zh { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); line-height: 1.35; }
.big-card .tr { font-size: clamp(20px, 3vw, 30px); line-height: 1.5; color: var(--brand); padding-top: 18px; border-top: 1px solid var(--line); }
.big-card .en { font-size: 13px; color: var(--muted); line-height: 1.6; }
.big-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* 问答 */
.chat {
  min-height: 360px; max-height: 560px; overflow-y: auto; padding: 22px;
  display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth;
}
.chat-empty { margin: auto; text-align: center; max-width: 430px; color: var(--faint); font-size: 12.5px; line-height: 1.8; }
.chat-empty b { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink-2); margin-bottom: 8px; }
.msg { display: flex; gap: 10px; max-width: 88%; }
.msg.user { align-self: flex-end; justify-content: flex-end; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: .04em;
}
.bubble { padding: 13px 15px; border: 1px solid var(--line); background: var(--card); border-radius: 4px 13px 13px 13px; min-width: 0; }
.user-bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 13px 4px 13px 13px; }
.answer { font-size: 13.5px; line-height: 1.8; }
.answer p { margin: 0 0 8px; }
.answer p:last-child { margin-bottom: 0; }
.answer ul, .answer ol { padding-left: 18px; margin: 6px 0 9px; }
.answer li { margin: 4px 0; list-style: disc; }
.answer strong { font-weight: 650; }
.msg-meta { font-size: 9.5px; color: var(--faint); margin-top: 7px; }
.sources { margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 5px; }
.src-title { font-size: 9.5px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.src-link { display: flex; align-items: baseline; gap: 7px; font-size: 11px; color: var(--brand); padding: 4px 0; }
.src-link b { font-family: var(--mono); font-size: 9.5px; flex: 0 0 auto; }
.src-link span { overflow-wrap: anywhere; }
.src-link small { color: var(--faint); font-size: 9px; flex: 0 0 auto; }
.src-link:hover span { text-decoration: underline; }
.composer { display: flex; align-items: flex-end; gap: 9px; padding: 13px 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,.35); }
.composer textarea { min-height: 46px; max-height: 130px; resize: none; font-size: 13.5px; }
.composer .btn { min-height: 46px; flex: 0 0 auto; white-space: nowrap; }
.examples { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.examples .chip { font-size: 11.5px; }

/* 关于 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-block { padding: 24px; }
.about-block h2 { font-family: var(--serif); font-size: 23px; margin-bottom: 10px; }
.about-block h3 { font-size: 13px; margin: 18px 0 7px; }
.about-block p, .about-block li { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.about-block ul { padding-left: 17px; }
.about-block li { list-style: disc; margin: 4px 0; }
.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.arch div { border: 1px solid var(--line); background: var(--paper); border-radius: 7px; padding: 10px; font-size: 10.5px; line-height: 1.5; }
.arch b { display: block; font-family: var(--mono); font-size: 9px; color: var(--signal); margin-bottom: 4px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; border-radius: 9px; padding: 11px 18px;
  font-size: 13px; box-shadow: 0 14px 44px rgba(0,0,0,.26); z-index: 200;
  opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.15fr; gap: 34px; padding: 46px 0 36px; }
.footer-brand .brand-text strong { font-size: 21px; }
.footer-brand .logo-mark { color: #f29a7d; }
.footer-brand p { color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.8; margin-top: 14px; max-width: 360px; }
.site-footer h4 { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 8px 0 12px; }
.site-footer a { display: block; font-size: 12px; color: rgba(255,255,255,.72); padding: 4px 0; }
.site-footer a:hover { color: #f29a7d; }
.footer-note { color: rgba(255,255,255,.48); font-size: 11.5px; line-height: 1.75; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; color: rgba(255,255,255,.38); }

/* high contrast / font size */
html[data-contrast="high"] {
  --paper: #fff; --paper-2: #f0f0f0; --card: #fff; --card-strong: #fff;
  --ink: #000; --ink-2: #111; --muted: #333; --faint: #444;
  --line: #777; --line-strong: #333; --brand: #004d3b; --brand-deep: #002a22;
  --brand-soft: #d9f0e5; --signal: #b52f00; --signal-deep: #7a1f00;
  --signal-soft: #ffe0d2; --shadow: none; --shadow-sm: none;
}
html[data-contrast="high"] .hero { background: #001b16; }
html[data-contrast="high"] .site-footer { background: #000; }
html[data-contrast="high"] mark.term { background: #ffe08a; color: #000; }
html[data-contrast="high"] .route-panel { background: #001b16; }
html[data-contrast="high"] .exercise-bar { background: #000; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 44px); }
  .hero-grid { grid-template-columns: 1fr; padding: 42px 40px 0; }
  .hero-copy { padding-bottom: 0; }
  .route-panel { min-height: 300px; margin-top: 12px; }
  .route-svg { height: 240px; }
  .nav { gap: 0; margin-left: 0; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .head-guide { display: none; }
  .two-col { grid-template-columns: 1fr 300px; }
  .phrase-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .head-inner { min-height: 66px; gap: 12px; }
  .nav {
    position: fixed; left: 0; right: 0; top: 100px; z-index: 45;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 22px 18px; box-shadow: 0 18px 30px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; }
  .nav a.on::after { left: 6px; right: auto; width: 22px; bottom: 8px; }
  .nav-toggle { display: block; }
  .head-tools { gap: 5px; }
  .text-tool { width: 32px; height: 32px; }
  .exercise-right { display: none; }
  .position-grid, .feature-grid, .news-strip, .three-col { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap-card, .cap-card:nth-child(1), .cap-card:nth-child(2) { grid-column: span 1; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(2) { border-right: 0; }
  .flow-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow-step::before { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .tr-panes { grid-template-columns: 1fr; }
  .tr-pane + .tr-pane { border-left: 0; border-top: 1px solid var(--line); }
  .tr-pane textarea, .tr-out { min-height: 190px; }
  .src-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .packet-doc { padding: 22px; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  html { font-size: 15px; }
  .wrap { width: calc(100% - 30px); }
  .exercise-bar { font-size: 10.5px; }
  .exercise-inner { min-height: 30px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 20px; }
  .logo-mark { width: 36px; height: 36px; }
  .head-tools .text-tool:first-child { display: none; }
  .hero { margin-top: 14px; border-radius: 18px; }
  .hero-grid { padding: 30px 22px 0; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 58px); margin-top: 14px; }
  .hero-lead { font-size: 14px; line-height: 1.75; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .route-panel { min-height: 250px; }
  .route-svg { height: 200px; }
  .route-legend { grid-template-columns: 1fr; }
  .section { margin-top: 38px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .page-head { padding: 30px 0 18px; }
  .page-head h1 { font-size: 32px; }
  .position-grid, .feature-grid, .news-strip, .three-col, .phrase-grid, .cap-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
  .feature-band { padding: 26px 20px 24px; border-radius: 18px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .form-section { padding: 17px; }
  .form-section-head { flex-wrap: wrap; }
  .form-section-head p { margin-left: 0; width: 100%; }
  .tr-langbar select { flex: 1 1 120px; min-width: 0; }
  .tr-badge { width: 100%; margin-left: 0; }
  .tr-actions .spacer { display: none; }
  .table-scroll table.list { min-width: 640px; }
  table.list thead { display: none; }
  table.list, table.list tbody, table.list tr, table.list td { display: block; width: auto; }
  table.list tr { padding: 15px 16px; border-bottom: 1px solid var(--line); }
  table.list td { padding: 3px 0; border: 0; }
  table.list td::before {
    content: attr(data-label); display: block;
    font-size: 9px; letter-spacing: .08em; color: var(--faint); text-transform: uppercase;
    margin-bottom: 1px;
  }
  table.list td:first-child { font-size: 15px; }
  table.list td[data-label="语种"] { margin-top: 6px; }
  table.list tr:last-child td { border-bottom: 0; }
  .news-item { padding: 17px; }
  .corpus-item { padding: 15px; }
  .corpus-item .pair { grid-template-columns: 1fr; gap: 8px; }
  .msg { max-width: 96%; }
  .chat { padding: 15px; }
  .composer { padding: 10px; }
  .composer .btn { padding-inline: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 32px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .arch { grid-template-columns: 1fr 1fr; }
  .term-detail-grid, .lang-grid { grid-template-columns: 1fr; }
  .packet-doc { padding: 18px; }
  .code-input { flex-direction: column; }
  .code-input .btn { width: 100%; }
  .big-card { padding: 20px; }
}

@media print {
  body { background: #fff; }
  .exercise-bar, .site-header, .site-footer, .no-print, .toast, .modal-backdrop { display: none !important; }
  .view { padding: 0; }
  .wrap { width: 100%; }
  .packet-doc { border: 0; padding: 0; }
  .packet-preview { background: #fff; color: #000; border: 1px solid #999; }
  .packet-preview .pp-row span, .packet-preview .pp-stats span { color: #333; }
  .packet-preview .pp-note { background: #f3f3f3; color: #333; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
