/* ==========================================================================
   WILLIAMHILL主页 · 共享样式表 /assets/site.css
   框架式导航 + Bento 信息板 + 自然矿物色体系
   ========================================================================== */

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button { cursor: pointer; }

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

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  color-scheme: light;

  /* 色彩 */
  --c-deep: #0B1E3C;
  --c-night: #12305C;
  --c-gold: #D9A441;
  --c-gold-soft: #F0D08A;
  --c-jade: #2E8B7A;
  --c-coral: #E4715A;
  --c-clay: #B5714F;
  --c-rock: #6B7280;
  --c-mist: #A8BED8;
  --c-cream: #F7F4EE;
  --c-paper: #FFFFFF;
  --c-ink: #101319;

  --c-line: rgba(168, 190, 216, 0.55);
  --c-line-dark: rgba(217, 164, 65, 0.28);
  --c-line-light: rgba(247, 244, 238, 0.16);

  /* 尺寸 */
  --frame-bar-h: 68px;
  --frame-side-w: 150px;
  --shell-max: 1200px;
  --gutter: 24px;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* 字体 */
  --font-head: "HarmonyOS Sans SC", "HarmonyOS Sans", "Source Han Sans SC",
    "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  /* 字号阶梯 */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-17: 1.0625rem;
  --fs-22: 1.375rem;
  --fs-30: 1.875rem;
  --fs-44: 2.75rem;
  --fs-68: 4.25rem;
  --fs-96: 6rem;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --dur-1: 180ms;
  --dur-2: 240ms;
  --dur-3: 520ms;
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-17);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.h-hero {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.h-section {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.h-card {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-22);
  line-height: 1.35;
}

.lede {
  font-size: clamp(var(--fs-17), 1.4vw, var(--fs-22));
  line-height: 1.72;
  color: var(--c-rock);
  max-width: 34em;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-clay);
  margin-bottom: 14px;
}

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

.prose {
  font-size: var(--fs-17);
  line-height: 1.75;
  color: var(--c-ink);
}

.prose p { max-width: 34em; }
.prose p + p { margin-top: 1.1em; }
.prose strong { font-weight: 800; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 焦点与跳过链接 ---------- */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--c-gold);
  color: var(--c-deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-14);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  outline-offset: 0;
}

/* ---------- 5. 顶部框架条（header） ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--frame-bar-h);
  padding: 10px clamp(16px, 2.6vw, 30px);
  background: var(--c-deep);
  color: var(--c-cream);
  border-bottom: 1px solid var(--c-line-dark);
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-jade) 22%, var(--c-gold) 52%, var(--c-coral) 78%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

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

.brand__mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--c-gold) 0%, var(--c-clay) 100%);
  color: var(--c-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand__text { min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  color: var(--c-cream);
  white-space: nowrap;
}

.brand__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--c-gold-soft);
  white-space: nowrap;
}

.masthead__tail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 208, 138, 0.42);
  background: rgba(240, 208, 138, 0.08);
  color: var(--c-gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.version-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-jade);
  box-shadow: 0 0 0 3px rgba(46, 139, 122, 0.22);
}

/* ---------- 6. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(240, 208, 138, 0.42);
  border-radius: 999px;
  background: transparent;
  color: var(--c-gold-soft);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-14);
  line-height: 1;
  transition: border-color var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-gold);
  color: #fff;
  background: rgba(240, 208, 138, 0.1);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- 7. 左侧框架导航（nav-rail） ---------- */
.nav-rail {
  position: fixed;
  left: 0;
  top: var(--frame-bar-h);
  bottom: 0;
  z-index: 55;
  width: var(--frame-side-w);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 16px 22px;
  background: var(--c-deep);
  border-right: 1px solid var(--c-line-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-rail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: radial-gradient(120% 100% at 10% 0%, rgba(217, 164, 65, 0.18), transparent 70%);
  pointer-events: none;
}

.nav-rail__label {
  position: relative;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(168, 190, 216, 0.65);
}

.nav-rail__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-rail__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(247, 244, 238, 0.8);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  transition: color var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}

.nav-rail__link:hover {
  color: #fff;
  background: rgba(240, 208, 138, 0.09);
  border-color: rgba(240, 208, 138, 0.34);
  transform: translateX(3px);
}

.nav-rail__link[aria-current="page"] {
  background: var(--c-night);
  border-color: rgba(217, 164, 65, 0.6);
  color: #fff;
}

.nav-rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c-gold);
}

.nav-rail__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-gold);
}

.nav-rail__link[aria-current="page"] .nav-rail__num { color: var(--c-gold-soft); }

.nav-rail__name { min-width: 0; }

.nav-rail__foot {
  position: relative;
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--c-line-light);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: rgba(168, 190, 216, 0.6);
}

/* ---------- 8. 主体与页脚在框架内的缩进 ---------- */
.site-main { display: block; }

@media (min-width: 1081px) {
  .site-main,
  .site-footer { margin-left: var(--frame-side-w); }
}

