/* ==========================================================================
   金博棋牌老版 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 侧边轨道头部 / 抽屉 / 页脚 / 基础组件
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--c-pine);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--c-cyan); }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

ul, ol { padding: 0; list-style: none; }

[hidden] { display: none !important; }

::selection { background: rgba(53, 227, 210, .26); color: var(--c-cream); }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩体系 */
  --c-pine:   #0B211B;
  --c-pine-2: #143328;
  --c-gold:   #C9A227;
  --c-cyan:   #35E3D2;
  --c-orange: #FF8A3D;
  --c-stone:  #59635E;
  --c-moss:   #3F6B54;
  --c-clay:   #B5714F;
  --c-cream:  #F4F1E8;
  --c-ink:    #0A0F12;

  /* 字体 */
  --font-display: "Noto Sans SC Condensed", "Barlow Condensed", "Oswald",
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
               Menlo, Consolas, "Courier New", monospace;

  /* 字号七级 */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-28: 28px;
  --fs-40: 40px;
  --fs-56: 56px;

  /* 结构 */
  --rail-w: 88px;
  --topbar-h: 60px;
  --wrap-max: 1200px;
  --line: rgba(89, 99, 94, .42);

  /* 动效 */
  --dur: .42s;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. 中文排版基础 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.28;
}

h1 { font-size: clamp(28px, 4.4vw, var(--fs-44, 44px)); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: var(--fs-20); }

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

.lede {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(244, 241, 232, .8);
  max-width: 62ch;
}

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

strong { color: var(--c-cream); font-weight: 600; }

/* ---------- 4. 电子噪点（旧屏幕颗粒） ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(244, 241, 232, .03) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
  opacity: .55;
}

/* ---------- 5. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(44px, 6vw, 88px) 0;
  position: relative;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--c-cream);
}

.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--c-gold);
  margin-top: 12px;
}

.section-sub {
  margin-top: 14px;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: rgba(244, 241, 232, .68);
  max-width: 62ch;
}

/* ---------- 6. 玻璃层 / 实色层 ---------- */
.glass {
  background: rgba(20, 51, 40, .58);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.solid-layer {
  background: var(--c-cream);
  color: var(--c-pine);
  padding: clamp(20px, 3vw, 34px);
}

.solid-layer a { color: #1d5c4c; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover { background: var(--c-cyan); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border-color: rgba(244, 241, 232, .3);
}

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

.btn--gold { background: var(--c-gold); color: var(--c-ink); }

/* ---------- 8. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: rgba(244, 241, 232, .55);
}

.crumb a {
  color: inherit;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.crumb a:hover { color: var(--c-cyan); }

.crumb__sep { opacity: .45; }

/* ---------- 9. 卡片 / 网格 ---------- */
.grid { display: grid; gap: 18px; }

.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-items: start;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--c-pine-2);
  border: 1px solid var(--line);
  transition: border-color .18s var(--ease), background .18s var(--ease),
              transform .18s var(--ease);
}

.card:hover {
  border-color: rgba(53, 227, 210, .45);
  background: #16382c;
  transform: translateY(-2px);
}

.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-clay);
}

.card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-cream);
}

.card__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 241, 232, .72);
}

.card__meta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(244, 241, 232, .5);
}

/* ---------- 10. 状态胶囊 / 芯片 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.pill--ok   { color: var(--c-cyan);   background: rgba(53, 227, 210, .08); }
.pill--warn { color: var(--c-orange); background: rgba(255, 138, 61, .08); }
.pill--info { color: var(--c-gold);   background: rgba(201, 162, 39, .08); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(89, 99, 94, .6);
  background: transparent;
  color: rgba(244, 241, 232, .72);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease),
              background .18s var(--ease);
}

.chip:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.chip[aria-pressed="true"] {
  background: var(--c-moss);
  border-color: var(--c-moss);
  color: var(--c-cream);
}

/* ---------- 11. 复制芯片 ---------- */
.copy-chip {
  display: inline-block;
  padding: 2px 8px;
  background: transparent;
  border: 1px dashed rgba(89, 99, 94, .75);
  color: rgba(244, 241, 232, .82);
  cursor: pointer;
  font-size: var(--fs-12);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.copy-chip:hover,
.copy-chip.is-copied {
  border-color: var(--c-cyan);
  border-style: solid;
  color: var(--c-cyan);
}

/* ---------- 12. 图片容器（页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(20, 51, 40, .95), rgba(10, 15, 18, .98));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.04);
}

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

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(244, 241, 232, .82);
  background: linear-gradient(180deg, rgba(10, 15, 18, 0), rgba(10, 15, 18, .88));
}

/* ---------- 13. 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 22px;
  border-left: 1px solid rgba(89, 99, 94, .55);
}

.timeline__item {
  position: relative;
  padding-bottom: 24px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-clay);
}

.timeline__item--now::before {
  background: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(53, 227, 210, .16);
}

/* ---------- 14. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: var(--fs-14);
  letter-spacing: .04em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

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

/* ---------- 16. 头部：桌面侧边轨道 ---------- */
.site-head { position: relative; z-index: 40; }

.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 8px 14px;
  z-index: 40;
  background: linear-gradient(180deg, rgba(20, 51, 40, .94), rgba(10, 15, 18, .97));
  border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rail-brand {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.rail-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 162, 39, .78);
  background: rgba(201, 162, 39, .08);
  color: var(--c-gold);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
}

