/* ============================================================
   娱乐神殿会馆 · /assets/site.css
   共享外壳：reset / tokens / 排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

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

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

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #140F24;
  --ink-800: #1E1538;
  --ink-700: #2A2144;
  --gold: #D9A94E;
  --gold-soft: #F0D28A;
  --cyan: #4FE0D0;
  --magenta: #E6449C;
  --cream: #F4EFE4;
  --mist: #C9BFD8;
  --green: #6FD08C;

  --line: rgba(217, 169, 78, .30);
  --line-soft: rgba(201, 191, 216, .16);
  --glass: rgba(42, 33, 68, .58);
  --glow: 0 0 0 1px rgba(217, 169, 78, .45), 0 0 28px -8px rgba(217, 169, 78, .62);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 24px 6px 26px 8px;
  --radius-sm: 14px 4px 16px 4px;
  --header-h: 156px;
  --noise:
    repeating-radial-gradient(circle at 18% 27%, rgba(244, 239, 228, .030) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 73% 61%, rgba(244, 239, 228, .022) 0 1px, transparent 1px 3px);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1200px 620px at 10% -10%, rgba(42, 33, 68, .95), transparent 62%),
    radial-gradient(900px 520px at 92% 2%, rgba(217, 169, 78, .10), transparent 60%),
    radial-gradient(760px 460px at 50% 108%, rgba(79, 224, 208, .06), transparent 66%),
    var(--noise);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: .06em;
  color: var(--cream);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: .09em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { color: var(--mist); }

a { color: var(--cyan); }
a:hover { color: var(--gold-soft); }

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

::selection {
  background: rgba(217, 169, 78, .32);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 300;
  padding: .6rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: #1a1226;
  background: var(--gold);
  border-radius: 4px;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); color: #1a1226; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  color: var(--gold-soft);
  text-shadow: 0 0 12px rgba(240, 210, 138, .32);
}

#main-content {
  display: block;
  padding-top: var(--header-h);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ---------- 4. 布局与通用组件 ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.section-head {
  display: grid;
  gap: .7rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(217, 169, 78, .1));
}

.chapter {
  display: grid;
  gap: .35rem;
  padding-block: .4rem;
  border-left: 1px solid var(--line);
  padding-left: 1.1rem;
}
.chapter-num {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .3em;
  color: var(--gold);
}
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: .08em;
  color: var(--cream);
}

.breadcrumb { padding-bottom: 1.4rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--mist);
}
.breadcrumb li:not(:first-child)::before {
  content: "／";
  margin-right: .5rem;
  color: rgba(217, 169, 78, .6);
}
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--gold-soft); }

.prose { max-width: 68ch; }
.prose p { color: var(--cream); }
.prose p + p { margin-top: 1rem; }
.prose ul { display: grid; gap: .5rem; margin-top: 1rem; }
.prose li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--mist);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

.note {
  padding: .9rem 0 .9rem 1.1rem;
  border-left: 1px solid rgba(217, 169, 78, .5);
  font-size: .875rem;
  line-height: 1.8;
  color: var(--mist);
  background: linear-gradient(90deg, rgba(42, 33, 68, .5), transparent 70%);
}

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(90deg, transparent, rgba(217, 169, 78, .45), rgba(79, 224, 208, .25), transparent);
}

/* 卡片 */
.card {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: linear-gradient(160deg, rgba(42, 33, 68, .72), rgba(30, 21, 56, .88));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(244, 239, 228, .04);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover {
  border-color: rgba(217, 169, 78, .42);
  box-shadow: inset 0 1px 0 rgba(244, 239, 228, .06), 0 0 34px -20px rgba(217, 169, 78, .9);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .05em;
  color: var(--cream);
}
.card-body {
  margin-top: .5rem;
  font-size: .925rem;
  color: var(--mist);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .16rem .62rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--mist);
  white-space: nowrap;
}
.tag--gold { color: var(--gold-soft); border-color: rgba(217, 169, 78, .5); background: rgba(217, 169, 78, .08); }
.tag--cyan { color: var(--cyan); border-color: rgba(79, 224, 208, .42); background: rgba(79, 224, 208, .06); }
.tag--magenta { color: var(--magenta); border-color: rgba(230, 68, 156, .45); background: rgba(230, 68, 156, .07); }

