/* ============================================================
   188电子指南 · 共享样式 /assets/site.css
   深靛蓝画布 + 珠宝色分区 + 极细描边 + 展签式组件
   ============================================================ */

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

html {
  background: #0B0E24;
  -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 { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

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

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

/* ---------- 变量 ---------- */
:root {
  --ink: #0B0E24;
  --zone-index: #08302F;
  --zone-review: #2E0F26;
  --zone-record: #1A1440;
  --cyan: #25E3D4;
  --magenta: #FF3E9C;
  --gold: #F0B23C;
  --text: #EDF0FA;
  --dim: #A6AFCF;
  --line: #2B3160;
  --raise: #131A3D;
  --raise-2: #0F1430;
  --deep: #080B1E;

  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 72px;
  --wrap: 1320px;
  --pad: clamp(18px, 4vw, 40px);
  --radius: 3px;
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 暗场电路网格纹理，仅在较宽屏幕上出现 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43, 49, 96, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 49, 96, 0.28) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.5;
}

::selection { background: var(--cyan); color: var(--ink); }

#main-content { position: relative; z-index: 1; }
#main-content:focus { outline: none; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.4vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 19px; }
h5 { font-size: 17px; }

p { max-width: 68ch; }

.mono { font-family: var(--font-mono); letter-spacing: 0.01em; }
.muted { color: var(--dim); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.lede {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.75;
  color: var(--dim);
  max-width: 62ch;
}

.link {
  color: var(--cyan);
  border-bottom: 1px solid rgba(37, 227, 212, 0.35);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.link:hover { color: var(--text); border-bottom-color: var(--text); }

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

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap--narrow { max-width: 940px; }

.section {
  position: relative;
  padding-block: clamp(46px, 6.5vw, 92px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding-bottom: 14px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

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

.section__title { font-size: clamp(22px, 2.6vw, 30px); }

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.stack > * + * { margin-top: 16px; }

/* ---------- 跳至主要内容 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform 0.16s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(37, 227, 212, 0.1);
}

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

.site-header__brand { display: flex; align-items: center; min-width: 0; }

.site-header__aside {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  min-width: 0;
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__name {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.16s ease;
}

.brand__name::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(37, 227, 212, 0.85);
}

.brand__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

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

.brand--footer .brand__name { font-size: 18px; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

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

.site-nav__item { display: flex; align-items: center; }

.site-nav__item + .site-nav__item::before {
  content: "";
  display: block;
  width: 1px;
  height: 12px;
  margin: 0 13px;
  background: var(--line);
}

.site-nav__link {
  display: inline-block;
  padding: 6px 2px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.site-nav__link:hover {
  color: var(--text);
  border-bottom-color: rgba(37, 227, 212, 0.6);
}

.site-nav__link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--cyan);
}

.site-nav__foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__cta { white-space: nowrap; }

/* 检索入口 */
.search-slot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: var(--raise-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.search-slot::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

.search-slot:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(37, 227, 212, 0.06);
}

.search-slot__num { color: var(--cyan); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 13px;
  background: var(--raise-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

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

.nav-toggle[aria-expanded="true"] { color: var(--cyan); border-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: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--gold));
  pointer-events: none;
}

/* ============================================================
   通用按钮 / 标签 / 数据
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--raise-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
              border-color 0.16s ease, transform 0.16s ease;
}

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

.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04201F;
}
.btn--cyan:hover { background: #5CF0E4; border-color: #5CF0E4; color: #04201F; }

.btn--magenta {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #2A0016;
}
.btn--magenta:hover { background: #FF6CB4; border-color: #FF6CB4; }

.btn--gold {
  background: transparent;
  border-color: rgba(240, 178, 60, 0.6);
  color: var(--gold);
}
.btn--gold:hover { background: rgba(240, 178, 60, 0.12); border-color: var(--gold); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(37, 227, 212, 0.06); }

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.tag--cyan { color: var(--cyan); border-color: rgba(37, 227, 212, 0.45); }
.tag--magenta { color: var(--magenta); border-color: rgba(255, 62, 156, 0.45); }
.tag--gold { color: var(--gold); border-color: rgba(240, 178, 60, 0.45); }

.stat {
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--cyan);
}
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.stat__label {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.stat--magenta { border-left-color: var(--magenta); }
.stat--gold { border-left-color: var(--gold); }

/* ============================================================
   面包屑
   ============================================================ */
.crumbs { margin: 26px 0 10px; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--dim);
}

.crumbs__item { display: flex; align-items: center; gap: 10px; }

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

.crumbs__link { color: var(--dim); transition: color 0.16s ease; }
.crumbs__link:hover { color: var(--cyan); }

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

/* ============================================================
   面板（展区画板）
   ============================================================ */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 34px -28px rgba(0, 0, 0, 0.95);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.panel:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 227, 212, 0.42);
}

.panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.panel:hover::after { transform: scaleX(1); }

.panel--index { background: var(--zone-index); border-color: #0F4A48; }
.panel--review { background: var(--zone-review); border-color: #4A1B3D; }
.panel--review::after { background: var(--magenta); }
.panel--record { background: var(--zone-record); border-color: #2C2570; }
.panel--record::after { background: #7B6BFF; }
.panel--gold { background: var(--raise); border-color: rgba(240, 178, 60, 0.45); }
.panel--gold::after { background: var(--gold); }

.panel__label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.panel--review .panel__label { color: var(--magenta); border-color: rgba(255, 62, 156, 0.35); }
.panel--record .panel__label { color: #9E92FF; border-color: rgba(123, 107, 255, 0.35); }
.panel--gold .panel__label { color: var(--gold); border-color: rgba(240, 178, 60, 0.35); }

.panel__title { font-size: clamp(20px, 2.2vw, 25px); margin-bottom: 10px; }

/* ============================================================
   卡片
   ============================================================ */
.card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 20px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.22s ease;
}

.card:hover { transform: translateY(-2px); border-color: rgba(37, 227, 212, 0.38); background: var(--raise-2); }
.card:hover::before { transform: scaleY(1); }

.card__meta {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.card__title {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.card__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 60ch;
}

/* ============================================================
   网格
   ============================================================ */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.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--asym { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.grid--rail { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); align-items: start; }

.span-2 { grid-column: span 2; }

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--asym,
  .grid--rail { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}

/* ============================================================
   图片容器（响应式占位）
   ============================================================ */
.media {
  position: relative;
  overflow: hidden;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.media__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  background: rgba(11, 14, 36, 0.9);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media--band { aspect-ratio: 32 / 9; }

/* ============================================================
   粘性索引条 / 横向内容带
   ============================================================ */
.rail {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}

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

.rail__link {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid var(--line);
  font-size: 14.5px;
  color: var(--dim);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.rail__link:hover {
  color: var(--text);
  border-left-color: var(--cyan);
  background: var(--raise-2);
}

.rail__link[aria-current="true"],
.rail__link[aria-current="location"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(37, 227, 212, 0.07);
}

.strip {
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.strip__track {
  display: flex;
  gap: 16px;
  min-width: max-content;
}

.strip__item {
  flex: 0 0 auto;
  width: min(300px, 78vw);
  scroll-snap-align: start;
}

.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: var(--raise-2); }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

/* ============================================================
   显现动效
   ============================================================ */
[data-reveal] { transition: opacity 0.2s ease, transform 0.2s ease; }
[data-reveal].is-hidden { opacity: 0; transform: translateY(12px); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--deep);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 26%,
    var(--magenta) 26% 52%,
    var(--gold) 52% 74%,
    var(--zone-index) 74% 100%
  );
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--pad) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.35fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-note {
  margin-top: 16px;
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dim);
}

.footer-note--dim { margin-top: 14px; font-size: 13px; }

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

.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 15px;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(37, 227, 212, 0.5);
}

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

.footer-contact li { display: flex; flex-direction: column; gap: 3px; }

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  opacity: 0.75;
}

.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text);
  word-break: break-word;
}

.footer-contact__val--text {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

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

/* ============================================================
   响应式：页头 / 页脚
   ============================================================ */
@media (max-width: 1180px) {
  .brand__name { font-size: 18px; }
  .site-nav__item + .site-nav__item::before { margin: 0 9px; }
  .site-nav__link { font-size: 13.5px; letter-spacing: 0.02em; }
  .search-slot { padding: 7px 10px; font-size: 12px; }
  .site-nav__cta { padding: 7px 12px; font-size: 13px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--pad) 22px;
    background: var(--raise);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 44px -30px #000;
  }

  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    list-style: none;
  }

  .site-nav__item { display: block; }

  .site-nav__item + .site-nav__item::before { display: none; }

  .site-nav__link {
    display: block;
    padding: 14px 0 14px 12px;
    font-size: 16px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .site-nav__link:hover,
  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--cyan);
  }

  .site-nav__link[aria-current="page"] {
    color: var(--text);
    background: rgba(37, 227, 212, 0.06);
  }

  .site-nav__foot {
    flex-direction: column;
    align-items: stretch;
    margin-top: 18px;
  }

  .search-slot,
  .site-nav__cta { justify-content: center; width: 100%; }

  .search-slot { padding: 12px; font-size: 13px; }

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

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand__name { font-size: 17px; }
  .brand__name::before { width: 7px; height: 7px; margin-right: 8px; }
  .brand__sub { font-size: 10.5px; letter-spacing: 0.1em; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .rail { position: static; }
}

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

  [data-reveal],
  [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .panel,
  .card,
  .btn,
  .site-nav__link,
  .rail__link,
  .footer-links a,
  .skip-link {
    transition: none;
  }

  .panel:hover,
  .card:hover,
  .btn:hover { transform: none; }

  .panel::after,
  .card::before { transition: none; }
}
