/* ============================================================
   博鱼体育 · CN导航 — /assets/site.css
   共享外壳 + 通用组件（页面特色布局由页面专属 CSS 承接）
   ============================================================ */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* ---------- Design tokens ---------- */
:root {
  --deep-900: #061A2B;
  --deep-800: #0B2C46;
  --blue-700: #12496E;
  --pool-500: #17B8C4;
  --pool-300: #7FE3E8;
  --coral-500: #FF6B4A;
  --coral-300: #FFB3A0;
  --sand-050: #F4F8FA;
  --paper-100: #E8F1F4;
  --ink-900: #0E1B24;
  --slate-500: #4A6170;
  --mark-red: #D93A3A;
  --mark-yellow: #F2C230;

  --font-display: "Noto Sans SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page-max: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-panel: 0 20px 44px -34px rgba(6, 26, 43, 0.65);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 74px;
}

/* ---------- Base / 中文排版 ---------- */
body {
  background-color: var(--sand-050);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

h1 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 2.8vw, 36px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

p { max-width: 72ch; }

a { text-decoration-thickness: 1px; }

::selection {
  background: var(--pool-300);
  color: var(--deep-900);
}

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

.site-footer :focus-visible,
.site-header :focus-visible {
  outline-color: var(--pool-300);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--coral-500);
  color: var(--deep-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

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

/* ============================================================
   HEADER — L 形泳道框架
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, var(--deep-900) 0%, #0A2741 100%);
  color: var(--paper-100);
  border-bottom: 1px solid rgba(127, 227, 232, 0.22);
}

.header-rail {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--pool-300) 0%, var(--pool-500) 58%, rgba(23, 184, 196, 0) 100%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

/* 品牌 */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  grid-template-rows: repeat(3, 3px);
  align-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 6px;
  border: 1px solid rgba(127, 227, 232, 0.42);
  border-radius: 9px;
  background: rgba(23, 184, 196, 0.12);
}

.brand-lane {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--pool-300);
}

.brand-lane:nth-child(2) {
  background: var(--coral-500);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.24;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pool-300);
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid rgba(127, 227, 232, 0.42);
  border-radius: 999px;
  background: rgba(23, 184, 196, 0.14);
  color: var(--paper-100);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(23, 184, 196, 0.24);
  border-color: var(--pool-500);
}

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

.nav-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--pool-300);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 22px);
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(232, 241, 244, 0.8);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.nav-link::before {
  content: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--pool-500), var(--pool-300));
  transition: width 0.24s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: calc(100% - 8px);
}

.nav-link[aria-current="page"] {
  color: var(--pool-300);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  width: calc(100% - 8px);
}

.nav-cta {
  flex: 0 0 auto;
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(127, 227, 232, 0.14);
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pool-500) 0%, var(--pool-300) 62%, var(--coral-500) 100%);
  transition: width 0.08s linear;
}

/* ---------- 移动端导航（<960px） ---------- */
@media (max-width: 959px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, #0B2C46 0%, var(--deep-900) 100%);
    border-bottom: 1px solid rgba(127, 227, 232, 0.25);
    box-shadow: 0 26px 42px -30px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(127, 227, 232, 0.12);
  }

  .nav-link {
    display: block;
    padding: 15px 12px 15px 18px;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(127, 227, 232, 0.32);
    transform: translateY(-50%);
    transition: background 0.18s var(--ease);
  }

  .nav-link[aria-current="page"]::before {
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: var(--coral-500);
  }

  .nav-cta {
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
  }
}

@media (min-width: 960px) {
  .header-inner {
    padding-left: 26px;
  }
}

@media (min-width: 1024px) {
  .header-rail {
    display: block;
  }

  .header-inner {
    padding-left: 34px;
  }
}