/* 图片容器基础规则（供页面阶段使用） */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(42, 33, 68, .92), rgba(20, 15, 36, .96)),
    var(--ink-900);
}
.media-frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .55;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 2px 16px 2px 16px;
  background: rgba(42, 33, 68, .62);
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--cream);
  transition: color .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.btn:hover { color: #fff; border-color: var(--gold); box-shadow: var(--glow); }

.btn-gold {
  color: var(--gold-soft);
  border-color: rgba(217, 169, 78, .7);
  background: linear-gradient(180deg, rgba(217, 169, 78, .20), rgba(217, 169, 78, .05));
  box-shadow: inset 0 0 0 1px rgba(240, 210, 138, .16);
}
.btn-gold:hover {
  color: #1a1226;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 26px -6px rgba(240, 210, 138, .8);
}

.btn-ghost { color: var(--mist); border-color: var(--line-soft); background: transparent; }
.btn-ghost:hover { color: var(--cyan); border-color: rgba(79, 224, 208, .6); box-shadow: 0 0 22px -10px rgba(79, 224, 208, .9); }

.btn-sm { padding: .48rem .9rem; font-size: .8rem; }

.copy-btn {
  flex: 0 0 auto;
  padding: .14rem .55rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  color: var(--cyan);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.copy-btn:hover { color: #0d2724; background: var(--cyan); border-color: var(--cyan); }
.copy-btn[data-copied="true"] { color: var(--green); border-color: rgba(111, 208, 140, .55); background: rgba(111, 208, 140, .12); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--mist);
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.to-top::before { content: "↑"; color: var(--gold); }
.to-top:hover { color: var(--cream); border-color: var(--gold); box-shadow: var(--glow); }

/* 折叠面板 */
.accordion { display: grid; gap: .6rem; }

.accordion-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(30, 21, 56, .62);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.accordion-item[data-open="true"] {
  border-color: rgba(217, 169, 78, .45);
  box-shadow: 0 0 34px -22px rgba(217, 169, 78, .95);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: var(--cream);
  transition: color .2s ease;
}
.accordion-trigger:hover { color: var(--gold-soft); }

.accordion-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--gold);
  transition: transform .25s ease;
}
.accordion-icon::after { transform: rotate(90deg); }
.accordion-item[data-open="true"] .accordion-icon::after { transform: rotate(0deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}
.accordion-panel-inner {
  padding: 0 1.15rem 1.15rem;
  font-size: .925rem;
  color: var(--mist);
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(20, 15, 36, .93) 0%, rgba(20, 15, 36, .74) 56%, rgba(20, 15, 36, .20) 100%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: background-color .26s ease, box-shadow .26s ease, -webkit-backdrop-filter .26s ease, backdrop-filter .26s ease;
}
.site-header[data-stuck="true"] {
  background: rgba(30, 21, 56, .98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 22px 44px -34px rgba(0, 0, 0, .95);
}

/* 归档铭文轨 */
.header-rail {
  max-height: 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  opacity: 1;
  transition: max-height .28s ease, opacity .2s ease, border-color .28s ease;
}
.site-header[data-stuck="true"] .header-rail {
  max-height: 0;
  opacity: 0;
  border-color: transparent;
}

.rail-inner {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--mist);
}
.rail-index { color: var(--gold); }
.rail-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--mist);
}
.rail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}
.rail-meta {
  margin-left: auto;
  color: rgba(201, 191, 216, .75);
}

/* 主品牌栏 */
.bar-inner {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  transition: height .26s ease;
}
.site-header[data-stuck="true"] .bar-inner { height: 62px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
}

.brand-glyph {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.brand-glyph::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 169, 78, .45);
  border-bottom-color: rgba(217, 169, 78, .18);
  border-radius: 50% 50% 4px 4px / 68% 68% 4px 4px;
  box-shadow: inset 0 8px 16px -12px rgba(240, 210, 138, .95);
}
.brand-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 10px 2px rgba(240, 210, 138, .75);
}
.brand-glyph i {
  position: absolute;
  bottom: 6px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(240, 210, 138, .95), rgba(217, 169, 78, .12));
}
.brand-glyph i:nth-child(1) { left: 9px; height: 12px; }
.brand-glyph i:nth-child(2) { left: 50%; margin-left: -1px; height: 20px; }
.brand-glyph i:nth-child(3) { right: 9px; height: 12px; }

.brand-text { display: grid; gap: .1rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: .16em;
  color: var(--cream);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--gold);
  text-shadow: none;
}

/* 主导航 */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.6vw, 1.6rem);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: .45rem 0 .55rem;
  font-size: .93rem;
  letter-spacing: .07em;
  color: var(--mist);
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: transform .24s ease;
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--gold-soft);
  font-weight: 600;
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 12px rgba(240, 210, 138, .7);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(42, 33, 68, .62);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--gold-soft);
  transition: box-shadow .22s ease, border-color .22s ease;
}
.nav-toggle:hover { border-color: var(--gold); box-shadow: var(--glow); }

.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* 核心通道条 */
.quick-strip { border-top: 1px solid var(--line-soft); }

