/* ==========================================================================
   c7娱乐会馆 — 共享外壳样式
   文件位置：/assets/site.css
   模块：reset / 变量 / 中文排版 / 侧边轨道 / 移动顶栏与抽屉 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

a { color: inherit; }

main { display: block; }

/* ---------- 变量 ---------- */
:root {
  --ink-0: #070B14;
  --ink-1: #0C1424;
  --rock: #2A3444;
  --moss: #6F8F7A;
  --clay: #C4745A;
  --bone: #F3EFE6;
  --cyan: #43E6E0;
  --magenta: #E84AA8;
  --gold: #E8B45A;
  --haze: #8FA3B8;

  --rail-w: 88px;
  --rail-w-open: 248px;
  --topbar-h: 60px;
  --shell-max: 1240px;
  --radius: 16px;

  --font-title: "Sora", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);

  --line: rgba(42, 52, 68, .85);
  --line-soft: rgba(42, 52, 68, .55);
}

/* ---------- 中文排版与基础 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--topbar-h);
  background-color: var(--ink-0);
  background-image:
    radial-gradient(90% 46% at 82% -6%, rgba(232, 74, 168, .10), transparent 62%),
    radial-gradient(80% 40% at 6% 2%, rgba(67, 230, 224, .09), transparent 60%);
  background-repeat: no-repeat;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }

p { text-wrap: pretty; }

a { text-decoration-color: rgba(67, 230, 224, .45); }

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

code, kbd, samp, time, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

::selection {
  background: rgba(67, 230, 224, .28);
  color: var(--bone);
}

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

#main-content {
  scroll-margin-block-start: calc(var(--topbar-h) + 16px);
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 220;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink-0);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(232, 180, 90, .95);
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

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

/* ---------- 阅读进度条 ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--gold));
  box-shadow: 0 0 14px rgba(67, 230, 224, .55);
  pointer-events: none;
  transition: width .08s linear;
}

/* ---------- 外壳 ---------- */
.site-header {
  position: relative;
  z-index: 90;
}

/* ---------- 桌面侧边轨道 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  width: var(--rail-w);
  padding: 18px 0 14px;
  overflow: hidden;
  background-color: var(--ink-0);
  background-image:
    radial-gradient(120% 38% at 0% 0%, rgba(67, 230, 224, .13), transparent 64%),
    radial-gradient(90% 30% at 0% 100%, rgba(232, 74, 168, .12), transparent 66%),
    linear-gradient(180deg, #070B14 0%, #0C1424 56%, #070B14 100%);
  border-right: 1px solid var(--line);
  transition: width .26s var(--ease), box-shadow .26s var(--ease);
}

.rail:hover,
.rail:focus-within {
  width: var(--rail-w-open);
  box-shadow: 30px 0 70px -40px rgba(0, 0, 0, .95);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 46px;
  padding: 0 16px 0 30px;
  text-decoration: none;
  color: var(--bone);
  transition: gap .26s var(--ease);
}

.rail:hover .rail__brand,
.rail:focus-within .rail__brand { gap: 12px; }

.rail__mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--gold) 86%);
  color: var(--ink-0);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 0 0 1px rgba(67, 230, 224, .34), 0 10px 24px -12px rgba(67, 230, 224, .85);
}

.rail__brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--bone);
}

.rail__brand-name {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.rail__brand-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.rail__brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(67, 230, 224, .95);
  animation: c7-pulse 2.6s ease-in-out infinite;
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 0 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}

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

.rail__item { margin: 0; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 46px;
  padding: 0 18px 0 33px;
  color: var(--haze);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: gap .26s var(--ease), color .18s ease, background-color .18s ease;
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: transparent;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.rail:hover .rail__link,
.rail:focus-within .rail__link { gap: 13px; }

.rail__link:hover {
  color: var(--bone);
  background-color: rgba(67, 230, 224, .07);
}

.rail__link:hover .rail__icon { border-color: rgba(67, 230, 224, .62); }
.rail__link:hover .rail__icon::before { background-color: rgba(67, 230, 224, .55); }
.rail__link:hover .rail__icon::after {
  background-color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(67, 230, 224, .9);
}

.rail__link[aria-current="page"] {
  color: var(--gold);
  background-image: linear-gradient(90deg, rgba(232, 180, 90, .16), rgba(232, 180, 90, 0) 76%);
}

.rail__link[aria-current="page"]::before {
  background-color: var(--gold);
  box-shadow: 0 0 14px rgba(232, 180, 90, .85);
}

.rail__link[aria-current="page"] .rail__icon { border-color: rgba(232, 180, 90, .78); }
.rail__link[aria-current="page"] .rail__icon::before { background-color: rgba(232, 180, 90, .6); }
.rail__link[aria-current="page"] .rail__icon::after {
  background-color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(232, 180, 90, .95);
}

/* 节点图标：细边框 + 轨道线 + 状态点 */
.rail__icon {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(143, 163, 184, .42);
  border-radius: 7px;
  transition: border-color .2s ease;
}

.rail__icon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background-color: rgba(143, 163, 184, .45);
  transform: translateY(-50%);
  transition: background-color .2s ease;
}

