/* ==========================================================================
   财神捕鱼电玩 · /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, p, figure, blockquote, dl, dd, ul, ol, li { 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;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; }

html.is-locked { overflow: hidden; }

/* ---------- 设计变量 ---------- */
:root {
  --ink: #0B1020;
  --ink-2: #141F3A;
  --red: #C8202E;
  --red-deep: #8E1520;
  --gold: #F2B233;
  --gold-hi: #FFD98A;
  --teal: #0E7C86;
  --coral: #FF6B4A;
  --green: #3BE39B;
  --paper: #F5EFE3;
  --mist: #A8B6CC;

  --font-display: "ZCOOL KuaiLe", "Yuanti SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --shadow-layer: 0 8px 24px rgba(0, 0, 0, 0.42);
  --hairline: rgba(242, 178, 51, 0.28);
}

/* ---------- 中文排版基线 ---------- */
body {
  min-height: 100dvh;
  background-color: var(--ink);
  background-image:
    radial-gradient(58% 42% at 78% 0%, rgba(14, 124, 134, 0.20), transparent 64%),
    radial-gradient(52% 44% at 2% 20%, rgba(200, 32, 46, 0.16), transparent 68%),
    radial-gradient(46% 38% at 96% 76%, rgba(242, 178, 51, 0.10), transparent 72%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

p { line-height: 1.85; }

strong { color: var(--gold-hi); font-weight: 700; }

::selection { background: var(--red); color: var(--paper); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 容器 ---------- */
.shell {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

/* ---------- 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 20px;
  z-index: 300;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-layer);
  transition: top 0.22s ease;
}

.skip-link:focus,
.skip-link:focus-visible { top: 0; }

/* ---------- 阅读进度线 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 130;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 46%, var(--green) 100%);
  transition: transform 0.12s linear;
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.94) 0%, rgba(11, 16, 32, 0.62) 66%, rgba(11, 16, 32, 0) 100%);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header[data-scrolled] {
  background: rgba(11, 16, 32, 0.96);
  box-shadow: 0 1px 0 rgba(242, 178, 51, 0.32), 0 12px 32px rgba(0, 0, 0, 0.44);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 86px;
  transition: min-height 0.3s ease;
}

.site-header[data-scrolled] .header-inner { min-height: 68px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  flex: none;
}

.brand-coin {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--red-deep);
  background: radial-gradient(circle at 34% 28%, var(--gold-hi) 0%, var(--gold) 56%, #c98b1c 100%);
  box-shadow: 0 0 0 1px rgba(255, 217, 138, 0.6), 0 6px 18px rgba(242, 178, 51, 0.3);
  transition: transform 0.3s ease;
}

.brand:hover .brand-coin { transform: rotate(-8deg) scale(1.04); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-shadow: 0 0 16px rgba(242, 178, 51, 0.28);
}

.brand-tag {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--mist);
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  background: rgba(245, 239, 227, 0.07);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] { color: var(--gold-hi); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.nav-meta {
  display: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist);
  line-height: 1.6;
}

/* 工具区按钮 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid rgba(242, 178, 51, 0.42);
  background: rgba(242, 178, 51, 0.06);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.drawer-toggle:hover {
  background: rgba(242, 178, 51, 0.14);
  border-color: var(--gold);
  color: var(--gold-hi);
  transform: translateY(-1px);
}

.drawer-toggle-dots {
  width: 14px;
  height: 10px;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 4px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 0 / 4px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 0 / 4px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 4px / 4px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 4px / 4px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 8px / 4px 2px no-repeat;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 178, 51, 0.45);
  color: var(--gold-hi);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.nav-toggle:hover { background: rgba(242, 178, 51, 0.12); border-color: var(--gold); }

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s ease;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle-label { display: inline-block; }

/* 三级抽屉 */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(392px, 88vw);
  z-index: 96;
  padding: 92px 26px 40px;
  overflow-y: auto;
  background: linear-gradient(162deg, #162342 0%, #101a33 40%, #0B1020 100%);
  border-left: 1px solid var(--hairline);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.24, 1), visibility 0.38s;
}

.nav-drawer[data-open] {
  transform: none;
  visibility: visible;
}

.drawer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 178, 51, 0.4);
  background: rgba(245, 239, 227, 0.05);
  color: var(--paper);
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.drawer-close:hover {
  background: rgba(200, 32, 46, 0.3);
  border-color: rgba(200, 32, 46, 0.75);
}

.drawer-head { padding-bottom: 18px; border-bottom: 1px solid rgba(168, 182, 204, 0.18); }

.drawer-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--teal);
  text-transform: uppercase;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-top: 4px;
  text-shadow: 0 0 20px rgba(242, 178, 51, 0.25);
}