/* ============================================================
   FOOTER — 深色条款区
   ============================================================ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--deep-900) 0%, #041320 72%, #030F19 100%);
  color: var(--paper-100);
  padding-top: clamp(42px, 6vw, 76px);
  overflow: hidden;
}

.footer-lane {
  height: 1px;
  margin: 0 var(--gutter) clamp(28px, 4vw, 44px);
  background: linear-gradient(90deg, rgba(127, 227, 232, 0) 0%, rgba(127, 227, 232, 0.6) 38%, rgba(255, 107, 74, 0.6) 72%, rgba(127, 227, 232, 0) 100%);
}

.footer-inner {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr);
    align-items: start;
  }
}

.footer-brand-col {
  max-width: 44ch;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #FFFFFF;
}

.footer-brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(127, 227, 232, 0.5);
  background: linear-gradient(140deg, var(--pool-500) 0%, var(--blue-700) 100%);
}

.footer-brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 3px;
  border-radius: 2px;
  background: var(--coral-500);
  transform: translateY(-50%);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-summary {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(232, 241, 244, 0.72);
}

.footer-contact {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-contact-label {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(127, 227, 232, 0.3);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--pool-300);
}

.footer-contact-text {
  color: rgba(232, 241, 244, 0.74);
  font-size: 13.5px;
  line-height: 1.7;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(127, 227, 232, 0.28);
  border-radius: 8px;
  background: rgba(127, 227, 232, 0.09);
  color: var(--paper-100);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.copy-chip:hover {
  background: rgba(23, 184, 196, 0.22);
  border-color: var(--pool-500);
}

.copy-chip[data-copied="true"] {
  border-color: var(--coral-500);
  color: var(--coral-300);
}

.copy-chip-text {
  letter-spacing: 0.01em;
}

.copy-chip-hint {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--pool-300);
}

.copy-chip[data-copied="true"] .copy-chip-hint {
  color: var(--coral-300);
}

.footer-service-note {
  margin-top: 20px;
  padding-left: 12px;
  border-left: 2px solid rgba(23, 184, 196, 0.7);
  max-width: 42ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(232, 241, 244, 0.55);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

@media (min-width: 620px) {
  .footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-col-title {
  position: relative;
  padding-top: 12px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.footer-col-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--pool-500);
}

.footer-col-list {
  display: grid;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  padding-block: 3px;
  font-size: 14px;
  color: rgba(232, 241, 244, 0.72);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--pool-300);
}

.footer-legal {
  width: 100%;
  max-width: var(--page-max);
  margin: clamp(36px, 5vw, 60px) auto 0;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(127, 227, 232, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: baseline;
}

.footer-legal-item {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(232, 241, 244, 0.5);
  max-width: 62ch;
}

.footer-legal-code {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: rgba(232, 241, 244, 0.66);
}

/* ============================================================
   通用容器 / 章节 / 网格
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section--paper {
  background-color: var(--paper-100);
}

.section--dark {
  background: linear-gradient(180deg, var(--deep-800) 0%, var(--deep-900) 100%);
  color: var(--paper-100);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #FFFFFF;
}

.section--dark p {
  color: rgba(232, 241, 244, 0.78);
}

.chapter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--coral-500);
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.chapter-sub {
  flex-basis: 100%;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  font-family: var(--font-mono);
}

.chapter--dark .chapter-title {
  color: #FFFFFF;
}

.chapter--dark .chapter-sub {
  color: rgba(127, 227, 232, 0.8);
}

.lede {
  max-width: 62ch;
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--slate-500);
}

.lede--light {
  color: rgba(232, 241, 244, 0.78);
}

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

@media (min-width: 720px) {
  .grid--halves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--thirds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid--split {
    grid-template-columns: 5fr 7fr;
  }

  .grid--split-rev {
    grid-template-columns: 7fr 5fr;
  }
}

/* ============================================================
   面板 / 卡片 / 标签 / 数据
   ============================================================ */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(18, 73, 110, 0.14);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  box-shadow: var(--shadow-panel);
}

.panel--paper {
  background-color: var(--paper-100);
  border-color: rgba(18, 73, 110, 0.16);
}

.panel--tint {
  background: linear-gradient(160deg, rgba(23, 184, 196, 0.14) 0%, rgba(127, 227, 232, 0.06) 100%);
  border-color: rgba(23, 184, 196, 0.3);
}

.panel--dark {
  background-color: var(--deep-800);
  border-color: rgba(127, 227, 232, 0.22);
  color: var(--paper-100);
  box-shadow: none;
}

.panel--dark h2,
.panel--dark h3,
.panel--dark h4 {
  color: #FFFFFF;
}

.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) clamp(22px, 2.6vw, 30px);
  border: 1px solid rgba(18, 73, 110, 0.14);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(16px, 2vw, 24px);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--pool-500);
  transition: height 0.2s var(--ease), background 0.2s var(--ease);
}

.card:hover {
  border-color: rgba(23, 184, 196, 0.4);
  box-shadow: var(--shadow-panel);
}

.card:hover::before {
  height: 26px;
}

.card-title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--slate-500);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.tag--cyan {
  background-color: rgba(23, 184, 196, 0.14);
  border-color: rgba(23, 184, 196, 0.38);
  color: #0B5C66;
}

.tag--coral {
  background-color: rgba(255, 107, 74, 0.14);
  border-color: rgba(255, 179, 160, 0.7);
  color: #9C3620;
}

