/* =========================================================
   幻影体育安装 · 共享样式 /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 {
  margin: 0;
  min-height: 100%;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
summary { display: block; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #07070C;
  --lamp: #141420;
  --violet: #6C3CE9;
  --violet-bright: #7C4EFF;
  --violet-deep: #2A1A5E;
  --cyan: #00E5FF;
  --lime: #39FF14;
  --mist: #F2F3F7;
  --slate: #8A8FA3;
  --lilac: #B9A6FF;
  --wire: #23252F;
  --body-text: #C9CCD8;

  --shell: 1280px;
  --gap: 12px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono",
    Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 3. Base & 中文排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 84% 8%, rgba(108, 60, 233, .22), transparent 46%),
    radial-gradient(circle at 8% 74%, rgba(0, 229, 255, .10), transparent 42%),
    repeating-linear-gradient(98deg, rgba(108, 60, 233, .055) 0 1px, transparent 1px 104px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-stretch: condensed;
  color: var(--mist);
  letter-spacing: -.01em;
  line-height: 1.15;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 0;
}

::selection {
  background: rgba(108, 60, 233, .55);
  color: #fff;
}

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

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px) clamp(18px, 3vw, 40px);
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--mist);
}

.section__note {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--slate);
}

/* ---------- 5. 排版组件 ---------- */
.display {
  margin: 0;
  font-family: var(--font-sans);
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 6rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--mist);
}

.display--md { font-size: clamp(2rem, 4vw, 3.4rem); }

.lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
  color: var(--body-text);
}

.note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lilac);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, .8);
  transform: skewX(-8deg);
}

.anno {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.78;
  color: var(--body-text);
}

.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 800; margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.4em; color: var(--mist); }
.prose strong { color: var(--mist); }
.prose ul, .prose ol { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose a {
  color: var(--lilac);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--cyan); }

/* ---------- 6. 按钮 ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--violet);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}

.btn--primary { color: #fff; }
.btn--primary::before {
  background: var(--violet);
  box-shadow: 0 10px 28px -16px rgba(108, 60, 233, .95);
}
.btn--primary:hover::before {
  background: var(--violet-bright);
  box-shadow: 0 14px 34px -14px rgba(108, 60, 233, 1);
}

.btn--ghost { color: var(--mist); }
.btn--ghost::before {
  background: rgba(242, 243, 247, .04);
  box-shadow: inset 0 0 0 1px var(--wire);
}
.btn--ghost:hover { color: var(--cyan); }
.btn--ghost:hover::before {
  background: rgba(0, 229, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .55);
}

.btn--sm { height: 32px; padding: 0 16px; font-size: 13px; }

/* ---------- 7. 标签 / 筛选器 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--lilac);
  background: rgba(108, 60, 233, .12);
  border: 1px solid rgba(108, 60, 233, .38);
}

.tag--cyan {
  color: var(--cyan);
  background: rgba(0, 229, 255, .08);
  border-color: rgba(0, 229, 255, .38);
}

.tag--lime {
  color: var(--lime);
  background: rgba(57, 255, 20, .08);
  border-color: rgba(57, 255, 20, .38);
}

.chip {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--slate);
  background: rgba(242, 243, 247, .03);
  border: 1px solid var(--wire);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease),
    background-color .18s var(--ease), box-shadow .18s var(--ease);
}

.chip:hover { color: var(--mist); border-color: rgba(108, 60, 233, .6); }

.chip[aria-pressed="true"] {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, .6);
  background: rgba(0, 229, 255, .08);
  box-shadow: 0 0 20px -10px var(--cyan);
}

/* ---------- 8. 卡片 / Bento ---------- */
.card {
  position: relative;
  border: 1px solid var(--wire);
  background: linear-gradient(160deg, rgba(42, 26, 94, .38), rgba(10, 10, 18, .88));
  padding: clamp(18px, 2.2vw, 26px);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: rgba(108, 60, 233, .8);
  box-shadow: 0 22px 44px -32px rgba(108, 60, 233, .95);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--mist);
}

.card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--body-text);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.bento__cell {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--wire);
  background: linear-gradient(160deg, rgba(42, 26, 94, .55), rgba(10, 10, 18, .92));
  box-shadow: inset 0 1px 0 rgba(242, 243, 247, .045),
    0 22px 48px -36px #000;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.bento__cell::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(108, 60, 233, .55), transparent 68%);
  opacity: .55;
  pointer-events: none;
}

