/* =============================================================
   亚娱真人官网 · 共享样式 /assets/site.css
   潮汐数据舱：左侧固定轨道 + 右侧洋流内容区
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  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, video {
  display: block;
  max-width: 100%;
}

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

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 2. 变量 ---------- */
:root {
  --c-deep: #041C2C;
  --c-ink: #0B2B3C;
  --c-cyan: #18E0D0;
  --c-coral: #FF6A45;
  --c-paper: #F3E8D8;
  --c-mist: #D9E4EC;
  --c-steel: #8FA3B2;
  --c-white: #F7FBFD;
  --c-green: #43D6A4;
  --c-reef: #263C49;

  --line-soft: rgba(143, 163, 178, 0.18);
  --line-mid: rgba(143, 163, 178, 0.32);
  --cyan-soft: rgba(24, 224, 208, 0.12);

  --rail-w: 248px;
  --content-max: 1180px;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  --dur: 180ms;
  --ease: cubic-bezier(0.32, 0.72, 0.35, 1);

  --font-display: "Barlow Condensed", "Oswald", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--c-white);
  background-color: var(--c-deep);
  background-image:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.013) 0 2px, transparent 2px 6px),
    radial-gradient(1100px 640px at 88% -12%, rgba(24, 224, 208, 0.12), transparent 62%),
    radial-gradient(900px 620px at 4% 108%, rgba(255, 106, 69, 0.09), transparent 60%),
    linear-gradient(168deg, #062231 0%, #041c2c 46%, #072636 100%);
  text-rendering: optimizeLegibility;
}

p, li { text-wrap: pretty; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

strong { font-weight: 700; }

::selection {
  background: var(--c-cyan);
  color: #04232e;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

/* ---------- 4. 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.prose {
  max-width: 44em;
  font-size: 1.02rem;
  line-height: 1.9;
}

.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: disc; }
.prose a { border-bottom: 1px solid var(--c-coral); }

.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: var(--c-mist);
  max-width: 36em;
}

/* ---------- 5. 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}

@media (min-width: 900px) {
  .grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
  .span-12 { grid-column: 1 / -1; }
  .offset-1 { grid-column-start: 2; }
}

/* ---------- 6. 头部：左侧固定轨道 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  background: var(--c-cyan);
  color: #04232e;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

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

.site-header {
  --rail-pad: 24px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 28px var(--rail-pad) 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(24, 224, 208, 0.09) 0%, rgba(24, 224, 208, 0) 44%),
    linear-gradient(180deg, #08283b 0%, #041c2c 62%, #03161f 100%);
  border-inline-end: 1px solid var(--line-soft);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(24, 224, 208, 0.5) 16%, rgba(24, 224, 208, 0.1) 64%, transparent 100%);
  pointer-events: none;
}

/* 滚动进度：桌面端纵向 */
.rail-progress {
  --progress: 0;
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-coral));
  transform: scaleY(var(--progress));
  transform-origin: top center;
}

/* 品牌 */
.rail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(24, 224, 208, 0.45);
  background:
    radial-gradient(circle at 32% 30%, rgba(24, 224, 208, 0.85), rgba(24, 224, 208, 0.1) 60%, transparent 72%),
    var(--c-ink);
  box-shadow: inset 0 0 16px rgba(24, 224, 208, 0.32);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1px solid var(--c-cyan);
  border-radius: 50%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--c-white);
  transition: color var(--dur) var(--ease);
}

.brand-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--c-steel);
}

.brand:hover .brand-name { color: var(--c-cyan); }

/* 移动端目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

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

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

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

.site-header[data-open] .nav-toggle {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: var(--cyan-soft);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 抽屉容器：桌面端透明，子项直接进入侧轨流 */
.rail-drawer { display: contents; }

/* 主导航 */
.site-nav { padding-top: 22px; }

.nav-caption,
.rail-caption {
  margin-bottom: 11px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-steel);
}

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

.nav-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 8px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-s);
  color: var(--c-mist);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--c-steel);
  transition: color var(--dur) var(--ease);
}

