/* ==========================================================================
   KAIYUN 全站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 双层头部 / 导航轨 / 页脚 / 基础组件
   ========================================================================== */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --bg: #070B1E;
  --panel: #0E1533;
  --panel-deep: #050914;
  --surface: #1B2547;
  --line: #2C3A63;
  --cyan: #22E6D3;
  --purple: #7A5CFF;
  --alert: #FF5A36;
  --green: #3DFFA2;
  --amber: #FFC24B;
  --text: #E8F1FF;
  --muted: #93A2C4;
  --shadow-dark: #0A1029;

  --rail-w: 264px;
  --brandbar-h: 72px;
  --gutter: clamp(16px, 3vw, 40px);
  --gap: clamp(14px, 1.6vw, 22px);

  --font-display: "Archivo", "Noto Sans SC", "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 3. 中文排版与基础氛围 ---------- */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(44, 58, 99, 0.20) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 58, 99, 0.16) 1px, transparent 1px),
    radial-gradient(880px 620px at 88% -8%, rgba(122, 92, 255, 0.20), transparent 68%),
    radial-gradient(760px 520px at -6% 4%, rgba(34, 230, 211, 0.10), transparent 66%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1200px) { body { font-size: 17px; } }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--text);
}
h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 900; }
h2 { font-size: clamp(24px, 2.6vw, 30px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

strong, b { font-weight: 800; color: var(--text); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.prose { max-width: 68ch; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); }
.divider { height: 1px; background: var(--line); border: 0; margin: clamp(20px, 3vw, 36px) 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 焦点 */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }
#main-content { scroll-margin-top: calc(var(--brandbar-h) + 16px); }

/* 跳转链 */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 200;
  transform: translateY(-240%);
  padding: 10px 16px;
  background: var(--cyan);
  color: #04101A;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  border-radius: 2px;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--split { grid-template-columns: minmax(0, 1fr); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

/* ---------- 5. 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(27, 37, 71, 0.5);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.btn--solid {
  background: linear-gradient(100deg, var(--cyan), var(--purple) 88%);
  border-color: transparent;
  color: #04101A;
}
.btn--solid:hover { color: #04101A; border-color: transparent; filter: brightness(1.08); }
.btn--ghost { background: rgba(34, 230, 211, 0.07); border-color: rgba(34, 230, 211, 0.38); color: var(--text); }
.btn--ghost:hover { color: var(--cyan); }
.btn--alert { background: rgba(255, 90, 54, 0.14); border-color: rgba(255, 90, 54, 0.6); color: var(--alert); }
.btn--alert:hover { color: #FFD7CC; border-color: var(--alert); }
.btn--sm { padding: 8px 12px; font-size: 13px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(27, 37, 71, 0.5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag--cyan { color: var(--cyan); border-color: rgba(34, 230, 211, 0.5); }
.tag--alert { color: var(--alert); border-color: rgba(255, 90, 54, 0.55); }
.tag--green { color: var(--green); border-color: rgba(61, 255, 162, 0.5); }
.tag--amber { color: var(--amber); border-color: rgba(255, 194, 75, 0.5); }
.tag--solid { background: var(--cyan); border-color: var(--cyan); color: #04101A; }

/* ---------- 6. 头部：品牌说明条 ---------- */
.site-header { position: relative; z-index: 60; }

.brandbar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--brandbar-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #111C40 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--line);
}
.brandbar__flow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple) 48%, var(--alert) 100%);
  opacity: 0.9;
}
.brandbar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.5vw, 22px);
  padding: 12px var(--gutter);
}

