/* ============================================================
   半岛赛场 — 全站共享样式 /assets/site.css
   底色分区 · 切角面板 · 8° 斜线 · 等宽索引
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5, h6,
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; }

/* ---------- 2. Tokens ---------- */
:root {
  --navy-900: #0A1826;
  --navy-800: #0F2438;
  --navy-700: #16334B;
  --orange: #FF6B1A;
  --orange-deep: #C24A08;
  --cyan: #2BE0C8;
  --cyan-deep: #1C7A6E;
  --sand: #E8DCC4;
  --cloud: #F5F7F9;
  --mist: #6C8798;

  --bg: var(--navy-900);
  --surface: var(--navy-800);
  --surface-2: var(--navy-700);
  --text: var(--sand);
  --heading: var(--cloud);
  --line: rgba(108, 135, 152, 0.30);
  --line-soft: rgba(108, 135, 152, 0.18);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --cmd-h: 44px;
  --scale-h: 30px;
  --cut: 12px;
  --skew: 8deg;
  --maxw: 1280px;
  --pad-x: clamp(14px, 3vw, 32px);
  --radius-focus: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base / typography ---------- */
html { background: var(--bg); }

body {
  min-height: 100%;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(245, 247, 249, 0.028) 0px,
    rgba(245, 247, 249, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 左右固定刻度框线 */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0,
    rgba(108, 135, 152, 0.42) 12%,
    rgba(108, 135, 152, 0.42) 88%,
    transparent 100%
  );
}
body::before { left: 0; }
body::after { right: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }

p { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cloud); }

strong { color: var(--cloud); font-weight: 700; }

::selection {
  background: rgba(255, 107, 26, 0.38);
  color: var(--cloud);
}

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

#main-content:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--cloud);
}
.data-num--live { color: var(--orange); }
.data-num--sync { color: var(--cyan); }

.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
  text-transform: lowercase;
}
.idx--accent { color: var(--orange); }
.idx--sync { color: var(--cyan); }

.slant-mark {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--orange);
  transform: skewX(calc(-1 * var(--skew)));
  transform-origin: left center;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line-soft);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.02em;
  color: var(--cloud);
}

.section__lead {
  margin-top: 8px;
  color: var(--mist);
  font-size: 14px;
  max-width: 48ch;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.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)); }

.prose { max-width: 34em; }
.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose ul { list-style: none; }
.prose li { margin-bottom: 0.5em; }
.prose ul li::before {
  content: "—";
  color: var(--orange);
  margin-right: 0.6em;
  font-family: var(--font-mono);
}

/* ---------- 5. Components ---------- */
.panel {
  position: relative;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(108, 135, 152, 0.28);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--raised { background: var(--surface-2); }
.panel--sand { background: var(--sand); color: var(--navy-900); }
.panel--sand h2, .panel--sand h3 { color: var(--navy-900); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--cloud);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #1A0B02;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, 0.9);
}
.btn--primary:hover {
  background: var(--orange-deep);
  color: var(--cloud);
  box-shadow: inset 0 0 0 1px var(--orange-deep);
}

.btn--ghost {
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(108, 135, 152, 0.55);
}
.btn--ghost:hover {
  color: var(--cyan);
  background: rgba(43, 224, 200, 0.07);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.btn:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: -4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: rgba(108, 135, 152, 0.12);
  box-shadow: inset 0 0 0 1px rgba(108, 135, 152, 0.28);
}
.tag--live { color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255, 107, 26, 0.45); }
.tag--sync { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(43, 224, 200, 0.45); }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(108, 135, 152, 0.55);
}
.breadcrumb a { color: var(--mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--sand); }

/* 可复用图片容器 —— 页面阶段直接放 img 或占位 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1px rgba(108, 135, 152, 0.35);
  clip-path: polygon(
    14px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 4 / 5; }

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.94);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(10, 24, 38, 0.26) 0,
    rgba(10, 24, 38, 0.26) 1px,
    transparent 1px,
    transparent 3px
  );
}

.media-frame__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* 可展开内容组 */
.disclosure {
  border-top: 1px solid var(--line-soft);
}
.disclosure:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.disclosure__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.18s var(--ease);
}
.disclosure__trigger:hover { color: var(--cloud); }

.disclosure__sign {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--orange);
}

.disclosure__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.18s var(--ease);
}
.disclosure.is-open .disclosure__panel { grid-template-rows: 1fr; }

.disclosure__inner {
  overflow: hidden;
  min-height: 0;
}
.disclosure__inner > * { padding-bottom: 18px; }

/* ---------- 6. Header ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--orange);
  color: #1A0B02;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.16s var(--ease);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}
.skip-link:focus { transform: translateY(0); color: #1A0B02; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
}

.cmdbar {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 24, 38, 0.97);
}

.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  height: var(--cmd-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--cloud);
}
.brand__mark {
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: skewX(calc(-1 * var(--skew)));
  transform-origin: center;
  align-self: center;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--cloud);
}
.brand__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* 主导航 */
.nav {
  display: flex;
  align-items: center;
  margin-inline: auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: var(--cmd-h);
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(108, 135, 152, 0.75);
  transition: color 0.16s var(--ease);
}

.nav__link:hover { color: var(--cloud); }
.nav__link:hover .nav__idx { color: var(--orange); }

