/* ==========================================================================
   捕鱼吧上下分 · BYBSXF 中国区稳定版
   共享外壳样式 /assets/site.css
   深海电玩城 × 矿物色体系 × 精密网格
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--abyss);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--coral);
  color: var(--abyss);
}

/* ---------- 2. Tokens ---------- */
:root {
  /* 矿物 + 霓虹 */
  --abyss: #061A2B;
  --slate: #10304A;
  --grid: #24506E;
  --bone: #F2EDE3;
  --coral: #FF6B4A;
  --cyan: #56E0D0;
  --violet: #7B5CFF;
  --clay: #B06A4A;
  --moss: #6E8B5B;
  --ash: #8A9096;

  /* 尺寸 */
  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --header-h-slim: 48px;
  --frame-pad: clamp(20px, 3.4vw, 32px);

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

/* ---------- 3. 中文排版基线 ---------- */
.display {
  font-size: clamp(38px, 6.4vw, 92px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
  color: var(--bone);
  max-width: 62ch;
  margin: 0;
}

.prose {
  max-width: 62ch;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.6em 0 0.6em;
}

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--grid);
}

.prose a:hover {
  border-bottom-color: var(--cyan);
}

.num {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--clay);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.eyebrow--cyan {
  color: var(--cyan);
}

.title-glitch {
  position: relative;
  text-shadow: 0 0 26px rgba(86, 224, 208, 0.26);
}

.title-glitch::before,
.title-glitch::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms linear, transform 120ms linear;
}

.title-glitch:hover::before {
  opacity: 0.85;
  color: var(--coral);
  transform: translate(-2px, -1px);
}

.title-glitch:hover::after {
  opacity: 0.85;
  color: var(--cyan);
  transform: translate(2px, 1px);
}

/* ---------- 4. 布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 8vw, 110px);
}

.section--tight {
  padding-block: clamp(28px, 4vw, 56px);
}

.section--bone {
  background: var(--bone);
  color: var(--abyss);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grid);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--grid);
}

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

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

@media (max-width: 900px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--grid);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, box-shadow 200ms ease;
}

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

.btn--primary {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--abyss);
  font-weight: 700;
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px var(--coral), 0 0 22px rgba(255, 107, 74, 0.42);
}

.btn--ghost {
  background: transparent;
  border-color: var(--grid);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(86, 224, 208, 0.18);
}

.btn--quiet {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.btn--quiet:hover {
  color: var(--coral);
}

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--abyss);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 26, 43, 0.96);
  border-bottom: 1px solid var(--grid);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: var(--header-h);
  transition: min-height 260ms ease;
}

.site-header[data-scrolled] .header-shell {
  min-height: var(--header-h-slim);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bone);
  min-width: 0;
}

.brand-glyph {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 107, 74, 0.85);
}

.brand-text {
  display: block;
  min-width: 0;
}

.brand-mark {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  line-height: 1.3;
  color: var(--ash);
  white-space: nowrap;
}

/* 命令栏导航 */
.cmd-nav {
  justify-self: center;
  min-width: 0;
}

.cmd-list {
  display: flex;
  align-items: stretch;
}

.cmd-item + .cmd-item {
  border-left: 1px solid var(--grid);
}

.cmd-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  padding: 0 clamp(8px, 1.1vw, 15px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ash);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, height 260ms ease;
}

.site-header[data-scrolled] .cmd-link {
  height: var(--header-h-slim);
}

.cmd-index {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--clay);
  transition: color 180ms ease;
}

.cmd-label {
  display: inline-block;
}

.cmd-link:hover {
  color: var(--bone);
  background: var(--slate);
}

.cmd-link:hover .cmd-index {
  color: var(--cyan);
}

.cmd-link[aria-current="page"] {
  color: var(--bone);
}

.cmd-link[aria-current="page"] .cmd-index {
  color: var(--coral);
}

.cmd-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(86, 224, 208, 0.75);
}

/* 右侧栏 */
.header-rail {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ash);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--moss);
  box-shadow: 0 0 9px rgba(110, 139, 91, 0.95);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.status-num {
  color: var(--bone);
}

.status-sep {
  color: var(--grid);
}

.header-cta {
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.site-header[data-scrolled] .header-cta {
  padding: 7px 14px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--grid);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
}

.nav-toggle-bar {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--bone);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 滚动进度 */
.header-progress {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
}

/* 头部断点 */
@media (max-width: 1180px) {
  .cmd-link { padding: 0 9px; font-size: 11px; }
  .status-chip { font-size: 10px; }
}

