/* ==========================================================================
   德赢体育安装 · 夜场数据台 — 共享样式表 /assets/site.css
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-900: #061A14;
  --pitch-800: #0B2E23;
  --moss-600: #1F5C45;
  --cyan-400: #2FF3C8;
  --cyan-200: #9BFFE8;
  --amber-500: #FFB020;
  --amber-300: #FFD37A;
  --violet-500: #6E657F;
  --paper-100: #EAF6F0;
  --line-700: #174437;

  --text-dim: rgba(234, 246, 240, 0.66);
  --text-soft: rgba(234, 246, 240, 0.88);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "Roboto Mono", "DIN Alternate", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Courier New", monospace;

  --rail-w: 88px;
  --rail-w-open: 232px;
  --strip-h: 64px;
  --gutter: clamp(18px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --shadow-lift: 0 24px 60px rgba(0, 0, 0, 0.45);
}

@media (min-width: 1024px) {
  :root { --strip-h: 56px; }
}

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 3. 基础排版与背景 ---------- */
body {
  padding-top: var(--strip-h);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(23, 68, 55, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 68, 55, 0.55) 1px, transparent 1px),
    radial-gradient(1200px 620px at 82% -12%, rgba(47, 243, 200, 0.10), transparent 70%),
    radial-gradient(900px 480px at 0% 100%, rgba(110, 101, 127, 0.16), transparent 72%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; }

p { max-width: 68ch; }

a {
  color: var(--cyan-400);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

a:hover { color: var(--cyan-200); }

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

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

::selection {
  background: var(--cyan-400);
  color: var(--ink-900);
}

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

#main-content { scroll-margin-top: calc(var(--strip-h) + 16px); }

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: 1480px; }

.section { padding-block: clamp(36px, 5.6vw, 76px); }

.section--tight { padding-block: clamp(22px, 3vw, 40px); }

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 34px);
  padding-left: 16px;
  border-left: 3px solid var(--cyan-400);
}

.section-head__label {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--cyan-400);
  text-transform: uppercase;
}

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

.section-head__desc {
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- 5. 标签与数字 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
  background: rgba(31, 92, 69, 0.42);
  border: 1px solid var(--line-700);
  border-radius: var(--radius);
  white-space: nowrap;
}

.tag--amber {
  color: var(--amber-300);
  background: rgba(255, 176, 32, 0.10);
  border-color: rgba(255, 176, 32, 0.42);
}

.tag--muted {
  color: #BDB6C9;
  background: rgba(110, 101, 127, 0.24);
  border-color: rgba(110, 101, 127, 0.46);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

.num--xl {
  display: block;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.9;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-900);
}

.btn--primary:hover {
  background: var(--cyan-200);
  border-color: var(--cyan-200);
  color: var(--ink-900);
}

.btn--ghost {
  border-color: var(--moss-600);
  color: var(--cyan-200);
}

.btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--paper-100);
  background: rgba(47, 243, 200, 0.08);
}

.btn--block { width: 100%; }

/* ---------- 7. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--ink-900);
}

/* ---------- 8. 顶栏 ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

.topstrip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--strip-h);
  background: linear-gradient(180deg, rgba(6, 26, 20, 0.97), rgba(6, 26, 20, 0.86));
  border-bottom: 1px solid var(--line-700);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
  .topstrip { left: var(--rail-w); }
}

.topstrip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .topstrip__inner { padding-inline: 24px; }
}

.topstrip__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--paper-100);
  text-decoration: none;
}

.brand:hover { color: var(--paper-100); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--cyan-400);
  white-space: nowrap;
}

/* 状态胶囊 */
.status-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 176, 32, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 176, 32, 0.08);
  color: var(--amber-300);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
  animation: statusPulse 2.6s var(--ease) infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

@media (min-width: 900px) {
  .status-pill { display: inline-flex; }
}

/* 顶栏快捷键 */
.utility {
  display: none;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .utility { display: flex; }
}

.utility__item { list-style: none; }

.utility__link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.utility__link:hover,
.utility__link:focus-visible {
  color: var(--cyan-200);
  border-bottom-color: var(--cyan-400);
}

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-700);
  border-radius: var(--radius);
  background: rgba(31, 92, 69, 0.36);
  color: var(--cyan-200);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--cyan-400); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 14px;
}

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

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* 进度线 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(23, 68, 55, 0.7);
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan-400), var(--amber-500));
}