/* ---------- 9. 按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--sm { padding: 10px 17px; font-size: var(--fs-14); }
.btn--lg { padding: 16px 30px; font-size: var(--fs-17); }

.btn--gold {
  background: var(--c-gold);
  color: var(--c-deep);
  box-shadow: 0 10px 24px -14px rgba(217, 164, 65, 0.9);
}

.btn--gold:hover {
  background: var(--c-gold-soft);
  box-shadow: 0 14px 30px -14px rgba(217, 164, 65, 1);
}

.btn--jade { background: var(--c-jade); color: #fff; }
.btn--jade:hover { background: #37a58f; }

.btn--coral { background: var(--c-coral); color: #fff; }
.btn--coral:hover { background: #ef8069; }

.btn--dark { background: var(--c-deep); color: var(--c-cream); }
.btn--dark:hover { background: var(--c-night); }

.btn--outline {
  background: transparent;
  border-color: var(--c-deep);
  color: var(--c-deep);
}

.btn--outline:hover {
  background: var(--c-deep);
  color: var(--c-cream);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(247, 244, 238, 0.5);
  color: var(--c-cream);
}

.btn--outline-light:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-soft);
}

/* ---------- 10. 容器与区块 ---------- */
.shell {
  width: min(var(--shell-max), 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.narrow { width: min(760px, 100%); }

.section { padding-block: clamp(44px, 6vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--paper { background: var(--c-paper); }
.section--dark { background: var(--c-deep); color: var(--c-cream); }
.section--night { background: var(--c-night); color: var(--c-cream); }

.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark .h-section, .section--dark .h-card,
.section--night h1, .section--night h2, .section--night h3,
.section--night .h-section, .section--night .h-card {
  color: var(--c-cream);
}

.section--dark .lede,
.section--night .lede { color: rgba(247, 244, 238, 0.78); }

.section--dark .eyebrow,
.section--night .eyebrow { color: var(--c-gold-soft); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  padding-top: clamp(20px, 2.6vw, 32px);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--c-rock);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--c-mist);
}

.breadcrumb a {
  color: var(--c-rock);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.breadcrumb a:hover {
  color: var(--c-deep);
  border-bottom-color: var(--c-gold);
}

.breadcrumb [aria-current="page"] { color: var(--c-deep); }

/* ---------- 12. Bento 栅格 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.bento-cell {
  grid-column: span 4;
  min-width: 0;
}

.bento-cell--half { grid-column: span 3; }
.bento-cell--third { grid-column: span 4; }
.bento-cell--focus { grid-column: span 6; }
.bento-cell--wide { grid-column: span 8; }
.bento-cell--full { grid-column: span 12; }
.bento-cell--offset { margin-top: clamp(0px, 3vw, 40px); }

/* ---------- 13. 面板卡片 ---------- */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}

.panel::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  transform: translateX(-140%);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
  pointer-events: none;
}

.panel:hover {
  border-color: rgba(217, 164, 65, 0.55);
  transform: translateY(-2px);
}

.panel:hover::after {
  opacity: 1;
  animation: edge-sweep 1600ms var(--ease) infinite;
}

@keyframes edge-sweep {
  0% { transform: translateX(-140%); }
  100% { transform: translateX(320%); }
}

.panel--night {
  background: var(--c-night);
  border-color: rgba(217, 164, 65, 0.3);
  color: var(--c-cream);
}

.panel--night h1, .panel--night h2, .panel--night h3,
.panel--night .h-card { color: var(--c-cream); }

.panel--gold {
  background: var(--c-gold-soft);
  border-color: rgba(181, 113, 79, 0.35);
  color: var(--c-deep);
}

.panel--outline {
  background: transparent;
  border-color: var(--c-line);
}

.panel--jade { border-top: 3px solid var(--c-jade); }
.panel--coral { border-top: 3px solid var(--c-coral); }
.panel--clay { border-top: 3px solid var(--c-clay); }

/* ---------- 14. 芯片与筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-paper);
  color: var(--c-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-14);
  line-height: 1;
  transition: background var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}

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

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

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

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

.chip__count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.72;
}

[data-filter-item] {
  animation: filter-in var(--dur-1) var(--ease) both;
}

@keyframes filter-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.filter-empty {
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--c-rock);
}

/* ---------- 15. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-night) 48%, var(--c-clay) 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 40%, rgba(240, 208, 138, 0.3) 50%, transparent 60%);
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--slash { clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }

/* ---------- 16. 入场显现 ---------- */
html[data-reveal-ready] .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html[data-reveal-ready] .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 右侧路径指示条 ---------- */
.path-rail { display: none; }

@media (min-width: 1380px) {
  .path-rail {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    width: auto;
  }

  .path-rail__readout {
    max-width: 150px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    color: var(--c-rock);
    text-align: right;
  }

  .path-rail__track {
    position: relative;
    display: block;
    width: 2px;
    height: 132px;
    border-radius: 2px;
    background: rgba(168, 190, 216, 0.45);
    overflow: hidden;
  }

  .path-rail__fill {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c-jade), var(--c-gold) 55%, var(--c-coral));
    transition: height 120ms linear;
  }

  .path-rail__dots {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
  }

  .path-rail__dot {
    position: relative;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(11, 30, 60, 0.28);
    border-radius: 99px;
    background: rgba(11, 30, 60, 0.16);
    transition: width var(--dur-2) var(--ease),
                background var(--dur-2) var(--ease),
                border-color var(--dur-2) var(--ease);
  }

  .path-rail__dot::after {
    content: attr(data-rail-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 9px;
    border-radius: 7px;
    background: var(--c-gold-soft);
    color: var(--c-deep);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-2) var(--ease);
  }

  .path-rail__dot:hover::after,
  .path-rail__dot:focus-visible::after { opacity: 1; }

  .path-rail__dot[aria-current="true"] {
    width: 24px;
    border-radius: 99px;
    background: var(--c-gold);
    border-color: var(--c-gold);
  }
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--c-deep);
  color: var(--c-cream);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.16), transparent 68%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  width: min(var(--shell-max), 100%);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) clamp(20px, 4vw, 40px) clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1.25fr;
  gap: clamp(26px, 3.2vw, 48px);
}