.bento__cell:hover,
.bento__cell:focus-within {
  border-color: rgba(108, 60, 233, .85);
  box-shadow: inset 0 1px 0 rgba(242, 243, 247, .07),
    0 26px 54px -30px rgba(108, 60, 233, .9);
}

.bento__cell--wide { grid-column: span 8; }
.bento__cell--half { grid-column: span 6; }
.bento__cell--full { grid-column: span 12; }

.bento__cell--focus {
  border-color: rgba(108, 60, 233, .7);
  background: linear-gradient(150deg, rgba(108, 60, 233, .34), rgba(12, 10, 22, .95) 62%);
  box-shadow: inset 0 1px 0 rgba(185, 166, 255, .18),
    0 0 0 1px rgba(108, 60, 233, .18),
    0 34px 70px -46px rgba(108, 60, 233, 1);
}

/* ---------- 9. 数据球 / 指标 ---------- */
.orb {
  --orb-size: clamp(96px, 12vw, 140px);
  position: relative;
  flex: none;
  width: var(--orb-size);
  height: var(--orb-size);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border-radius: 50%;
  border: 1px solid rgba(108, 60, 233, .62);
  background:
    radial-gradient(circle at 32% 26%, rgba(0, 229, 255, .22), transparent 58%),
    radial-gradient(circle at 72% 78%, rgba(108, 60, 233, .62), transparent 66%),
    #0C0A17;
  box-shadow: inset 0 0 24px rgba(108, 60, 233, .42),
    0 0 44px -14px rgba(108, 60, 233, .95);
  text-align: center;
  transition: box-shadow .18s var(--ease);
}

.orb:hover { box-shadow: inset 0 0 24px rgba(108, 60, 233, .6), 0 0 56px -10px rgba(108, 60, 233, 1); }

.orb__value {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  color: var(--mist);
  text-shadow: 0 0 14px rgba(0, 229, 255, .55);
}

.orb__unit {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--slate);
}

.orb__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--lilac);
}

.stat {
  display: grid;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--mist);
}

.stat__label {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--slate);
}

.stat--accent .stat__value {
  color: var(--lime);
  text-shadow: 0 0 12px rgba(57, 255, 20, .5);
}

/* ---------- 10. 可展开组 ---------- */
.disclosure {
  position: relative;
  border: 1px solid var(--wire);
  background: rgba(20, 20, 32, .62);
  transition: border-color .18s var(--ease);
}

.disclosure + .disclosure { margin-top: 10px; }
.disclosure:hover { border-color: rgba(108, 60, 233, .55); }
.disclosure[open] { border-color: rgba(108, 60, 233, .7); }

.disclosure__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--mist);
  transition: color .18s var(--ease);
}
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary:hover { color: var(--lilac); }

.disclosure__title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
}

.disclosure__mark {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform .24s var(--ease);
}

.disclosure[open] .disclosure__mark { transform: rotate(-135deg); }

.disclosure__body {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--body-text);
  animation: disclosure-in .12s .12s var(--ease) both;
}

@keyframes disclosure-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 11. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--wire);
  background:
    linear-gradient(150deg, #141420 0%, #0B0A16 58%, #1A1233 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(108deg,
    transparent 42%,
    rgba(0, 229, 255, .16) 49%,
    rgba(108, 60, 233, .18) 53%,
    transparent 60%);
  opacity: .85;
  pointer-events: none;
}

.media-frame img,
.media-frame picture,
.media-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--slate);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item::after {
  content: "/";
  color: var(--wire);
}

.breadcrumb__item:last-child::after { content: none; }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--lilac); }

/* ---------- 13. 入场动效 ---------- */
html[data-js="1"] [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  will-change: opacity, transform;
}

