/* ============================================================
   九游体育安装 · /assets/site.css
   共享外壳：reset / tokens / 排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B1F17;
  --ink-deep: #07130D;
  --panel: #0E2A20;
  --grid: #1E5B45;
  --neon: #00E5C3;
  --amber: #FFB13B;
  --brick: #C0392B;
  --paper: #E8F5EF;
  --paper-dim: #C3DFD5;
  --muted: #8FB3A6;
  --glow: #57FFE0;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Heiti SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "Courier New", monospace;

  --max: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* ---------- base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}
html[data-nav-open] { overflow: hidden; }

body {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, rgba(30, 91, 69, .10) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(30, 91, 69, .10) 0 1px, transparent 1px 48px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--paper);
}
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 30px); }
h4 { font-size: 17px; }
i, em { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

::selection { background: var(--neon); color: var(--ink-deep); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 400;
  background: var(--neon);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 300;
  pointer-events: none;
  background: linear-gradient(90deg, var(--brick), var(--amber) 55%, var(--neon));
}

/* ============================================================
   头部 · 双层紧凑命令栏
   ============================================================ */
.cmdb {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(7, 19, 13, .99) 0%, rgba(11, 31, 23, .96) 100%);
  border-bottom: 1px solid var(--grid);
}

.cmdb__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
}

.cmdb__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brandmark__glyph {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--neon);
  color: var(--ink-deep);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  flex: none;
}
.brandmark__text { display: block; }
.brandmark__name {
  display: block;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--paper);
}
.brandmark__sub {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  line-height: 1.5;
}
.brandmark:hover .brandmark__name { color: var(--glow); }

.cmdb__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--grid);
  white-space: nowrap;
}
.lamp {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  flex: none;
}

/* ---- 主导航 ---- */
.nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: stretch; gap: 2px; }
.nav__item { display: flex; }
.nav__link {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav__idx {
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--grid);
  transition: color .18s var(--ease);
}
.nav__label { white-space: nowrap; }
.nav__link:hover { color: var(--paper); border-bottom-color: var(--grid); background: rgba(0, 229, 195, .05); }
.nav__link:hover .nav__idx { color: var(--neon); }
.nav__link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
  background: rgba(0, 229, 195, .07);
}
.nav__link[aria-current="page"] .nav__idx { color: var(--neon); }

/* ---- 工具区 ---- */
.cmdb__tools { display: flex; align-items: center; gap: 8px; flex: none; }

.cmdbtn {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--paper);
  border: 1px solid var(--grid);
  padding: 7px 13px;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.cmdbtn:hover { color: var(--neon); border-color: var(--neon); }
.cmdbtn[aria-expanded="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink-deep);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 34px;
  border: 1px solid var(--grid);
  padding: 0 9px;
  transition: border-color .18s var(--ease);
}
.burger__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transition: transform .22s var(--ease), opacity .18s var(--ease), background-color .18s var(--ease);
}
.burger[aria-expanded="true"] { border-color: var(--neon); }
.burger[aria-expanded="true"] .burger__line { background: var(--neon); }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- 三口径切换条 ---- */
.axisbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-top: 1px solid rgba(30, 91, 69, .65);
  overflow-x: auto;
  scrollbar-width: none;
}
.axisbar::-webkit-scrollbar { display: none; }
.axisbar__cap {
  flex: none;
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--muted);
  padding-right: 12px;
  margin-right: 8px;
  border-right: 1px solid var(--grid);
}
.axis {
  flex: none;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 13px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.axis:hover { color: var(--paper); background: rgba(0, 229, 195, .07); }
.axis[data-axis-btn="stoppage"][aria-pressed="true"] { background: var(--brick); color: #fff; border-color: var(--brick); }
.axis[data-axis-btn="rounds"][aria-pressed="true"] { background: var(--neon); color: var(--ink-deep); border-color: var(--neon); }
.axis[data-axis-btn="youth"][aria-pressed="true"] { background: var(--amber); color: var(--ink-deep); border-color: var(--amber); }
.axis--reset {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--grid);
}
.axis--reset:hover { color: var(--neon); }

/* ---- 索引抽屉 ---- */
.drawer {
  border-top: 1px solid var(--grid);
  background: rgba(7, 19, 13, .98);
}
.drawer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.drawer__cap {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--neon);
}
.drawer__field {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--grid);
  background: var(--ink-deep);
}
.drawer__field .mono { font-size: 10px; letter-spacing: .18em; color: var(--grid); flex: none; }
.drawer__input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13px;
  color: var(--paper);
}
.drawer__input::placeholder { color: var(--grid); }
.drawer__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}
.drawer__list li { background: var(--ink-deep); }
.drawer__list li[hidden] { display: none; }
.drawer__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 15px;
  font-size: 13px;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.drawer__list a:hover { color: var(--neon); background: rgba(0, 229, 195, .08); }
