/* ============================================================
   616游戏 · 共享样式 /assets/site.css
   深空底 · 霓虹青紫 · 暖橙礼包 · 8度斜切 · 粗边强影
   ============================================================ */

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

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

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink-void: #05070F;
  --ink-panel: #0B1120;
  --ink-raise: #141D33;
  --line: #2A3555;
  --text: #F4F7FF;
  --text-dim: #AEB9D6;
  --cyan: #32E6FF;
  --violet: #8C5CFF;
  --amber: #FFB454;
  --green: #7CFFB2;
  --coral: #FF6B8A;

  --font-display: "HarmonyOS Sans SC", "Alibaba PuHuiTi 3.0", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --radius-pill: 999px;
  --slant: 8deg;
  --edge: 2px solid var(--line);
  --shadow-panel: 0 28px 55px -34px rgba(0, 0, 0, .95);
  --shadow-float: 0 22px 45px -28px rgba(0, 0, 0, .95);
  --shell-max: 1260px;
  --pad-inline: clamp(14px, 3vw, 32px);
  --gap: clamp(14px, 2vw, 22px);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink-void);
  background-image:
    radial-gradient(900px 620px at 84% -12%, rgba(140, 92, 255, .20), transparent 62%),
    radial-gradient(760px 520px at -6% 8%, rgba(50, 230, 255, .13), transparent 60%),
    radial-gradient(600px 420px at 50% 118%, rgba(255, 180, 84, .07), transparent 65%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* 扫描线质感层 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(244, 247, 255, .035) 0 1px,
    transparent 1px 4px
  );
  opacity: .5;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { max-width: 72ch; }

strong { color: var(--text); }

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

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

/* 焦点 */
:focus-visible,
.skip-link:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink-void);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

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

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px var(--pad-inline) 10px;
}

.nav-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 16px;
  border: var(--edge);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(20, 29, 51, .95), rgba(11, 17, 32, .93));
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(244, 247, 255, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-shell::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: .75;
  pointer-events: none;
}

/* 品牌索引 */
.brand-index {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 12px;
}

.brand-glyph {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cyan);
  transform: skewX(calc(var(--slant) * -1));
  text-shadow: 3px 3px 0 rgba(140, 92, 255, .55);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .02em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--text-dim);
}

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

/* 导航胶囊 */
.nav-panel {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-pills {
  margin-inline: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-dim);
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--ink-raise);
  border-color: var(--line);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  color: var(--ink-void);
  background: linear-gradient(120deg, var(--cyan), var(--cyan) 55%, var(--violet));
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 10px 22px -14px var(--cyan);
}

/* 礼包浮岛 */
.nav-utility { flex: 0 0 auto; }

.gift-island {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 180, 84, .55);
  background: rgba(255, 180, 84, .10);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.gift-island-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, .25);
}

.gift-island:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-void);
  transform: translateY(-1px);
}

.gift-island:hover .gift-island-dot {
  background: var(--ink-void);
  box-shadow: 0 0 0 3px rgba(5, 7, 15, .25);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: var(--edge);
  border-radius: var(--radius-pill);
  background: var(--ink-raise);
  transition: border-color .16s ease;
}

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

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .18s ease, opacity .18s ease;
}

/* 滚动进度光带 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 60%, var(--amber));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: var(--edge);
  background:
    linear-gradient(180deg, rgba(11, 17, 32, .96), rgba(5, 7, 15, .98));
  box-shadow: inset 0 1px 0 rgba(244, 247, 255, .06);
  padding-block: clamp(32px, 5vw, 56px) 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 2px dashed rgba(42, 53, 85, .9);
}

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

.footer-brand-glyph {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--violet);
  transform: skewX(calc(var(--slant) * -1));
  text-shadow: 4px 4px 0 rgba(50, 230, 255, .35);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.footer-brand-sub {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--text-dim);
}

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

.footer-index {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--text-dim);
  max-width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding-block: clamp(24px, 4vw, 40px);
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--cyan);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.footer-contact {
  display: grid;
  gap: 12px;
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-dim);
}

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--text-dim);
  flex: 0 0 auto;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.footer-contact-value {
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy-email {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(50, 230, 255, .45);
  color: var(--cyan);
  transition: background-color .16s ease, color .16s ease;
}

.copy-email:hover {
  background: var(--cyan);
  color: var(--ink-void);
}

.copy-status {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--green);
  min-height: 1em;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-link {
  font-size: .88rem;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-note {
  font-size: .84rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-region {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--amber);
  padding: 8px 12px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 180, 84, .07);
  border-radius: 0 8px 8px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-year {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal .footer-link {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
}

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

.section { padding-block: clamp(26px, 5vw, 60px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  padding-bottom: 14px;
  margin-bottom: clamp(18px, 3vw, 28px);
  border-bottom: var(--edge);
}

.section-index {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: none;
  transform: skewX(-3deg);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .24em;
  color: var(--violet);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--split { grid-template-columns: 1.15fr .85fr; }

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.stack {
  display: grid;
  gap: 12px;
}

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

/* ---------- 8. 文本工具 ---------- */
.mono {
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

.dim { color: var(--text-dim); }

.lede {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.8;
  color: var(--text-dim);
}

.prose {
  display: grid;
  gap: 14px;
  color: var(--text-dim);
  max-width: 72ch;
}

.prose h2,
.prose h3 { color: var(--text); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--ink-raise);
  color: var(--text-dim);
}

