/* ============================================================
   38娱乐会馆 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 楼层轨道头部 / 纸色页脚 / 基础组件
   ============================================================ */

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

:root {
  --ink: #07090C;
  --ink-2: #0D1420;
  --ink-3: #151F2E;
  --paper: #F4EBDD;
  --paper-edge: #E4D6BF;
  --cyan: #43F5E7;
  --violet: #8B5CF6;
  --gold: #D9A441;
  --slate: #98A2B3;
  --green: #34D399;
  --red: #F87171;

  --line: rgba(244, 235, 221, 0.14);
  --line-soft: rgba(244, 235, 221, 0.08);
  --line-cyan: rgba(67, 245, 231, 0.22);
  --ink-text: #14181F;

  --rail-w: 280px;
  --topbar-h: 64px;
  --page-max: 1240px;
  --gutter: clamp(18px, 4vw, 56px);

  --font-head: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-paper: 0 22px 46px -30px rgba(0, 0, 0, 0.95);

  color-scheme: dark;
}

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

@media (min-width: 901px) and (max-width: 1180px) {
  :root { --rail-w: 244px; }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(58% 46% at 82% 0%, rgba(67, 245, 231, 0.10), transparent 68%),
    radial-gradient(48% 44% at 10% 98%, rgba(139, 92, 246, 0.12), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 901px) {
  body { padding-left: var(--rail-w); }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.15em; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection {
  background: var(--cyan);
  color: #04120F;
}

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

/* ---------- 通用工具 ---------- */

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

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 16px);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(67, 245, 231, 0.65), rgba(139, 92, 246, 0.32), transparent);
}

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.page-title {
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: #C3CCD9;
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 3px;
  background: var(--cyan);
  color: #04120F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 头部：夜间楼层轨道 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: var(--rail-w);
  padding: 26px 22px 22px;
  overflow-y: auto;
  border-right: 1px solid var(--line-cyan);
  background-color: #0A101A;
  background-image:
    linear-gradient(180deg, rgba(67, 245, 231, 0.07), transparent 42%),
    repeating-linear-gradient(180deg, rgba(244, 235, 221, 0.045) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #0D1420 0%, #0A0F18 62%, #07090C 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 22%;
  right: 0;
  width: 1px;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(67, 245, 231, 0.75), transparent);
  pointer-events: none;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 品牌 */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 3px;
  background: var(--cyan);
  color: #04120F;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(67, 245, 231, 0.5),
    0 12px 30px -14px rgba(67, 245, 231, 0.95);
}

.brand__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand__line {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

/* 移动导航按钮 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line-cyan);
  border-radius: 3px;
  background: rgba(67, 245, 231, 0.08);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover { background: rgba(67, 245, 231, 0.16); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.24s var(--ease), top 0.24s var(--ease);
}

.nav-toggle__bars::before { top: 2px; }
.nav-toggle__bars::after { top: 9px; }

.site-header[data-open] .nav-toggle__bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* 主导航 */

.site-header__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.nav-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.nav-caption::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 245, 231, 0.5), transparent);
}

.nav-caption__index { color: var(--cyan); }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { list-style: none; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 12px 11px 16px;
  border-radius: 3px;
  color: #C9D2DF;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(67, 245, 231, 0.9);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(67, 245, 231, 0.06);
}

.nav-link:hover::before { transform: scaleY(0.5); }

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

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(67, 245, 231, 0.16), rgba(67, 245, 231, 0));
}

.nav-link[aria-current="page"]::before { transform: scaleY(1); }

.nav-link__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
  transition: color 0.22s var(--ease);
}

.nav-link[aria-current="page"] .nav-link__num { color: var(--cyan); }

.nav-link__label { min-width: 0; }

/* 轨道底部 */

.site-header__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 3px;
  background: var(--cyan);
  color: #04120F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 14px 32px -18px rgba(67, 245, 231, 0.95);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.rail-cta::after {
  content: "→";
  font-family: var(--font-mono);
}

.rail-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -16px rgba(67, 245, 231, 1);
}

.utility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-link {
  color: var(--slate);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.utility-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(67, 245, 231, 0.6);
}

.rail-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: #6F7C8F;
}