.drawer__list .mono { font-size: 9px; color: var(--grid); flex: none; }
.drawer__empty {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--brick);
}

/* ============================================================
   页脚
   ============================================================ */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ink-deep);
  border-top: 1px solid var(--grid);
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(260px, 45%);
  height: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(0, 229, 195, 0));
}

.site-foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.35fr;
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}

.site-foot__brand { display: flex; flex-direction: column; gap: 12px; }

.fcol { display: flex; flex-direction: column; }
.fcol__cap {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--grid);
  padding-bottom: 12px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(30, 91, 69, .55);
}
.fcol__list { display: flex; flex-direction: column; gap: 9px; }
.fcol__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.fcol__list a:hover { color: var(--neon); border-bottom-color: var(--neon); }

.fcol__note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--paper-dim);
  max-width: 34em;
}
.fcol__note--dim { color: var(--muted); font-size: 12px; }

.fcol--contact { min-width: 0; }

.fcontact { display: flex; flex-direction: column; }
.fcontact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 91, 69, .45);
}
.fcontact__key {
  flex: none;
  min-width: 62px;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--grid);
}
.fcontact__val {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 13px;
  color: var(--paper-dim);
  word-break: break-all;
}
.copybtn {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--neon);
  border: 1px solid rgba(0, 229, 195, .38);
  padding: 3px 9px;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.copybtn:hover { background: var(--neon); color: var(--ink-deep); }
.copybtn[data-copied="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-deep);
}

.site-foot__base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(30, 91, 69, .55);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: baseline;
}
.foot-legal { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.foot-legal--dim { color: var(--grid); max-width: 62ch; }

/* ============================================================
   通用布局组件
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 880px; }

.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.1em; color: var(--paper-dim); }
.prose h2, .prose h3 { margin: 1.7em 0 .6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.1em; list-style: square; }
.prose li { color: var(--paper-dim); margin-bottom: .5em; }
.prose li::marker { color: var(--neon); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}
.bento__cell {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--grid);
  padding: clamp(16px, 2vw, 26px);
  min-width: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--grid);
  padding: clamp(16px, 2vw, 26px);
  min-width: 0;
}
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--grid);
  padding: clamp(16px, 2vw, 24px);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--neon); transform: translateY(-2px); }

/* ---- 章节 ---- */
.sec { padding-block: clamp(40px, 6vw, 88px); }
.sec__head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid rgba(30, 91, 69, .6);
}
.sec__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--neon);
}
.sec__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--neon);
}
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--muted);
}
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--paper-dim);
  max-width: 46em;
}

/* ---- 章节高亮协议 ---- */
[data-section] {
  scroll-margin-top: 128px;
  transition: box-shadow .45s var(--ease);
}
[data-section][data-inview="true"] {
  box-shadow: inset 3px 0 0 var(--neon);
}

/* ---- 标签与贴条 ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  padding: 3px 8px;
  border: 1px solid var(--grid);
  color: var(--muted);
  white-space: nowrap;
}
.tag--neon { color: var(--neon); border-color: rgba(0, 229, 195, .5); background: rgba(0, 229, 195, .08); }
.tag--amber { color: var(--amber); border-color: rgba(255, 177, 59, .5); background: rgba(255, 177, 59, .08); }
.tag--brick { color: #E8776A; border-color: rgba(192, 57, 43, .7); background: rgba(192, 57, 43, .16); }

.strip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 5px 13px;
  background: var(--paper);
  color: var(--ink-deep);
  transform: rotate(-1.6deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease);
}
.strip:hover { transform: rotate(-1.6deg) translateY(-2px); }
.strip--amber { background: var(--amber); }
.strip--brick { background: var(--brick); color: #fff; }

/* ---- 表格 ---- */
.tablewrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--grid);
  background: var(--panel);
}
.dtable { width: 100%; min-width: 560px; font-size: 14px; }
.dtable th, .dtable td {
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(30, 91, 69, .55);
  vertical-align: top;
}
.dtable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--neon);
  white-space: nowrap;
}
.dtable td { color: var(--paper-dim); }
.dtable tbody tr:hover td { background: rgba(0, 229, 195, .06); }
.dtable tbody tr:last-child td { border-bottom: 0; }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--paper);
  border: 1px solid var(--grid);
  background: transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { color: var(--neon); border-color: var(--neon); }
