/* ==========================================================================
   liaoqiu-fan.com.cn — /assets/site.css
   共享外壳：reset / tokens / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

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

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

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

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

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

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

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

/* ---------- tokens ---------- */
:root {
  --ink: #0B1230;
  --ink-deep: #070C1F;
  --grid: #1E2C55;
  --cyan: #2CE5D8;
  --turf: #4F8B62;
  --red: #E04B44;
  --clay: #C46A45;
  --stone: #8C97AC;
  --cream: #F2EFE6;
  --amber: #F0C24E;

  --wrap-max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: min(var(--wrap-max), calc(100% - var(--gutter) * 2));

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "Alibaba PuHuiTi",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --head-h: 112px;
}

/* ---------- page shell ---------- */
html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(30, 44, 85, .42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 44, 85, .42) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px;
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 10% -6%, rgba(44, 229, 216, .10), transparent 62%),
    radial-gradient(52% 38% at 94% 6%, rgba(79, 139, 98, .13), transparent 64%),
    radial-gradient(84% 58% at 50% 118%, rgba(196, 106, 69, .11), transparent 72%);
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--cream);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background: rgba(44, 229, 216, .28);
  color: var(--cream);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 14px;
  z-index: 300;
  padding: 11px 18px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- 展示型标题 ---------- */
.display {
  position: relative;
  padding-left: clamp(16px, 1.8vw, 24px);
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--cream);
}

.display::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  bottom: .16em;
  width: 8px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 13%, 100% 100%, 0 87%);
}

.display--tilt { transform: skewY(-1.5deg); }

.eyebrow,
.annotation {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--stone);
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* ---------- 内容宽度与网格 ---------- */
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: clamp(20px, 3vw, 40px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grid);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 40px);
}

.section-head__note {
  margin-left: auto;
  font-size: 14px;
  color: var(--stone);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), transform .2s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: var(--ink-deep);
}

.btn--primary:hover {
  background: #63f2e9;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(30, 44, 85, .35);
  border-color: var(--grid);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--stone);
}

.breadcrumb a { transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--grid);
}

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 72ch;
}

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

.prose p { color: rgba(242, 239, 230, .88); }

.prose h2 {
  margin-top: 2em;
  font-size: clamp(24px, 3vw, 34px);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 20px;
  color: var(--cream);
}

.prose ul { margin-top: .8em; }

.prose ul li {
  position: relative;
  padding-left: 24px;
  margin-top: .5em;
  color: rgba(242, 239, 230, .88);
}

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

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose strong { color: var(--cream); font-weight: 700; }

.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  letter-spacing: .04em;
  padding: 2px 6px;
  border: 1px solid var(--grid);
  border-radius: var(--r-sm);
  background: rgba(7, 12, 31, .6);
  color: var(--cyan);
}

.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--clay);
  color: rgba(242, 239, 230, .8);
}

/* ---------- 卡片 / 标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--grid);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(30, 44, 85, .42), rgba(7, 12, 31, .58));
  transition: border-color .24s var(--ease), transform .24s var(--ease);
}

.card:hover {
  border-color: rgba(44, 229, 216, .5);
  transform: translateY(-3px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--stone);
  white-space: nowrap;
}

.tag--cyan { border-color: rgba(44, 229, 216, .5); color: var(--cyan); }
.tag--turf { border-color: rgba(79, 139, 98, .65); color: #93d6a8; }
.tag--red { border-color: rgba(224, 75, 68, .6); color: #ff9089; }
.tag--amber { border-color: rgba(240, 194, 78, .6); color: var(--amber); }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 0 18px;
}

.filter-btn {
  padding: 7px 15px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background-color .2s var(--ease);
}

.filter-btn:hover {
  color: var(--cream);
  border-color: var(--stone);
}

.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-deep);
  font-weight: 700;
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
}

.is-filtered-out { display: none !important; }

[data-filter-option] {
  animation: filterShift .18s var(--ease) both;
}

@keyframes filterShift {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 图片容器（可复用基础规则） ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--grid);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(30, 44, 85, .75), rgba(7, 12, 31, .92)),
    var(--ink-deep);
}

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

.img-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 26px;
  height: 26px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  opacity: .85;
  pointer-events: none;
  z-index: 1;
}

.img-frame::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  border-bottom: 2px solid rgba(196, 106, 69, .85);
  border-right: 2px solid rgba(196, 106, 69, .85);
  pointer-events: none;
  z-index: 1;
}

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

@media (min-width: 860px) {
  .img-frame--hero { aspect-ratio: 4 / 3; }
}

/* ---------- 显现协议 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(7, 12, 31, .97), rgba(11, 18, 48, .93));
  border-bottom: 1px solid var(--grid);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(30, 44, 85, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 44, 85, .35) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--turf));
  pointer-events: none;
}

/* --- 上层 HUD --- */
.hud {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(30, 44, 85, .9);
}