.rail-mark--sm { width: 30px; height: 30px; font-size: 15px; }

.rail-name {
  width: 68px;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .06em;
  text-align: center;
  color: rgba(244, 241, 232, .82);
}

.rail-version {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--c-gold);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  margin: auto 0;
  padding: 8px 0;
}

.rail-nav__link {
  display: block;
  padding: 9px 2px;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .05em;
  color: rgba(244, 241, 232, .7);
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease);
}

.rail-nav__link:hover {
  color: var(--c-cyan);
  background: rgba(53, 227, 210, .07);
}

.rail-nav__link[aria-current="page"] {
  color: var(--c-gold);
  background: rgba(201, 162, 39, .1);
  border-left-color: var(--c-gold);
}

.rail-foot {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.rail-status,
.drawer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: rgba(244, 241, 232, .6);
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(53, 227, 210, .16);
  animation: status-pulse 4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 3px rgba(53, 227, 210, .16); }
  50%      { opacity: .55; box-shadow: 0 0 0 6px rgba(53, 227, 210, .05); }
}

.rail-cta {
  display: block;
  width: 100%;
  padding: 9px 4px;
  text-align: center;
  text-decoration: none;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .05em;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.rail-cta:hover { background: var(--c-cyan); color: var(--c-ink); }

/* ---------- 17. 移动端顶部条 ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(11, 33, 27, .97), rgba(10, 15, 18, .93));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.topbar__name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--c-cream);
}

.topbar__version {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--c-gold);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid rgba(244, 241, 232, .24);
  color: var(--c-cream);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

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

/* ---------- 18. 抽屉导航 ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 15, 18, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.drawer-scrim[data-open="true"] { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 22px;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--c-pine-2), #0c1a15);
  border-left: 1px solid rgba(201, 162, 39, .28);
  transform: translateX(102%);
  transition: transform .3s var(--ease);
}

.nav-drawer[data-open="true"] { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head__label {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--c-gold);
}

.drawer-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(244, 241, 232, .24);
  color: var(--c-cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.drawer-close:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-nav__link {
  display: block;
  padding: 12px 8px;
  text-decoration: none;
  color: rgba(244, 241, 232, .8);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .05em;
  border-bottom: 1px solid rgba(89, 99, 94, .28);
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.drawer-nav__link:hover { color: var(--c-cyan); }

.drawer-nav__link[aria-current="page"] {
  color: var(--c-gold);
  border-left-color: var(--c-gold);
}

.drawer-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-cta { width: 100%; text-align: center; }

body.nav-open { overflow: hidden; }

/* ---------- 19. 显现动画 ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 20. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(20, 51, 40, .92);
  border: 1px solid rgba(53, 227, 210, .42);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease),
              border-color .18s var(--ease);
}

.to-top[data-visible="true"] { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--c-gold); color: var(--c-gold); }

/* ---------- 21. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 30;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--c-ink);
  border-top: 1px solid rgba(201, 162, 39, .24);
  color: rgba(244, 241, 232, .78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.45fr;
  gap: 32px;
  padding: clamp(34px, 5vw, 56px) 0 34px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-cream);
}

.footer-brand__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-stone);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 15px;
  color: rgba(244, 241, 232, .74);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-links a:hover { color: var(--c-cyan); }

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

.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.footer-contact__k {
  min-width: 36px;
  font-size: 11px;
  letter-spacing: .14em;
  color: #8a9490;
}

.footer-contact__v {
  font-size: 15px;
  color: rgba(244, 241, 232, .74);
}

.footer-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 241, 232, .5);
}

.footer-bottom {
  border-top: 1px solid rgba(89, 99, 94, .35);
  padding: 16px 0 26px;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: rgba(244, 241, 232, .5);
  text-align: center;
}

.footer-bottom__sep { opacity: .4; }

/* ---------- 22. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

.rail-cta:focus-visible,
.btn:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

/* ---------- 23. 响应式：平板与手机 ---------- */
@media (max-width: 1023px) {
  :root {
    --fs-12: 11px;
    --fs-14: 13px;
    --fs-16: 15px;
    --fs-20: 18px;
    --fs-28: 24px;
    --fs-40: 30px;
    --fs-56: 38px;
  }

  body {
    font-size: 16px;
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  .brand-rail { display: none; }
  .topbar { display: flex; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom__inner { justify-content: flex-start; text-align: left; }

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

@media (min-width: 1024px) {
  .nav-drawer,
  .drawer-scrim { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }

  .grid--cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  .section { padding: 40px 0; }

  .solid-layer { padding: 18px; }
}

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

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

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
  }

  .status-dot {
    animation: none;
    box-shadow: 0 0 0 3px rgba(53, 227, 210, .16);
  }
}