html[data-js="1"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

[data-chapter] { scroll-margin-top: 104px; }

/* =========================================================
   14. 头部
   ========================================================= */
.site-header {
  --header-h: 88px;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .28s var(--ease), border-color .28s var(--ease),
    box-shadow .28s var(--ease), backdrop-filter .28s var(--ease);
}

.site-header[data-scrolled="true"] {
  --header-h: 56px;
  background: rgba(20, 20, 32, .95);
  border-bottom-color: var(--wire);
  box-shadow: 0 18px 40px -34px #000, inset 0 -1px 0 rgba(108, 60, 233, .3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__shell {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  height: var(--header-h);
  transition: height .28s var(--ease);
}

/* skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--violet);
  text-decoration: none;
  transform: translateY(-240%);
  transition: transform .18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

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

.brand__mark {
  display: grid;
  gap: 3px;
  width: 26px;
  flex: none;
  transform: skewX(-8deg);
}

.brand__mark i {
  display: block;
  height: 3px;
  background: var(--violet);
  transition: background-color .2s var(--ease), width .2s var(--ease);
}

.brand__mark i:nth-child(2) { width: 76%; background: var(--cyan); }
.brand__mark i:nth-child(3) { width: 52%; background: var(--lime); }

.brand:hover .brand__mark i:nth-child(1) { width: 100%; background: var(--violet-bright); }

.brand__text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .045em;
  color: var(--mist);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--slate);
}

/* 版本球 */
.version-orb {
  order: 2;
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(108, 60, 233, .7);
  background:
    radial-gradient(circle at 32% 26%, rgba(0, 229, 255, .3), transparent 60%),
    radial-gradient(circle at 72% 78%, rgba(108, 60, 233, .55), transparent 66%),
    #0E0B1B;
  box-shadow: inset 0 0 14px rgba(108, 60, 233, .55),
    0 0 0 4px rgba(108, 60, 233, .07),
    0 0 24px -8px rgba(108, 60, 233, .95);
  transition: width .28s var(--ease), height .28s var(--ease);
}

.version-orb__value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, .75);
}

.version-orb__label {
  position: absolute;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .14em;
  white-space: nowrap;
  color: var(--slate);
  transition: opacity .2s var(--ease);
}

.site-header[data-scrolled="true"] .version-orb__label { opacity: 0; }
.site-header[data-scrolled="true"] .version-orb { width: 38px; height: 38px; }

/* 导航 */
.site-nav {
  order: 3;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.site-nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background-color .18s var(--ease);
}

.site-nav__link:hover::before { background: rgba(108, 60, 233, .2); }
.site-nav__link:hover { color: #fff; }

.site-nav__link[aria-current="page"] { color: #fff; }

.site-nav__link[aria-current="page"]::before {
  background: rgba(108, 60, 233, .26);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, .85);
  transform: skewX(-8deg);
}

.site-nav__cta { height: 38px; padding: 0 20px; font-size: 14px; }

/* 汉堡按钮 */
.nav-toggle {
  order: 4;
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  height: 40px;
  padding: 0 14px;
  background: rgba(108, 60, 233, .14);
  border: 1px solid rgba(108, 60, 233, .55);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(108, 60, 233, .28);
  border-color: rgba(108, 60, 233, .9);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 229, 255, .7);
  pointer-events: none;
}

/* =========================================================
   15. 页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  color: var(--mist);
  background: linear-gradient(180deg, #07070C 0%, #0A0A13 52%, #0C0B16 100%);
  border-top: 1px solid var(--wire);
}

/* 呼吸带 */
.footer-breath {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #05050A;
  border-bottom: 1px solid rgba(35, 37, 47, .5);
}

.footer-breath__grain {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle, rgba(242, 243, 247, .55) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(0, 229, 255, .5) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(108, 60, 233, .65) 0 1.2px, transparent 1.8px);
  background-size: 96px 96px, 141px 141px, 211px 211px;
  background-position: 0 0, 42px 62px, 88px 24px;
  opacity: .55;
}

.footer-breath::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(98deg,
    transparent 40%,
    rgba(108, 60, 233, .22) 47%,
    rgba(0, 229, 255, .14) 51%,
    transparent 58%);
  animation: breath 12s ease-in-out infinite;
}

@keyframes breath {
  0%, 100% { opacity: .42; }
  50% { opacity: .74; }
}

.footer__shell { padding-block: clamp(40px, 5.5vw, 68px) 32px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr .8fr 1.35fr;
  gap: clamp(24px, 3.4vw, 48px);
}

.footer__brand { min-width: 0; }

.brand--footer .brand__name { font-size: 17px; }

.footer__tagline {
  margin-top: 16px;
  max-width: 20em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.footer__signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate);
}

.footer__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(57, 255, 20, .9);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.footer__col { min-width: 0; }

.footer__title {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer__list { display: grid; gap: 2px; }

.footer__link {
  position: relative;
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--body-text);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer__link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--cyan);
  transform: translateY(-50%) skewX(-8deg) scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

.footer__link:hover { color: var(--cyan); }
.footer__link:hover::before { transform: translateY(-50%) skewX(-8deg) scaleX(1); }

.footer__list--contact { gap: 4px; }

.footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-block: 5px;
}

.footer__label {
  flex: none;
  min-width: 30px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--slate);
}

.footer__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  word-break: break-word;
}

.footer__value--note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate);
}

.copy-btn {
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--wire);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease),
    background-color .18s var(--ease);
}

