/* ==========================================================================
   TOKENPOCKET 钱包 · 共享样式表 /assets/site.css
   框架式导航 + 印刷刻度边框 + 档案板组件体系
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #05070C;
  --hold: #0B1018;
  --board: #12161F;
  --rule: #232A36;
  --paper: #F2F5F8;
  --steel: #8A94A6;
  --cyan: #22E1FF;
  --amber: #FFA41C;
  --green: #57E39B;
  --teal: #0A6C7C;

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

  --wrap: 1200px;
  --rail: 22px;
  --radius: 2px;
  --grad-edge: linear-gradient(90deg, var(--cyan) 0%, var(--teal) 42%, rgba(35, 42, 54, 0) 100%);
  --shadow-stack: 6px 6px 0 rgba(35, 42, 54, 0.55);
}

/* ---------- 2. Reset 与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 88% -12%, rgba(10, 108, 124, 0.24), transparent 70%),
    radial-gradient(900px 520px at -5% 115%, rgba(34, 225, 255, 0.08), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.25em; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button { font: inherit; color: inherit; }

hr { border: 0; }

::selection { background: var(--cyan); color: #02121a; }

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

/* ---------- 3. 排版工具 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

.display {
  font-size: clamp(2rem, 6.2vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 0.5em;
}

.display--outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.82;
  color: #C7CEDA;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.04em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rule {
  height: 1px;
  margin: 2.25rem 0;
  background: var(--rule);
}

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wrap--narrow { max-width: 860px; }

.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--band {
  background: var(--hold);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band {
  padding: 1.1rem 0;
  background: var(--hold);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.grid { display: grid; gap: 1.25rem; }
.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)); }

.stack > * + * { margin-top: 1rem; }

/* ---------- 5. 档案卡 / 标签 / 提示 ---------- */
.card {
  position: relative;
  padding: 1.3rem 1.2rem 1.15rem;
  background: var(--board);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 3px;
  background: var(--cyan);
}
.card--stack { box-shadow: var(--shadow-stack); }
.card--amber::before { background: var(--amber); }
.card--green::before { background: var(--green); }

.card__title {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--hold);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tag--cyan {
  color: var(--cyan);
  border-color: rgba(34, 225, 255, 0.4);
  background: rgba(34, 225, 255, 0.08);
}
.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 164, 28, 0.4);
  background: rgba(255, 164, 28, 0.08);
}
.tag--green {
  color: var(--green);
  border-color: rgba(87, 227, 155, 0.4);
  background: rgba(87, 227, 155, 0.08);
}

.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(255, 164, 28, 0.06);
  font-size: 0.92rem;
}
.notice--cyan {
  border-left-color: var(--cyan);
  background: rgba(34, 225, 255, 0.06);
}
.notice__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.notice--cyan .notice__label { color: var(--cyan); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--board);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.btn:hover { text-decoration: none; border-color: var(--cyan); color: var(--cyan); }
.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #02121a;
}
.btn--primary:hover { background: #5cebff; border-color: #5cebff; color: #02121a; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(34, 225, 255, 0.08); }
.btn--amber {
  border-color: rgba(255, 164, 28, 0.45);
  color: var(--amber);
  background: rgba(255, 164, 28, 0.08);
}
.btn--amber:hover { border-color: var(--amber); color: var(--amber); background: rgba(255, 164, 28, 0.14); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.breadcrumb li { display: flex; align-items: center; margin: 0; }
.breadcrumb li::after {
  content: "/";
  margin-left: 0.45rem;
  color: var(--rule);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--cyan); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 8. 目录 / 数据列表 / 数字 ---------- */
.toc {
  padding: 1rem 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--hold);
}
.toc__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc__item {
  counter-increment: toc;
  border-top: 1px dashed var(--rule);
}
.toc__item:first-child { border-top: 0; }
.toc__link {
  display: block;
  position: relative;
  padding: 0.55rem 0.2rem 0.55rem 2.2rem;
  color: var(--steel);
  font-size: 0.88rem;
}
.toc__link::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--rule);
}
.toc__link:hover { color: var(--paper); text-decoration: none; }
.toc__link[aria-current="true"] { color: var(--cyan); }
.toc__link[aria-current="true"]::before { color: var(--cyan); }

.data-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.data-list__row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.data-list__row li { margin: 0; }
.data-list__key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.data-list__value { font-size: 0.94rem; }

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cyan);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* ---------- 9. 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.filter-btn {
  padding: 0.38rem 0.72rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--hold);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.filter-btn:hover { color: var(--paper); border-color: var(--steel); }
