/* ==========================================================
   9393网页指南 / assets/site.css
   共享外壳：reset、变量、中文排版、头部、页脚、基础组件
   ========================================================== */

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

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

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

ul, ol {
  padding: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

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

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 变量 ---------- */
:root {
  /* 色彩 */
  --ink:          #0A1826;
  --ink-2:        #12293D;
  --ink-3:        #071320;
  --line:         #29506E;
  --paper:        #F5F2EA;
  --mist:         #A7B5C4;
  --orange:       #FF6A2B;
  --green:        #37D08A;
  --purple:       #8D86A6;
  --purple-deep:  #575072;
  --focus:        #FFC94A;
  --archive-bg:   #221F33;

  /* 字体 */
  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
                  "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif;
  --font-body:    "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
                  "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "Cascadia Mono", "Roboto Mono",
                  Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --rail-w:   72px;
  --status-h: 36px;
  --wrap-max: 1280px;
  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 中文排版基础 ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  padding-left: var(--rail-w);
  padding-top: var(--status-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body > main { flex: 1 1 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

p { max-width: 38em; }

a { transition: color 160ms var(--ease), border-color 160ms var(--ease); }

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--orange);
  color: #08151F;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 160ms var(--ease);
}

.skip-link:focus-visible {
  top: 10px;
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* ---------- 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: 40px;
}

.section { padding-block: 88px; }

.rule {
  height: 1px;
  width: 100%;
  border: 0;
  background: var(--line);
}

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

.u-sr {
  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;
}

.grid-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.3;
  z-index: 0;
}

/* ---------- 标题与文本 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.title-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34em;
  font-size: 19px;
  line-height: 1.8;
  color: var(--mist);
}

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

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.annot {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.annot--v {
  writing-mode: vertical-rl;
  letter-spacing: 0.3em;
}

.annot--tilt {
  display: inline-block;
  transform: rotate(-4deg);
  transform-origin: left center;
}

/* ---------- 网格 ---------- */
.grid-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 32px;
}

.col-main { grid-column: 1 / 8; }
.col-note { grid-column: 10 / 13; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.btn:hover {
  background: var(--ink-2);
  border-color: var(--focus);
  color: var(--focus);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #08151F;
  font-weight: 900;
}

.btn--primary:hover {
  background: #FF8348;
  border-color: #FF8348;
  color: #08151F;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--mist);
}

.btn--ghost:hover {
  color: var(--paper);
  border-color: var(--green);
  background: transparent;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--mist);
  white-space: nowrap;
}

.tag--current {
  color: var(--green);
  border-color: var(--green);
}

.tag--archive {
  color: var(--purple);
  border-color: var(--purple-deep);
  background: rgba(141, 134, 166, 0.12);
}

/* ---------- 面板 ---------- */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 26px;
}

.panel--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.panel--archive {
  background: var(--archive-bg);
  border-color: var(--purple-deep);
  color: #DCD8E8;
}

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

.media__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 12px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

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

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

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

/* ---------- 可展开组 ---------- */
.expand {
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.expand + .expand { margin-top: -1px; }

.expand__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--paper);
  transition: color 160ms var(--ease);
}

.expand__trigger:hover { color: var(--focus); }

.expand__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.expand__icon::before,
.expand__icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
}

.expand__icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.expand__icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
  transition: transform 240ms var(--ease);
}

.expand__trigger[aria-expanded="true"] .expand__icon::after {
  transform: scaleY(0);
}

.expand__panel {
  overflow: hidden;
  transition: max-height 240ms var(--ease);
}

.expand__body {
  padding: 0 22px 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--mist);
}

/* ==========================================================
   头部
   ========================================================== */
.site-header {
  position: relative;
  z-index: 60;
}

/* --- 状态条 --- */
.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--status-h);
  padding: 0 18px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.status-bar__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.status-bar__mark {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
  white-space: nowrap;
}

.status-bar__sep { color: var(--line); }

.status-bar__code {
  color: var(--green);
  white-space: nowrap;
}

.status-bar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-bar__index {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.status-bar__index:hover {
  color: var(--focus);
  border-bottom-color: var(--focus);
}

.status-bar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--orange) 70%, var(--focus));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
  pointer-events: none;
}

/* --- 移动端触发器 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

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

/* --- 侧边轨道导航（桌面） --- */
.site-nav {
  position: fixed;
  top: var(--status-h);
  left: 0;
  z-index: 55;
  width: var(--rail-w);
  height: calc(100vh - var(--status-h));
  height: calc(100dvh - var(--status-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0C1E30 0%, var(--ink) 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { width: 0; height: 0; }

.site-nav__head,
.site-nav__foot { display: none; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.site-nav__item { width: 100%; }

.site-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 11px 0;
  color: var(--mist);
  transition: color 180ms var(--ease);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--line);
  transition: color 180ms var(--ease);
}

.site-nav__label {
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  transition: color 180ms var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--green);
  transform: translateY(-50%);
  transition: height 220ms var(--ease), background 180ms var(--ease);
}

.site-nav__link:hover { color: var(--focus); }
.site-nav__link:hover .site-nav__num { color: var(--focus); }
.site-nav__link:hover::after {
  height: 14px;
  background: var(--focus);
}

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

.site-nav__link[aria-current="page"] .site-nav__num {
  color: var(--orange);
}

.site-nav__link[aria-current="page"]::after {
  height: 22px;
  background: var(--green);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -3px;
}

/* ==========================================================
   页脚
   ========================================================== */
.site-footer {
  position: relative;
  background: var(--ink-3);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 132px;
  height: 3px;
  background: var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px 64px;
  padding: 76px 0 56px;
}

.footer-index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2em;
  color: var(--green);
}