.btn--solid { background: var(--neon); border-color: var(--neon); color: var(--ink-deep); }
.btn--solid:hover { background: var(--glow); border-color: var(--glow); color: var(--ink-deep); }
.btn--amber { border-color: rgba(255, 177, 59, .7); color: var(--amber); }
.btn--amber:hover { background: var(--amber); border-color: var(--amber); color: var(--ink-deep); }
.btn--brick { border-color: rgba(192, 57, 43, .8); color: #E8776A; }
.btn--brick:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---- 面包屑 ---- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--grid); }
.crumbs a:hover { color: var(--neon); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* ---- 图片容器（页面阶段放图） ---- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--ink-deep);
  border: 1px solid var(--grid);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--grid);
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 229, 195, .06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(0, 229, 195, .06) 0 1px, transparent 1px 24px),
    radial-gradient(120% 100% at 18% 0%, rgba(0, 229, 195, .16), transparent 62%);
}
.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 13px;
  background: rgba(7, 19, 13, .92);
  border-top: 1px solid var(--grid);
  border-right: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--paper);
}

/* ---- 口径聚焦（由 site.js 在 <html> 写 data-axis） ---- */
html[data-axis] [data-axis] {
  transition: opacity .3s var(--ease), filter .3s var(--ease), box-shadow .3s var(--ease);
}
html[data-axis="stoppage"] [data-axis]:not([data-axis="stoppage"]),
html[data-axis="rounds"] [data-axis]:not([data-axis="rounds"]),
html[data-axis="youth"] [data-axis]:not([data-axis="youth"]) {
  opacity: .42;
  filter: saturate(.45);
}
html[data-axis="stoppage"] [data-axis="stoppage"] { box-shadow: inset 0 0 0 1px rgba(192, 57, 43, .6); }
html[data-axis="rounds"] [data-axis="rounds"] { box-shadow: inset 0 0 0 1px rgba(0, 229, 195, .55); }
html[data-axis="youth"] [data-axis="youth"] { box-shadow: inset 0 0 0 1px rgba(255, 177, 59, .55); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .grid12, .bento { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .drawer__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 110px; }

  .cmdb__status { display: none; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    display: block;
    max-height: 74vh;
    overflow-y: auto;
    padding: 10px 0 30px;
    background: var(--ink-deep);
    border-top: 2px solid var(--neon);
    transform: translateY(102%);
    transition: transform .3s var(--ease);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter); }
  .nav__item { display: block; }
  .nav__link {
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 8px;
    font-size: 17px;
    color: var(--paper-dim);
    border-bottom: 1px solid rgba(30, 91, 69, .5);
    border-left: 2px solid transparent;
  }
  .nav__link:hover { border-bottom-color: rgba(30, 91, 69, .5); }
  .nav__link[aria-current="page"] {
    border-bottom-color: rgba(30, 91, 69, .5);
    border-left-color: var(--neon);
    color: var(--neon);
    background: rgba(0, 229, 195, .06);
  }
  .nav__idx { font-size: 11px; }

  .burger { display: flex; }

  .axisbar { min-height: 42px; }
  .axis--reset { margin-left: 12px; }

  .site-foot__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .grid12, .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .drawer__list { grid-template-columns: 1fr; }
  .drawer__list a { padding: 12px 14px; }
  .site-foot__inner { grid-template-columns: 1fr; }
  .site-foot__base { flex-direction: column; align-items: flex-start; }
  .brandmark__sub { display: none; }
  .cmdb__bar { min-height: 58px; }
}

/* ============================================================
   动效偏好 / 打印
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .card:hover, .strip:hover { transform: none; }
  .nav { transition: none; }
}

@media print {
  .cmdb, .site-foot::before, .scroll-progress, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