.brand { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}
.brand__mark-thin { color: var(--cyan); margin-left: 0.4em; font-size: 15px; letter-spacing: 0.06em; }
.brand__tagline { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(7, 11, 30, 0.55);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--version { background: var(--cyan); border-color: var(--cyan); color: #04101A; font-weight: 700; }
.chip--sync { transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease; }
.chip--sync:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 230, 211, 0.10); }
.chip__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 255, 162, 0.16);
}
.chip__key { color: var(--muted); }
.chip--sync [data-refresh-time] { display: inline-block; color: var(--text); }
.chip--sync.is-rolling [data-refresh-time] { animation: stamp-roll 0.24s ease; }
@keyframes stamp-roll {
  from { transform: translateY(62%); opacity: 0.15; }
  to { transform: translateY(0); opacity: 1; }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(34, 230, 211, 0.07);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars i { display: block; height: 2px; background: var(--cyan); transition: transform 0.18s ease, opacity 0.18s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度光带 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ---------- 7. 头部：左侧赛事导航轨 ---------- */
.siterail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 20px;
  background: linear-gradient(180deg, var(--panel) 0%, #0A1128 60%, var(--panel) 100%);
  border-right: 1px solid var(--line);
}
.siterail__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.siterail__list { display: flex; flex-direction: column; gap: 2px; }
.siterail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.siterail__link:hover { color: var(--text); background: rgba(34, 230, 211, 0.07); border-left-color: var(--line); }
.siterail__link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(34, 230, 211, 0.16), rgba(34, 230, 211, 0) 88%);
}
.siterail__num { font-size: 11px; color: var(--muted); opacity: 0.65; }
.siterail__link[aria-current="page"] .siterail__num { color: var(--cyan); opacity: 1; }
.siterail__text { line-height: 1.3; }

.siterail__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.siterail__foot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.railaction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(27, 37, 71, 0.6);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.railaction::after { content: "→"; font-family: var(--font-mono); color: var(--cyan); }
.railaction:hover { border-color: var(--cyan); background: rgba(34, 230, 211, 0.1); color: var(--cyan); transform: translateX(2px); }

/* ---------- 8. 桌面：左轨固定 + 内容让位 ---------- */
@media (min-width: 1024px) {
  .siterail {
    position: fixed;
    top: var(--brandbar-h);
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    overflow-y: auto;
    z-index: 70;
  }
  main,
  #main-content,
  .page-main,
  .site-footer { margin-left: var(--rail-w); }
}
@media (min-width: 1024px) and (max-width: 1220px) {
  .chip--region { display: none; }
  .brand__tagline { display: none; }
}

