/* ============================================================
   神殿棋牌 · 共享站点样式  /assets/site.css
   分区：1 重置 2 变量 3 基础排版 4 通用组件 5 头部 6 页脚
        7 图片容器 8 响应式 9 动效降级
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

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

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

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

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

a { color: var(--gold-index); text-decoration: none; }
a:hover { color: var(--cyan); }

::selection { background: var(--cyan); color: #06231c; }

/* ---------- 2. 变量 ---------- */
:root {
  --temple-900: #0B1F19;
  --temple-850: #0E241D;
  --temple-800: #123026;
  --temple-700: #1E4A3C;
  --gold-line: #B8944A;
  --gold-index: #E6C87A;
  --paper: #F4EDDD;
  --paper-dim: #D9D0BB;
  --cyan: #19E3C6;
  --ember: #FF5A2B;
  --mist: #8FA69B;
  --glass: rgba(244, 237, 221, 0.08);
  --glass-strong: rgba(244, 237, 221, 0.16);
  --hairline: rgba(184, 148, 74, 0.34);
  --hairline-soft: rgba(184, 148, 74, 0.18);

  --shell: min(1240px, 92vw);
  --gutter: clamp(18px, 4vw, 48px);

  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  --sans: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --speed: 0.24s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版与页面底色 ---------- */
body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--temple-900);
  background-image:
    radial-gradient(1100px 620px at 78% -10%, rgba(25, 227, 198, 0.10), transparent 62%),
    radial-gradient(900px 720px at 4% 106%, rgba(255, 90, 43, 0.09), transparent 60%),
    linear-gradient(180deg, #0B1F19 0%, #0C221B 46%, #091A15 100%);
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(244, 237, 221, 0.035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(244, 237, 221, 0.025) 0 1px, transparent 1px 96px);
}

.masthead,
main,
.temple-footer { position: relative; z-index: 1; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

strong { color: var(--paper); font-weight: 600; }

/* ---------- 4. 通用组件 ---------- */

/* 4.1 容器与节奏 */
.shell { width: var(--shell); margin-inline: auto; }

.section { padding-block: clamp(48px, 7vw, 110px); }
.section--tight { padding-block: clamp(26px, 4vw, 58px); }

.stack { display: grid; gap: clamp(12px, 1.8vw, 22px); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 36px); }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--gold-line), rgba(184, 148, 74, 0.05));
}

.muted { color: var(--mist); }

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

/* 4.2 标题与索引 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold-index);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-line);
  flex: 0 0 auto;
}

.display-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.lede {
  max-width: 52ch;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.7;
  color: var(--paper);
}

.prose {
  max-width: 68ch;
  font-size: clamp(16px, 0.6vw + 13px, 18px);
  line-height: 1.75;
  color: var(--paper-dim);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2,
.prose h3 {
  font-family: var(--serif);
  color: var(--paper);
  line-height: 1.2;
  margin-top: 1.8em;
}
.prose h2 { font-size: clamp(22px, 2vw, 32px); }
.prose h3 { font-size: clamp(18px, 1.5vw, 24px); }
.prose a { border-bottom: 1px solid var(--hairline); }
.prose a:hover { border-bottom-color: var(--cyan); }

.index-tag {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--gold-line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-index);
}

/* 4.3 按钮 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.12s linear;
}
.btn:hover::after,
.btn:focus-visible::after { width: 100%; }
.btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--glass);
}
.btn--primary {
  background: var(--gold-index);
  border-color: var(--gold-index);
  color: #0B1F19;
}
.btn--primary:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #1A0A04;
}
.btn--ghost {
  background: var(--glass);
  color: var(--gold-index);
  border-color: rgba(184, 148, 74, 0.5);
}
.btn--ghost:hover { color: var(--paper); border-color: var(--cyan); }
.btn--quiet {
  border-color: transparent;
  color: var(--gold-index);
  padding-inline: 4px;
}
.btn--quiet:hover { background: transparent; }

/* 4.4 面板 / 标签 / 数据 */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--hairline);
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.panel--solid {
  background: var(--temple-800);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.panel--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: #1A2B24;
}
.panel--paper .section-title,
.panel--paper .display-title { color: #0B1F19; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(184, 148, 74, 0.5);
  background: var(--glass);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--gold-index);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tag:hover { background: var(--glass-strong); color: var(--paper); }