.drawer-group { margin-top: 26px; }

.drawer-group-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 8px;
  padding-left: 4px;
}

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

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--paper);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.drawer-link:hover,
.drawer-link:focus-visible {
  background: rgba(242, 178, 51, 0.10);
  border-color: rgba(242, 178, 51, 0.34);
  transform: translateX(-3px);
}

.drawer-link-text { letter-spacing: 0.04em; }

.drawer-link-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.85;
}

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 8, 18, 0.66);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-scrim[data-open] { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   通用按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
  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: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--coral);
  color: #1a0a06;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.3);
}

.btn--primary:hover { background: #ff8062; box-shadow: 0 14px 30px rgba(255, 107, 74, 0.4); }

.btn--gold {
  background: var(--gold);
  color: #231a05;
  box-shadow: 0 10px 24px rgba(242, 178, 51, 0.26);
}

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

.btn--red { background: var(--red); color: var(--paper); }
.btn--red:hover { background: var(--red-deep); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(242, 178, 51, 0.5);
}

.btn--ghost:hover {
  color: var(--gold-hi);
  border-color: var(--gold-hi);
  background: rgba(242, 178, 51, 0.08);
}

/* ==========================================================================
   章节标题系统
   ========================================================================== */
.chapter { position: relative; padding-top: clamp(48px, 7vw, 96px); }

.chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.chapter-band {
  flex: none;
  width: 48px;
  height: 6px;
  margin-top: 22px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 14px rgba(200, 32, 46, 0.5);
}

.chapter-index {
  font-family: var(--font-mono);
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(242, 178, 51, 0.16);
  user-select: none;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-shadow: 0 0 22px rgba(242, 178, 51, 0.22);
}

.chapter-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mist);
  margin-top: 8px;
}

.chapter-rule {
  height: 1px;
  margin: clamp(18px, 3vw, 30px) 0 clamp(22px, 3.4vw, 40px);
  background: linear-gradient(90deg, rgba(242, 178, 51, 0.45), rgba(242, 178, 51, 0.02) 78%, transparent);
}

/* ==========================================================================
   卡片（纸张叠层）
   ========================================================================== */
.paper-card {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  color: #17203a;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 16, 32, 0.08);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-layer);
}

.paper-card h2,
.paper-card h3,
.paper-card h4 { color: #101a33; }

.paper-card a { color: var(--red-deep); }

.paper-card--dark {
  background: linear-gradient(160deg, #162342 0%, #0B1020 100%);
  color: var(--paper);
  border-color: rgba(242, 178, 51, 0.26);
}

.paper-card--dark h2,
.paper-card--dark h3,
.paper-card--dark h4 { color: var(--paper); }

.paper-card--stack::before {
  content: "";
  position: absolute;
  inset: 12px -9px -12px 9px;
  z-index: -1;
  border-radius: var(--radius);
  background: rgba(245, 239, 227, 0.08);
  border: 1px solid rgba(242, 178, 51, 0.2);
}

/* ==========================================================================
   标签 / 面包屑
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 178, 51, 0.42);
  background: rgba(242, 178, 51, 0.08);
  color: var(--gold);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tag--red {
  color: #ffd9d9;
  background: rgba(200, 32, 46, 0.24);
  border-color: rgba(200, 32, 46, 0.66);
}

.tag--green {
  color: #062a1b;
  background: var(--green);
  border-color: var(--green);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.crumbs a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.crumbs a:hover {
  color: var(--gold-hi);
  border-bottom-color: rgba(242, 178, 51, 0.6);
}

.crumbs span[aria-current="page"] { color: var(--gold); }

.crumbs li::after {
  content: "/";
  margin-left: 9px;
  color: rgba(168, 182, 204, 0.45);
}

.crumbs li:last-child::after { content: ""; margin: 0; }

/* ==========================================================================
   图片容器基础规则（页面阶段放入 img）
   ========================================================================== */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 178, 51, 0.26);
  box-shadow: var(--shadow-layer);
  background:
    radial-gradient(110% 86% at 18% 8%, rgba(14, 124, 134, 0.46), transparent 62%),
    radial-gradient(96% 78% at 86% 88%, rgba(200, 32, 46, 0.40), transparent 64%),
    linear-gradient(158deg, #162342 0%, #0B1020 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  z-index: -1;
  background:
    linear-gradient(102deg, transparent 32%, rgba(242, 178, 51, 0.18) 47%, transparent 60%),
    linear-gradient(84deg, transparent 52%, rgba(59, 227, 155, 0.14) 66%, transparent 78%);
  opacity: 0.9;
}

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

.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; }