.hud__inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px clamp(14px, 2vw, 28px);
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-right: auto;
  transition: opacity .2s var(--ease);
}

.brand:hover { opacity: .86; }

.brand__glyph {
  width: 22px;
  height: 22px;
  flex: none;
  background: linear-gradient(135deg, var(--cyan), var(--turf));
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}

.brand__stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cream);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--stone);
}

.hud__strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  border: 1px solid rgba(30, 44, 85, .9);
  border-radius: 999px;
  background: rgba(30, 44, 85, .28);
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone);
  white-space: nowrap;
}

.hud__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  animation: hudPulse 2.4s ease-in-out infinite;
}

@keyframes hudPulse {
  0%, 100% { opacity: .5; box-shadow: 0 0 0 0 rgba(44, 229, 216, .42); }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(44, 229, 216, 0); }
}

.hud__cta {
  flex: none;
  padding: 9px 18px;
  font-size: 14px;
}

/* --- 移动端栏目开关 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--grid);
  border-radius: var(--r-sm);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

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

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  transition: transform .24s 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(4px) rotate(45deg);
}

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

/* --- 下层导航 --- */
.site-nav {
  position: relative;
  z-index: 1;
  background: rgba(7, 12, 31, .55);
}

.site-nav__rail {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav__list a {
  position: relative;
  display: block;
  padding: 12px 15px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--stone);
  transition: color .2s var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 3px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}

.site-nav__list a:hover { color: var(--cream); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-nav__list a[aria-current="page"] {
  color: var(--cream);
  background: linear-gradient(90deg, rgba(44, 229, 216, .16), transparent 78%);
}

.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__feedback { display: none; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--grid);
  background: linear-gradient(180deg, rgba(7, 12, 31, .72), var(--ink-deep) 62%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--turf) 42%, var(--clay) 74%, transparent);
  opacity: .75;
}

.footer__grid {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(38px, 5vw, 68px) 0 clamp(32px, 4vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__glyph {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--cyan), var(--turf));
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  margin-bottom: 4px;
}

.footer__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cream);
}

.footer__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--grid);
}

.footer__contact li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 239, 230, .8);
}

.footer__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stone);
  padding-top: 2px;
}

.footer__val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

.footer__col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer__col h3::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--cyan);
}

.footer__col li + li { margin-top: 10px; }

.footer__col a {
  font-size: 15px;
  color: rgba(242, 239, 230, .78);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.footer__col a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer__legal {
  border-top: 1px solid var(--grid);
  background: rgba(7, 12, 31, .8);
}

.footer__legal-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--stone);
}

.footer__legal-inner a { transition: color .2s var(--ease); }
.footer__legal-inner a:hover { color: var(--cyan); }

.footer__copy { margin-left: auto; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .hud__strip { font-size: 12px; padding: 4px 12px; }
}

@media (max-width: 1040px) {
  .hud__strip { display: none; }
}

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

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

@media (max-width: 900px) {
  body {
    font-size: 16px;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .hud__inner { padding: 12px 0; }

  .hud__cta { display: none; }

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

  .site-header {
    position: sticky;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: rgba(7, 12, 31, .98);
    border-top: 1px solid var(--grid);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .site-nav__rail {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .site-nav__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav__list::-webkit-scrollbar { display: none; }

  .site-nav__list a {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid rgba(30, 44, 85, .95);
    border-radius: var(--r-sm);
    font-size: 13px;
    white-space: nowrap;
  }

  .site-nav__list a::after { display: none; }

  .site-nav__list a[aria-current="page"] {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(44, 229, 216, .1);
  }

  .site-nav__feedback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: var(--r-sm);
    background: var(--cyan);
    color: var(--ink-deep);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    white-space: nowrap;
  }

  /* 展开态：两列网格，全部栏目一次呈现 */
  .site-nav[data-open] .site-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .site-nav[data-open] .site-nav__list a {
    justify-content: center;
    text-align: center;
    border-color: var(--grid);
  }

  .footer__legal-inner { padding-bottom: calc(18px + 4px); }
}

@media (max-width: 620px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }

  .footer__copy { margin-left: 0; }

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

  .hud__strip { display: none; }

  .brand__tag { font-size: 10px; letter-spacing: .04em; }
}

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

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

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    transition: none !important;
  }
}