.tag--cyan { color: var(--cyan); border-color: rgba(25, 227, 198, 0.55); }
.tag--ember { color: var(--ember); border-color: rgba(255, 90, 43, 0.55); }

.stat { display: grid; gap: 10px; }
.stat__value {
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.stat__value--cyan { color: var(--cyan); }
.stat__value--ember { color: var(--ember); }
.stat__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 4.5 数据表 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table caption {
  padding-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-align: left;
  color: var(--mist);
}
.data-table th {
  padding: 12px 14px;
  background: var(--temple-700);
  border-bottom: 1px solid var(--gold-line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: left;
  color: var(--paper);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--paper-dim);
}
.data-table .num {
  font-family: var(--mono);
  color: var(--cyan);
}
.data-table tbody tr { transition: background-color 0.2s ease; }
.data-table tbody tr:hover { background: var(--temple-700); }

/* 4.6 折叠面板 */
.fold {
  border: 1px solid var(--hairline);
  background: var(--glass);
}
.fold + .fold { margin-top: -1px; }
.fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 2.4vw, 26px);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}
.fold__summary::-webkit-details-marker { display: none; }
.fold__summary::marker { content: ""; }
.fold__summary::after {
  content: "＋";
  font-family: var(--mono);
  color: var(--gold-index);
  flex: 0 0 auto;
}
.fold[open] .fold__summary::after { content: "－"; color: var(--cyan); }
.fold__summary:hover { background: var(--glass-strong); }
.fold__body {
  padding: 0 clamp(16px, 2.4vw, 26px) 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper-dim);
}
@keyframes foldIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.fold[open] .fold__body { animation: foldIn var(--speed) ease-out; }

/* 4.7 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.breadcrumb a { color: var(--gold-index); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--gold-line); }

/* ---------- 5. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  z-index: 200;
  padding: 12px 22px;
  background: var(--cyan);
  color: #06231C;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transform: translate(-50%, -160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: #06231C; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(11, 31, 25, 0.97), rgba(11, 31, 25, 0.90));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px var(--gutter);
  border-bottom: 1px dashed var(--hairline-soft);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.masthead__dateline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.masthead__cta {
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  flex: 0 0 auto;
}

.masthead__center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.2vw, 26px) var(--gutter);
  transition: padding var(--speed) var(--ease);
}

.masthead__brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--paper);
}
.masthead__brand:hover { color: var(--paper); }

.masthead__emblem {
  position: relative;
  width: 20px; height: 20px;
  border: 1px solid var(--gold-line);
  transform: rotate(45deg);
  transition: opacity 0.2s ease;
}
.masthead__emblem::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--cyan);
}

.masthead__wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
  transition: font-size var(--speed) var(--ease);
}

.masthead__sub {
  font-size: 11px;
  letter-spacing: 0.30em;
  color: var(--gold-index);
}

.masthead.is-condensed .masthead__top { display: none; }
.masthead.is-condensed .masthead__center { padding: 10px var(--gutter); }
.masthead.is-condensed .masthead__brand { gap: 4px; }
.masthead.is-condensed .masthead__wordmark { font-size: clamp(20px, 2.4vw, 30px); }
.masthead.is-condensed .masthead__sub,
.masthead.is-condensed .masthead__emblem { display: none; }

/* 移动导航按钮 */
.nav-toggle {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--gold-line);
  color: var(--gold-index);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--paper); }
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars i {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.masthead.is-nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.masthead.is-nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.masthead.is-nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 栏目时间轴 */
.temple-nav {
  border-top: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, rgba(18, 48, 38, 0.42), rgba(11, 31, 25, 0));
}
.temple-nav__rail {
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.temple-nav__rail::-webkit-scrollbar { display: none; }
.temple-nav__rail.is-dragging { cursor: grabbing; }
.temple-nav__rail.is-dragging .temple-nav__link { user-select: none; }

.temple-nav__list {
  display: flex;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  gap: clamp(2px, 1.2vw, 18px);
  margin: 0 auto;
}

.temple-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px clamp(10px, 1.5vw, 18px);
  color: var(--paper-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.temple-nav__link::after {
  content: "";
  position: absolute;
  left: clamp(10px, 1.5vw, 18px);
  right: 100%;
  bottom: 9px;
  height: 1px;
  background: var(--gold-index);
  transition: right 0.12s linear;
}
.temple-nav__link:hover { color: var(--paper); }
.temple-nav__link:hover::after { right: clamp(10px, 1.5vw, 18px); }
.temple-nav__link[aria-current="page"] { color: var(--cyan); }
.temple-nav__link[aria-current="page"]::after {
  right: clamp(10px, 1.5vw, 18px);
  background: var(--cyan);
}
.temple-nav__idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold-line);
}
.temple-nav__link[aria-current="page"] .temple-nav__idx { color: var(--cyan); }

