/* ============================================================
   777游戏攻略 · 共享样式 /assets/site.css
   框架式机台外框 + 堆叠画板 + 霓虹读数
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-950: #05060B;
  --ink-900: #0C1024;
  --ink-800: #121A33;
  --line: #1B2547;
  --neon: #2DE2FF;
  --magenta: #FF2FB4;
  --amber: #FFB020;
  --violet: #7C5CFF;
  --ok: #35E6A8;
  --text: #E9EDF7;
  --text-mute: #9AA6C4;
  --text-dim: #6B779B;

  --frame-top: 64px;
  --rail: 188px;
  --wrap: 1320px;
  --gutter: 24px;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-panel: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --shadow-hard: 6px 6px 0 #010206;
  --shadow-hard-sm: 4px 4px 0 #010206;
  --shadow-hover: 10px 10px 0 #010206;
}

@media (min-width: 768px) {
  :root { --frame-top: 72px; }
}

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

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

body {
  margin: 0;
  padding-top: var(--frame-top);
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(rgba(45, 226, 255, 0.06) 1px, transparent 1px),
    radial-gradient(rgba(255, 47, 180, 0.045) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail); }
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--neon); text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--frame-top) + 16px);
}

.reset-list { list-style: none; margin: 0; padding: 0; }

/* ---------- 3. 外框：机台顶盖 ---------- */
.site-header { position: relative; z-index: 90; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-220%);
  padding: 12px 20px;
  font-family: var(--font-panel);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #150A00;
  background: var(--amber);
  border: 2px solid #FFE2A8;
  box-shadow: var(--shadow-hard-sm);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

.frame-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--frame-top);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  background: linear-gradient(180deg, #0D1225 0%, #080B16 100%);
  border-bottom: 3px solid var(--line);
  box-shadow: 0 6px 0 rgba(1, 2, 6, 0.7);
}

.frame-corner {
  flex: 0 0 auto;
  min-width: 76px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--ink-950);
  border-right: 3px solid var(--line);
  position: relative;
  overflow: hidden;
}
.frame-corner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--magenta), var(--amber));
  opacity: 0.85;
}

.corner-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.corner-bars i {
  display: block;
  width: 3px;
  background: var(--magenta);
}
.corner-bars i:nth-child(1) { height: 9px; }
.corner-bars i:nth-child(2) { height: 18px; background: var(--neon); }
.corner-bars i:nth-child(3) { height: 12px; background: var(--violet); }

.corner-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.1em;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(45, 226, 255, 0.5);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 4px 6px;
  color: var(--text);
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-panel);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.16s ease;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:hover .brand-name { color: var(--neon); }

.frame-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.frame-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.frame-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon) 0%, var(--magenta) 55%, var(--amber) 100%);
}

/* ---------- 4. 按钮 ---------- */
.btn {
  --btn-bg: var(--ink-800);
  --btn-fg: var(--text);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-panel);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #010206;
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 #010206;
}

.btn-key {
  --btn-bg: var(--amber);
  --btn-fg: #150A00;
  --btn-bd: #FFD37A;
  font-weight: 800;
}
.btn-key:hover { --btn-bg: #FFC44D; --btn-bd: #FFE9BE; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line);
}
.btn-ghost:hover {
  --btn-bg: rgba(45, 226, 255, 0.1);
  --btn-bd: var(--neon);
  --btn-fg: var(--neon);
}

.btn-block { width: 100%; }

