/* ==========================================================================
   欢云体育 / HUANYUN SPORTS — 共享站点样式  /assets/site.css
   视觉概念：夜间赛事数据战术板。轨道 → 画布 → 底板。
   ========================================================================== */

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

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

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

ol, ul {
  list-style: none;
}

img, picture, video, canvas, svg {
  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;
}

/* --------------------------------------------------------------------------
   2. 设计变量
   -------------------------------------------------------------------------- */
:root {
  /* 色板 */
  --c-void:      #050B18;
  --c-panel:     #0A1426;
  --c-grid:      #1B2C47;
  --c-cyan:      #35E0E8;
  --c-ice:       #B9FAF7;
  --c-orange:    #FF7A3D;
  --c-lime:      #7CFF6B;
  --c-amber:     #FFD166;
  --c-paper:     #F3F7FB;
  --c-ink:       #0B1A2E;

  --c-text:      #E8F0FA;
  --c-text-dim:  #B7C4D8;
  --c-text-faint:#8AA0BC;

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --rail-w: 96px;
  --maxw:   1440px;
  --pad:    clamp(20px, 4vw, 48px);
  --gap:    clamp(16px, 2vw, 28px);
  --r:      2px;

  /* 动效 */
  --ease:   cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 180ms;
  --t-mid:  280ms;

  /* 结构线 */
  --line: 1px solid var(--c-grid);
}

/* --------------------------------------------------------------------------
   3. 基础排版
   -------------------------------------------------------------------------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background: var(--c-void);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--c-paper);
}

h1 { font-size: clamp(56px, 8vw, 128px); font-weight: 300; }
h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 300; }
h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }

p {
  max-width: 68ch;
}

strong, b {
  font-weight: 500;
  color: var(--c-paper);
}

a {
  transition: color var(--t-fast) var(--ease);
}

::selection {
  background: var(--c-cyan);
  color: var(--c-void);
}

/* --------------------------------------------------------------------------
   4. 通用工具类
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--c-cyan);
  color: var(--c-void);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  border-radius: var(--r);
  transform: translateY(calc(-100% - 24px));
  transition: transform var(--t-fast) var(--ease);
}

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

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* --------------------------------------------------------------------------
   5. 页头：桌面端左侧章节轨道
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  background:
    radial-gradient(150% 34% at 50% 0%, rgba(53, 224, 232, 0.11), transparent 72%),
    var(--c-void);
  border-right: var(--line);
}

.site-header__bar {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 8px 16px;
}

/* 品牌 --------------------------------------------------------------- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--c-cyan);
  color: var(--c-void);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: clip-path var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.brand:hover .brand__mark {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  background: var(--c-ice);
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.brand__cn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--c-paper);
  white-space: nowrap;
}

.brand__en {
  display: none;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--c-text-faint);
  white-space: nowrap;
}

/* 工具栏 ------------------------------------------------------------- */
.site-header__tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bar-link {
  display: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--c-ice);
  white-space: nowrap;
}

.bar-link:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

.brand__badge {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--c-grid);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--c-amber);
  white-space: nowrap;
}

/* 汉堡按钮（桌面端隐藏） --------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--c-grid);
  border-radius: var(--r);
  color: var(--c-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: var(--c-void);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* 桌面端章节轨道 ----------------------------------------------------- */
.rail {
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px 0 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 6px;
  color: var(--c-text-dim);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--c-ice);
  transform: translateY(-50%);
  transition: height var(--t-mid) var(--ease), background-color var(--t-fast) var(--ease);
}

.rail__link:hover {
  color: var(--c-ice);
  background: rgba(53, 224, 232, 0.07);
}

.rail__link:hover::before {
  height: 14px;
}

.rail__link[aria-current="page"] {
  color: var(--c-cyan);
  background: rgba(53, 224, 232, 0.09);
}

.rail__link[aria-current="page"]::before {
  height: 26px;
  background: var(--c-cyan);
  box-shadow: 0 0 10px rgba(53, 224, 232, 0.8);
}

.rail__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0.65;
}

.rail__name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

/* 移动端抽屉（桌面端隐藏） ------------------------------------------- */
.drawer {
  display: none;
}

/* 阅读进度条 --------------------------------------------------------- */
.scroll-meter {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 2px;
  background: rgba(27, 44, 71, 0.55);
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: 100%;
  height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--c-cyan), var(--c-orange));
  transition: height 90ms linear;
}

/* --------------------------------------------------------------------------
   6. 页脚：数据底板
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 0;
  color: var(--c-text-dim);
  background-color: var(--c-void);
  background-image:
    radial-gradient(95% 120% at 10% 0%, rgba(53, 224, 232, 0.09), transparent 58%),
    linear-gradient(to right, rgba(27, 44, 71, 0.45) 1px, transparent 1px);
  background-size: auto, clamp(56px, 8vw, 108px) 100%;
  border-top: var(--line);
  overflow: hidden;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* 品牌行 ------------------------------------------------------------- */
.site-footer__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(24px, 4vw, 44px);
}

.site-footer__brandline {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--c-paper);
}

.site-footer__brandline em {
  font-style: normal;
  color: var(--c-cyan);
}

.site-footer__summary {
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-dim);
}

/* 导航 + 联系 --------------------------------------------------------- */
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(32px, 4vw, 56px);
  border-top: var(--line);
  border-bottom: var(--line);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col__title {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-grid);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  color: var(--c-text-faint);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col__link {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-dim);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.footer-col__link:hover {
  color: var(--c-cyan);
  transform: translateX(3px);
}

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--c-text-faint);
}