/* ==========================================================================
   栅格
   ========================================================================== */
.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
}

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

.grid--offset > *:nth-child(even) { transform: translateY(clamp(12px, 2vw, 28px)); }

/* ==========================================================================
   小屏底部悬浮胶囊
   ========================================================================== */
.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(242, 178, 51, 0.4);
  background: rgba(11, 16, 32, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}

.dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--mist);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.dock-item[aria-current="page"],
.dock-item:hover { background: var(--red); color: var(--paper); }

/* ==========================================================================
   显现动效
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.48s ease-out, transform 0.48s ease-out;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 132px);
  padding-top: clamp(44px, 6vw, 82px);
  background: linear-gradient(180deg, #0d1428 0%, #0B1020 52%, #070b16 100%);
  border-top: 1px solid rgba(242, 178, 51, 0.26);
  color: var(--mist);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(38%, 420px);
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}

.footer-inner {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 1.8fr 1.05fr;
  gap: clamp(26px, 4vw, 60px);
  padding-bottom: clamp(32px, 4vw, 54px);
}

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

.footer-coin {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  color: var(--red-deep);
  background: radial-gradient(circle at 34% 28%, var(--gold-hi) 0%, var(--gold) 56%, #c98b1c 100%);
  box-shadow: 0 0 0 1px rgba(255, 217, 138, 0.55), 0 8px 20px rgba(242, 178, 51, 0.24);
  margin-bottom: 16px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 6px;
}

.footer-motto {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-brand .footer-note { margin-bottom: 20px; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(242, 178, 51, 0.4);
  background: rgba(242, 178, 51, 0.06);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.to-top:hover {
  background: rgba(242, 178, 51, 0.16);
  border-color: var(--gold);
  color: var(--gold-hi);
  transform: translateY(-2px);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.footer-col-title {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(168, 182, 204, 0.18);
}

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

.footer-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--paper);
  border-bottom-color: rgba(242, 178, 51, 0.7);
  transform: translateX(3px);
}

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-key {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-transform: uppercase;
}

.contact-value {
  font-size: 13px;
  line-height: 1.75;
  color: var(--paper);
  word-break: break-word;
}

.contact-item:first-child .contact-value,
.contact-item:nth-child(2) .contact-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.footer-base {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(168, 182, 204, 0.16);
}

.footer-legal {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(168, 182, 204, 0.82);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: block;
    padding-inline: var(--gutter);
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #12203c 0%, #0B1020 100%);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
    transition: max-height 0.38s cubic-bezier(0.22, 0.9, 0.24, 1);
  }

  .site-nav[data-open] {
    max-height: min(74vh, 560px);
    overflow-y: auto;
    padding-block: 14px 22px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    padding: 13px 12px;
    font-size: 16px;
    letter-spacing: 0.05em;
    border-left: 3px solid transparent;
    border-radius: 0 12px 12px 0;
  }

  .nav-link:hover { transform: none; }

  .nav-link[aria-current="page"] {
    background: rgba(200, 32, 46, 0.16);
    border-left-color: var(--red);
    color: var(--gold-hi);
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-meta {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(168, 182, 204, 0.24);
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { max-width: none; grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .header-inner { min-height: 74px; gap: 10px; }
  .site-header[data-scrolled] .header-inner { min-height: 62px; }

  .brand-coin { width: 38px; height: 38px; font-size: 18px; }
  .brand-name { font-size: 17px; }
  .brand-tag { font-size: 9px; letter-spacing: 0.14em; }

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

  .grid--offset > *:nth-child(even) { transform: none; }

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

  .dock { display: flex; }

  .chapter-band { width: 34px; margin-top: 16px; }
  .chapter-head { gap: 12px; }
}

@media (max-width: 560px) {
  .brand-tag { display: none; }
  .drawer-toggle { display: none; }
  .nav-toggle { padding: 10px 13px; }
  .nav-toggle-label { display: none; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }

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

  .btn { padding: 14px 22px; font-size: 14px; }
}

/* ==========================================================================
   动效可及性
   ========================================================================== */
@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;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .nav-drawer { transition: none; }
  .scroll-progress { transition: none; }
}