/* ---------- 5. 移动导航开关 ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: transparent;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard-sm);
  color: var(--text);
  font-family: var(--font-panel);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.nav-toggle:hover { border-color: var(--magenta); color: var(--magenta); }
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #12020C;
}

/* ---------- 6. 左栏导航（移动端为抽屉） ---------- */
.frame-rail {
  position: fixed;
  top: var(--frame-top);
  right: 0;
  z-index: 95;
  width: min(300px, 86vw);
  max-height: calc(100vh - var(--frame-top));
  max-height: calc(100dvh - var(--frame-top));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 16px 26px;
  background: linear-gradient(180deg, #0A0E1E 0%, var(--ink-900) 100%);
  border-left: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  box-shadow: -6px 6px 0 rgba(1, 2, 6, 0.8);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.26s ease, visibility 0s linear 0.26s;
}
.frame-rail[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.26s ease, visibility 0s linear 0s;
}

.rail-title {
  margin: 0;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}

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

.nav-link {
  display: block;
  padding: 11px 12px;
  font-family: var(--font-panel);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  text-decoration: none;
  background: var(--ink-800);
  border: 2px solid transparent;
  border-left: 3px solid var(--line);
  transition: color 0.16s ease, background-color 0.16s ease,
              border-color 0.16s ease, transform 0.16s ease;
}
.nav-link:hover {
  color: var(--text);
  background: var(--ink-800);
  border-color: rgba(45, 226, 255, 0.35);
  border-left-color: var(--magenta);
  transform: translateX(3px);
}
.nav-link[aria-current="page"] {
  color: #02121A;
  background: var(--neon);
  border-color: var(--neon);
  border-left-color: var(--amber);
  font-weight: 800;
}
.nav-link[aria-current="page"]:hover {
  transform: none;
  color: #02121A;
  background: var(--neon);
  border-left-color: var(--amber);
}

.rail-meter {
  margin: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border-top: 2px dashed var(--line);
}

.dot-live {
  position: relative;
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(53, 230, 168, 0.75);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* ---------- 7. 左栏（桌面） ---------- */
@media (min-width: 1024px) {
  .frame-corner {
    width: var(--rail);
    min-width: var(--rail);
    gap: 10px;
  }

  .nav-toggle { display: none; }

  .frame-rail {
    top: var(--frame-top);
    left: 0;
    right: auto;
    bottom: 0;
    width: var(--rail);
    max-height: none;
    overflow-y: auto;
    justify-content: center;
    padding: 24px 12px;
    border-left: 0;
    border-bottom: 0;
    border-right: 3px solid var(--line);
    border-top: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav-link {
    font-size: 13px;
    padding: 10px 10px;
    letter-spacing: 0.03em;
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .frame-rail { justify-content: flex-start; padding-top: 16px; }
  .rail-title { display: none; }
}

/* ---------- 8. 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-top: clamp(48px, 6vw, 72px); }

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--magenta);
}

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 20px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.grid-12 > * { min-width: 0; }

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

@media (max-width: 1023px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 6; }
}

@media (max-width: 767px) {
  .grid-12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 {
    grid-column: 1 / -1;
  }
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.crumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crumbs-list li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs-list li + li::before {
  content: "/";
  color: var(--line);
}
.crumbs a {
  color: var(--text-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.crumbs a:hover { color: var(--neon); border-bottom-color: var(--neon); }
.crumbs [aria-current="page"] { color: var(--text); }

/* ---------- 10. 面板画板 ---------- */
.panel {
  position: relative;
  padding: 24px;
  background: var(--ink-900);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-hard);
}
.panel--raised { background: var(--ink-800); }
.panel--neon { border-color: var(--neon); }
.panel--lift {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.panel--lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--neon);
}

.panel-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
}
.panel-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.panel-body > * + * { margin-top: 14px; }

/* ---------- 11. 标签矩阵 ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-family: var(--font-panel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  background: var(--ink-800);
  border: 2px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease,
              border-color 0.16s ease, box-shadow 0.16s ease;
}
.tag:hover {
  color: #12020C;
  background: var(--magenta);
  border-color: var(--magenta);
  box-shadow: 0 0 14px rgba(255, 47, 180, 0.45);
}
.tag--on {
  color: #02121A;
  background: var(--neon);
  border-color: var(--neon);
}
.tag--on:hover {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 14px rgba(45, 226, 255, 0.45);
  color: #02121A;
}

/* ---------- 12. 读数与数据带 ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--amber);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.data-band {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 13px 18px;
  background: var(--ink-800);
  border: 2px solid var(--line);
  border-left: 4px solid var(--violet);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-mute);
}

/* ---------- 13. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-hard-sm);
  background-color: var(--ink-800);
  background-image:
    repeating-linear-gradient(135deg, rgba(45, 226, 255, 0.07) 0 10px, transparent 10px 22px),
    repeating-linear-gradient(0deg, rgba(233, 237, 247, 0.035) 0 1px, transparent 1px 3px);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 4 / 5; }

@media (max-width: 767px) {
  .media-frame--wide { aspect-ratio: 16 / 10; }
}

/* ---------- 14. 正文排版 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--magenta); }
.prose a {
  color: var(--neon);
  border-bottom: 1px solid rgba(45, 226, 255, 0.45);
}
.prose a:hover { border-bottom-color: var(--amber); color: var(--amber); }
.prose strong { color: #fff; font-weight: 700; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 6px;
  color: var(--amber);
  background: var(--ink-800);
  border: 1px solid var(--line);
}
.prose blockquote {
  margin: 0 0 1.1em;
  padding: 12px 18px;
  border-left: 4px solid var(--violet);
  background: var(--ink-800);
  color: var(--text-mute);
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 104px);
  background: linear-gradient(180deg, #080B18 0%, var(--ink-900) 42%, #070A15 100%);
  border-top: 3px solid var(--line);
  color: var(--text);
}

.footer-edge {
  height: 18px;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(45, 226, 255, 0.32) 0 6px,
    transparent 6px 16px
  );
  border-bottom: 3px solid var(--line);
}

.footer-wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 48px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.brand--footer {
  align-self: stretch;
  padding: 16px 18px;
  background: var(--ink-950);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-hard-sm);
}
.brand--footer .brand-name {
  font-size: clamp(22px, 2.4vw, 26px);
  letter-spacing: 0.04em;
  white-space: normal;
}
.brand--footer .brand-tag {
  font-size: 12px;
  white-space: normal;
  color: var(--text-mute);
}

.footer-cta { max-width: 300px; }

.footer-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

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

.footer-col-title {
  display: block;
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-family: var(--font-panel);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--neon);
  border-bottom: 2px solid var(--line);
}
.footer-col-title::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--magenta);
  vertical-align: middle;
}

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

.footer-link {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: var(--text-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, padding-left 0.16s ease;
}
.footer-link:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
  padding-left: 6px;
}
.footer-link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--amber);
}
.footer-link--contact {
  margin-top: 4px;
  color: var(--amber);
  border-bottom-color: rgba(255, 176, 32, 0.4);
}
.footer-link--contact:hover { color: #FFC44D; border-bottom-color: #FFC44D; }

.footer-contact-line {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-mute);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter) 28px;
  border-top: 2px solid var(--line);
}
.footer-closing {
  margin: 0;
  font-size: 13px;
  color: var(--text-mute);
}
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer-wrap { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand--footer { flex: 1 1 260px; align-self: auto; }
  .footer-cta { flex: 0 0 auto; width: auto; }
  .footer-meter { flex: 1 1 100%; }
}

@media (min-width: 768px) {
  .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer-wrap {
    grid-template-columns: minmax(280px, 1fr) 2.1fr;
    gap: 56px;
    padding-top: 56px;
  }
  .footer-brand {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
  }
  .brand--footer { width: 100%; flex: 0 0 auto; }
  .footer-cta { width: 100%; max-width: none; }
  .footer-meter { flex: 0 0 auto; }
}

/* ---------- 16. 屏幕适配细节 ---------- */
@media (max-width: 639px) {
  .frame-top { gap: 10px; padding-right: 10px; }
  .frame-actions { gap: 8px; }
  .frame-actions .btn-ghost { display: none; }
  .frame-actions .btn-key { padding: 9px 12px; font-size: 12px; letter-spacing: 0.03em; }
  .brand-name { font-size: 15px; }
  .brand-tag { display: none; }
  .corner-text { font-size: 15px; }
  .corner-bars { display: none; }
  .nav-toggle { padding: 9px 10px; font-size: 12px; }
  .nav-toggle-text { display: none; }
  .panel { padding: 18px; box-shadow: 4px 4px 0 #010206; }
  .footer-wrap { padding-top: 36px; }
}

@media (max-width: 400px) {
  .frame-actions .btn-key { font-size: 11px; padding: 8px 10px; }
  .brand-name { font-size: 14px; }
}

/* ---------- 17. 显现协议 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ---------- 18. 减少动效 ---------- */
@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;
  }
  .dot-live { animation: none !important; opacity: 1 !important; transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; box-shadow: var(--shadow-hard-sm); }
  .panel--lift:hover { transform: none; }
  .nav-link:hover { transform: none; }
  .footer-link:hover { padding-left: 0; }
  .skip-link { transition: none; }
}