.rail__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid transparent;
  border-radius: 50%;
  background-color: var(--haze);
  transform: translate(-50%, -50%);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.rail__icon[data-glyph="o"]::after { width: 8px; height: 8px; }
.rail__icon[data-glyph="g"]::after { left: 30%; }
.rail__icon[data-glyph="p"]::after { left: 70%; }
.rail__icon[data-glyph="s"]::after { width: 6px; height: 6px; border-radius: 2px; }
.rail__icon[data-glyph="k"]::after { background-color: transparent; border-color: var(--haze); width: 8px; height: 8px; }
.rail__icon[data-glyph="c"]::after { top: 68%; }

.rail__label {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transform: translateX(-6px);
  transition: max-width .28s var(--ease), opacity .16s ease, transform .28s var(--ease);
}

.rail:hover .rail__label,
.rail:focus-within .rail__label,
.rail:hover .rail__brand-text,
.rail:focus-within .rail__brand-text,
.rail:hover .rail__cta-text,
.rail:focus-within .rail__cta-text {
  max-width: 180px;
  opacity: 1;
  transform: translateX(0);
}

.rail__brand-text {
  max-width: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: max-width .28s var(--ease), opacity .16s ease, transform .28s var(--ease);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 2px;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}

.rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), #cf9a3c);
  color: var(--ink-0);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(232, 180, 90, .95);
  transition: gap .26s var(--ease), box-shadow .2s ease, transform .1s var(--ease);
}

.rail:hover .rail__cta,
.rail:focus-within .rail__cta { gap: 8px; }

.rail__cta:hover { box-shadow: 0 16px 32px -14px rgba(232, 180, 90, .95); }
.rail__cta:active { transform: scale(.96); }

.rail__cta-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ink-0);
  box-shadow: 0 0 0 3px rgba(7, 11, 20, .16);
}

.rail__cta-text {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transform: translateX(-6px);
  transition: max-width .28s var(--ease), opacity .16s ease, transform .28s var(--ease);
}

.rail__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--haze);
  white-space: nowrap;
  transition: gap .26s var(--ease);
}

.rail:hover .rail__badge,
.rail:focus-within .rail__badge { gap: 7px; }

.rail__badge-dot {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--moss);
  box-shadow: 0 0 8px rgba(111, 143, 122, .9);
}