/* ---------- 9. 卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--ink-panel);
  box-shadow: var(--shadow-panel);
}

.panel--raised { background: var(--ink-raise); }

.panel--slant {
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: var(--edge);
  border-radius: var(--radius-pill);
  background: var(--ink-raise);
  color: var(--text);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 14px 26px -20px var(--cyan);
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  color: var(--ink-void);
  box-shadow: 0 16px 30px -22px var(--cyan);
}

.btn--primary:hover {
  color: var(--ink-void);
  border-color: transparent;
  box-shadow: 0 20px 34px -20px var(--violet);
}

.btn--gift {
  border-color: rgba(255, 180, 84, .55);
  background: rgba(255, 180, 84, .12);
  color: var(--amber);
}

.btn--gift:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-void);
  box-shadow: 0 16px 28px -20px var(--amber);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 11. 图例与状态 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-raise);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  white-space: nowrap;
}

.chip--cyan { color: var(--cyan); border-color: rgba(50, 230, 255, .45); background: rgba(50, 230, 255, .09); }
.chip--violet { color: var(--violet); border-color: rgba(140, 92, 255, .45); background: rgba(140, 92, 255, .12); }
.chip--amber { color: var(--amber); border-color: rgba(255, 180, 84, .45); background: rgba(255, 180, 84, .1); }
.chip--green { color: var(--green); border-color: rgba(124, 255, 178, .45); background: rgba(124, 255, 178, .1); }
.chip--coral { color: var(--coral); border-color: rgba(255, 107, 138, .45); background: rgba(255, 107, 138, .1); }

/* ---------- 12. 统计与进度 ---------- */
.stat {
  display: grid;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--amber);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--text-dim);
}

.meter {
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-void);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  width: var(--value, 60%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.meter-fill--amber {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

/* ---------- 13. 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  border: var(--edge);
  border-radius: 16px;
  background: var(--ink-panel);
  box-shadow: var(--shadow-panel);
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .9rem;
}

.data-table caption {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--cyan);
}

.data-table th {
  padding: 11px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text-dim);
  background: var(--ink-raise);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: top;
}

.data-table td strong { color: var(--text); }

/* ---------- 14. 面包屑 ---------- */
.breadcrumbs { margin-bottom: 18px; }

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--text-dim);
}

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

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "／";
  color: var(--line);
}

.breadcrumbs-link {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.breadcrumbs-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumbs-item[aria-current="page"] { color: var(--cyan); }

/* ---------- 15. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: var(--edge);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(140, 92, 255, .18), rgba(50, 230, 255, .12) 55%, rgba(5, 7, 15, .9)),
    var(--ink-raise);
  box-shadow: var(--shadow-panel);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(244, 247, 255, .06) 0 1px,
    transparent 1px 5px
  );
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(50, 230, 255, .5);
  background: rgba(5, 7, 15, .8);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--cyan);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}

/* ---------- 16. 锚点目录 ---------- */
.toc {
  border-left: 2px solid var(--line);
  padding-left: 14px;
}

.toc-list {
  display: grid;
  gap: 6px;
}

.toc-link {
  display: block;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  margin-left: -16px;
  padding-left: 16px;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

.toc-link:hover {
  color: var(--text);
  background: var(--ink-raise);
}

.toc-link[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(50, 230, 255, .08);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-link { padding: 8px 10px; font-size: .82rem; }
  .gift-island { padding: 8px 12px; font-size: .8rem; }
  .grid--split { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .site-header { padding: 10px 12px 8px; }

  .nav-shell {
    padding: 8px 10px 8px 12px;
    gap: 10px;
  }

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

  .nav-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 14px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border: var(--edge);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--ink-raise), var(--ink-panel));
    box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.98);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .site-header[data-open] .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .site-header[data-open] .nav-toggle { border-color: var(--cyan); }

  .site-header[data-open] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }

  .site-header[data-open] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-pills { margin-inline: 0; width: 100%; }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    flex-wrap: wrap;
  }

  .nav-link {
    text-align: center;
    padding: 12px 8px;
    font-size: .9rem;
    border-color: var(--line);
    background: rgba(20, 29, 51, .6);
  }

  .nav-utility { width: 100%; }

  .gift-island {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: .9rem;
  }

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

  .footer-top { flex-direction: column; align-items: flex-start; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  body::after { opacity: .35; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-glyph { font-size: 1.12rem; }
  .nav-list { grid-template-columns: 1fr; }
  .footer-legal { gap: 6px 14px; }
  .data-table { min-width: 420px; }
}

/* ---------- 18. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .nav-link:hover,
  .gift-island:hover,
  .btn:hover,
  .copy-email:hover { transform: none; }

  .nav-panel { transition: none; }

  body::after { opacity: .22; }
}