.footer-brand { margin-bottom: 18px; }

.footer-motto {
  max-width: 20em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: rgba(247, 244, 238, 0.9);
}

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

.footer-list li + li { margin-top: 7px; }

.footer-list a {
  display: inline-block;
  color: rgba(247, 244, 238, 0.78);
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.footer-list a:hover {
  color: var(--c-gold-soft);
  border-bottom-color: rgba(240, 208, 138, 0.6);
}

.footer-list--contact li + li { margin-top: 10px; }

.contact-copy {
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(240, 208, 138, 0.42);
  color: var(--c-gold-soft);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
  word-break: break-all;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.contact-copy:hover {
  color: #fff;
  border-bottom-color: var(--c-gold);
}

.contact-copy.is-copied {
  color: var(--c-gold);
  border-bottom-style: solid;
}

.contact-copy.is-copied::after {
  content: " · " attr(data-copy-label);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-gold-soft);
}

.footer-addr {
  display: block;
  max-width: 24em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(168, 190, 216, 0.85);
}

.footer-note {
  max-width: 30em;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(168, 190, 216, 0.68);
}

.footer-base {
  position: relative;
  border-top: 1px solid var(--c-line-light);
  background: rgba(18, 48, 92, 0.55);
}

.footer-base__inner {
  width: min(var(--shell-max), 100%);
  margin-inline: auto;
  padding: 18px clamp(20px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(168, 190, 216, 0.78);
}

.footer-copy { color: rgba(247, 244, 238, 0.72); }

.footer-glow {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--c-jade) 16%, var(--c-gold) 50%, var(--c-coral) 84%, transparent 100%);
  background-size: 180% 100%;
  animation: glow-sweep 7000ms ease-in-out infinite alternate;
}

@keyframes glow-sweep {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

/* ---------- 19. 平板 ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .nav-rail {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: min(74vh, 540px);
    padding: 20px 16px 18px;
    border: 1px solid rgba(217, 164, 65, 0.4);
    border-radius: var(--radius-xl);
    box-shadow: 0 26px 60px rgba(6, 17, 36, 0.5);
    transform: translateY(calc(100% + 30px));
    opacity: 0;
    visibility: hidden;
    transition: transform 300ms var(--ease),
                opacity 220ms var(--ease),
                visibility 300ms;
  }

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

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

  .nav-rail__link {
    padding: 13px 14px;
    border-radius: 14px;
    border-color: rgba(168, 190, 216, 0.22);
    font-size: 16px;
  }

  .nav-rail__link[aria-current="page"]::before {
    left: -1px;
    top: 11px;
    bottom: 11px;
    border-radius: 3px;
  }

  .nav-rail__foot { border-top: 0; padding-top: 4px; }

  .site-main,
  .site-footer { margin-left: 0; }

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

/* ---------- 20. 手机 ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .bento-cell,
  .bento-cell--third { grid-column: span 3; }

  .bento-cell--half { grid-column: span 3; }
  .bento-cell--focus,
  .bento-cell--wide,
  .bento-cell--full { grid-column: span 6; }

  .bento-cell--offset { margin-top: 0; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); }

  .bento-cell,
  .bento-cell--third,
  .bento-cell--half,
  .bento-cell--focus,
  .bento-cell--wide,
  .bento-cell--full { grid-column: 1 / -1; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 40px;
  }

  .footer-base__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .brand__tag { display: none; }

  .version-badge { display: none; }

  .brand__mark { flex-basis: 38px; width: 38px; height: 38px; }

  .brand__name { font-size: 16px; }

  .masthead { gap: 10px; }
}

/* ---------- 21. 减少动效 ---------- */
@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;
  }

  html[data-reveal-ready] .reveal {
    opacity: 1;
    transform: none;
  }
}