.nav-text {
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  background: var(--cyan-soft);
  border-left-color: var(--c-coral);
  color: var(--c-white);
}

.nav-link:hover .nav-num { color: var(--c-coral); }

.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(24, 224, 208, 0.18), rgba(24, 224, 208, 0));
  border-left-color: var(--c-cyan);
  color: var(--c-white);
  font-weight: 700;
}

.nav-link[aria-current="page"] .nav-num { color: var(--c-cyan); }

/* 快捷入口 */
.rail-side {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--c-mist);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.quick-link::after {
  content: "\2192";
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-steel);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.quick-link:hover {
  color: var(--c-white);
  border-color: var(--c-cyan);
  background: var(--cyan-soft);
}

.quick-link:hover::after {
  color: var(--c-coral);
  transform: translateX(3px);
}

/* 侧轨底部 */
.rail-foot {
  margin-top: auto;
  padding-top: 22px;
}

.service-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: var(--c-steel);
  font-variant-numeric: tabular-nums;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
}

.utility-links a {
  font-size: 0.78rem;
  color: var(--c-steel);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.utility-links a:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-coral);
}

/* 桌面端让位给侧轨 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* ---------- 7. 移动端 / 平板：顶栏 + 抽屉 ---------- */
@media (max-width: 1023px) {
  body { padding-left: 0; }

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    height: auto;
    display: block;
    padding: 0;
    overflow: visible;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(24, 224, 208, 0.2);
    box-shadow: 0 10px 30px rgba(2, 12, 20, 0.4);
  }

  .site-header::after { display: none; }

  .rail-top {
    align-items: center;
    gap: 14px;
    padding: 13px clamp(16px, 4vw, 24px);
    border-bottom: 0;
  }

  .nav-toggle { display: inline-flex; }

  .rail-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 6px clamp(16px, 4vw, 24px) 26px;
    background: linear-gradient(180deg, #08283b 0%, #041c2c 100%);
    border-top: 1px solid var(--line-soft);
    box-shadow: 0 26px 54px rgba(2, 10, 16, 0.62);
  }

  .site-header[data-open] .rail-drawer { display: block; }

  .site-nav { padding-top: 16px; }

  .nav-link { padding-block: 11px; }
  .nav-text { font-size: 1rem; }

  .rail-side { margin-top: 20px; }

  .rail-foot {
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    margin-top: 20px;
  }

  .rail-progress {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
  }

  .rail-progress__bar {
    transform: scaleX(var(--progress));
    transform-origin: left center;
  }
}

@media (max-width: 1023px) and (min-width: 560px) {
  .quick-list { flex-direction: row; flex-wrap: wrap; }
  .quick-link { flex: 1 1 160px; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(44px, 6vw, 72px);
  background:
    radial-gradient(70% 120% at 82% 0%, rgba(24, 224, 208, 0.11), transparent 62%),
    linear-gradient(180deg, #0B2B3C 0%, #041C2C 62%, #03161f 100%);
  border-top: 1px solid rgba(24, 224, 208, 0.22);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, rgba(24, 224, 208, 0.55) 0 1px, transparent 1px 15px);
  opacity: 0.55;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  gap: 38px 32px;
  padding-bottom: clamp(36px, 5vw, 54px);
}

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-cyan);
}

.footer-summary {
  margin: 14px 0 22px;
  max-width: 28em;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--c-mist);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 28px 24px;
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list a {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--c-mist);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-list a:hover {
  color: var(--c-white);
  border-bottom-color: var(--c-coral);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--c-mist);
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--c-steel);
}

.contact-val {
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.footer-legal {
  border-top: 1px solid var(--line-soft);
  background: rgba(3, 18, 26, 0.62);
  padding-block: 16px;
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--c-steel);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(143, 163, 178, 0.9);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal__links a {
  font-size: 0.78rem;
  color: var(--c-steel);
  transition: color var(--dur) var(--ease);
}

.footer-legal__links a:hover { color: var(--c-cyan); }

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}

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

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn--primary {
  background: var(--c-coral);
  color: #1a0b05;
  border-color: var(--c-coral);
}

