/* ==========================================================================
   龙珠站 · 共享站点样式  /assets/site.css
   骨架：76px 品牌轨道 + 悬浮胶囊导航 + 斜切 / 胶囊 / 大圆角形状语言
   ========================================================================== */

/* ---------- 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 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --gold: #F59A1B;
  --gold-soft: #FFC861;
  --ink: #0B1A2B;
  --ink-700: #16293F;
  --ink-600: #1E3853;
  --cyan: #34E0D2;
  --warm: #FFE1A8;
  --paper: #F7F1E6;
  --rock: #6E7480;
  --clay: #C4643C;
  --moss: #5E7F5C;

  /* 字体 */
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-editorial: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 字号 */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-26: 1.625rem;
  --fs-34: 2.125rem;
  --fs-46: 2.875rem;
  --fs-64: 4rem;

  /* 度量 */
  --rail-w: 76px;
  --gutter: 24px;
  --maxw: 1240px;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --line-soft: rgba(255, 200, 97, 0.20);
  --line-mid: rgba(255, 200, 97, 0.42);
  --text-dim: rgba(247, 241, 230, 0.70);
  --text-mute: rgba(247, 241, 230, 0.54);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 520px at 84% -12%, rgba(245, 154, 27, 0.16), transparent 62%),
    radial-gradient(760px 460px at 6% 0%, rgba(52, 224, 210, 0.10), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-46); }
h2 { font-size: var(--fs-34); }
h3 { font-size: var(--fs-26); }
h4 { font-size: var(--fs-20); }

p { text-wrap: pretty; }

.mono,
code,
kbd { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; }

/* ---------- 4. 焦点与可访问 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 700;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9);
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------- 5. 通用容器 / 网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

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

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

@media (min-width: 1024px) {
  #main-content { padding-inline-start: var(--rail-w); }
}

/* ---------- 6. 头部 · 品牌轨道 ---------- */
.site-header { display: contents; }

.brand-rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 95;
  display: none;
  width: var(--rail-w);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 20px;
  background: linear-gradient(180deg, rgba(22, 41, 63, 0.98), rgba(11, 26, 43, 0.98));
  border-inline-end: 1px solid var(--line-soft);
  box-shadow: 14px 0 44px -34px rgba(0, 0, 0, 0.95);
}

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rail-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFE9C4, var(--gold) 56%, #A75F05 100%);
  box-shadow: 0 0 0 1px rgba(255, 200, 97, 0.55), 0 0 16px rgba(245, 154, 27, 0.75);
  animation: orb-pulse 3.8s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 200, 97, 0.5), 0 0 12px rgba(245, 154, 27, 0.5); }
  50% { box-shadow: 0 0 0 2px rgba(255, 200, 97, 0.85), 0 0 26px rgba(245, 154, 27, 0.95); }
}

.rail-brand-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 900;
  letter-spacing: 0.24em;
  color: var(--warm);
  text-shadow: 1px 1px 0 rgba(245, 154, 27, 0.85);
}

.rail-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
}

.rail-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 241, 230, 0.26);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.rail-progress-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(245, 154, 27, 0.16), 0 0 14px rgba(245, 154, 27, 0.85);
}

.rail-paths {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail-path {
  display: flex;
  justify-content: center;
  padding: 14px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: rgba(11, 26, 43, 0.92);
  color: var(--warm);
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.rail-path:hover,
.rail-path:focus-visible {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 4px rgba(245, 154, 27, 0.18);
}

/* ---------- 7. 头部 · 悬浮胶囊导航 ---------- */
.nav-pill {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 14px clamp(14px, 4vw, 32px);
  pointer-events: none;
}

.nav-pill-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 18px);
  width: 100%;
  max-width: var(--maxw);
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: rgba(11, 26, 43, 0.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 56px -34px rgba(0, 0, 0, 0.98), inset 0 1px 0 rgba(255, 200, 97, 0.10);
  transition: padding 0.34s var(--ease), background 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.34s var(--ease);
}

.site-header[data-scrolled="true"] .nav-pill-inner {
  padding-block: 5px;
  border-color: rgba(255, 200, 97, 0.55);
  background: rgba(11, 26, 43, 0.95);
  box-shadow: 0 26px 48px -30px rgba(0, 0, 0, 1), 0 0 0 1px rgba(245, 154, 27, 0.16);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 900;
  color: var(--warm);
  text-shadow: 1px 1px 0 rgba(245, 154, 27, 0.9);
  white-space: nowrap;
}

.nav-brand-orb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFE9C4, var(--gold) 58%, #A75F05 100%);
  box-shadow: 0 0 12px rgba(245, 154, 27, 0.85);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(247, 241, 230, 0.82);
  font-size: var(--fs-14);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--warm);
  background: rgba(245, 154, 27, 0.16);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-soft), 0 0 20px rgba(245, 154, 27, 0.45);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 6px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--gold-soft), 0 12px 26px -16px rgba(245, 154, 27, 0.95);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px var(--gold-soft), 0 0 0 4px rgba(255, 200, 97, 0.28), 0 16px 30px -16px rgba(245, 154, 27, 1);
}

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 224, 210, 0.5);
  color: var(--cyan);
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-search:hover,
.nav-search:focus-visible {
  background: rgba(52, 224, 210, 0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(52, 224, 210, 0.35);
}

.nav-search-icon { flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  color: var(--warm);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible { background: rgba(245, 154, 27, 0.16); border-color: var(--gold-soft); }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

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

/* ---------- 8. 头部响应式 ---------- */
@media (min-width: 1024px) {
  .brand-rail { display: flex; }
  .nav-brand { display: none; }
  .nav-pill {
    justify-content: flex-end;
    padding-inline: calc(var(--rail-w) + 28px) 32px;
  }
  .nav-pill-inner { max-width: 1010px; padding-inline: 14px; }
  .nav-links { justify-content: flex-end; }
}

@media (max-height: 640px) {
  .rail-progress { display: none; }
}

@media (max-width: 1023px) {
  .nav-pill-inner {
    flex-wrap: wrap;
    border-radius: 26px;
    padding: 9px 12px;
    gap: 6px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-actions { margin-inline-start: auto; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-inline-start: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.34s var(--ease), opacity 0.24s var(--ease), margin 0.24s var(--ease);
  }
  .nav-pill[data-open="true"] .nav-links {
    max-height: 460px;
    opacity: 1;
    margin-top: 6px;
  }
  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: var(--fs-16);
  }
}

@media (max-width: 719px) {
  .nav-cta { display: none; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-700) 56%, var(--ink) 100%);
  border-top: 1px solid var(--line-soft);
}

.footer-service {
  position: relative;
  background: var(--warm);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
  padding: 30px clamp(20px, 5vw, 56px) 52px;
}

.footer-service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(112deg, rgba(11, 26, 43, 0.055) 0 2px, transparent 2px 18px);
  pointer-events: none;
}

