/* ============================================================
   博鱼赛场 — 共享样式 /assets/site.css
   ============================================================ */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; }
:where(a, button) { -webkit-tap-highlight-color: transparent; }

hr { border: 0; border-top: 1px solid var(--line-soft); }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #050B14;
  --ink-800: #081C33;
  --glass: #0E2E42;
  --cyan: #00F0D0;
  --cyan-soft: #6FF7FF;
  --orange: #FF6B2C;
  --signal: #FFD23F;
  --frost: #EAF6FF;
  --mist: #8FA6B8;
  --violet: #6B4C9A;

  --line-soft: rgba(111, 247, 255, .12);
  --line: rgba(111, 247, 255, .22);
  --line-strong: rgba(0, 240, 208, .5);
  --glass-fill: rgba(14, 46, 66, .5);

  --font-display: "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(234, 246, 255, .88);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 560px at 84% -10%, rgba(0, 240, 208, .12), transparent 62%),
    radial-gradient(900px 520px at 4% 2%, rgba(107, 76, 154, .18), transparent 66%),
    radial-gradient(820px 700px at 50% 112%, rgba(255, 107, 44, .07), transparent 70%),
    linear-gradient(rgba(111, 247, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 247, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  body {
    background-size: auto, auto, auto, 48px 48px, 48px 48px;
    background-attachment: scroll, scroll, scroll, scroll, scroll;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.005em;
  line-height: 1.08;
  color: var(--frost);
}

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

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--cyan);
  color: #02181c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline-offset: 2px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background:
    linear-gradient(180deg, rgba(5, 11, 20, .97) 0%, rgba(8, 28, 51, .94) 100%);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 22px 46px -34px rgba(0, 240, 208, .85);
  color: var(--frost);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-frame {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 11px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav side";
  align-items: center;
  gap: 14px 26px;
}

.header-frame::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, rgba(0, 240, 208, .55) 0 1px, transparent 1px 22px);
  opacity: .35;
  pointer-events: none;
}

/* 品牌 */
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
  text-decoration: none;
  color: var(--frost);
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg, rgba(0, 240, 208, .28), rgba(0, 240, 208, 0) 72%);
  transform: rotate(45deg);
  transition: transform .35s var(--ease), border-color .25s var(--ease);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 208, .9);
}
.brand:hover .brand-mark { transform: rotate(135deg); border-color: var(--cyan-soft); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.06;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--frost);
}
.brand-domain {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: rgba(143, 166, 184, .92);
  text-transform: lowercase;
  white-space: nowrap;
}