.contact-list dd {
  font-size: 13px;
  line-height: 1.65;
  color: var(--c-text);
  word-break: break-word;
}

/* 底栏 --------------------------------------------------------------- */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: clamp(20px, 3vw, 32px);
}

.site-footer__legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--c-text-faint);
}

.site-footer__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: var(--c-text-faint);
  opacity: 0.7;
}

/* 返回顶部 ----------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--c-cyan);
  border-radius: var(--r);
  background: rgba(10, 20, 38, 0.92);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              visibility var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--c-cyan);
  color: var(--c-void);
}

.to-top__arrow {
  font-size: 13px;
  line-height: 1;
}

.to-top__label {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. 通用布局与基础组件
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 120px);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 72px);
}

.on-paper {
  --c-text:       #0B1A2E;
  --c-text-dim:   #35496A;
  --c-text-faint: #556A8A;
  --c-grid:       #D2DEEB;
  background: var(--c-paper);
  color: var(--c-ink);
}

.on-paper h1,
.on-paper h2,
.on-paper h3,
.on-paper h4,
.on-paper strong {
  color: var(--c-ink);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.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)); }

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--c-panel);
  border: 1px solid var(--c-grid);
  border-radius: var(--r);
}

.panel--focus {
  border-color: var(--c-cyan);
  box-shadow:
    0 0 0 1px rgba(53, 224, 232, 0.18),
    0 18px 40px -28px rgba(53, 224, 232, 0.65);
}

.coord {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

/* 按钮 --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--c-cyan);
  color: var(--c-void);
}

.btn--primary:hover {
  background: var(--c-ice);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--c-orange);
  color: #1A0A02;
}

.btn--accent:hover {
  background: #FF9460;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--c-grid);
  color: var(--c-ice);
}

.btn--ghost:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(53, 224, 232, 0.08);
}

/* 面包屑 ------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--c-text-faint);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__link {
  color: var(--c-text-dim);
}

.breadcrumbs__link:hover {
  color: var(--c-cyan);
}

.breadcrumbs__sep {
  color: var(--c-text-faint);
  opacity: 0.6;
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-cyan);
}

/* 响应式图片容器 ------------------------------------------------------ */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--c-grid);
  border-radius: var(--r);
  background:
    linear-gradient(135deg, rgba(53, 224, 232, 0.10), transparent 55%),
    repeating-linear-gradient(0deg, rgba(27, 44, 71, 0.6) 0 1px, transparent 1px 32px),
    var(--c-panel);
  aspect-ratio: 16 / 9;
}

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

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

.media__caption {
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-text-faint);
}

/* --------------------------------------------------------------------------
   8. 断点：平板 / 手机
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-left: 0;
  }

  /* 页头转为吸顶横栏 */
  .site-header {
    position: sticky;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(5, 11, 24, 0.94);
    border-right: 0;
    border-bottom: var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .site-header__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px var(--pad);
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

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

  .brand__cn {
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .brand__en {
    display: block;
    font-size: 8px;
  }

  .site-header__tools {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .bar-link {
    display: inline-block;
  }

  .brand__badge {
    padding: 3px 6px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .rail {
    display: none;
  }

  /* 抽屉 */
  .drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--c-void);
    border-bottom: var(--line);
    transition: max-height var(--t-mid) var(--ease), visibility var(--t-mid) var(--ease);
  }

  .drawer[data-open="true"] {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: visible;
  }

  .drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px var(--pad) 6px;
  }

  .drawer__title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    line-height: 1.4;
    color: var(--c-text-faint);
  }

  .drawer__count {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    line-height: 1.4;
    color: var(--c-cyan);
  }

  .drawer__list {
    padding: 0 var(--pad) 6px;
  }

  .drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--c-grid);
    color: var(--c-text);
    transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
  }

  .drawer__link:hover {
    color: var(--c-cyan);
    padding-left: 10px;
  }

  .drawer__link[aria-current="page"] {
    color: var(--c-cyan);
  }

  .drawer__link[aria-current="page"] .drawer__name {
    font-weight: 700;
  }

  .drawer__idx {
    flex: 0 0 auto;
    width: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 1.4;
    color: var(--c-cyan);
    opacity: 0.8;
  }

  .drawer__name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .drawer__quick {
    display: flex;
    gap: 10px;
    padding: 16px var(--pad) 20px;
  }

  .drawer__quick-link {
    flex: 1 1 0;
    padding: 11px 8px;
    text-align: center;
    border: 1px solid var(--c-grid);
    border-radius: var(--r);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    line-height: 1.4;
    color: var(--c-ice);
    transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  }

  .drawer__quick-link:hover {
    background: rgba(53, 224, 232, 0.10);
    border-color: var(--c-cyan);
  }

  .drawer__quick-link--key {
    background: rgba(53, 224, 232, 0.12);
    border-color: var(--c-cyan);
    color: var(--c-cyan);
  }

  /* 进度条转为顶部横条 */
  .scroll-meter {
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    width: auto;
    height: 2px;
  }

  .scroll-meter__fill {
    width: var(--progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
    transition: width 90ms linear;
  }

  body.is-nav-open {
    overflow: hidden;
  }

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

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__meta {
    letter-spacing: 0.14em;
  }

  .to-top {
    padding: 9px 12px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .nav-toggle__label {
    display: none;
  }

  .nav-toggle {
    padding: 9px 10px;
  }

  .bar-link {
    font-size: 10px;
  }
}

/* --------------------------------------------------------------------------
   9. 无障碍：降低动效
   -------------------------------------------------------------------------- */
@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;
  }
}
