/* ============================================================
   云开赛场 · 共享外壳样式 /assets/site.css
   夜场墨蓝底 + 深海蓝分区 + 荧光青绿交互 + 暖橙数据高亮
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: calc(16px * var(--fs-scale));
  background: #050F1A;
}

html[data-font-size="s"] { --fs-scale: 0.94; }
html[data-font-size="l"] { --fs-scale: 1.1; }

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

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

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

::selection {
  background: #3AF2C0;
  color: #050F1A;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink-950: #050F1A;
  --ink-900: #0A2136;
  --ink-800: #12324C;
  --line: #1F3D54;
  --dim: #3A6484;
  --muted: #6E8CA3;
  --slate: #8FA9BC;
  --mint: #3AF2C0;
  --mint-soft: #9BF7DE;
  --orange: #FF7C3F;
  --orange-deep: #C74E1C;
  --paper: #F3F7F8;

  --rail-w: 240px;
  --strip-h: 34px;
  --bar-h: 56px;
  --gutter: 24px;
  --maxw: 1320px;
  --fs-scale: 1;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display-xl: clamp(2.5rem, 7vw, 5.5rem);
  --fs-display-l: clamp(1.875rem, 4.6vw, 3.5rem);
  --fs-h2: 1.75rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-contrast="high"] {
  --paper: #FFFFFF;
  --slate: #CBDCE7;
  --muted: #9FB8C8;
  --dim: #6E93AC;
  --line: #3B6E93;
  --mint: #5BFFD2;
  --mint-soft: #C6FFEF;
  --orange: #FFA06B;
  --orange-deep: #D96A33;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink-950);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: calc(var(--strip-h) + var(--bar-h));
  overflow-x: hidden;
}

body[data-nav-open] { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

time, .num, code, kbd { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--mint);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1px solid var(--mint);
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: var(--ink-950);
}

/* ---------- 5. 头部宿主 ---------- */
.site-header {
  --strip-h: 34px;
  position: relative;
  z-index: 130;
  height: 0;
}

.site-header[data-condensed] { --strip-h: 24px; }

/* ---------- 6. 顶部状态条 ---------- */
.status-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 122;
  height: var(--strip-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(12px, 2vw, 20px);
  background: #03090F;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  transition: height 0.22s var(--ease);
}

.status-strip__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-strip__dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(58, 242, 192, 0.16);
}

.status-strip__label {
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.status-strip__time {
  display: none;
  color: var(--mint);
}

.status-strip__index {
  display: none;
  margin-left: 20px;
  color: var(--slate);
  white-space: nowrap;
}

.status-strip__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.status-strip__tool-label {
  display: none;
  color: var(--dim);
}

/* 字号切换 */
.fs-toggle {
  display: none;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--ink-900);
}

.fs-toggle__btn {
  padding: 5px 7px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  color: var(--slate);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.fs-toggle__btn:first-child { font-size: 9px; }
.fs-toggle__btn:last-child { font-size: 12px; border-right: 0; }
.fs-toggle__btn:hover { color: var(--mint-soft); }
.fs-toggle__btn[aria-pressed="true"] {
  background: var(--mint);
  color: var(--ink-950);
}

/* 高对比开关 */
.contrast-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--slate);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.contrast-toggle__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  transition: background 0.15s var(--ease);
}

.contrast-toggle__text { display: none; }

.contrast-toggle:hover { color: var(--mint); border-color: var(--mint); }

.contrast-toggle[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-950);
}

.contrast-toggle[aria-pressed="true"] .contrast-toggle__mark { background: var(--ink-950); }

@media (min-width: 560px) {
  .fs-toggle { display: flex; }
}

@media (min-width: 640px) {
  .status-strip__time { display: inline; }
}

@media (min-width: 768px) {
  .status-strip__index { display: block; }
  .status-strip__tool-label { display: inline; }
  .contrast-toggle__text { display: inline; }
}

/* ---------- 7. 品牌轨道 ---------- */
.rail {
  position: fixed;
  top: var(--strip-h);
  left: 0;
  bottom: 0;
  z-index: 124;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 22px 22px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, #071523 0%, #0A2136 56%, #050F1A 100%);
  border-right: 1px solid var(--line);
  transition: transform 0.28s var(--ease), top 0.22s var(--ease);
}

.rail__close {
  display: none;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin: -8px -6px 0 0;
  border: 1px solid var(--line);
  font-size: 20px;
  line-height: 1;
  color: var(--slate);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.rail__close:hover { color: var(--mint); border-color: var(--mint); }

.rail__brand {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.rail__wordmark {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.rail__wordmark::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 10px;
  background: var(--mint);
  transition: width 0.2s var(--ease);
}

.rail__wordmark:hover::after { width: 56px; }

.rail__brandsub {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

.rail__tagline {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--slate);
}

/* 导航 */
.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail__nav-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list__item { margin: 0; }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-left: 2px solid transparent;
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-link__index {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.15s var(--ease);
}

.nav-link__text { flex: 1 1 auto; }

.nav-link:hover {
  color: var(--paper);
  border-left-color: var(--mint);
  background: rgba(58, 242, 192, 0.06);
}

.nav-link:hover .nav-link__index { color: var(--mint-soft); }

.nav-link[aria-current="page"] {
  color: var(--paper);
  border-left-color: var(--mint);
  background: linear-gradient(90deg, rgba(58, 242, 192, 0.16), rgba(58, 242, 192, 0));
}

.nav-link[aria-current="page"] .nav-link__index { color: var(--orange); }

/* 滚动进度线 */
.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgba(31, 61, 84, 0.85);
  pointer-events: none;
}

.rail__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mint);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.12s linear;
}

