/* =========================================================
   777开服 · 共享样式表 /assets/site.css
   霓虹赌桌 × 丝路夜色 · 侧边导览式框架
   ========================================================= */

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

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

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

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

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

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

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

/* ---------- 变量 ---------- */
:root {
  --ink: #070B18;
  --table: #0E1530;
  --panel: #131C3D;
  --gold: #FFD25A;
  --gold-soft: #FFE9A6;
  --violet: #8B5CF6;
  --jade: #2DD4BF;
  --pomegranate: #E0455A;
  --white: #F5F7FF;
  --muted: #9AA6C7;

  --rail-w: 96px;
  --frame-pad: clamp(16px, 3vw, 40px);
  --content-max: 1200px;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --pill: 999px;

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

  --line: rgba(255, 210, 90, .20);
  --line-soft: rgba(154, 166, 199, .22);
  --shadow-card: 0 20px 44px -26px rgba(0, 0, 0, .95);
}

/* ---------- 全局底色与中文排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(139, 92, 246, .20), transparent 62%),
    radial-gradient(920px 520px at 4% 108%, rgba(45, 212, 191, .13), transparent 64%),
    radial-gradient(600px 400px at 60% 40%, rgba(255, 210, 90, .05), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: .01em;
}

p { text-wrap: pretty; }

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

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

#main-content {
  display: block;
  scroll-margin-top: 120px;
}

.page-main {
  padding-top: clamp(18px, 3vw, 40px);
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

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

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

/* ---------- 左侧品牌轨道 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 22px 8px 26px;
  background:
    linear-gradient(180deg, rgba(255, 210, 90, .10), transparent 44%),
    var(--table);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 210, 90, .18) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: .5;
  pointer-events: none;
}

.rail__brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.rail__mark {
  display: inline-block;
  padding: 7px 6px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .05em;
  transform: skewX(-6deg);
  box-shadow: 0 0 0 1px rgba(255, 233, 166, .6), 0 0 26px rgba(255, 210, 90, .38);
  transition: box-shadow .3s ease;
}

.rail__brand:hover .rail__mark {
  box-shadow: 0 0 0 1px var(--gold-soft), 0 0 34px rgba(255, 210, 90, .7);
}

.rail__name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold-soft);
}

.rail__tagline {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  margin-block: auto;
  font-size: 12px;
  letter-spacing: .36em;
  color: var(--muted);
}

.rail__pulse {
  position: relative;
  z-index: 1;
  width: 2px;
  height: 74px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--violet));
  opacity: .85;
}

/* ---------- 顶部框架条 ---------- */
.frame {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 24, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.frame__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px var(--frame-pad);
  border-bottom: 1px dashed rgba(154, 166, 199, .16);
}

.frame__sign {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
  white-space: nowrap;
}

.frame__sign-dot {
  font-size: 8px;
  color: var(--gold);
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 2px;
}

.quick-actions::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease,
              background-color .25s ease, color .25s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px -14px rgba(255, 210, 90, .85);
}

.chip--gold {
  background: var(--gold);
  border-color: var(--gold-soft);
  color: var(--ink);
  font-weight: 700;
}

.chip--gold:hover {
  background: var(--gold-soft);
}

.chip--violet {
  background: rgba(139, 92, 246, .14);
  border-color: rgba(139, 92, 246, .58);
  color: #D6C9FF;
}

.chip--violet:hover {
  border-color: var(--violet);
  box-shadow: 0 10px 24px -14px rgba(139, 92, 246, .95);
}

.frame__navrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px var(--frame-pad) 10px;
}

/* ---------- 导航 ---------- */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav__list::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.nav-link:hover {
  color: var(--gold-soft);
  background: rgba(139, 92, 246, .18);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 0 1px rgba(255, 233, 166, .55), 0 12px 28px -16px rgba(255, 210, 90, .95);
  font-weight: 800;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 700;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

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

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

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

.nav-toggle[aria-expanded="true"] {
  background: var(--gold);
  border-color: var(--gold-soft);
  color: var(--ink);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--table);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--violet), var(--jade), transparent);
}

.site-footer__grid {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 62px) var(--frame-pad) clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(22px, 3vw, 46px);
}

.site-footer__id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold);
  transform: skewX(-6deg);
  text-shadow: 0 0 24px rgba(255, 210, 90, .45);
}

.footer-brand {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--white);
}

.footer-tagline {
  margin-top: 6px;
  font-size: 13.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

.foot-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
}

.foot-col__list li + li { margin-top: 10px; }

.foot-col__list a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s ease, padding-left .2s ease;
}

.foot-col__list a:hover {
  color: var(--gold-soft);
  padding-left: 4px;
}

.site-footer__contact {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--frame-pad) clamp(22px, 3vw, 34px);
}

.contact-book {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 12px 30px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(19, 28, 61, .92), rgba(14, 21, 48, .58));
}