/* ---------- 9. 移动 / 平板：导航折叠面板 ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .brandbar__meta .chip--region { display: none; }
  .brandbar__actions .btn--ghost { display: none; }

  .siterail {
    position: static;
    width: auto;
    border-right: 0;
    border-top: 1px solid var(--line);
    max-height: 0;
    padding: 0 var(--gutter);
    gap: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.26s ease, opacity 0.2s ease, padding 0.26s ease, gap 0.26s ease;
  }
  .siterail[data-open="true"] {
    max-height: min(78vh, 640px);
    overflow-y: auto;
    opacity: 1;
    padding: 16px var(--gutter) 22px;
    gap: 16px;
  }
  .siterail__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  @media (min-width: 520px) {
    .siterail__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  }
  .siterail__link { border-left-width: 2px; background: rgba(27, 37, 71, 0.5); }
  .siterail__foot { margin-top: 0; }
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(44px, 6vw, 84px);
  background: var(--panel-deep);
  border-top: 1px solid var(--line);
  color: var(--text);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan) 46%, var(--alert) 100%);
  opacity: 0.85;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr);
  gap: clamp(22px, 3vw, 52px);
  padding: clamp(30px, 4vw, 56px) var(--gutter) clamp(20px, 3vw, 34px);
}
.footer__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.footer__tagline { margin-top: 6px; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.footer__region { margin-top: 12px; font-size: 11px; letter-spacing: 0.14em; color: var(--cyan); }
.footer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 34px); }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__list a {
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer__list a:hover { color: var(--cyan); border-bottom-color: rgba(34, 230, 211, 0.5); }

.footer__contact {
  margin: 0 var(--gutter) clamp(22px, 3vw, 34px);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  background: rgba(14, 21, 51, 0.75);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 6px 6px 0 0 var(--shadow-dark);
}
.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer__contact-line { font-size: 14px; color: var(--text); word-break: break-word; }
.footer__contact-note { font-size: 13px; color: var(--muted); max-width: 68ch; }
.footer__contact-note a { color: var(--cyan); border-bottom: 1px solid rgba(34, 230, 211, 0.45); }
.footer__contact-note a:hover { border-bottom-color: var(--cyan); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 14px var(--gutter) 24px;
  border-top: 1px solid var(--line);
}
.footer__legal { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.footer__icp { color: var(--text); }

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

/* ---------- 11. 区块头 / 面包屑 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: clamp(16px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}
.section-head__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.section-head__title { font-size: clamp(22px, 2.4vw, 30px); }
.section-head__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(12px, 1.6vw, 20px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs__item a { color: var(--muted); }
.breadcrumbs__item a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: var(--line); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- 12. 卡片（纸张叠层） ---------- */
.card {
  position: relative;
  padding: clamp(16px, 1.6vw, 22px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 6px 6px 0 0 var(--shadow-dark), 6px 6px 0 1px var(--line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--cyan);
  box-shadow: 10px 10px 0 0 var(--shadow-dark), 10px 10px 0 1px var(--line);
}
@media (hover: none) {
  .card:hover { box-shadow: 6px 6px 0 0 var(--shadow-dark), 6px 6px 0 1px var(--line); }
}
.card--wide { grid-column: span 2; }
@media (max-width: 900px) { .card--wide { grid-column: span 1; } }
.card--alert { border-left: 3px solid var(--alert); }
.card--alert:hover { border-color: var(--line); border-left-color: var(--alert); }
.card__tag {
  display: inline-block;
  padding: 3px 8px;
  margin-bottom: 10px;
  background: rgba(7, 11, 30, 0.7);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.card__title { font-size: 18px; margin-bottom: 6px; }
.card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- 13. 数据表 / 时间线 ---------- */
.datagrid { border: 1px solid var(--line); background: rgba(14, 21, 51, 0.6); border-radius: 2px; }
.datagrid__row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.datagrid__row:last-child { border-bottom: 0; }
.datagrid__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.datagrid__val { font-size: 15px; color: var(--text); word-break: break-word; }
@media (max-width: 600px) {
  .datagrid__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}
.timeline__item { position: relative; padding-bottom: 22px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
}
.timeline__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline__title { font-size: 17px; margin-top: 4px; }

/* ---------- 14. 可展开内容组 ---------- */
.disclosure {
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  background: rgba(14, 21, 51, 0.55);
  border-radius: 2px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.disclosure + .disclosure { margin-top: 8px; }
.disclosure[data-open="true"] {
  border-left-color: var(--cyan);
  border-color: rgba(34, 230, 211, 0.45);
  background: rgba(14, 21, 51, 0.9);
  box-shadow: 4px 4px 0 0 var(--shadow-dark);
}
.disclosure__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}
.disclosure__trigger::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.18s ease;
}
.disclosure[data-open="true"] .disclosure__trigger::after { content: "−"; transform: rotate(180deg); }
.disclosure__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}
.disclosure[data-open="true"] .disclosure__panel { grid-template-rows: 1fr; }
.disclosure__inner { min-height: 0; overflow: hidden; }
.disclosure__body {
  padding: 0 16px 16px;
  font-size: 15px;
  color: var(--muted);
  max-width: 68ch;
}
.disclosure__body p + p { margin-top: 0.8em; }

/* ---------- 15. 图片容器基础规则（页面阶段放图） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0E1533, #1B2547 58%, #0E1533);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(44, 58, 99, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 58, 99, 0.6) 1px, transparent 1px);
  background-size: 32px 32px;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media img, .media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.86);
}
.media__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(7, 11, 30, 0.74);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.media-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ---------- 16. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
[data-reveal].is-shown { 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;
    transition-delay: 0ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { transition: none; }
}