/* 轨道底部 */
.rail__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: #1A0700;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.rail__cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.rail__cta:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--paper);
}

.rail__status {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__status-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.rail__status-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mint-soft);
}

.rail__contact {
  align-self: flex-start;
  font-size: 0.8125rem;
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.rail__contact:hover {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

/* ---------- 8. 移动端顶栏与抽屉 ---------- */
.mobile-bar {
  position: fixed;
  top: var(--strip-h);
  left: 0;
  right: 0;
  z-index: 126;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(14px, 4vw, 20px);
  background: rgba(5, 15, 26, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: top 0.22s var(--ease);
}

.mobile-bar__brand {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.mobile-bar__brand-accent { color: var(--mint); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--mint);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-toggle:hover { border-color: var(--mint); background: rgba(58, 242, 192, 0.08); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars > span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars > span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.rail-scrim { display: none; }

@media (max-width: 1023px) {
  .rail {
    top: 0;
    bottom: 0;
    z-index: 140;
    width: min(322px, 86vw);
    transform: translateX(-102%);
    padding-top: 18px;
    border-right: 1px solid var(--mint);
  }

  .rail__close { display: inline-flex; }

  .site-header[data-open] .rail { transform: translateX(0); }

  .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 135;
    background: rgba(3, 9, 15, 0.74);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease);
  }

  .site-header[data-open] .rail-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
    padding-top: var(--strip-h);
  }

  .mobile-bar { display: none; }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 56px) 28px;
  background: linear-gradient(180deg, #050F1A 0%, #0A2136 34%, #071523 100%);
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: var(--fs-small);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--mint) 0%, rgba(58, 242, 192, 0) 46%, rgba(255, 124, 63, 0) 60%, var(--orange) 100%);
  opacity: 0.7;
}

.footer__top {
  display: grid;
  gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.footer__wordmark {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.footer__brandsub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
}

.footer__tagline {
  margin-top: 14px;
  max-width: 22em;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--slate);
}

.footer__summary {
  max-width: 42em;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--slate);
}

.footer__grid {
  display: grid;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

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

.footer-col__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col__link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

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

.footer__contact { min-width: 0; }

.contact-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-list__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-list__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact-list__value {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer__note {
  max-width: 40em;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer__copyright { color: var(--muted); }
.footer__icp { color: var(--slate); }

.footer__legal-link {
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.footer__legal-link:first-of-type { margin-left: auto; }

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

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: end;
    gap: 44px;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
    gap: 24px 40px;
  }
  .footer__contact { grid-column: auto; }
}

/* ---------- 10. 通用布局与组件 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

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

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

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

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--mint);
  color: var(--mint);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0700;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--paper);
}

.btn--ghost {
  border-color: var(--mint);
  color: var(--mint);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(58, 242, 192, 0.1);
  color: var(--mint-soft);
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--dim);
}

.breadcrumbs__link { color: var(--slate); transition: color 0.15s var(--ease); }
.breadcrumbs__link:hover { color: var(--mint); }
.breadcrumbs__current { color: var(--paper); }

/* 标签与索引 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: rgba(18, 50, 76, 0.6);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.tag--accent {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink-950);
}

.tag--warn {
  background: transparent;
  border-color: var(--orange-deep);
  color: var(--orange);
}

/* 正文块 */
.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--paper);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-size: var(--fs-h2);
  line-height: 1.3;
  margin-top: 1.9em;
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.6em;
}

.prose a {
  color: var(--mint);
  border-bottom: 1px solid rgba(58, 242, 192, 0.45);
}

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

.prose ul { display: flex; flex-direction: column; gap: 0.5em; }

.prose li {
  position: relative;
  padding-left: 1.15em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 1px;
  background: var(--mint);
}

/* 图片容器 */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 0;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(58, 242, 192, 0.07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(58, 242, 192, 0.07) 0 1px, transparent 1px 24px);
  opacity: 0.9;
}

.media > img,
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

/* 斜切分隔带 */
.cut-divider {
  position: relative;
  height: clamp(36px, 6vw, 64px);
  background: var(--ink-950);
  overflow: hidden;
}

.cut-divider::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  height: 200%;
  background: var(--ink-900);
  transform: rotate(-6deg);
  transform-origin: center;
  border-top: 1px solid var(--line);
}

/* ---------- 11. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}

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

/* ---------- 12. 减少动态效果 ---------- */
@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;
  }
}