/* ---------- 9. 侧边轨道 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(84vw, 340px);
  padding: calc(var(--strip-h) + 20px) 0 24px;
  background: linear-gradient(180deg, var(--pitch-800), var(--ink-900) 72%);
  border-right: 1px solid var(--line-700);
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(-102%);
  transition: transform 0.32s var(--ease), width 0.28s var(--ease);
  box-shadow: var(--shadow-lift);
}

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

.rail__cap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 16px;
  color: var(--violet-500);
}

.rail__cap-tick {
  width: 22px;
  height: 3px;
  background: var(--cyan-400);
  transform: skewX(-24deg);
}

.rail__cap-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rail__nav { flex: 1 1 auto; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list__item { list-style: none; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding-left: 20px;
  border-left: 2px solid transparent;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--paper-100);
  background: rgba(47, 243, 200, 0.07);
}

.nav-link__idx {
  flex: 0 0 auto;
  width: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
}

.nav-link__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s var(--ease), transform 0.24s var(--ease);
}

.nav-link[aria-current="page"] {
  color: var(--cyan-400);
  border-left-color: var(--cyan-400);
  background: rgba(47, 243, 200, 0.10);
}

.nav-link[aria-current="page"] .nav-link__idx { color: var(--amber-500); }

.rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: calc(100% - 40px);
  height: 48px;
  margin-top: 18px;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-decoration: none;
  border-radius: var(--radius);
}

.rail__cta:hover {
  background: var(--cyan-200);
  color: var(--ink-900);
}

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(6, 26, 20, 0.74);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.site-header[data-open="true"] .rail-scrim {
  opacity: 1;
  visibility: visible;
}

/* 桌面端：常驻 88px 轨道，悬停/聚焦展开 */
@media (min-width: 1024px) {
  .rail {
    z-index: 95;
    width: var(--rail-w);
    padding: calc(var(--strip-h) + 8px) 0 14px;
    transform: none;
    box-shadow: none;
    overflow-y: hidden;
  }

  .rail__cap {
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 14px;
  }

  .rail__cap-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.42em;
    font-size: 9px;
  }

  .nav-link {
    height: 52px;
    padding-left: 18px;
  }

  .nav-link__label {
    opacity: 0;
    transform: translateX(-8px);
  }

  .rail:hover,
  .rail:focus-within {
    width: var(--rail-w-open);
  }

  .rail:hover .nav-link__label,
  .rail:focus-within .nav-link__label {
    opacity: 1;
    transform: none;
  }

  .rail:hover,
  .rail:focus-within {
    overflow-y: auto;
  }

  .rail__cta {
    width: 44px;
    height: auto;
    margin: 14px auto 4px;
    padding: 18px 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.3em;
    font-size: 12px;
  }

  .rail-scrim { display: none; }
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  padding-top: clamp(48px, 6vw, 84px);
  background:
    linear-gradient(180deg, var(--pitch-800) 0%, #04120E 82%),
    radial-gradient(700px 320px at 88% 0%, rgba(47, 243, 200, 0.10), transparent 70%);
  background-blend-mode: normal;
  border-top: 1px solid var(--line-700);
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) 26px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.4vw, 44px);
}

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

@media (min-width: 1000px) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(3, 0.78fr) 1.25fr;
    gap: clamp(20px, 2.4vw, 36px);
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.brand--footer .brand__mark { width: 38px; height: 38px; font-size: 18px; }
.brand--footer .brand__name { font-size: 16px; }

.footer__note {
  max-width: 30ch;
  color: var(--text-dim);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.75;
}

.footer__cta { margin-top: 2px; }

.footer__col { display: block; }

.footer__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--cyan-400);
  text-transform: uppercase;
}

.footer__col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--cyan-400);
  transform: skewX(-24deg);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__item { list-style: none; }

.footer__link {
  display: inline-block;
  color: var(--text-soft);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cyan-200);
  border-bottom-color: var(--cyan-400);
}

.footer__link--quiet {
  color: var(--text-dim);
  font-size: 12px;
}