.nav__link[aria-current="page"] {
  color: var(--cloud);
  background: rgba(22, 51, 75, 0.6);
}
.nav__link[aria-current="page"] .nav__idx { color: var(--cyan); }
.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 2px;
  background: var(--cyan);
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--orange);
}

/* 移动端面板内状态 */
.nav__status {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.nav__clock time { color: var(--orange); }

/* 命令栏状态灯 */
.cmdbar__status {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: statusPulse 2.4s ease-in-out infinite;
}
.status__text { color: var(--mist); }

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(43, 224, 200, 0.55); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(43, 224, 200, 0); }
}

.cmdbar__clock {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--mist);
  white-space: nowrap;
}
.cmdbar__clock time { color: var(--orange); }

/* 汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-left: auto;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(108, 135, 152, 0.5);
  clip-path: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
  transition: color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 10px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 4.25px; }
.nav-toggle__bars span:nth-child(3) { bottom: 0; }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  z-index: 3;
}
.scroll-progress[data-visible="true"] { opacity: 1; }

/* 次级刻度条 */
.scalebar {
  background: var(--navy-800);
  border-bottom: 1px solid var(--line-soft);
}

.scalebar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--scale-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.scalebar__chapter {
  flex: 0 0 auto;
  white-space: nowrap;
}
.scalebar__idx {
  color: var(--orange);
  margin-right: 6px;
}

.scalebar__ticks {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    to right,
    rgba(108, 135, 152, 0.6) 0,
    rgba(108, 135, 152, 0.6) 1px,
    transparent 1px,
    transparent 16px
  );
  background-repeat: repeat-x;
  background-size: 16px 7px;
  background-position: 0 calc(100% - 8px);
}

.scalebar__meta {
  flex: 0 0 auto;
  white-space: nowrap;
  color: rgba(108, 135, 152, 0.9);
}

body.nav-open { overflow: hidden; }

/* ---------- 7. Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--navy-900);
  border-top: 1px solid var(--line);
}

/* 闸口条带 */
.gatebar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.gate {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px clamp(14px, 2vw, 26px);
  border-right: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.gate:last-child { border-right: 0; }

.gate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 0.22s var(--ease);
}
.gate:hover::before,
.gate:focus-visible::before { width: 100%; }
.gate:hover { background: var(--navy-800); color: var(--cloud); }

.gate__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.gate__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.gate__arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--orange);
  transition: transform 0.18s var(--ease);
}
.gate:hover .gate__arrow { transform: translateX(4px); }

/* 页脚主体 */
.footer-body { background: var(--navy-900); }

.footer-body__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 4.5vw, 56px) var(--pad-x) clamp(28px, 3.5vw, 44px);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--mist);
  margin-bottom: 16px;
}

.footer-brand .brand--footer { margin-bottom: 14px; }

.footer-brand__note {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  max-width: 22em;
}

.footer-brand__meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.contact-list { display: grid; gap: 10px; }

.contact-list__row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(108, 135, 152, 0.25);
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.contact-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sand);
}
.contact-list dd .mono { color: var(--cloud); }

.footer-note {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

.legal-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.legal-list__link {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(108, 135, 152, 0.4);
  padding-bottom: 2px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.legal-list__link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.footer-legal__cta { width: 100%; }

/* 页脚底条 */
.footer-base {
  background: var(--navy-800);
  border-top: 1px solid var(--line-soft);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--pad-x);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.footer-base__brand { color: var(--sand); }
.footer-base__icp { color: rgba(108, 135, 152, 0.95); }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1199px) and (min-width: 1024px) {
  .nav__idx { display: none; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .site-header[data-open] .nav-toggle {
    color: var(--orange);
    box-shadow: inset 0 0 0 1px var(--orange);
  }
  .site-header[data-open] .nav-toggle__bars span:nth-child(1) {
    transform: translateY(4.25px) rotate(45deg);
  }
  .site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .site-header[data-open] .nav-toggle__bars span:nth-child(3) {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .cmdbar__status { display: none; }
  .brand__meta { display: none; }

  .nav {
    position: fixed;
    top: calc(var(--cmd-h) + var(--scale-h) + 1px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    display: block;
    margin-inline: 0;
    padding: 8px var(--pad-x) 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--navy-900);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
      visibility 0.18s linear;
  }

  .site-header[data-open] .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    height: auto;
    padding: 15px 12px 15px 14px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__idx { font-size: 11px; color: var(--mist); }

  .nav__link[aria-current="page"] { background: rgba(22, 51, 75, 0.45); }
  .nav__link[aria-current="page"]::before {
    top: 9px;
    bottom: 9px;
    width: 2px;
  }
  .nav__link[aria-current="page"]::after { display: none; }

  .nav__status { display: flex; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-body__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .gatebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gate:nth-child(2n) { border-right: 0; }
  .gate:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }

  .footer-body__inner { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 600px) {
  body::before,
  body::after { display: none; }

  .scalebar__meta { display: none; }
  .scalebar { --scale-h: 28px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .gatebar { grid-template-columns: minmax(0, 1fr); }
  .gate {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 16px var(--pad-x);
  }
  .gate:last-child { border-bottom: 0; }
  .gate:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }

  .contact-list__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .footer-base__inner { justify-content: flex-start; }

  .section__head { align-items: flex-start; }
}

/* ---------- 9. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .status__dot { box-shadow: none; }
}
