/* ==========================================================================
   狗万安卓版 · /assets/site.css
   共享外壳样式：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

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

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

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

ul, ol { padding: 0; }

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

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

a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  --ink: #05070C;
  --panel: #0B1220;
  --glass: #141D31;
  --line: #243146;
  --text: #E9EFF8;
  --muted: #98A7BF;
  --cyan: #00E5D0;
  --orange: #FF7A2F;
  --gold: #F2C879;
  --teal: #0E7C74;

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

  --wrap: 1320px;
  --rail: 240px;
  --gap: 24px;
  --h-header: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 全局排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(36, 49, 70, .30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 49, 70, .30) 1px, transparent 1px),
    radial-gradient(1200px 600px at 82% -10%, rgba(0, 229, 208, .10), transparent 62%);
  background-size: 96px 96px, 96px 96px, 100% 100%;
  background-attachment: fixed, fixed, fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.24;
}

h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.18; }
h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.26; }
h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.33; }
h4 { font-size: 17px; }

p { line-height: 1.75; }

a { text-decoration: none; }

strong, b { color: #ffffff; font-weight: 700; }

::selection { background: var(--cyan); color: #03171A; }

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

.mono,
code, kbd, samp, time[datetime] {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .02em;
}

.link-cyan {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 229, 208, .35);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.link-cyan:hover { border-bottom-color: var(--cyan); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 10px;
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--cyan);
  color: #03171A;
  font-weight: 700;
  border-radius: 2px;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5, 7, 12, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal) 38%, rgba(255, 122, 47, .85) 78%, transparent);
  pointer-events: none;
}

.site-header__bar {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  min-height: var(--h-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__zone {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-header__zone--brand {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.site-header__zone--nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 12px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  white-space: nowrap;
}

.brand__mark {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--gold);
  border: 1px solid rgba(242, 200, 121, .45);
  padding: 5px 7px;
  border-radius: 2px;
}

.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.brand--stack .brand__name { font-size: 20px; }

/* 通道状态灯 */
.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.brand-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 208, .8);
  animation: status-pulse 2.8s var(--ease) infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 229, 208, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 229, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 208, 0); }
}

/* 栏目导航 */
.site-nav {
  display: flex;
  align-items: center;
}

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

.site-nav__link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(20, 29, 49, .85);
}

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(0, 229, 208, .07);
}

/* 工具区 */
.header-utils {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.util-link,
.util-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.util-link:hover,
.util-btn:hover {
  color: var(--cyan);
  border-color: rgba(0, 229, 208, .45);
  background: rgba(0, 229, 208, .06);
}

.util-lang {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold);
  border: 1px solid rgba(242, 200, 121, .35);
  padding: 6px 9px;
  border-radius: 2px;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(20, 29, 49, .8);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

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

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 8vw, 112px);
  background: linear-gradient(180deg, var(--panel), var(--ink));
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr) minmax(0, 1.05fr);
  gap: 40px;
}

.footer-lead__line {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.footer-lead__note {
  margin: 0;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.footer-col__list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col__link {
  font-size: 14px;
  color: var(--muted);
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

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

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

.contact-list__row { display: grid; gap: 2px; }

.contact-list__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.contact-list__value {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.footer-contact__note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__base {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer__legal {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* ---------- 返回顶部浮标 ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: rgba(20, 29, 49, .94);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s linear, border-color .18s var(--ease), color .18s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

.to-top__mark {
  font-family: var(--font-mono);
  color: var(--cyan);
}

/* ---------- 容器与栅格 ---------- */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.shell {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.section { padding-block: clamp(44px, 6vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.section__title { margin: 0; }

.section__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
}

.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)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- 面板 / 卡片 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 2px;
}

.glass {
  background: linear-gradient(160deg, rgba(20, 29, 49, .88), rgba(11, 18, 32, .72));
  border: 1px solid rgba(36, 49, 70, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 2px;
}

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 22px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 208, .5);
  background: var(--glass);
}

.card__title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}

.card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 2px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease), filter .18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: #ffffff;
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0A02;
  font-weight: 800;
}

.btn--primary:hover {
  filter: brightness(1.08);
  color: #1A0A02;
  border-color: var(--orange);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 9px 14px;
}

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

/* ---------- 徽标 / 统计 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: rgba(20, 29, 49, .7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  border-radius: 2px;
}

.badge--version { color: var(--gold); border-color: rgba(242, 200, 121, .45); }
.badge--live { color: var(--cyan); border-color: rgba(0, 229, 208, .45); }
.badge--action { color: #1A0A02; background: var(--orange); border-color: var(--orange); font-weight: 700; }

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px 20px;
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cyan);
  line-height: 1.1;
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--line); }

/* ---------- 正文块 ---------- */
.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.prose p { margin: 0 0 18px; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(0, 229, 208, .35); }

/* ---------- 索引栏（章节跟随） ---------- */
.index-rail {
  position: sticky;
  top: calc(var(--h-header) + 20px);
  align-self: start;
  background: rgba(11, 18, 32, .72);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px;
}

.index-rail__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-rail__list {
  list-style: none;
  display: grid;
  gap: 2px;
}

.index-rail__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.index-rail__link:hover {
  color: var(--text);
  background: rgba(20, 29, 49, .9);
}

.index-rail__link.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(0, 229, 208, .08);
}

.index-rail__num {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .72;
}

/* ---------- 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, #0B1220, #141D31 70%, #0B1220);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.media-frame > img,
.media-frame > svg,
.media-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(36, 49, 70, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 49, 70, .55) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
  mix-blend-mode: screen;
}

.media-frame__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(5, 7, 12, .78);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  border-radius: 2px;
}

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

/* ---------- 进入视口显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-col__list { gap: 8px; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .index-rail { position: static; }
}

@media (max-width: 960px) {
  :root { --h-header: auto; }

  .site-header__bar {
    width: min(100% - 32px, var(--wrap));
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 12px;
    align-items: center;
  }

  .site-header__zone--brand {
    width: 100%;
    justify-content: space-between;
    border-right: 0;
    padding-right: 0;
  }

  .site-header__zone--nav {
    width: 100%;
    justify-content: space-between;
  }

  .header-utils {
    width: 100%;
    justify-content: space-between;
    padding-left: 0;
    border-left: 0;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px 16px 18px;
    background: rgba(11, 18, 32, .98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
  }

  .site-nav[data-open] {
    display: block;
    animation: nav-drop .2s var(--ease);
  }

  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .site-nav__link:hover { background: transparent; color: var(--cyan); }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--cyan);
    background: rgba(0, 229, 208, .07);
  }

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

  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { background-size: 64px 64px, 64px 64px, 100% 100%; }

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

  .brand__name { font-size: 17px; }
  .brand-status { font-size: 11px; }
  .brand-status__text { letter-spacing: .02em; }

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

  .to-top { right: 12px; bottom: 14px; }
}

@media (max-width: 420px) {
  .util-lang { display: none; }
  .skip-link:focus { left: 10px; right: 10px; }
}

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .scroll-progress__bar { transition: none; }
}