.copy-btn:hover {
  border-color: rgba(0, 229, 255, .6);
  background: rgba(0, 229, 255, .08);
}

.copy-btn.is-copied {
  color: var(--lime);
  border-color: rgba(57, 255, 20, .55);
  background: rgba(57, 255, 20, .08);
}

.copy-note {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--lilac);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(32px, 4.5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--wire);
  font-size: 13px;
  color: var(--slate);
}

.footer__copy,
.footer__icp,
.footer__meta { margin: 0; }

.footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

/* =========================================================
   16. 悬浮章节数据球
   ========================================================= */
.chapter-orb {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  display: none;
}

.chapter-orb[data-ready] { display: block; }

.chapter-orb__btn {
  position: relative;
  display: grid;
  place-items: center;
  gap: 1px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(108, 60, 233, .75);
  background:
    radial-gradient(circle at 32% 26%, rgba(0, 229, 255, .28), transparent 60%),
    radial-gradient(circle at 72% 78%, rgba(108, 60, 233, .62), transparent 66%),
    #0B0917;
  box-shadow: inset 0 0 16px rgba(108, 60, 233, .5),
    0 0 30px -10px rgba(108, 60, 233, .95);
  color: var(--mist);
  cursor: pointer;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}

.chapter-orb__btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 20px rgba(108, 60, 233, .7),
    0 0 40px -8px rgba(0, 229, 255, .8);
}

.chapter-orb__num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, .8);
}

.chapter-orb__hint {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--slate);
}

.chapter-orb__panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(232px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid rgba(108, 60, 233, .55);
  background: rgba(12, 11, 22, .97);
  box-shadow: 0 30px 60px -34px #000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease),
    visibility .18s var(--ease);
}

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

.chapter-orb__title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate);
}

.chapter-orb__list { display: grid; gap: 2px; }

.chapter-orb__item { display: block; }

.chapter-orb__link {
  display: block;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  color: var(--body-text);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--wire);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease),
    background-color .18s var(--ease);
}

.chapter-orb__link:hover {
  color: var(--mist);
  background: rgba(108, 60, 233, .14);
  border-left-color: rgba(108, 60, 233, .8);
}

.chapter-orb__link[aria-current="true"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, .08);
  border-left-color: var(--cyan);
  box-shadow: inset 0 0 0 0 transparent;
}

/* =========================================================
   17. 响应式
   ========================================================= */
@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
  .footer__col:nth-child(4) { grid-column: 1; }
  .footer__grid { grid-template-areas: none; }
}

@media (max-width: 1080px) {
  .site-nav { gap: 8px; }
  .site-nav__link { padding: 0 10px; font-size: 14px; }
  .site-nav__cta { padding: 0 16px; font-size: 13px; }
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(24px, 3vw, 36px);
  }
  .footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .site-header { --header-h: 64px; }
  .site-header[data-scrolled="true"] { --header-h: 54px; }

  .version-orb { width: 40px; height: 40px; }
  .version-orb__label { display: none; }
  .site-header[data-scrolled="true"] .version-orb { width: 34px; height: 34px; }

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px clamp(18px, 4vw, 32px) 28px;
    background: #0A0A12;
    border-bottom: 1px solid var(--wire);
    box-shadow: 0 30px 60px -34px #000;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease),
      visibility .2s var(--ease);
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    height: 50px;
    padding: 0 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--wire);
  }

  .site-nav__link::before { display: none; }
  .site-nav__link:hover::before { display: none; }

  .site-nav__link[aria-current="page"]::before { display: none; }

  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    bottom: 0;
    width: 32px;
    height: 2px;
  }

  .site-nav__cta {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    font-size: 15px;
  }

  .bento__cell { grid-column: span 12; }
  .bento__cell--wide,
  .bento__cell--half,
  .bento__cell--full { grid-column: span 12; }
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__brand { grid-column: 1 / -1; }
  .footer-breath { height: 96px; }
  .footer__legal { justify-content: flex-start; gap: 6px 18px; }
  .prose { font-size: 16px; }
  .display { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  [data-chapter] { scroll-margin-top: 92px; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col--contact { grid-column: auto; }
  .brand__sub { display: none; }
  .chapter-orb__btn { width: 52px; height: 52px; }
}

/* =========================================================
   18. 动效降级
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  html[data-js="1"] [data-reveal] {
    transform: none;
    transition: opacity .2s linear;
  }

  .chapter-orb__btn:hover,
  .bento__cell:hover { transform: none; }

  .footer-breath::after { animation: none; opacity: .5; }
  .footer__dot { animation: none; }
}