.footer-index__head .footer-title { margin-bottom: 18px; }

.index-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.index-list__item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-list__link {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 13px 12px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.index-list__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  transition: color 160ms var(--ease);
}

.index-list__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.index-list__link:hover { background: var(--ink-2); }
.index-list__link:hover .index-list__num { color: var(--orange); }
.index-list__link:hover .index-list__label { color: var(--focus); }

.index-list__link[aria-current="page"] { background: var(--ink-2); }
.index-list__link[aria-current="page"] .index-list__num { color: var(--green); }

.contact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list__key {
  flex: none;
  min-width: 64px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--grid, var(--purple));
  color: var(--purple);
}

.contact-list__value {
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}

.copy-btn {
  padding: 2px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--mist);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.copy-btn:hover {
  color: var(--focus);
  border-color: var(--focus);
}

.copy-btn[data-copied] {
  color: var(--green);
  border-color: var(--green);
}

.footer-note {
  margin-top: 16px;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.copy-status {
  min-height: 20px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  max-width: none;
}

.footer-legal__icp { color: var(--mist); }

.footer-legal__link {
  color: var(--misq, var(--mist));
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.footer-legal__link:hover {
  color: var(--focus);
  border-bottom-color: var(--focus);
}

.to-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.to-index::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  flex: none;
}

.to-index:hover {
  color: var(--focus);
  border-color: var(--focus);
  background: var(--ink-2);
}

/* ==========================================================
   响应式
   ========================================================== */

/* --- 平板 --- */
@media (max-width: 1024px) {
  .wrap { padding-inline: 28px; }
  .section { padding-block: 72px; }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 56px 0 44px;
  }
  .index-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col-main { grid-column: 1 / 9; }
  .col-note { grid-column: 10 / 13; }
}

/* --- 移动端：轨道转抽屉 --- */
@media (max-width: 900px) {
  :root {
    --rail-w: 0px;
    --status-h: 52px;
  }

  body {
    padding-left: 0;
    font-size: 16px;
    line-height: 1.85;
  }

  .wrap { padding-inline: 20px; }
  .section { padding-block: 56px; }

  .status-bar {
    padding: 0 12px;
    gap: 10px;
  }

  .status-bar__mark { font-size: 12px; }
  .status-bar__code { display: none; }

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

  .grid-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px 0;
  }

  .col-main,
  .col-note { grid-column: 1 / -1; }

  /* 抽屉 */
  .site-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 20px 32px;
    background: #08151F;
    border-right: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 280ms var(--ease), visibility 280ms var(--ease);
  }

  body[data-open] .site-nav {
    visibility: visible;
    transform: translateY(0);
  }

  body[data-open] { overflow: hidden; }

  .site-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--green);
  }

  .site-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    font-size: 20px;
    line-height: 1;
    color: var(--paper);
    transition: color 160ms var(--ease), border-color 160ms var(--ease);
  }

  .site-nav__close:hover {
    color: var(--focus);
    border-color: var(--focus);
  }

  .site-nav__list {
    align-items: stretch;
    margin: 0;
    padding: 0;
  }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .site-nav__num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--mist);
  }

  .site-nav__label {
    writing-mode: horizontal-tb;
    font-size: inherit;
    letter-spacing: 0.06em;
  }

  .site-nav__link::after {
    right: auto;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    transform: none;
  }

  .site-nav__link:hover::after {
    height: 100%;
    background: var(--focus);
  }

  .site-nav__link[aria-current="page"] .site-nav__label { color: var(--paper); }
  .site-nav__link[aria-current="page"] .site-nav__num { color: var(--orange); }
  .site-nav__link[aria-current="page"]::after {
    height: 100%;
    background: var(--green);
  }

  .site-nav__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: auto;
    padding-top: 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .site-nav__foot-link {
    color: var(--mist);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
  }

  .site-nav__foot-link:hover {
    color: var(--focus);
    border-bottom-color: var(--focus);
  }

  .footer-grid { padding: 48px 0 36px; }
  .index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { padding: 18px 0 26px; }
}

@media (max-width: 480px) {
  .status-bar { gap: 8px; font-size: 11px; }
  .status-bar__mark { font-size: 11px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 6px; }
  .index-list__label { font-size: 13px; }
  .site-nav__link { font-size: 19px; padding: 14px 2px; }
  .contact-list__key { min-width: 56px; }
  .footer-legal { gap: 8px 14px; }
  .btn { width: 100%; }
}

/* --- 矮视口：轨道可滚动 --- */
@media (min-width: 901px) and (max-height: 680px) {
  .site-nav { justify-content: flex-start; padding-block: 16px; }
}

/* --- 动效偏好 --- */
@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;
  }
  .status-bar__progress { transition: none; }
}