.filter-btn.is-active {
  color: #02121a;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--board);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 225, 255, 0.07), transparent 45%);
}
.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; }
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__caption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--cyan);
  color: #02121a;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* ---------- 12. 框架式头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.97) 0%, rgba(11, 16, 24, 0.94) 100%);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-edge);
}

.frame-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--rail);
  display: none;
  pointer-events: none;
  z-index: 110;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(35, 42, 54, 0.95) 0 1px,
    transparent 1px 64px
  );
}
.frame-rail--left { left: 0; border-right: 1px solid rgba(35, 42, 54, 0.5); }
.frame-rail--right { right: 0; border-left: 1px solid rgba(35, 42, 54, 0.5); }

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  transition: padding 0.25s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--board);
  box-shadow: inset 0 0 0 1px rgba(34, 225, 255, 0.14);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.brand__text { display: block; }
.brand__name {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.brand__meta {
  display: block;
  max-height: 1.4em;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  transition: opacity 0.25s ease, max-height 0.25s ease;
}

.site-nav { min-width: 0; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__item { margin: 0; }

.nav-link {
  display: block;
  position: relative;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.28rem;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.nav-link:hover {
  color: var(--cyan);
  border-color: var(--rule);
  background: var(--hold);
  text-decoration: none;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] {
  color: #02121a;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}
.nav-link[aria-current="page"]::after { display: none; }

.header-aside {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: end;
}

.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--hold);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.status-lamp__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(87, 227, 155, 0.14);
}
.status-lamp__value { color: var(--green); }
.status-lamp:hover {
  border-color: var(--cyan);
  color: var(--paper);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--board);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}
.nav-toggle__bars i:nth-child(2) { width: 68%; }

.header-scale {
  height: 11px;
  border-top: 1px solid var(--rule);
  background-image: repeating-linear-gradient(
    90deg,
    var(--rule) 0 1px,
    transparent 1px 48px
  );
  opacity: 0.85;
}

.site-header.is-condensed .header-inner { padding-top: 0.42rem; padding-bottom: 0.42rem; }
.site-header.is-condensed .brand__meta { opacity: 0; max-height: 0; }

/* ---------- 13. 四段式页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: var(--hold);
  border-top: 1px solid var(--rule);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-edge);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 1.75rem;
}

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

.footer-brand {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.footer-tagline {
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--steel);
}
.footer-domain {
  margin-bottom: 0;
  color: var(--cyan);
}

.footer-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list li { margin: 0 0 0.5rem; }
.footer-link {
  display: inline-block;
  color: var(--paper);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-decoration: none;
}

.footer-list--contact li {
  display: grid;
  gap: 0.1rem;
  margin-bottom: 0.85rem;
}
.footer-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}
.footer-value {
  font-size: 0.9rem;
  line-height: 1.65;
  word-break: break-word;
  color: var(--paper);
}
.footer-note {
  margin: 0.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--steel);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.75rem;
  border-top: 1px solid var(--rule);
}
.footer-legal__item {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.footer-legal__item--muted { color: #5C6677; }

/* ---------- 14. 滚动进度 / 返回顶部 / 显现 ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}
.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 190;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(18, 22, 31, 0.94);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
    border-color 0.2s ease, background-color 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  border-color: var(--cyan);
  background: rgba(34, 225, 255, 0.14);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

.is-hidden { display: none !important; }

/* ---------- 15. 响应式 ---------- */
@media (min-width: 1100px) {
  .frame-rail { display: block; }
}

@media (max-width: 1024px) {
  .site-header { position: sticky; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
  }
  .header-scale { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    grid-column: 1 / -1;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 0;
    overflow: hidden;
    background: var(--hold);
    border-bottom: 1px solid var(--rule);
    transition: max-height 0.3s ease;
  }
  .site-header[data-open] .site-nav {
    max-height: 72vh;
    overflow-y: auto;
  }
  .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
  }
  .nav-link {
    padding: 0.85rem 0.2rem;
    border: 0;
    border-bottom: 1px solid rgba(35, 42, 54, 0.7);
    border-radius: 0;
    font-size: 0.98rem;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: transparent;
    border-bottom-color: var(--cyan);
    color: var(--cyan);
  }
  .site-header[data-open] .nav-toggle__bars i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
  .site-header[data-open] .nav-toggle__bars i:nth-child(3) {
    width: 100%;
    transform: translateY(-6px) rotate(-45deg);
  }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .data-list__row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .status-lamp__label { display: none; }
  .to-top { right: 0.75rem; bottom: 0.75rem; }
}

@media (max-width: 400px) {
  .brand__meta { display: none; }
}

/* ---------- 16. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .to-top { transition: none; }
}