/* 导航 */
.site-nav { grid-area: nav; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-item { display: block; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.2;
  color: rgba(234, 246, 255, .82);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.nav-link::before {
  content: attr(data-idx);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(143, 166, 184, .8);
  transition: color .2s var(--ease);
}
.nav-link:hover {
  color: var(--cyan-soft);
  background: rgba(0, 240, 208, .08);
  border-color: var(--line);
}
.nav-link:hover::before { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: #04191f;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--cyan-soft) 100%);
  border-color: transparent;
  box-shadow: 0 12px 28px -16px var(--cyan);
}
.nav-link[aria-current="page"]::before { color: rgba(4, 25, 31, .62); }

/* 右侧快捷区 */
.header-side {
  grid-area: side;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: linear-gradient(135deg, rgba(0, 240, 208, .18), rgba(0, 240, 208, .04));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.header-cta:hover {
  background: var(--cyan);
  color: #02181c;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px var(--cyan);
}

.header-mail {
  display: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  color: rgba(143, 166, 184, .92);
  white-space: nowrap;
}
.header-mail-addr { color: var(--cyan-soft); }
@media (min-width: 1120px) { .header-mail { display: inline; } }

/* 移动导航按钮 */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(14, 46, 66, .45);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: rgba(0, 240, 208, .14); }
.nav-toggle-label { line-height: 1; }

.nav-toggle-glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.nav-toggle-glyph::before,
.nav-toggle-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-glyph::before { top: 1px; }
.nav-toggle-glyph::after { top: 11px; }
.nav-toggle[aria-expanded="true"] { background: rgba(0, 240, 208, .2); border-color: var(--cyan); }
.nav-toggle[aria-expanded="true"] .nav-toggle-glyph::before { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-glyph::after { top: 6px; transform: rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(111, 247, 255, .1);
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--signal) 62%, var(--orange) 100%);
  box-shadow: 0 0 10px rgba(0, 240, 208, .7);
}

/* ---------- 6. 移动端导航面板 ---------- */
@media (max-width: 999px) {
  .header-frame {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand toggle";
    gap: 10px 14px;
  }
  .header-side { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 12px var(--gutter) 22px;
    background: linear-gradient(180deg, rgba(8, 28, 51, .99) 0%, rgba(5, 11, 20, .99) 100%);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .95);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .site-nav[data-open="true"] {
    display: block;
    animation: navDrop .26s var(--ease) both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  .nav-link {
    display: flex;
    width: 100%;
    padding: 14px 12px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 17px;
  }
  .nav-link::before { font-size: 11px; }
  .nav-link:hover { background: rgba(0, 240, 208, .07); border-color: transparent; }
  .nav-link[aria-current="page"] {
    border-bottom-color: transparent;
    box-shadow: none;
  }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: linear-gradient(180deg, rgba(5, 11, 20, .35) 0%, var(--ink-900) 42%);
  border-top: 1px solid var(--line-strong);
  color: var(--mist);
  font-size: 14px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, rgba(0, 240, 208, .5) 0 1px, transparent 1px 24px);
  opacity: .5;
  pointer-events: none;
}

.footer-frame {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 78px) var(--gutter) clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(26px, 3.6vw, 46px);
}

.footer-brand { min-width: 0; }

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.1;
  color: var(--frost);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-logo:hover { color: var(--cyan-soft); }

.footer-domain {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(111, 247, 255, .78);
  text-transform: lowercase;
}

.footer-note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(143, 166, 184, .95);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(14, 46, 66, .5);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0700;
  transform: translateY(-1px);
}

.footer-col { min-width: 0; }

.footer-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(234, 246, 255, .8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--line-strong);
}

.footer-list--mono { gap: 0; }
.footer-list--mono li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 8px;
  border-bottom: 1px dashed rgba(111, 247, 255, .12);
}
.footer-list--mono li:last-child { border-bottom: 0; }
.footer-key {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(143, 166, 184, .82);
}
.footer-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--frost);
  word-break: break-word;
}

.footer-base {
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 28, 51, .55);
}
.footer-base-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(143, 166, 184, .9);
  margin: 0;
}
.footer-legal--icp { color: rgba(234, 246, 255, .72); }

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(111, 247, 255, .85);
}
.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 208, .55); }
  70% { box-shadow: 0 0 0 7px rgba(0, 240, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 208, 0); }
}

