/* ==========================================================================
   东盟应急救援语言培训平台 · 基础样式（CRI 资讯型）
   主色：深蓝 #0b3d7b；强调：中国红 #c8102e；底色：米白
   ========================================================================== */

:root {
  --navy: #0b3d7b;
  --navy-deep: #072a56;
  --navy-soft: #e8eff8;
  --navy-line: #c3d4ea;
  --red: #c8102e;
  --red-deep: #9c0c23;
  --red-soft: #fdecee;
  --gold: #b8860b;
  --ok: #1c7a4a;
  --warn: #a3641a;
  --danger: #a51c30;

  --ink: #1a2333;
  --ink-soft: #3c4759;
  --ink-faint: #66707f;
  --muted: #7b8494;

  --paper: #f4f2ec;
  --paper-2: #fbfaf7;
  --card: #ffffff;
  --line: #ddd9d0;
  --line-strong: #c2bdb2;

  --shadow: 0 14px 40px rgba(11, 61, 123, .10);
  --shadow-sm: 0 4px 14px rgba(11, 61, 123, .07);

  /* 立体层次：贴地投影 + 悬浮投影 + 顶部高光，用于卡片与按钮 */
  --depth-key: 0 2px 0 rgba(11, 61, 123, .06), 0 8px 20px rgba(11, 61, 123, .09);
  --depth-lift: 0 4px 0 rgba(11, 61, 123, .11), 0 18px 34px rgba(11, 61, 123, .17);
  --gloss: inset 0 1px 0 rgba(255, 255, 255, .85);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  --radius: 3px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html[data-a11y-size="large"] { font-size: 18.5px; }
html[data-a11y="contrast"] {
  --ink: #000;
  --ink-soft: #0a0a0a;
  --ink-faint: #1c1c1c;
  --muted: #202020;
  --paper: #fff;
  --paper-2: #fff;
  --card: #fff;
  --line: #000;
  --line-strong: #000;
  --navy: #05306b;
  --navy-soft: #eaf1fb;
  --red: #a3001b;
  --red-soft: #ffe8ec;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.72;
  font-size: 1rem;
}

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.24; letter-spacing: -.015em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  padding: 10px 16px; background: var(--navy); color: #fff;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 8px; }

.wrap { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; }
.narrow { width: min(880px, calc(100% - 44px)); margin-inline: auto; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.tiny { font-size: .72rem; }
.nowrap { white-space: nowrap; }
.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;
}

/* ---------------- 顶部条 / 页头 ---------------- */
/* 页头/页脚宿主仅作注入容器，用 display:contents 消除多余盒子，
   使内部的 .site-header（sticky）与 .site-footer 直接参与 body 布局。 */
#site-header, #site-footer { display: contents; }
.topbar { background: var(--navy-deep); color: #dbe6f5; font-size: .76rem; letter-spacing: .02em; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 34px; flex-wrap: wrap;
}
.topbar-note { display: flex; align-items: center; gap: 9px; color: #c2d5ee; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #ffcc66; }
.topbar-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.topbar-tools a, .topbar-tools button {
  color: #e6effb; background: transparent; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 2px; padding: 2px 8px; font-size: .73rem; text-decoration: none; line-height: 1.6;
}
.topbar-tools a:hover, .topbar-tools button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.topbar-tools .topbar-cta { background: #ffcc66; border-color: transparent; color: #4a3200; font-weight: 700; }
.topbar-tools .topbar-cta:hover { background: #ffdb8a; }

/* 语言切换器（页头/顶栏） */
.lang-pick {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 2px;
  padding: 1px 6px 1px 8px; background: rgba(255, 255, 255, .06);
}
.lang-pick > .mono { font-size: .8rem; line-height: 1; }
.lang-pick select {
  border: 0; background: transparent; color: #e6effb; font-size: .73rem;
  padding: 2px 1px; cursor: pointer; max-width: 11em;
}
.lang-pick select:focus-visible { outline: 2px solid #ffcc66; outline-offset: 1px; }
.lang-pick select option { color: #10233f; background: #fff; }
.mt-badge {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px;
  background: rgba(255, 204, 102, .18); border: 1px solid rgba(255, 204, 102, .5);
  color: #ffdb8a; font-size: .64rem; white-space: nowrap;
}
.mt-badge[hidden] { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 10px rgba(7, 42, 86, .18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-seal {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--serif);
  font-size: 1.35rem; font-weight: 700; border-radius: 3px; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; color: #fff; }
.brand-sub { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #a9c4e6; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1px; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; padding: 8px 11px; color: #e2ecf9;
  text-decoration: none; font-size: .88rem; border-radius: 2px; white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav a.active { background: var(--red); color: #fff; font-weight: 700; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .4);
  background: transparent; border-radius: 2px; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- 通用组件 ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 18px; border: 1px solid var(--navy);
  border-radius: 2px; background: linear-gradient(180deg, #ffffff, #eef2f8); color: var(--navy);
  font-size: .92rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--depth-key), var(--gloss);
  transition: background .18s, color .18s, transform .16s, border-color .18s, box-shadow .16s;
}
.btn:hover { background: linear-gradient(180deg, #ffffff, #e2ebf6); color: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--depth-lift), var(--gloss); }
.btn:active { transform: translateY(0); box-shadow: var(--depth-key), var(--gloss); }
.btn-primary { background: linear-gradient(180deg, #16569a, var(--navy)); border-color: var(--navy-deep); color: #fff; box-shadow: var(--depth-key), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-primary:hover { background: linear-gradient(180deg, #14508f, var(--navy-deep)); color: #fff; box-shadow: var(--depth-lift), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-signal { background: linear-gradient(180deg, #d81f3d, var(--red)); border-color: var(--red-deep); color: #fff; box-shadow: var(--depth-key), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-signal:hover { background: linear-gradient(180deg, #c81637, var(--red-deep)); border-color: var(--red-deep); color: #fff; box-shadow: var(--depth-lift), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink-soft); background: linear-gradient(180deg, #ffffff, #f6f5f1); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy-deep); }
.btn-sm { min-height: 32px; padding: 4px 11px; font-size: .8rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2);
  font-size: .72rem; color: var(--ink-soft); line-height: 1.65; white-space: nowrap;
}
.tag-signal { border-color: rgba(200, 16, 46, .35); color: var(--red-deep); background: var(--red-soft); }
.tag-navy { border-color: var(--navy-line); color: var(--navy); background: var(--navy-soft); }
.tag-gold { border-color: rgba(184, 134, 11, .4); color: #7a5a08; background: #faf2dc; }
.tag-ok { border-color: rgba(28, 122, 74, .35); color: var(--ok); background: #e6f2ea; }
.tag-warn { border-color: rgba(163, 100, 26, .38); color: var(--warn); background: #f8eeda; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card:hover { border-color: var(--line-strong); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }

.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 26px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.section-head p { margin: 8px 0 0; color: var(--ink-faint); max-width: 640px; }
.section-head .more { font-size: .84rem; font-family: var(--mono); text-decoration: none; color: var(--navy); white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.banner {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 15px;
  border: 1px solid var(--navy-line); border-left: 3px solid var(--navy);
  background: var(--navy-soft); color: var(--navy-deep); font-size: .86rem; line-height: 1.7;
}
.banner.red { border-color: rgba(200, 16, 46, .3); border-left-color: var(--red); background: var(--red-soft); color: #7a0f1f; }
.banner.gold { border-color: rgba(184, 134, 11, .38); border-left-color: var(--gold); background: #fbf4e3; color: #6d501f; }
.banner-icon { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-family: var(--mono); font-size: .72rem; margin-top: 2px; }

.page-head { padding: 46px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); max-width: 940px; }
.page-head .lead { margin: 16px 0 0; max-width: 800px; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.9; }
.page-head-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; align-items: center; }
.breadcrumb { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 6px; color: var(--line-strong); }

/* 数据条 */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--card); }
.stat { padding: 16px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; color: var(--navy); }
.stat span { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.stat.alt b { color: var(--red); }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.data th {
  position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 13px;
  background: var(--navy); color: #eef4fb; font-weight: 600; font-size: .75rem;
  letter-spacing: .04em; white-space: nowrap;
}
table.data td { padding: 10px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:nth-child(even) { background: rgba(221, 217, 208, .16); }
table.data tbody tr:hover { background: var(--navy-soft); }
table.data td.zh { font-weight: 600; min-width: 110px; }
.cell-empty { color: var(--line-strong); }

/* 工具栏 */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px; border: 1px solid var(--line); background: var(--card); border-radius: 3px; box-shadow: var(--depth-key); margin-bottom: 16px; }
.field {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong);
  background: var(--paper-2); padding: 0 9px; min-height: 38px; border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(11, 61, 123, .07);
  transition: border-color .18s, box-shadow .18s;
}
.field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy-soft), inset 0 1px 2px rgba(11, 61, 123, .07); }
.field label { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.field input, .field select { border: 0; background: transparent; min-height: 36px; padding: 0; outline: 0; font-size: .86rem; min-width: 0; }
.field.grow { flex: 1 1 240px; }
.field.grow input { width: 100%; }
.field select { min-width: 92px; }
.toolbar .spacer { flex: 1; }
.toolbar-note { font-size: .75rem; color: var(--muted); }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 2px 0; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.pager { display: flex; gap: 5px; }
.pager button { min-width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card); border-radius: 2px; font-size: .8rem; }
.pager button:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.pager button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* 空状态 / 加载 */
.empty { padding: 46px 22px; text-align: center; border: 1px dashed var(--line-strong); background: var(--paper-2); color: var(--muted); }
.empty b { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 7px; }
.loading { padding: 34px; text-align: center; color: var(--muted); font-size: .88rem; }

/* 通用栅格 */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 左右两栏（主内容 + 侧栏） */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.aside { position: sticky; top: 96px; }
.aside-card { border: 1px solid var(--line); background: var(--card); }
.aside-head { padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.aside-head h3 { font-size: .95rem; color: var(--navy); }
.aside-body { padding: 6px 0; }
.aside-item { display: block; padding: 10px 16px; border-bottom: 1px dashed var(--line); text-decoration: none; color: inherit; }
.aside-item:last-child { border-bottom: 0; }
.aside-item:hover { background: var(--navy-soft); }
.aside-item .t { font-size: .86rem; color: var(--ink); font-weight: 600; line-height: 1.5; }
.aside-item .m { margin-top: 4px; font-size: .72rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* 新闻/聚合条目卡 */
.entry { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry-date { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.entry-date b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); line-height: 1; }
.entry-date span { display: block; margin-top: 3px; }
.entry h3 { font-size: 1.08rem; line-height: 1.5; margin-bottom: 7px; }
.entry h3 a { color: inherit; text-decoration: none; }
.entry h3 a:hover { color: var(--red); }
.entry-summary { color: var(--ink-soft); font-size: .9rem; line-height: 1.8; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; align-items: center; }
.src-flag { font-size: 1rem; }
.entry-orig { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 9px; }
.entry-orig summary { cursor: pointer; font-size: .78rem; color: var(--navy); font-family: var(--mono); }
.entry-orig .o-title { margin-top: 8px; font-size: .84rem; color: var(--ink-soft); font-style: italic; }
.entry-orig .o-url { font-family: var(--mono); font-size: .74rem; word-break: break-all; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 46px; align-items: center; padding: 60px 0 50px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.12; letter-spacing: -.03em; max-width: 12em; }
.hero h1 .accent { color: var(--red); }
.hero-lead { margin: 20px 0 0; max-width: 36em; font-size: 1.05rem; line-height: 1.9; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-verbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-verbs .verb { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border: 1px solid var(--navy-line); border-radius: 999px; background: #fff; font-size: .82rem; color: var(--navy-deep); }
.hero-verbs .verb b { color: var(--red); font-family: var(--mono); }
.hero-visual {
  position: relative; border: 1px solid var(--navy-line); border-radius: 3px; background: var(--navy-deep);
  color: #dce8f7; padding: 22px; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .6;
}
.hero-visual .visual-head { position: relative; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: #9db8dd; margin-bottom: 16px; }
.hero-visual .visual-head .live { display: inline-flex; align-items: center; gap: 6px; color: #ffcc66; }
.hero-visual .visual-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffcc66; }
.hero-ports { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.port-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: .74rem; color: #dce8f7; }
.port-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ffcc66; }
.mini-kpi { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-kpi .kpi { border: 1px solid rgba(255,255,255,.16); border-radius: 2px; padding: 11px 13px; background: rgba(255,255,255,.05); }
.mini-kpi .kpi b { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.mini-kpi .kpi span { font-size: .72rem; color: #a9c4e6; }

/* 数字条（首页 4 数字） */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--card); }
.kpi-row .kpi { padding: 20px 22px; border-right: 1px solid var(--line); }
.kpi-row .kpi:last-child { border-right: 0; }
.kpi-row .kpi b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.05; }
.kpi-row .kpi span { display: block; margin-top: 5px; font-size: .78rem; color: var(--muted); }
.kpi-row .kpi em { display: block; margin-top: 6px; font-style: normal; font-size: .72rem; color: var(--red); font-family: var(--mono); }
/* 可点击的统计卡 */
.kpi-row a.kpi { position: relative; text-decoration: none; color: inherit; transition: background .18s, transform .18s, box-shadow .18s; }
.kpi-row a.kpi:hover { background: var(--paper-2); transform: translateY(-3px); z-index: 2; box-shadow: 0 12px 26px rgba(11, 61, 123, .15), var(--gloss); }
.kpi-row a.kpi:hover b { color: var(--red); }
.kpi-row a.kpi:focus-visible { outline: 2px solid var(--navy); outline-offset: -3px; }
.kpi-row a.kpi::after {
  content: "→"; position: absolute; top: 17px; right: 15px; font-family: var(--mono); font-size: .8rem; color: var(--navy);
  opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s;
}
.kpi-row a.kpi:hover::after { opacity: .75; transform: translateX(0); }

/* 入口大卡 */
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gate {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fcfbf8); border-radius: 3px; text-decoration: none; color: inherit;
  border-top: 3px solid var(--navy); box-shadow: var(--depth-key), var(--gloss);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.gate:hover { transform: translateY(-5px); box-shadow: var(--depth-lift), var(--gloss); border-top-color: var(--red); color: inherit; }
.gate:active { transform: translateY(-1px); box-shadow: var(--depth-key), var(--gloss); }
.gate .g-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--red); }
.gate h3 { font-size: 1.18rem; color: var(--navy); }
.gate p { margin: 0; font-size: .86rem; color: var(--ink-faint); line-height: 1.7; flex: 1; }
.gate .g-go { font-family: var(--mono); font-size: .78rem; color: var(--navy); }

/* 现场任务：按流程分组 + 图标 + 底部行动条 */
.entry-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.task-flow { display: grid; gap: 32px; }
.task-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; }
.task-group-head .tg-num {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--red);
  border: 1px solid var(--line-strong); padding: 3px 9px; border-radius: 999px;
}
.task-group-head h3 { font-size: 1.08rem; color: var(--navy); }
.task-group-head .tg-hint { font-size: .84rem; color: var(--muted); }
.gate-head { display: flex; align-items: center; gap: 12px; }
.gate-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-soft); color: var(--navy); border: 1px solid var(--line);
  transition: background .18s, color .18s, border-color .18s;
}
.gate-icon svg { width: 22px; height: 22px; display: block; }
.gate:hover .gate-icon { background: var(--navy); color: #fff; border-color: var(--navy); }
.gate h3 { margin: 3px 0 0; }
.gate-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.gate-foot .g-arrow { color: var(--navy); transition: transform .18s; }
.gate:hover .gate-foot .g-arrow { transform: translateX(3px); }

/* 术语高亮 */
.term-hit, mark.term-hit {
  background: #fff2b8; color: #6b4a00; padding: 0 2px; border-radius: 2px;
  border-bottom: 2px solid #e8b100; font-weight: 600;
}
.term-hit.tgt { background: var(--red-soft); color: var(--red-deep); border-bottom-color: var(--red); }
mark.term-hit[data-tip] { cursor: help; }

/* 翻译工作区 */
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.panel { border: 1px solid var(--line); background: var(--card); border-radius: 3px; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); flex-wrap: wrap; }
.panel-head h3 { font-size: .95rem; color: var(--navy); }
.panel-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.panel-body { padding: 0; flex: 1; }
textarea.editor {
  width: 100%; min-height: 240px; border: 0; padding: 15px; outline: 0; resize: vertical;
  font-size: 1rem; line-height: 1.8; background: var(--card); font-family: var(--sans);
}
.result-body { padding: 15px; min-height: 240px; font-size: 1rem; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.result-body .placeholder { color: var(--muted); }
.lang-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: var(--card); margin-bottom: 16px; flex-wrap: wrap; }
.lang-bar .field { min-width: 210px; }
.lang-bar .swap { width: 38px; height: 38px; border: 1px solid var(--line-strong); background: var(--card); border-radius: 50%; font-size: 1rem; color: var(--navy); }
.lang-bar .swap:hover { border-color: var(--red); color: var(--red); }
.switch-line { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--ink-soft); }

.hit-list { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.hit-list h4 { font-size: .78rem; color: var(--muted); font-family: var(--mono); letter-spacing: .06em; margin-bottom: 7px; }
.hit-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hit-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--navy-line); border-radius: 999px; background: var(--navy-soft); font-size: .76rem; color: var(--navy-deep); }
.hit-chip b { color: var(--red); }

/* 问答 */
.qa-ask { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.qa-ask .field.grow { flex: 1 1 420px; min-height: 48px; }
.qa-answer { border: 1px solid var(--line); background: var(--card); border-radius: 3px; padding: 20px; }
.qa-answer h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 12px; }
.qa-text { font-size: .98rem; line-height: 1.9; white-space: pre-wrap; }
.qa-sources { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.qa-src {
  display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 3px;
  margin-bottom: 9px; background: var(--paper-2);
}
.qa-src .n { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .78rem; font-family: var(--mono); }
.qa-src .b { flex: 1; min-width: 0; }
.qa-src .t { font-size: .9rem; font-weight: 600; color: var(--ink); }
.qa-src .u { font-family: var(--mono); font-size: .74rem; word-break: break-all; color: var(--navy); margin-top: 3px; }
.qa-src .s { margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .74rem; color: var(--muted); }
.score-bar { display: inline-block; width: 74px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.score-bar i { display: block; height: 100%; background: var(--navy); }

/* 详情抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(10, 18, 30, .5); z-index: 200; display: none; }
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); background: var(--card);
  z-index: 201; box-shadow: -18px 0 50px rgba(0,0,0,.25); transform: translateX(102%);
  transition: transform .25s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; }
.drawer-head h3 { font-size: 1.02rem; color: #fff; }
.drawer-close { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; border-radius: 2px; font-size: 1.05rem; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.detail-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.detail-row dt { color: var(--muted); font-size: .78rem; }
.detail-row dd { margin: 0; word-break: break-word; }

/* 语料句对卡 */
.pair-card { border: 1px solid var(--line); background: var(--card); border-radius: 3px; padding: 16px; margin-bottom: 14px; }
.pair-card:hover { border-color: var(--line-strong); }
.pair-src { font-size: .98rem; line-height: 1.8; color: var(--ink); }
.pair-tgt { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: .98rem; line-height: 1.8; color: var(--navy-deep); }
.pair-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; align-items: center; }
.pair-langs { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.lang-tag { display: inline-block; min-width: 26px; text-align: center; font-family: var(--mono); font-size: .7rem; padding: 1px 5px; border-radius: 2px; background: var(--navy-soft); color: var(--navy); border: 1px solid var(--navy-line); }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--line-strong); background: var(--card); border-radius: 2px;
  padding: 9px 11px; font-size: .9rem; outline: 0; width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy-soft); }
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row .hint { font-size: .72rem; color: var(--muted); }

/* 提示条 / toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--navy-deep); color: #fff; padding: 11px 20px; border-radius: 3px;
  font-size: .86rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 300; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red-deep); }
.toast.ok { background: var(--ok); }

/* 页脚 */
.site-footer { margin-top: 60px; background: var(--navy-deep); color: #b9cbe4; border-top: 3px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding: 46px 0 30px; }
.footer-brand .brand-name { color: #fff; font-size: 1.05rem; }
.footer-brand .brand-sub { color: #8fb0d8; }
.footer-brand p { margin-top: 14px; font-size: .84rem; line-height: 1.8; color: #9db4d4; }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; font-family: var(--sans); }
.footer-col a { display: block; padding: 4px 0; color: #b9cbe4; text-decoration: none; font-size: .84rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 26px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .74rem; color: #8fa9cd; flex-wrap: wrap;
}
.footer-admin { color: #6f87a8; text-decoration: none; opacity: .75; }
.footer-admin:hover { color: #cfe0f5; text-decoration: underline; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 32px); }
  .narrow { width: calc(100% - 32px); }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 8px 14px 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .workerbench, .workbench { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4, .kpi-row, .footer-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .entry-date { display: flex; align-items: baseline; gap: 8px; }
  .entry-date b { font-size: 1.1rem; }
  /* 页头：品牌可收缩，避免撑破视口 */
  .header-inner { gap: 12px; min-height: 62px; }
  .brand { flex-shrink: 1; min-width: 0; gap: 9px; }
  .brand-seal { width: 38px; height: 38px; font-size: 1.15rem; }
  .brand-text { min-width: 0; }
  .brand-name, .brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .04em; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .entry-grid, .entry-grid.cols-2, .kpi-row, .footer-grid, .form-grid, .stat-row { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .page-head-meta .tag { white-space: normal; }
  .tag { white-space: normal; max-width: 100%; }
  .brand-seal { width: 34px; height: 34px; font-size: 1.05rem; }
  .hero { padding-top: 6px; }
  .section { padding: 42px 0; }
  .topbar-tools { gap: 6px; }
  .lang-pick select { max-width: 8em; }
}
@media (max-width: 380px) {
  .topbar-inner { gap: 8px; }
  .topbar-tools { gap: 5px; }
  .topbar-tools a, .topbar-tools button { padding: 2px 6px; font-size: .68rem; }
  .lang-pick { padding: 1px 4px; }
  .lang-pick select { max-width: 6.4em; font-size: .68rem; }
  .brand-seal { width: 30px; height: 30px; font-size: .95rem; }
  .brand-name { font-size: .94rem; }
}