.tag--sand {
  background-color: var(--paper-100);
  border-color: rgba(18, 73, 110, 0.18);
  color: var(--slate-500);
}

.tag--ghost {
  background-color: rgba(232, 241, 244, 0.08);
  border-color: rgba(127, 227, 232, 0.32);
  color: var(--pool-300);
}

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

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep-900);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.marker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.marker::before {
  content: "";
  width: 10px;
  height: 14px;
  border-radius: 2px;
}

.marker--red {
  color: #8E2323;
}

.marker--red::before {
  background-color: var(--mark-red);
}

.marker--yellow {
  color: #7A5E00;
}

.marker--yellow::before {
  background-color: var(--mark-yellow);
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background-color: var(--coral-500);
  color: var(--deep-900);
  box-shadow: 0 12px 26px -18px rgba(255, 107, 74, 0.95);
}

.btn--primary:hover {
  background-color: #FF8163;
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: transparent;
  border-color: rgba(127, 227, 232, 0.55);
  color: var(--pool-300);
}

.btn--ghost:hover {
  background-color: rgba(23, 184, 196, 0.18);
  border-color: var(--pool-300);
  color: #FFFFFF;
}

.btn--ink {
  background-color: var(--deep-800);
  color: #FFFFFF;
}

.btn--ink:hover {
  background-color: var(--blue-700);
  transform: translateY(-1px);
}

.btn--quiet {
  background-color: transparent;
  border-color: rgba(18, 73, 110, 0.28);
  color: var(--blue-700);
}

.btn--quiet:hover {
  border-color: var(--pool-500);
  background-color: rgba(23, 184, 196, 0.1);
  color: var(--deep-900);
}

/* ============================================================
   文本 / 结构件
   ============================================================ */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-900);
}

.prose h2 {
  margin: 1.1em 0 0.5em;
  font-size: clamp(22px, 2.4vw, 28px);
}

.prose h3 {
  margin: 1.2em 0 0.4em;
  font-size: 19px;
}

.prose p {
  margin-bottom: 1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin-bottom: 0.45em;
  padding-left: 18px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--pool-500);
}

.prose a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--coral-500);
}

.divider-lane {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 40px);
  background: linear-gradient(90deg, rgba(23, 184, 196, 0.6) 0%, rgba(23, 184, 196, 0) 100%);
}

.breadcrumbs {
  background-color: var(--paper-100);
  border-bottom: 1px solid rgba(18, 73, 110, 0.12);
  padding-block: 12px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate-500);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "／";
  color: rgba(74, 97, 112, 0.45);
}

.breadcrumb-link {
  color: var(--blue-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.breadcrumb-link:hover {
  color: var(--deep-900);
  border-bottom-color: var(--pool-500);
}

/* ============================================================
   图片容器（页面阶段放 <img> 或纯占位）
   ============================================================ */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(232, 241, 244, 0.25);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--deep-800) 0%, var(--blue-700) 52%, rgba(23, 184, 196, 0.55) 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(115deg, rgba(127, 227, 232, 0.16) 0 1px, transparent 1px 26px);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(6, 26, 43, 0.52) 0%, rgba(6, 26, 43, 0) 46%, rgba(6, 26, 43, 0.5) 100%);
}

.media-frame img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-caption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-500);
}

.media-caption::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 2px;
  margin-top: 0.72em;
  border-radius: 1px;
  background-color: var(--coral-500);
}

/* ============================================================
   侧边章节编号导航（页面生成时配合 data-section）
   ============================================================ */
.section-nav {
  display: none;
}

@media (min-width: 1100px) {
  .section-nav {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

.section-nav-list {
  display: grid;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.section-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.section-nav-link:hover {
  border-left-color: var(--pool-300);
  color: var(--blue-700);
}

.section-nav-link[aria-current="true"] {
  border-left-color: var(--pool-500);
  background-color: rgba(23, 184, 196, 0.1);
  color: var(--deep-900);
  font-weight: 600;
}

/* ============================================================
   渐显（JS 门控，避免无脚本时内容不可见）
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

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

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

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

  .scroll-progress-bar {
    transition: none;
  }

  .primary-nav {
    transform: none;
    transition: opacity 0.18s linear, visibility 0.18s linear;
  }

  .btn:hover,
  .skip-link,
  .nav-link::after,
  .card::before {
    transition: background 0.18s linear, color 0.18s linear, border-color 0.18s linear;
    transform: none;
  }

  .btn--primary:hover,
  .btn--ink:hover {
    transform: none;
  }

  .site-header[data-open] .nav-toggle-icon span {
    transition: none;
  }
}