/* ---------- 移动端顶部品牌条 ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 16px;
  background-color: rgba(7, 11, 20, .93);
  background-image: linear-gradient(90deg, rgba(67, 230, 224, .08), rgba(232, 74, 168, .08) 70%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bone);
}

.topbar__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--gold) 86%);
  color: var(--ink-0);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 0 0 1px rgba(67, 230, 224, .32), 0 8px 18px -10px rgba(67, 230, 224, .9);
}

.topbar__name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

.topbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(143, 163, 184, .34);
  background-color: rgba(12, 20, 36, .75);
  transition: border-color .2s ease, background-color .2s ease;
}

.topbar__toggle:hover {
  border-color: rgba(67, 230, 224, .6);
  background-color: rgba(67, 230, 224, .08);
}

.topbar__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--bone);
}

.topbar__bars::before,
.topbar__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--bone);
}

.topbar__bars::before { top: -6px; }
.topbar__bars::after { top: 6px; }

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  visibility: hidden;
  transition: visibility 0s linear .3s;
}

.drawer[data-open] {
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.drawer__veil {
  position: absolute;
  inset: 0;
  background-color: rgba(4, 7, 13, .74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.drawer[data-open] .drawer__veil {
  opacity: 1;
  pointer-events: auto;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 360px);
  padding: 16px 16px 22px;
  overflow-y: auto;
  background-color: var(--ink-1);
  background-image:
    radial-gradient(120% 34% at 100% 0%, rgba(232, 74, 168, .16), transparent 62%),
    radial-gradient(90% 30% at 0% 100%, rgba(67, 230, 224, .12), transparent 64%),
    linear-gradient(180deg, #0C1424, #070B14);
  border-left: 1px solid rgba(67, 230, 224, .28);
  box-shadow: -30px 0 80px -40px rgba(0, 0, 0, .95);
  transform: translateX(100%);
  transition: transform .28s var(--ease);
}

.drawer[data-open] .drawer__panel { transform: translateX(0); }

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

.drawer__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(143, 163, 184, .34);
  color: var(--bone);
  font-size: 20px;
  line-height: 1;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.drawer__close:hover {
  border-color: rgba(232, 180, 90, .68);
  color: var(--gold);
  background-color: rgba(232, 180, 90, .1);
}

.drawer__nav {
  flex: 1 1 auto;
  padding: 16px 0;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer__item { margin: 0; }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.drawer__link:hover,
.drawer__link:focus-visible {
  border-color: rgba(67, 230, 224, .48);
  background-color: rgba(67, 230, 224, .08);
  color: var(--cyan);
}

.drawer__link[aria-current="page"] {
  border-color: rgba(232, 180, 90, .55);
  background-color: rgba(232, 180, 90, .1);
  color: var(--gold);
}

.drawer__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--haze);
}

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

.drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.drawer__cta { width: 100%; justify-content: center; }

.drawer__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--haze);
  text-align: center;
}

.drawer__support {
  align-self: center;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--cyan);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 230, 224, .4);
}

.drawer__support:hover { color: var(--gold); border-bottom-color: rgba(232, 180, 90, .6); }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 104px);
  background-color: var(--ink-0);
  background-image:
    radial-gradient(80% 120% at 88% 0%, rgba(232, 74, 168, .09), transparent 62%),
    radial-gradient(70% 100% at 6% 0%, rgba(67, 230, 224, .07), transparent 58%),
    linear-gradient(180deg, #0C1424 0%, #070B14 72%);
  border-top: 1px solid var(--line);
  color: var(--bone);
}

.footer__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 11px clamp(16px, 4vw, 48px);
  background-color: rgba(67, 230, 224, .05);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.footer__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 10px rgba(67, 230, 224, .95);
  animation: c7-pulse 2.6s ease-in-out infinite;
}

.footer__strip-text { white-space: nowrap; }

.footer__sep {
  width: 1px;
  height: 11px;
  background-color: rgba(67, 230, 224, .35);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(28px, 4vw, 44px);
}

.footer__brand { min-width: 0; }

.footer__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bone);
}

.footer__mark-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cyan), var(--gold) 86%);
  color: var(--ink-0);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 0 0 1px rgba(67, 230, 224, .3), 0 10px 24px -14px rgba(67, 230, 224, .9);
}

.footer__mark-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.footer__line {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--haze);
  max-width: 30ch;
}

.footer__domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--moss);
}

.footer__col { min-width: 0; }

.footer__head {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--haze);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(232, 180, 90, .6);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__meta-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer__meta-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--clay);
  line-height: 1.9;
}

.footer__meta-row dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--bone);
  overflow-wrap: anywhere;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px) 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--haze);
}

.footer__fine { margin: 0; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s var(--ease), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn:active { transform: scale(.97); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold), #cf9a3c);
  color: var(--ink-0);
  box-shadow: 0 14px 30px -18px rgba(232, 180, 90, .95);
}

.btn--gold:hover { box-shadow: 0 18px 36px -16px rgba(232, 180, 90, .95); }

.btn--ghost {
  border-color: rgba(143, 163, 184, .45);
  background-color: rgba(12, 20, 36, .7);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: rgba(67, 230, 224, .7);
  color: var(--cyan);
  background-color: rgba(67, 230, 224, .08);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--haze);
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
}

.crumbs__item + .crumbs__item::before {
  content: "/";
  margin: 0 8px;
  color: rgba(143, 163, 184, .45);
}

.crumbs__link {
  color: var(--haze);
  text-decoration: none;
  transition: color .18s ease;
}

.crumbs__link:hover { color: var(--cyan); }

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

/* ---------- 正文容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.pane {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: rgba(12, 20, 36, .88);
  background-image: linear-gradient(158deg, rgba(18, 29, 50, .9), rgba(7, 11, 20, .94));
  box-shadow: 0 26px 60px -46px rgba(0, 0, 0, .95);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}

.grid--12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}

/* ---------- 文字与标记 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  color: rgba(243, 239, 230, .82);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(143, 163, 184, .34);
  border-radius: 999px;
  background-color: rgba(143, 163, 184, .08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--haze);
  white-space: nowrap;
}

.tag--cyan { border-color: rgba(67, 230, 224, .42); background-color: rgba(67, 230, 224, .1); color: var(--cyan); }
.tag--gold { border-color: rgba(232, 180, 90, .46); background-color: rgba(232, 180, 90, .12); color: var(--gold); }
.tag--clay { border-color: rgba(196, 116, 90, .46); background-color: rgba(196, 116, 90, .12); color: var(--clay); }

.node-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--haze);
}

.node-mark::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 10px rgba(67, 230, 224, .9);
}

/* ---------- 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: #0A111E;
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(67, 230, 224, .16), transparent 56%),
    radial-gradient(100% 100% at 92% 100%, rgba(232, 74, 168, .15), transparent 60%);
}

.figure__img,
.figure img,
.figure picture,
.figure svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide { aspect-ratio: 16 / 9; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 4 / 5; }

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--bone);
  background-image: linear-gradient(0deg, rgba(7, 11, 20, .94), rgba(7, 11, 20, 0));
}

/* ---------- 辅助 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 关键帧 ---------- */
@keyframes c7-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .42; transform: scale(.82); }
}

/* ---------- 平板 ---------- */
@media (min-width: 721px) {
  .grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }

  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- 桌面：启用侧边轨道 ---------- */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .rail { display: flex; }
  .topbar { display: none; }
  .drawer { display: none; }

  .skip-link { left: calc(var(--rail-w) + 12px); }
  .scroll-meter { left: var(--rail-w); }

  #main-content { scroll-margin-block-start: 24px; }

  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .footer__brand { grid-column: auto; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .rail__brand-dot,
  .footer__pulse { animation: none !important; }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .drawer__panel { transform: none; }
  .drawer:not([data-open]) .drawer__panel { transform: translateX(100%); }
}
