/* ============================================================
   UNIBET赛事 · 共享外壳样式
   夜间赛事指挥中心 / 编辑部非对称版式 / 粗边框硬阴影
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-950: #0A1410;
  --ink-900: #0E1A15;
  --ink-800: #111D18;
  --ink-700: #16241E;
  --ink-600: #1B2B24;
  --ink-500: #24382F;

  --line: #2C4438;
  --line-strong: #3A5A49;

  --mist: #E9F2EA;
  --mist-dim: #C6D6CB;
  --gray: #9FB3A7;
  --gray-deep: #6E8278;

  --orange: #FF6B1A;
  --cyan: #22E0C8;
  --lime: #B8FF6A;
  --coral: #FF4D5E;
  --amber: #F5C542;

  --font-display: "HarmonyOS Sans SC Condensed", "Source Han Sans SC Heavy",
    "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell-max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.55);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--mist);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1200px 620px at 84% -12%, rgba(34, 224, 200, 0.09), transparent 70%),
    radial-gradient(920px 540px at 6% 4%, rgba(255, 107, 26, 0.08), transparent 72%),
    linear-gradient(rgba(159, 179, 167, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 179, 167, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--mist);
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { line-height: 1.85; }

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

::selection { background: var(--orange); color: var(--ink-950); }

#main-content { scroll-margin-top: 120px; }

/* ---------- 4. 工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.panel {
  background: var(--ink-800);
  border: 2px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-hard);
  padding: clamp(18px, 2.4vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.diag-mark {
  display: block;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 10px,
    transparent 10px 20px
  );
  transform: rotate(-1.6deg);
  transform-origin: left center;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 106, 0.16);
  flex: 0 0 auto;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--mist);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-line);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.btn--primary {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink-950);
  --btn-line: var(--orange);
}

.btn--primary:hover { --btn-bg: #ff8342; --btn-line: #ff8342; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--mist);
  --btn-line: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--ink-600);
  --btn-line: var(--cyan);
  --btn-fg: var(--mist);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

/* ---------- 6. 标签 / 状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--gray);
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.tag--live {
  color: var(--ink-950);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

.tag--info {
  color: var(--cyan);
  background: rgba(34, 224, 200, 0.09);
  border-color: rgba(34, 224, 200, 0.45);
}

.tag--warn {
  color: var(--amber);
  background: rgba(245, 197, 66, 0.1);
  border-color: rgba(245, 197, 66, 0.5);
}

.tag--alert {
  color: var(--coral);
  background: rgba(255, 77, 94, 0.1);
  border-color: rgba(255, 77, 94, 0.5);
}

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gray-deep);
}

.crumbs a {
  color: var(--gray);
  transition: color 0.18s var(--ease);
}

.crumbs a:hover { color: var(--cyan); }

.crumbs__sep { color: var(--line-strong); }

.crumbs [aria-current="page"] { color: var(--mist-dim); }

/* ---------- 8. 章节头与正文 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--mist);
}

.section-head__note {
  margin-left: auto;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

.prose {
  max-width: 64ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--mist-dim);
}

.prose p + p { margin-top: 1.1em; }

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--mist);
}

.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h3 { font-size: 1.2rem; }

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 1em;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

.prose ol { counter-reset: prose-ol; }

.prose ol li {
  position: relative;
  padding-left: 26px;
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 224, 200, 0.35);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.prose a:hover {
  color: var(--mist);
  border-bottom-color: var(--orange);
}

/* ---------- 9. 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-800);
  border: 2px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

.media-frame > img,
.media-frame > picture,
.media-frame > video,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(34, 224, 200, 0.16) 0%, transparent 42%),
    linear-gradient(300deg, rgba(255, 107, 26, 0.14) 0%, transparent 46%);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ============================================================
   10. 头部
   ============================================================ */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 220;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-950);
  background: var(--orange);
  border: 2px solid var(--ink-950);
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 20, 16, 0.9);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.24s var(--ease);
}

.site-header[data-condensed="true"] {
  background: rgba(10, 20, 16, 0.97);
}

.header-rail {
  max-height: 44px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(27, 43, 36, 0.92), rgba(17, 29, 24, 0.6));
  border-bottom: 1px solid rgba(44, 68, 56, 0.85);
  transition: max-height 0.28s var(--ease), opacity 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.site-header[data-condensed="true"] .header-rail {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-rail__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--shell-max);
  min-height: 32px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.rail-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rail-item--descriptor {
  margin-left: auto;
  color: var(--mist-dim);
  letter-spacing: 0.16em;
}

.rail-item--mono {
  margin-left: auto;
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 106, 0.14);
  flex: 0 0 auto;
}

.header-shell {
  padding: 12px 0;
  transition: padding 0.28s var(--ease);
}

.site-header[data-condensed="true"] .header-shell { padding: 7px 0; }

.header-shell__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--ink-600);
  border: 2px solid var(--orange);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.brand:hover .brand__mark {
  border-color: var(--cyan);
  box-shadow: 3px 3px 0 rgba(34, 224, 200, 0.35);
}

.brand__mark-line {
  display: block;
  width: 160%;
  height: 3px;
  background: var(--cyan);
  transform: rotate(-38deg);
  box-shadow: 0 0 10px rgba(34, 224, 200, 0.6);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.02em;
  color: var(--mist);
}