.footer-service-inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.footer-service-title {
  font-family: var(--font-editorial);
  font-size: var(--fs-20);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-service-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--warm);
  font-size: var(--fs-14);
  font-weight: 700;
  border: 1px solid rgba(11, 26, 43, 0.28);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.footer-service-link:hover,
.footer-service-link:focus-visible {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(11, 26, 43, 0.9);
}

.footer-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 62px) clamp(20px, 5vw, 56px) clamp(22px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

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

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.footer-heading::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.footer-list li + li { margin-top: 9px; }

.footer-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: var(--fs-14);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact li + li { margin-top: 12px; }

.footer-contact-item {
  color: var(--text-dim);
  font-size: var(--fs-14);
  line-height: 1.7;
  word-break: break-word;
}

.footer-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.footer-note {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px clamp(20px, 5vw, 56px) 24px;
  border-top: 1px solid rgba(255, 200, 97, 0.16);
  overflow: hidden;
}

.footer-note::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(116deg, rgba(52, 224, 210, 0.07) 0 2px, transparent 2px 18px);
  pointer-events: none;
}

.footer-note-line {
  position: relative;
  z-index: 1;
  max-width: 78ch;
  color: var(--text-mute);
  font-size: var(--fs-14);
  line-height: 1.9;
}

.footer-legal {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px clamp(20px, 5vw, 56px) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

@media (min-width: 1024px) {
  .site-footer { padding-inline-start: var(--rail-w); }
}

/* ---------- 10. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--gold-soft), 0 14px 30px -18px rgba(245, 154, 27, 1);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: inset 0 0 0 1px var(--gold-soft), 0 0 0 4px rgba(255, 200, 97, 0.26), 0 18px 34px -18px rgba(245, 154, 27, 1);
}

.btn--ghost {
  background: transparent;
  color: var(--warm);
  border-color: var(--line-mid);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 200, 97, 0.12);
  border-color: var(--gold-soft);
}

.btn--quiet {
  background: rgba(52, 224, 210, 0.10);
  color: var(--cyan);
  border-color: rgba(52, 224, 210, 0.45);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  background: rgba(52, 224, 210, 0.2);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(52, 224, 210, 0.3);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: rgba(247, 241, 230, 0.32);
}

/* ---------- 12. 标签 / 小标 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: rgba(11, 26, 43, 0.5);
  color: var(--warm);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tag--gold { background: var(--gold); color: var(--ink); border-color: var(--gold-soft); }
.tag--cyan { background: rgba(52, 224, 210, 0.14); color: var(--cyan); border-color: rgba(52, 224, 210, 0.55); }
.tag--clay { background: rgba(196, 100, 60, 0.2); color: #F0B49B; border-color: rgba(196, 100, 60, 0.65); }
.tag--moss { background: rgba(94, 127, 92, 0.24); color: #B7D0B4; border-color: rgba(94, 127, 92, 0.7); }

/* ---------- 13. 资料卡 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-l);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, var(--ink-700) 0%, var(--ink-600) 100%);
  color: var(--paper);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 200, 97, 0.62);
  box-shadow: 0 0 0 6px rgba(245, 154, 27, 0.09), 0 28px 48px -34px rgba(0, 0, 0, 1);
}

.card--cut::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(225deg, rgba(245, 154, 27, 0.55) 0 49%, transparent 50%);
  pointer-events: none;
}

/* ---------- 14. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(420px 260px at 26% 18%, rgba(245, 154, 27, 0.26), transparent 66%),
    linear-gradient(150deg, var(--ink-600), var(--ink));
}

.media > img,
.media > svg,
.media > picture,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

/* ---------- 15. 分段控件 / 标签页 ---------- */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(22, 41, 63, 0.86);
}

.segmented [data-tab] {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.segmented [data-tab]:hover { color: var(--warm); background: rgba(245, 154, 27, 0.14); }

.segmented [data-tab][aria-selected="true"] {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(52, 224, 210, 0.42);
}

[data-panel]:focus-visible { outline-offset: 6px; }

/* ---------- 16. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
}

[data-reveal].is-reveal-ready {
  opacity: 0;
  transform: translateY(12px);
}

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

/* ---------- 17. 降低动效 ---------- */
@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].is-reveal-ready {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 18. 字号移动降级 ---------- */
@media (max-width: 767px) {
  :root {
    --fs-34: 1.75rem;
    --fs-46: 2.25rem;
    --fs-64: 2.75rem;
  }

  h1 { font-size: var(--fs-34); }
}