@media (max-width: 1020px) {
  .status-chip { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .cmd-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    justify-self: stretch;
    background: var(--abyss);
    border-top: 1px solid var(--grid);
    border-bottom: 1px solid var(--grid);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

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

  .cmd-list {
    flex-direction: column;
    align-items: stretch;
  }

  .cmd-item + .cmd-item {
    border-left: 0;
    border-top: 1px solid var(--grid);
  }

  .cmd-link {
    height: auto;
    padding: 15px var(--gutter);
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .site-header[data-scrolled] .cmd-link {
    height: auto;
  }

  .cmd-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .brand-sub { display: none; }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 140px);
  background: var(--slate);
  border-top: 1px solid var(--grid);
}

.footer-ruler {
  height: 7px;
  border-bottom: 1px solid var(--grid);
  background: repeating-linear-gradient(
    90deg,
    var(--grid) 0 1px,
    transparent 1px 24px
  );
}

.footer-shell {
  padding-block: clamp(36px, 6vw, 72px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: clamp(20px, 3vw, 30px);
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--grid);
}

.footer-tag {
  color: var(--ash);
  font-size: 14px;
  line-height: 1.8;
  max-width: 52ch;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
  gap: clamp(24px, 3vw, 48px);
}

.footer-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--clay);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--grid);
}

.footer-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ash);
}

.footer-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 1px;
  background: var(--clay);
}

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

.footer-links a {
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.contact-key {
  flex: none;
  width: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--clay);
  padding-top: 3px;
}

.contact-val {
  color: var(--bone);
  word-break: break-word;
}

.footer-contact-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ash);
  border-left: 1px solid var(--grid);
  padding-left: 12px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.footer-copy {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-legal a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-icp {
  margin: 0;
}

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

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 8. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--abyss);
  border: 1px solid var(--grid);
  border-radius: 0;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease,
              border-color 180ms ease, color 180ms ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.to-top-arrow {
  width: 8px;
  height: 8px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---------- 9. 通用内容组件 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ash);
}

.breadcrumb a {
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--grid);
}

/* 框景 */
.frame {
  position: relative;
  border: 1px solid var(--grid);
  padding: var(--frame-pad);
  background: linear-gradient(180deg, rgba(16, 48, 74, 0.55), rgba(6, 26, 43, 0.15));
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan);
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.frame-ticks {
  position: absolute;
  left: var(--frame-pad);
  right: var(--frame-pad);
  top: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--grid) 0 1px,
    transparent 1px 20px
  );
  pointer-events: none;
}

/* 机台卡片 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 22px 22px;
  background: var(--slate);
  border: 1px solid var(--grid);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--coral);
}

.card--cyan::before { background: var(--cyan); }
.card--violet::before { background: var(--violet); }
.card--moss::before { background: var(--moss); }

.card-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--clay);
}

.card-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.card-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ash);
  margin: 0;
}

.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bone);
}

.card-index {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--clay);
}

/* 图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--grid);
  background: linear-gradient(140deg, var(--slate), var(--abyss));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.05);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(86, 224, 208, 0.13), transparent 46%, rgba(255, 107, 74, 0.12));
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }

.media-frame-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 12px;
  background: var(--abyss);
  border-top: 1px solid var(--grid);
  border-right: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ash);
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 0;
  border-left: 1px solid var(--grid);
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--abyss);
  border: 1px solid var(--clay);
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.timeline-item[data-active]::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(86, 224, 208, 0.7);
}

/* 折叠面板 */
.accordion {
  background: var(--slate);
  border: 1px solid var(--grid);
}

.accordion + .accordion {
  border-top: 0;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bone);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.accordion-trigger:hover {
  color: var(--cyan);
  background: rgba(6, 26, 43, 0.4);
}

.accordion-trigger::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.accordion-panel {
  padding: 0 20px 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ash);
  border-top: 1px solid var(--grid);
  padding-top: 16px;
}

.accordion-panel[hidden] {
  display: none;
}

/* 筛选标签 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.filter-chip {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--grid);
  border-radius: 0;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.filter-chip:hover {
  color: var(--bone);
  border-color: var(--ash);
}

.filter-chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--abyss);
}

/* 章节索引 */
.section-index {
  position: sticky;
  top: calc(var(--header-h-slim) + 24px);
  border-left: 1px solid var(--grid);
}

.section-index a {
  position: relative;
  display: block;
  padding: 10px 0 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ash);
  text-decoration: none;
  transition: color 180ms ease;
}

.section-index a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 0;
  background: var(--cyan);
  transition: height 220ms ease, top 220ms ease;
}

.section-index a:hover {
  color: var(--bone);
}

.section-index a[aria-current="true"] {
  color: var(--cyan);
}

.section-index a[aria-current="true"]::before {
  top: 0;
  height: 100%;
  box-shadow: 0 0 10px rgba(86, 224, 208, 0.6);
}

@media (max-width: 960px) {
  .section-index {
    position: static;
  }
}

/* 反色统计块 */
.stat-block {
  background: var(--bone);
  color: var(--abyss);
  padding: clamp(24px, 4vw, 44px);
}

.stat-block .stat-num {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0.04em;
}

.stat-block .stat-label {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--clay);
}

.stat-block .stat-text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

/* 徽记 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ash);
}

.tag--cyan { color: var(--cyan); border-color: var(--cyan); }
.tag--violet { color: var(--violet); border-color: var(--violet); }
.tag--moss { color: var(--moss); border-color: var(--moss); }
.tag--coral { color: var(--coral); border-color: var(--coral); }

/* ---------- 10. 滚动揭示 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease var(--reveal-delay, 0ms),
              transform 600ms ease var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

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

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

  .to-top {
    transform: none;
  }

  .title-glitch::before,
  .title-glitch::after {
    display: none;
  }
}