.brand__descriptor {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

/* 胶囊浮岛导航 */
.nav-island {
  position: relative;
  display: flex;
  align-items: center;
  margin-inline: auto;
  padding: 5px;
  background: var(--ink-600);
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(233, 242, 234, 0.04);
  transition: border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.nav-island:hover { border-color: var(--line-strong); }

.nav-toggle { display: none; }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  flex: 0 0 auto;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

.nav-island[data-open="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-island[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }

.nav-island[data-open="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-panel { display: block; }

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

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mist-dim);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--mist);
  background: var(--ink-500);
}

.nav-link[aria-current="page"] {
  color: var(--mist);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(44, 68, 56, 0.5);
  pointer-events: none;
  z-index: 2;
}

.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transition: width 0.12s linear;
}

/* ============================================================
   11. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 120px);
  color: var(--gray);
  font-size: 14px;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  border-top: 2px solid var(--line-strong);
}

.footer-stripe {
  height: 6px;
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
  background:
    repeating-linear-gradient(
      115deg,
      var(--orange) 0 26px,
      transparent 26px 52px,
      var(--cyan) 52px 78px,
      transparent 78px 104px
    ),
    var(--ink-700);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.25fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 44px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--mist);
}

.footer-brand__line {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-brand__desc {
  margin-top: 14px;
  max-width: 30ch;
  line-height: 1.8;
  color: var(--gray);
}

.footer-brand .btn { margin-top: 20px; }

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 1px;
  background: var(--line-strong);
  transition: width 0.18s var(--ease), background-color 0.18s var(--ease);
}

.footer-links a:hover {
  color: var(--mist);
  transform: translateX(2px);
}

.footer-links a:hover::before {
  width: 13px;
  background: var(--orange);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-deep);
}

.footer-contact__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-contact__value {
  font-size: 13.5px;
  color: var(--mist);
  word-break: break-word;
}

.copy-btn {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(34, 224, 200, 0.07);
  border: 1px solid rgba(34, 224, 200, 0.4);
  border-radius: 2px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.copy-btn:hover {
  color: var(--mist);
  background: rgba(34, 224, 200, 0.18);
}

.copy-btn[data-state="copied"] {
  color: var(--ink-950);
  background: var(--lime);
  border-color: var(--lime);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gray-deep);
}

.footer-legal__item { color: var(--gray-deep); }

.footer-legal__note {
  margin-left: auto;
  color: var(--gray);
}

/* ============================================================
   12. 焦点可见性
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible,
.copy-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.nav-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

/* ============================================================
   13. 响应式
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr; }
}

@media (max-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .footer-grid {
    grid-template-columns: 1.4fr 0.9fr 0.9fr;
    row-gap: 36px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .site-header {
    position: fixed;
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    border: 2px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(14, 26, 21, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.58);
  }

  .header-rail { display: none; }

  .header-progress { display: none; }

  .header-shell { padding: 8px 0; }

  .site-header[data-condensed="true"] .header-shell { padding: 8px 0; }

  .header-shell__inner {
    padding-inline: 13px;
    gap: 10px;
  }

  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: 16px; }
  .brand__descriptor { font-size: 9.5px; letter-spacing: 0.12em; }

  .nav-island {
    margin-left: auto;
    margin-right: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    color: var(--mist);
    background: var(--ink-600);
    border: 2px solid var(--line-strong);
    border-radius: 999px;
    transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
  }

  .nav-island[data-open="true"] .nav-toggle {
    border-color: var(--orange);
    background: var(--ink-500);
  }

  .nav-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(300px, calc(100vw - 44px));
    padding: 10px;
    background: var(--ink-700);
    border: 2px solid var(--line-strong);
    border-radius: 4px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s var(--ease), transform 0.24s var(--ease),
      visibility 0.2s var(--ease);
  }

  .nav-island[data-open="true"] .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 3px;
  }

  .nav-link[aria-current="page"] { background: var(--ink-500); }

  .nav-link[aria-current="page"]::after {
    left: auto;
    right: 12px;
    top: 50%;
    bottom: auto;
    width: 16px;
    transform: translateY(-50%);
  }

  .header-actions .btn {
    padding: 8px 11px;
    font-size: 11px;
    letter-spacing: 0.06em;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  }

  body { padding-bottom: 104px; }

  #main-content { scroll-margin-top: 24px; }

  .section-head__note {
    margin-left: 0;
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-col--contact { grid-column: 1 / -1; }

  .footer-legal__note { margin-left: 0; }
}

@media (max-width: 640px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .footer-brand__desc { max-width: none; }

  .media-frame { box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5); }

  .btn { padding: 11px 18px; font-size: 13px; }

  .section-head { gap: 8px 12px; }
}

@media (max-width: 380px) {
  .brand__descriptor { display: none; }
  .header-actions .btn { padding: 8px 9px; font-size: 10.5px; }
}

/* ============================================================
   14. 动效降级
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .btn:hover {
    transform: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  }

  .btn:active {
    transform: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  }

  .footer-links a:hover { transform: none; }

  .skip-link { transition: none; }

  .header-progress__bar { transition: none; }

  .nav-panel { transform: none; }
}
