/* ============================================================
   电玩城棋牌 · 共享外壳样式 /assets/site.css
   赛博电玩城夜间档案夹：深空底 + 霓虹青 + 电玩紫 + 荧光粉 + 琥珀金
   ============================================================ */

:root {
  --ink: #0A0E1A;
  --ink-2: #111A2E;
  --ink-3: #0d1526;
  --panel: rgba(17, 26, 46, 0.86);
  --panel-soft: rgba(17, 26, 46, 0.55);
  --cyan: #00E5FF;
  --violet: #7B2FF7;
  --pink: #FF2E93;
  --amber: #FFB300;
  --ice: #E6F7FF;
  --haze: #8FA6BF;
  --steel: #1E3A5F;
  --green: #3DFFA2;
  --shell-w: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Courier New", monospace;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --edge: 2px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--ice);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(180deg, rgba(230, 247, 255, 0.022) 0 1px, transparent 1px 4px),
    radial-gradient(70vw 46vw at 84% -10%, rgba(123, 47, 247, 0.22), transparent 70%),
    radial-gradient(58vw 40vw at 6% 2%, rgba(0, 229, 255, 0.14), transparent 72%),
    linear-gradient(180deg, #0A0E1A 0%, #090D18 60%, #070A12 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg { max-width: 100%; display: block; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ice);
}

h1 { font-size: clamp(30px, 5.6vw, 60px); }
h2 { font-size: clamp(24px, 3.8vw, 42px); }
h3 { font-size: clamp(19px, 2.4vw, 26px); }
h4 { font-size: clamp(16px, 1.8vw, 19px); }

p { margin: 0 0 1em; }

a { color: var(--cyan); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: #7CF3FF; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }

strong { color: #FFFFFF; }

hr { border: 0; border-top: 1px solid var(--steel); margin: 32px 0; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

#main-content { display: block; }

/* ---------- 基础版式工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(34px, 6vw, 72px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 179, 0, 0.8);
}

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

.rule-cut {
  height: 1px;
  border: 0;
  margin: clamp(22px, 4vw, 46px) 0;
  background: linear-gradient(90deg, transparent, var(--steel) 12%, var(--cyan) 50%, var(--steel) 88%, transparent);
  opacity: 0.7;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--edge);
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.45);
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: #04121A;
}

/* ---------- 顶部阅读进度 ---------- */
.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: rgba(30, 58, 95, 0.45);
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--pink));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.75);
  transition: width 0.1s linear;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.62) 100%);
  border-bottom: 1px solid rgba(30, 58, 95, 0.6);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-solid {
  background: rgba(8, 12, 22, 0.975);
  border-bottom-color: var(--steel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: var(--header-h);
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ice);
}

.brand:hover { color: var(--ice); }

.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--steel);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(123, 47, 247, 0.26));
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.16), 0 0 18px rgba(0, 229, 255, 0.18);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.85);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255, 46, 147, 0.9);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.28;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  color: var(--haze);
}

/* 导航 */
.site-nav {
  margin-inline-start: auto;
  margin-inline-end: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--haze);
  border-radius: var(--edge);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--ice);
  background: rgba(0, 229, 255, 0.07);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* 头部右侧 */
.header-side {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.header-stamp {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--haze);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(61, 255, 162, 0.9);
  animation: dot-pulse 2.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.stamp-mono { color: var(--haze); }
.stamp-sep { color: var(--steel); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--steel);
  border-radius: var(--edge);
  color: var(--ice);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

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

.nav-toggle__label { line-height: 1; }

.site-header[data-open="true"] .nav-toggle {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.14);
}

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

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

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--edge);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.24s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #2BB8FF 55%, var(--violet));
  color: #04121A;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.26);
}

.btn--primary:hover {
  color: #04121A;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 229, 255, 0.42);
}

.btn--ghost {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--steel);
  color: var(--ice);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.13);
}

.btn--accent {
  background: var(--pink);
  color: #15040E;
  box-shadow: 0 8px 24px rgba(255, 46, 147, 0.3);
}

.btn--accent:hover {
  color: #15040E;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 46, 147, 0.45);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 13px;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: 1px;
}

.tag--violet {
  color: #C7A8FF;
  background: rgba(123, 47, 247, 0.16);
  border-color: rgba(123, 47, 247, 0.5);
}

.tag--amber {
  color: var(--amber);
  background: rgba(255, 179, 0, 0.12);
  border-color: rgba(255, 179, 0, 0.42);
}