.quick-inner {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-inner::-webkit-scrollbar { display: none; }

.quick-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .26em;
  color: var(--gold);
  text-shadow: none;
}

.quick-list {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .26rem .75rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--mist);
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.quick-chip:hover {
  color: var(--cream);
  border-color: var(--gold);
  background: rgba(217, 169, 78, .08);
  box-shadow: 0 0 20px -10px rgba(217, 169, 78, .9);
}

.chip-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.quick-list li:nth-child(3) .chip-dot { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.quick-list li:nth-child(4) .chip-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* 阅读进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 52%, var(--cyan));
  box-shadow: 0 0 14px rgba(217, 169, 78, .65);
  pointer-events: none;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 15, 36, 0) 0%, rgba(20, 15, 36, .94) 14%, #140F24 46%),
    linear-gradient(180deg, #1E1538, #140F24);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 169, 78, .8), rgba(79, 224, 208, .45), transparent);
}

.footer-hall {
  height: clamp(64px, 9vw, 118px);
  border-bottom: 1px solid rgba(217, 169, 78, .12);
  background-image:
    radial-gradient(140% 130% at 50% 120%, rgba(217, 169, 78, .28), rgba(217, 169, 78, .05) 46%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(240, 210, 138, .22) 0 2px, transparent 2px 46px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 78%);
  mask-image: linear-gradient(180deg, transparent 0, #000 78%);
}

.footer-inner { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem); }

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 1.55fr 1.05fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--line-soft);
}

.footer-mark {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .3em;
  color: var(--gold);
  text-shadow: none;
}
.footer-name {
  margin-top: .55rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: .16em;
  color: var(--cream);
  text-shadow: 0 0 32px rgba(217, 169, 78, .28);
}
.footer-tag {
  margin-top: .5rem;
  max-width: 24ch;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--gold);
  padding-bottom: .6rem;
  margin-bottom: .85rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer-links { display: grid; gap: .5rem; }
.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: .95rem;
  font-size: .9rem;
  color: var(--mist);
  transition: color .2s ease, padding-left .2s ease;
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 6px;
  height: 1px;
  background: rgba(217, 169, 78, .55);
  transition: width .2s ease, background-color .2s ease;
}
.footer-links a:hover { color: var(--gold-soft); padding-left: 1.15rem; }
.footer-links a:hover::before { width: 12px; background: var(--gold); }

.footer-contact .contact-list { display: grid; gap: .55rem; }
.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.contact-item--block { align-items: flex-start; }
.contact-key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  color: rgba(201, 191, 216, .7);
}
.contact-val {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--cream);
  word-break: break-word;
}
.contact-val.mono {
  font-size: .78rem;
  color: var(--gold-soft);
  text-shadow: 0 0 10px rgba(240, 210, 138, .25);
}
.contact-note {
  margin-top: .9rem;
  font-size: .78rem;
  line-height: 1.8;
  color: rgba(201, 191, 216, .8);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: rgba(201, 191, 216, .78);
  text-shadow: none;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: rgba(201, 191, 216, .62);
}

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 150px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: rgba(30, 21, 56, .99);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -34px rgba(0, 0, 0, .95);
    transition: max-height .3s ease, opacity .24s ease, visibility .3s ease;
  }
  .site-nav[data-open="true"] {
    max-height: 72vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem clamp(1rem, 4vw, 1.6rem) 1.35rem;
  }
  .nav-link {
    display: block;
    padding: .9rem .2rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    padding-left: .75rem;
    border-left: 2px solid var(--gold);
    box-shadow: inset 0 0 22px -18px rgba(240, 210, 138, 1);
  }
}

@media (max-width: 780px) {
  :root { --header-h: 144px; }
  .rail-inner { font-size: .6rem; letter-spacing: .12em; gap: .8rem; }
  .rail-meta { display: none; }
  .bar-inner { height: 62px; gap: .8rem; }
  .site-header[data-stuck="true"] .bar-inner { height: 56px; }
  .brand-name { font-size: 1rem; letter-spacing: .12em; }
  .brand-tag { font-size: .56rem; letter-spacing: .16em; }
  .brand-glyph { width: 30px; height: 30px; }
  .brand-glyph i:nth-child(1) { left: 7px; height: 10px; }
  .brand-glyph i:nth-child(3) { right: 7px; height: 10px; }
  .quick-inner { height: 42px; gap: .7rem; }
  .quick-label { font-size: .58rem; letter-spacing: .18em; }

  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { grid-column: auto; }
  .brand-tag { display: none; }
  .contact-item { gap: .35rem .5rem; }
  .to-top { width: 100%; justify-content: center; }
}

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