.btn--primary:hover {
  background: #ff8768;
  border-color: #ff8768;
  box-shadow: 0 10px 26px rgba(255, 106, 69, 0.28);
}

.btn--accent {
  background: rgba(24, 224, 208, 0.1);
  color: var(--c-cyan);
  border-color: rgba(24, 224, 208, 0.55);
}

.btn--accent:hover {
  background: var(--c-cyan);
  color: #04232e;
  border-color: var(--c-cyan);
}

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

.btn--ghost:hover {
  color: var(--c-white);
  border-color: var(--c-cyan);
  background: var(--cyan-soft);
}

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

/* ---------- 10. 面板 / 卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(11, 43, 60, 0.94) 0%, rgba(8, 34, 48, 0.94) 100%);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.panel:hover {
  border-color: rgba(24, 224, 208, 0.48);
  box-shadow: 0 16px 36px rgba(2, 12, 20, 0.36);
}

.panel--ink {
  background: linear-gradient(180deg, #0d3244 0%, #0B2B3C 100%);
}

.panel--paper {
  background: linear-gradient(180deg, #f8efe2 0%, var(--c-paper) 100%);
  color: var(--c-deep);
  border-color: rgba(11, 43, 60, 0.14);
  box-shadow: 0 18px 42px rgba(2, 12, 20, 0.34);
}

.panel--paper :where(.section-note, .lede) { color: #34505f; }

.panel--flat {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-mid);
}

.card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
}

/* ---------- 11. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--live { color: var(--c-green); background: rgba(67, 214, 164, 0.1); }
.tag--warn { color: var(--c-coral); background: rgba(255, 106, 69, 0.11); }
.tag--idle { color: var(--c-steel); background: rgba(143, 163, 178, 0.1); }
.tag--info { color: var(--c-cyan); background: rgba(24, 224, 208, 0.1); }

/* ---------- 12. 面包屑 / 页面头 / 章节头 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--c-steel);
}

.breadcrumb a {
  color: var(--c-steel);
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover { color: var(--c-cyan); }

.breadcrumb__sep {
  color: rgba(143, 163, 178, 0.55);
}

.breadcrumb [aria-current="page"] { color: var(--c-mist); }

.page-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: clamp(32px, 5vw, 64px);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: var(--c-white);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(18px, 2.5vw, 30px);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--c-cyan);
  font-variant-numeric: tabular-nums;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  color: var(--c-white);
}

.section-note {
  max-width: 42em;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--c-steel);
}

/* ---------- 13. 图像容器（页面阶段放图） ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background:
    radial-gradient(120% 100% at 22% 0%, rgba(24, 224, 208, 0.2), transparent 56%),
    linear-gradient(152deg, #0d3244 0%, #041c2c 100%);
}

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

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

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 16px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--c-mist);
  background: linear-gradient(0deg, rgba(4, 28, 44, 0.94) 0%, rgba(4, 28, 44, 0) 100%);
}

.media__tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

/* ---------- 14. 刻度与表格基础 ---------- */
.tide-scale {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}

.tide-scale > * {
  flex: 1 1 auto;
  min-height: 6px;
  border-radius: 2px;
  background: rgba(24, 224, 208, 0.28);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: rgba(11, 43, 60, 0.6);
}

.table-wrap table {
  min-width: 560px;
  font-size: 0.88rem;
}

.table-wrap th,
.table-wrap td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table-wrap th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
  background: rgba(4, 28, 44, 0.6);
  white-space: nowrap;
}

.table-wrap tbody tr:nth-child(even) { background: rgba(217, 228, 236, 0.04); }
.table-wrap tbody tr:hover { background: rgba(24, 224, 208, 0.07); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* ---------- 15. 减少动态 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .quick-link:hover::after { transform: none; }
  .rail-progress__bar { transition: none; }
}