/* ---------- 6. 页脚 ---------- */
.temple-footer {
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--gold-line);
  background:
    linear-gradient(180deg, rgba(18, 48, 38, 0.6), rgba(11, 31, 25, 0.98) 38%),
    var(--temple-900);
  color: var(--paper-dim);
}

.temple-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.9fr) minmax(220px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(26px, 3vw, 40px);
}

.temple-footer__brand {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.temple-footer__brand:hover { color: var(--cyan); }

.temple-footer__brand-line {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--mist);
}
.temple-footer__meta {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold-line);
}

.temple-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.temple-footer__col-title {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-index);
}

.temple-footer__links { display: grid; gap: 10px; }

.temple-footer__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}
.temple-footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold-index);
  transition: width 0.12s linear;
}
.temple-footer__link:hover,
.temple-footer__link:focus-visible { color: var(--paper); }
.temple-footer__link:hover::after,
.temple-footer__link:focus-visible::after { width: 100%; }

.temple-footer__contact { font-size: 13px; line-height: 2; color: var(--mist); }
.temple-footer__contact-line { margin-top: 8px; }
.temple-footer__email {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(184, 148, 74, 0.5);
  background: transparent;
  color: var(--gold-index);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.copy-btn:hover { border-color: var(--cyan); color: var(--paper); background: var(--glass); }
.copy-btn[data-copied="true"] { border-color: var(--cyan); color: var(--cyan); }

.temple-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  width: var(--shell);
  margin-inline: auto;
  padding: 18px 0 30px;
  border-top: 1px dashed var(--hairline-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--mist);
}
.temple-footer__legal { font-family: var(--sans); }
.temple-footer__note { color: var(--gold-line); }

/* ---------- 7. 图片容器（页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(184, 148, 74, 0.42);
  background: linear-gradient(150deg, var(--temple-800), var(--temple-900) 74%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(244, 237, 221, 0.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(244, 237, 221, 0.06) 0 1px, transparent 1px 48px);
}
.media-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--asym { grid-template-columns: 1fr; }
  .temple-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .temple-footer__brand-block { grid-column: 1 / -1; }
  .temple-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .masthead__top { padding: 8px var(--gutter); font-size: 11px; letter-spacing: 0.12em; }
  .masthead__cta { padding: 7px 11px; font-size: 10px; }

  .masthead__center { padding: 14px var(--gutter) 12px; }
  .masthead__wordmark { font-size: clamp(30px, 9vw, 46px); }
  .masthead__sub { font-size: 10px; letter-spacing: 0.2em; }

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

  .temple-nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.26s var(--ease);
  }
  .temple-nav[data-open] { grid-template-rows: 1fr; }
  .temple-nav__rail { overflow: hidden; cursor: default; }
  .temple-nav[data-open] .temple-nav__rail {
    max-height: min(62vh, 460px);
    overflow-y: auto;
  }
  .temple-nav__list {
    display: block;
    width: auto;
    min-width: 0;
    padding: 6px 0 10px;
  }
  .temple-nav__item { border-bottom: 1px solid var(--hairline-soft); }
  .temple-nav__link {
    padding: 15px var(--gutter);
    gap: 14px;
    font-size: 15px;
  }
  .temple-nav__link::after { display: none; }
  .temple-nav__link[aria-current="page"] { background: var(--glass); }

  body.is-nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .temple-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .temple-footer__base { flex-direction: column; align-items: flex-start; }
  .stat__value { font-size: clamp(44px, 16vw, 72px); }
}

/* ---------- 9. 焦点、显现与动效降级 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold-index) 55%, var(--ember));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 110;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--gold-line);
  background: rgba(11, 31, 25, 0.86);
  color: var(--gold-index);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--cyan); border-color: var(--cyan); }

@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;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .fold[open] .fold__body { animation: none; }
}