/* ---------- 页脚：暖纸手册插页 ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 9vw, 128px);
  border-top: 3px solid var(--cyan);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(20, 24, 31, 0.05) 0 1px, transparent 1px 36px),
    linear-gradient(180deg, #F8F1E5, #EFE3D0);
  color: var(--ink-text);
}

.site-footer :focus-visible {
  outline-color: #0B0E13;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 28px;
}

.site-footer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20, 24, 31, 0.18);
}

.footer-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5C6675;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  margin-top: clamp(26px, 3.6vw, 44px);
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0B0E13;
}

.footer-brand__desc {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(67, 245, 231, 0.9);
  font-size: 14px;
  line-height: 1.8;
  color: #3A424F;
}

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

.footer-contact__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7585;
}

.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: #14181F;
  overflow-wrap: anywhere;
}

.footer-col__title {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3A424F;
}

.footer-col__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-links li { list-style: none; }

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: #2C333E;
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: #0B0E13;
  border-bottom-color: rgba(20, 24, 31, 0.55);
  transform: translateX(2px);
}

.footer-col__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(20, 24, 31, 0.2);
  font-size: 12.5px;
  line-height: 1.7;
  color: #5C6675;
}

.footer-service-note {
  margin-top: clamp(22px, 3vw, 34px);
  padding: 14px 16px;
  border: 1px dashed rgba(20, 24, 31, 0.28);
  border-left: 3px solid var(--violet);
  background: rgba(255, 255, 255, 0.36);
  font-size: 12.5px;
  line-height: 1.75;
  color: #414A58;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid rgba(20, 24, 31, 0.18);
  font-size: 12.5px;
  color: #4B5462;
}

.footer-legal,
.footer-legal-note { letter-spacing: 0.02em; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--cyan);
  color: #04120F;
  box-shadow: 0 16px 34px -20px rgba(67, 245, 231, 0.95);
}

.btn--primary:hover { box-shadow: 0 20px 38px -18px rgba(67, 245, 231, 1); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 235, 221, 0.3);
}

.btn--ghost:hover {
  border-color: rgba(67, 245, 231, 0.7);
  color: var(--cyan);
}

.btn--paper {
  background: var(--paper);
  border-color: var(--paper-edge);
  color: #0B0E13;
}

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #C7B6FF;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.tag--cyan {
  border-color: rgba(67, 245, 231, 0.5);
  background: rgba(67, 245, 231, 0.12);
  color: var(--cyan);
}

.tag--gold {
  border-color: rgba(217, 164, 65, 0.55);
  background: rgba(217, 164, 65, 0.14);
  color: var(--gold);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumb li::after {
  content: "/";
  color: #3C4657;
}

.breadcrumb li:last-child::after { content: none; }

.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 卡片 ---------- */

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-cyan);
  border-radius: 5px;
  background-image: linear-gradient(160deg, rgba(21, 31, 46, 0.95), rgba(13, 20, 32, 0.88));
  background-color: var(--ink-2);
}

.card--paper {
  border-color: var(--paper-edge);
  background-image: none;
  background-color: var(--paper);
  color: var(--ink-text);
  box-shadow: var(--shadow-paper);
}

.card--paper h2,
.card--paper h3,
.card--paper h4 { color: #0B0E13; }

.card--paper a { color: #0B0E13; }

/* ---------- 网格 ---------- */

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: minmax(0, 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: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 图片容器基础规则 ---------- */

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-cyan);
  border-radius: 4px;
  background-color: var(--ink-3);
  background-image: linear-gradient(160deg, #182337 0%, #0A1018 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0) 42%, rgba(7, 9, 12, 0.78) 100%);
}

.media-frame--glow::before {
  content: "";
  position: absolute;
  inset: -28% -12% auto -12%;
  z-index: 1;
  height: 72%;
  pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(67, 245, 231, 0.28), transparent 70%);
}

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(244, 235, 221, 0.42);
  background-image: repeating-linear-gradient(135deg, rgba(67, 245, 231, 0.06) 0 1px, transparent 1px 10px);
}

.media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 阅读进度光带 ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 2px;
  pointer-events: none;
  background: rgba(67, 245, 231, 0.08);
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(67, 245, 231, 0.7);
}

@media (min-width: 901px) {
  .scroll-progress { left: var(--rail-w); }
}

/* ---------- 滚动显现协议 ---------- */

[data-reveal].is-reveal-pending {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 移动端：轨道塌陷为吸顶顶栏 ---------- */

@media (max-width: 900px) {
  body { padding-left: 0; }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-height: 100dvh;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-cyan);
    background-color: #0A101A;
    background-image:
      linear-gradient(180deg, rgba(67, 245, 231, 0.09), transparent 46%),
      linear-gradient(180deg, #0D1420, #080C14);
  }

  .site-header::after { display: none; }

  .site-header__top {
    min-height: var(--topbar-h);
    padding: 10px var(--gutter);
    gap: 14px;
  }

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

  .site-header__nav,
  .site-header__foot { display: none; }

  .site-header[data-open] .site-header__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px var(--gutter) 4px;
    flex: 0 0 auto;
  }

  .site-header[data-open] .site-header__foot {
    display: flex;
    padding: 14px var(--gutter) 20px;
  }

  .nav-link { padding: 12px 12px 12px 16px; }

  .brand__line { display: none; }

  .scroll-progress { left: 0; }
}

@media (min-width: 901px) {
  .site-header__foot { margin-top: auto; }
}

/* ---------- 减少动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal].is-reveal-pending {
    opacity: 1;
    transform: none;
  }
}

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