.footer__contact { display: block; }

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

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

.contact-list__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--violet-500);
  text-transform: uppercase;
}

.contact-list__row dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.footer__hint {
  margin-top: 12px;
  padding-left: 10px;
  border-left: 2px solid var(--line-700);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 16px;
  border-top: 1px solid var(--line-700);
  color: var(--text-dim);
  font-size: 12px;
}

.footer__copy {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.footer__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--moss-600);
}

.footer__wordmark {
  margin: 0;
  padding: 0 var(--gutter) 6px;
  font-family: var(--font-mono);
  font-size: clamp(38px, 10.5vw, 152px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 243, 200, 0.16);
  user-select: none;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.breadcrumbs__link { color: var(--text-dim); }
.breadcrumbs__link:hover { color: var(--cyan-200); }
.breadcrumbs__sep { color: var(--moss-600); }
.breadcrumbs [aria-current="page"] { color: var(--cyan-400); }

/* ---------- 12. Bento 与面板 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.bento__cell { grid-column: span 12; min-width: 0; }

@media (min-width: 900px) {
  .bento__cell--hero { grid-column: span 8; }
  .bento__cell--aside { grid-column: span 4; }
  .bento__cell--half { grid-column: span 6; }
  .bento__cell--third { grid-column: span 4; }
  .bento__cell--wide { grid-column: span 12; }
}

.panel {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  background: linear-gradient(158deg, rgba(11, 46, 35, 0.96), rgba(6, 26, 20, 0.94));
  border: 1px solid var(--line-700);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.panel--accent {
  border-color: rgba(47, 243, 200, 0.42);
  background: linear-gradient(158deg, rgba(31, 92, 69, 0.86), rgba(6, 26, 20, 0.96));
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-700);
}

.panel__title {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 800;
  color: var(--paper-100);
}

/* ---------- 13. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--pitch-800);
  border: 1px solid var(--line-700);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.94);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 243, 200, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 243, 200, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
  opacity: 0.7;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 7px 12px;
  background: rgba(6, 26, 20, 0.86);
  color: var(--cyan-200);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.media-frame__tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

/* ---------- 14. 数据表 ---------- */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-700);
  background: rgba(11, 46, 35, 0.62);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table caption {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--cyan-400);
  background: rgba(6, 26, 20, 0.6);
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 14px;
  background: var(--moss-600);
  color: var(--paper-100);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-700);
}

.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(23, 68, 55, 0.72);
  color: var(--text-soft);
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) { background: rgba(31, 92, 69, 0.18); }

.data-table tbody tr:hover { background: rgba(47, 243, 200, 0.08); }

.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table th[data-align="end"],
.data-table td[data-align="end"],
.data-table .num { text-align: right; }

.data-table .num { color: var(--cyan-400); font-size: 15px; }

/* ---------- 15. 时间线 ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  position: relative;
  padding: 0 0 26px 28px;
  border-left: 1px solid var(--line-700);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--amber-500);
  transform: rotate(45deg);
}

.timeline__item--muted .timeline__dot { background: var(--violet-500); }

.timeline__time {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
}

/* ---------- 16. 筛选 chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line-700);
  border-radius: var(--radius);
  background: rgba(11, 46, 35, 0.72);
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--cyan-400);
  color: var(--paper-100);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-900);
  font-weight: 700;
}

/* ---------- 17. 手风琴 ---------- */
.accordion { border-top: 1px solid var(--line-700); }

.accordion__item { border-bottom: 1px solid var(--line-700); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 4px;
  border: 0;
  background: none;
  color: var(--paper-100);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion__trigger:hover { color: var(--cyan-200); }

.accordion__trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan-400);
}

.accordion__trigger[aria-expanded="true"]::after { content: "–"; }

.accordion__panel {
  padding: 0 4px 18px;
  color: var(--text-dim);
  font-size: 14px;
}

.accordion__panel[hidden] { display: none; }

/* ---------- 18. 显现动效 ---------- */
[data-reveal] { opacity: 1; transform: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
  will-change: opacity, transform;
}

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

/* ---------- 19. 降低动效 ---------- */
@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;
  }

  .status-pill__dot { animation: none; }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .rail { transition: none; }
}