.contact-book__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
}

.contact-book__item--wide { grid-column: 1 / -1; }

.contact-book__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--violet);
}

.contact-book__val { color: var(--muted); }

.copy-btn {
  padding: 0;
  font-size: 14.5px;
  color: var(--gold-soft);
  border-bottom: 1px dashed rgba(255, 210, 90, .5);
  transition: color .2s ease, border-color .2s ease;
}

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

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

.site-footer__base {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 18px var(--frame-pad) 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer__legal { font-family: var(--font-mono); }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__links a {
  color: var(--muted);
  transition: color .2s ease;
}

.site-footer__links a:hover { color: var(--gold-soft); }

/* ---------- 布局容器与章节 ---------- */
.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--frame-pad);
}

.section { padding-block: clamp(40px, 6vw, 84px); }
.section--wide { padding-block: clamp(56px, 8vw, 118px); }
.section--narrow { padding-block: clamp(22px, 3.4vw, 46px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.panel {
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--panel), var(--table));
}

.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--table);
  box-shadow: var(--shadow-card);
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 210, 90, .5);
  box-shadow: 0 26px 48px -28px rgba(255, 210, 90, .55);
}

.card__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
}

.card__meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 文本工具 ---------- */
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
  color: #D9DFF5;
}

.declaration {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.14;
  letter-spacing: -.01em;
}

.tilt {
  display: inline-block;
  transform: skewX(-4deg);
}

.declaration .tilt { color: var(--gold); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.note {
  padding: 12px 16px;
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(19, 28, 61, .6);
  color: var(--muted);
  font-size: 14.5px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

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

.breadcrumbs li + li::before {
  content: "◆";
  font-size: 8px;
  color: var(--violet);
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-soft); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.table-wrap th {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--gold);
  background: rgba(19, 28, 61, .85);
}

.table-wrap td { color: var(--muted); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ---------- 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease,
              border-color .24s ease, color .24s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold-soft);
  color: var(--ink);
  box-shadow: 0 16px 34px -20px rgba(255, 210, 90, .95);
}

.btn--gold:hover { background: var(--gold-soft); }

.btn--ghost {
  background: rgba(19, 28, 61, .72);
  border-color: var(--line-soft);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--diamond {
  padding: 16px 28px;
  border-radius: 0;
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  color: var(--ink);
  font-weight: 800;
  transform: rotate(-2deg);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn--diamond:hover {
  transform: rotate(-2deg) translateY(-2px);
  box-shadow: 0 20px 42px -22px rgba(255, 210, 90, .95);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: rgba(19, 28, 61, .62);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(255, 210, 90, .48);
  background: rgba(255, 210, 90, .11);
}

.tag--violet {
  color: #C4B5FD;
  border-color: rgba(139, 92, 246, .52);
  background: rgba(139, 92, 246, .15);
}

.tag--jade {
  color: var(--jade);
  border-color: rgba(45, 212, 191, .46);
  background: rgba(45, 212, 191, .11);
}

.tag--red {
  color: #FF8B99;
  border-color: rgba(224, 69, 90, .52);
  background: rgba(224, 69, 90, .14);
}

/* ---------- 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--violet), transparent);
}

.timeline__item {
  position: relative;
  padding-block: 10px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--ink);
  border: 2px solid var(--gold);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 90% at 80% 10%, rgba(139, 92, 246, .28), transparent 62%),
    linear-gradient(140deg, var(--panel), var(--table));
}

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

.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--card { aspect-ratio: 4 / 3; border-radius: var(--r-md); }

.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  background: linear-gradient(180deg, transparent, rgba(7, 11, 24, .92));
}

/* ---------- 显现动画 ---------- */
html[data-reveal="on"] .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html[data-reveal="on"] .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .44s ease, transform .44s ease;
}

/* ---------- JS 注入组件 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, var(--gold), var(--violet), var(--jade));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(19, 28, 61, .94);
  color: var(--gold);
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease,
              border-color .28s ease, box-shadow .28s ease;
}

.to-top[data-show] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 210, 90, .42), 0 18px 34px -20px rgba(255, 210, 90, .95);
}

/* ---------- 响应式：平板与手机 ---------- */
@media (max-width: 960px) {
  body { padding-left: 0; }

  .rail { display: none; }

  .frame__sign { display: inline-flex; }

  .frame__navrow { flex-wrap: wrap; }

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

  .site-nav {
    display: none;
    flex: 1 1 100%;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 4px 0 10px;
    overflow-x: visible;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--r-md);
  }

  .scroll-progress { left: 0; }

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

@media (max-width: 640px) {
  body { font-size: 16px; }

  .frame__topline { padding-inline: 14px; }
  .frame__navrow { padding-inline: 14px; }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    width: 44px;
    height: 44px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  html[data-reveal="on"] .reveal,
  html[data-reveal="on"] .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress { display: none; }
}