.tag--pink {
  color: #FF87BF;
  background: rgba(255, 46, 147, 0.13);
  border-color: rgba(255, 46, 147, 0.45);
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--edge);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--steel);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.07), rgba(123, 47, 247, 0.07));
}

.panel-body {
  padding: clamp(16px, 2.4vw, 28px);
}

/* ---------- 提示条 ---------- */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding: 14px 18px;
  background: rgba(255, 179, 0, 0.08);
  border: 1px solid rgba(255, 179, 0, 0.35);
  border-left: 3px solid var(--amber);
  border-radius: var(--edge);
}

.notice__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--amber);
  white-space: nowrap;
}

.notice__text {
  margin: 0;
  font-size: 14px;
  color: rgba(230, 247, 255, 0.86);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--haze);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--steel);
}

.breadcrumb a { color: var(--haze); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* ---------- 正文 ---------- */
.prose {
  max-width: 38em;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(230, 247, 255, 0.9);
}

.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  color: var(--ice);
}

.prose ul,
.prose ol { padding-left: 1.2em; }

.prose li { margin-bottom: 0.45em; }

.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.45);
  text-underline-offset: 3px;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: var(--edge);
  background-color: var(--ink-2);
  background-image: linear-gradient(135deg, rgba(0, 229, 255, 0.13), rgba(123, 47, 247, 0.18));
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(180deg, rgba(230, 247, 255, 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(10, 14, 26, 0) 48%, rgba(10, 14, 26, 0.62) 100%);
}

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

/* ---------- 显现（需要 JS 追加 .js） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(44px, 7vw, 92px);
  padding: clamp(34px, 5vw, 62px) 0 26px;
  border-top: 1px solid var(--steel);
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.2) 0%, rgba(17, 26, 46, 0.62) 34%, rgba(6, 9, 16, 0.98) 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(280px, 46%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 60%, transparent);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.65);
}

.footer-stack {
  display: grid;
  gap: clamp(12px, 2vw, 22px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.footer-card {
  position: relative;
  padding: 20px 22px 22px;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--edge);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.footer-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  width: 38px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.footer-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.footer-brand {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.footer-desc {
  margin: 0;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--haze);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.footer-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.footer-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--haze);
}

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

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(30, 58, 95, 0.7);
}

.footer-contact li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--haze);
  opacity: 0.78;
}

.contact-value {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ice);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(18px, 3vw, 28px);
  padding-top: 16px;
  border-top: 1px dashed rgba(30, 58, 95, 0.85);
  font-size: 12.5px;
  color: var(--haze);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--haze);
}

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

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--steel);
  border-radius: var(--edge);
  background: rgba(17, 26, 46, 0.95);
  color: var(--cyan);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s, border-color 0.2s var(--ease), box-shadow 0.24s var(--ease);
}

.to-top:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.4);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top__glyph {
  font-size: 17px;
  line-height: 1;
}

/* ---------- 平板 ---------- */
@media (min-width: 760px) {
  .footer-stack { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .footer-card--brand { grid-column: 1 / -1; }
}

@media (min-width: 1060px) {
  .footer-stack { grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr) minmax(0, 1.1fr); }
  .footer-card--brand { grid-column: auto; }
}

/* ---------- 移动端导航 ---------- */
@media (max-width: 899px) {
  :root { --header-h: 64px; }

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

  .header-stamp { display: none; }

  .header-side { margin-inline-start: auto; }

  .brand-sub { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 8px var(--gutter) 22px;
    background: rgba(7, 11, 20, 0.985);
    border-bottom: 1px solid var(--steel);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

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

  .nav-list {
    display: grid;
    gap: 0;
    justify-items: stretch;
  }

  .nav-link {
    display: block;
    padding: 15px 6px;
    font-size: 15.5px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.6);
    border-radius: 0;
    background: none;
  }

  .nav-link:hover { background: rgba(0, 229, 255, 0.06); }

  .nav-link[aria-current="page"] {
    background: rgba(0, 229, 255, 0.08);
    box-shadow: inset 3px 0 0 var(--cyan);
    padding-left: 14px;
  }
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 900px) {
  .header-side { margin-inline-start: 0; }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s var(--ease);
  }

  .nav-link:hover::after { transform: scaleX(1); }
  .nav-link[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- 降低动态 ---------- */
@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .read-progress__bar { transition: none; }
}