@media (max-width: 900px) {
  .footer-frame { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-frame { grid-template-columns: 1fr; }
  .footer-base-inner { justify-content: flex-start; }
}

/* ---------- 8. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 28, 51, .94);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s linear, background .2s var(--ease);
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: rgba(0, 240, 208, .16); }
.to-top-arrow { font-size: 13px; line-height: 1; }

/* ---------- 9. 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6.5vw, 92px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(22px, 3vw, 38px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.04;
  color: var(--frost);
}

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

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

/* ---------- 10. 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(160deg, rgba(14, 46, 66, .72) 0%, rgba(8, 28, 51, .6) 100%);
  border: 1px solid rgba(111, 247, 255, .16);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.panel:hover {
  border-color: rgba(0, 240, 208, .42);
  box-shadow: 0 24px 44px -34px rgba(0, 240, 208, .9);
}

.panel--solid {
  background: var(--ink-800);
  border-color: rgba(0, 240, 208, .28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel--accent {
  background: linear-gradient(160deg, rgba(0, 240, 208, .14) 0%, rgba(8, 28, 51, .92) 100%);
  border-color: rgba(0, 240, 208, .38);
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.btn--primary {
  background: var(--cyan);
  color: #02181c;
  box-shadow: 0 14px 34px -18px var(--cyan);
}
.btn--primary:hover {
  background: var(--cyan-soft);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px var(--cyan);
}
.btn--ghost {
  background: rgba(14, 46, 66, .5);
  border-color: var(--line-strong);
  color: var(--frost);
}
.btn--ghost:hover {
  background: rgba(0, 240, 208, .14);
  color: var(--cyan-soft);
  transform: translateY(-2px);
}
.btn--orange {
  background: var(--orange);
  color: #1a0700;
  box-shadow: 0 14px 34px -18px var(--orange);
}
.btn--orange:hover {
  background: #ff8b57;
  transform: translateY(-2px);
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.5;
  white-space: nowrap;
}
.tag--cyan {
  background: rgba(0, 240, 208, .14);
  border-color: rgba(0, 240, 208, .42);
  color: var(--cyan-soft);
}
.tag--orange {
  background: rgba(255, 107, 44, .16);
  border-color: rgba(255, 107, 44, .44);
  color: #ffb28a;
}
.tag--signal {
  background: rgba(255, 210, 63, .14);
  border-color: rgba(255, 210, 63, .42);
  color: var(--signal);
}
.tag--violet {
  background: rgba(107, 76, 154, .26);
  border-color: rgba(107, 76, 154, .58);
  color: #c9b6f2;
}

/* ---------- 13. 数据行 ---------- */
.data-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(111, 247, 255, .16);
  font-size: 14px;
}
.data-row:last-child { border-bottom: 0; }
.data-label {
  color: rgba(143, 166, 184, .95);
  font-size: 13px;
  letter-spacing: .04em;
}
.data-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--frost);
  text-align: right;
  word-break: break-word;
}

/* ---------- 14. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(143, 166, 184, .9);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before {
  content: "/";
  color: rgba(0, 240, 208, .5);
}
.breadcrumb a {
  color: rgba(143, 166, 184, .95);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--frost); }

/* ---------- 15. 正文 ---------- */
.prose {
  max-width: 68ch;
  color: rgba(234, 246, 255, .86);
}
.prose p {
  margin: 0 0 1.1em;
  font-size: 16.5px;
  line-height: 1.8;
}
.prose h2 {
  margin: 2em 0 .7em;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--frost);
}
.prose h3 {
  margin: 1.6em 0 .6em;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--frost);
}
.prose ul, .prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; line-height: 1.75; }
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 208, .45);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.prose a:hover { color: var(--cyan-soft); border-bottom-color: var(--cyan-soft); }
.prose strong { color: var(--frost); }

/* ---------- 16. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink-800) 0%, var(--ink-900) 100%);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 247, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 247, 255, .09) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .55;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.media:hover::after { opacity: .22; }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05) brightness(.96);
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.media:hover img { transform: scale(1.03); filter: saturate(1.12) contrast(1.08) brightness(1); }

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

.media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 26px 16px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: .02em;
  color: var(--frost);
  background: linear-gradient(180deg, rgba(5, 11, 20, 0) 0%, rgba(5, 11, 20, .88) 72%);
  z-index: 1;
}
.media-credit {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(143, 166, 184, .9);
}

@media (max-width: 600px) {
  .media--tall { aspect-ratio: 4 / 5; }
}

/* ---------- 17. 章节跟随（可选） ---------- */
[data-toc-link] {
  display: block;
  padding: 7px 0;
  color: rgba(143, 166, 184, .95);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  font-size: 14px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
[data-toc-link]:hover { color: var(--cyan-soft); }
[data-toc-link][aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(0, 240, 208, .07);
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }
  .media:hover img { transform: none; }
  .to-top { transition: none; }
}
