/* ==========================================================================
   欢云看台 · 共享样式表  /assets/site.css
   外壳 = 转播信号框：顶部横条 + 右侧进度色带 + 左下角客服块
   ========================================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --sky: #0E7C9B;
  --ink: #08303D;
  --coral: #FF6B3D;
  --sand: #FDF6EC;
  --palm: #2F8F5B;
  --signal: #FFC24B;
  --alert: #C62E2E;
  --mist: #E3EFF2;
  --broadcast: #5C6B70;
  --brown: #241C18;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Courier New", "PingFang SC", monospace;

  --line: 1px solid var(--brown);
  --line-soft: 1px solid rgba(36, 28, 24, 0.16);
  --shadow-sm: 2px 2px 0 rgba(36, 28, 24, 0.10);
  --shadow-md: 3px 3px 0 rgba(36, 28, 24, 0.16);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --header-h: 66px;

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

/* ---------- base typography ---------- */
body {
  background-color: var(--sand);
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(8, 48, 61, 0.022) 0 1px,
      transparent 1px 4px
    );
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.18vw + 15.4px, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  letter-spacing: -0.032em;
  font-stretch: 87.5%;
}

h2 {
  font-size: clamp(25px, 3vw, 34px);
  font-stretch: 90%;
}

h3 {
  font-size: clamp(19px, 1.5vw, 22px);
  font-stretch: 92%;
}

h4 { font-size: 17px; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

::selection {
  background: var(--signal);
  color: var(--brown);
}

/* ---------- layout ---------- */
.container {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(22px, 3vw, 40px);
  padding-bottom: 14px;
  border-bottom: var(--line);
}

.section-head > * { min-width: 0; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--sand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--coral);
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 10px;
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

/* ==========================================================================
   头部：导航作为页面外框
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--sand);
  border-bottom: 1px solid var(--brown);
  box-shadow: 0 2px 0 rgba(36, 28, 24, 0.06);
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 8px;
}

/* 品牌锁定组 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--coral);
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid var(--brown);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-stretch: 90%;
}

.brand-signature {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--broadcast);
}

/* 主导航 */
.primary-nav {
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--sky);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(227, 239, 242, 0.55);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--coral);
}

/* 工具徽标 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.utility-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid rgba(36, 28, 24, 0.28);
  white-space: nowrap;
}

.utility-chip--live {
  background: var(--mist);
  border-color: var(--brown);
}

.utility-dot {
  width: 7px;
  height: 7px;
  background: var(--palm);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: var(--ink);
  color: var(--sand);
  border: 1px solid var(--brown);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover { background: var(--sky); }

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 顶部滚动细线 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: rgba(227, 239, 242, 0.9);
  overflow: hidden;
}

.header-progress-fill {
  display: block;
  height: 100%;
  width: calc(var(--scroll-progress) * 100%);
  background: linear-gradient(90deg, var(--sky), var(--coral));
}

/* 右侧章节进度色带 */
.frame-rail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  z-index: 70;
  background: rgba(227, 239, 242, 0.92);
  border-left: 1px solid rgba(36, 28, 24, 0.18);
  pointer-events: none;
}

.frame-rail-fill {
  display: block;
  width: 100%;
  height: calc(var(--scroll-progress) * 100%);
  background: linear-gradient(180deg, var(--sky), var(--coral));
}

/* 左下角常驻客服块 */
.desk-card {
  display: none;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 65;
  width: 188px;
  padding: 12px 14px 13px;
  background: var(--sand);
  border: 1px solid var(--brown);
  box-shadow: var(--shadow-md);
}

.desk-card-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--broadcast);
  margin-bottom: 5px;
}

.desk-card-time {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 9px;
}

.desk-card-link {
  display: block;
  padding: 7px 10px;
  background: var(--sky);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.desk-card-link:hover,
.desk-card-link:focus-visible {
  background: var(--coral);
  color: #ffffff;
}

/* ---------- 头部响应式 ---------- */
@media (max-width: 1120px) {
  .header-utility { display: none; }
}

@media (min-width: 921px) {
  .primary-nav { margin-left: auto; }
  .nav-toggle { display: none; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    border-top: 1px solid var(--brown);
    border-bottom: 1px solid var(--brown);
    box-shadow: 0 6px 0 rgba(36, 28, 24, 0.10);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.24s var(--ease), visibility 0s linear 0.24s;
  }

  .primary-nav[data-open] {
    max-height: 76vh;
    overflow-y: auto;
    visibility: visible;
    transition: max-height 0.24s var(--ease), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: min(1320px, calc(100% - 32px));
    margin-inline: auto;
    padding-block: 6px;
  }

  .nav-item { border-bottom: 1px solid rgba(36, 28, 24, 0.12); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
  }

  .nav-link::after { left: 4px; right: auto; width: 26px; bottom: 8px; }
  .nav-link[aria-current="page"] { background: transparent; }
}

@media (max-width: 1180px) {
  .desk-card { display: none; }
}

@media (min-width: 1181px) {
  .desk-card { display: block; }
}

@media (max-width: 720px) {
  .frame-rail { width: 3px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .brand-name { font-size: 16.5px; }
  .brand-signature { font-size: 9.5px; letter-spacing: 0.1em; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 100px);
  background: var(--ink);
  color: var(--sand);
  border-top: 1px solid var(--brown);
}

.footer-band {
  height: 14px;
  background: linear-gradient(
    90deg,
    var(--sky) 0 34%,
    var(--coral) 34% 41%,
    var(--signal) 41% 44%,
    var(--ink) 44% 100%
  );
  border-bottom: 1px solid rgba(253, 246, 236, 0.2);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(26px, 4vw, 58px);
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(34px, 5vw, 62px);
}

.footer-wordmark {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-stretch: 90%;
  color: var(--sand);
  line-height: 1.2;
}

.footer-brandline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.footer-note {
  margin-top: 14px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(253, 246, 236, 0.74);
}

.footer-cta { margin-top: 20px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(253, 246, 236, 0.22);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}

.footer-list a {
  display: inline-block;
  color: rgba(253, 246, 236, 0.84);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.footer-list--meta { gap: 13px; }

.footer-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.footer-meta-key {
  flex: 0 0 100%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 246, 236, 0.5);
}

.footer-meta-val {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(253, 246, 236, 0.9);
  word-break: break-word;
}

.copy-btn {
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--sand);
  background: transparent;
  border: 1px solid rgba(253, 246, 236, 0.38);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(253, 246, 236, 0.2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(253, 246, 236, 0.62);
}

.footer-year { color: var(--signal); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-links a {
  color: rgba(253, 246, 236, 0.74);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.footer-icp { color: rgba(253, 246, 236, 0.5); }

@media (max-width: 960px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   通用组件
   ========================================================================== */

/* 眉题 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--broadcast);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  background: var(--coral);
}

/* 巨型章节序号 */
.chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(64px, 11vw, 152px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--sky);
}

@supports (-webkit-text-stroke: 1px #000) {
  .chapter-num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--sky);
  }
}

.chapter-num[data-chapter-inview],
[data-chapter-inview] .chapter-num {
  color: var(--coral);
  -webkit-text-stroke-color: var(--coral);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--brown);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(36, 28, 24, 0.18);
}

.btn--solid {
  background: var(--sky);
  color: #ffffff;
  border-color: var(--ink);
}

.btn--solid:hover { background: var(--ink); }

.btn--coral {
  background: var(--coral);
  color: #ffffff;
  border-color: var(--ink);
}

.btn--coral:hover { background: var(--ink); }

.btn--ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--sand);
  color: var(--sand);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

/* 标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--brown);
}

.chip--sky { background: var(--sky); color: #ffffff; }
.chip--coral { background: var(--coral); color: #ffffff; }
.chip--palm { background: var(--palm); color: #ffffff; }
.chip--signal { background: var(--signal); color: var(--brown); }

/* 卡片 */
.card {
  padding: clamp(16px, 2.2vw, 26px);
  background: var(--sand);
  border: var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.card--report { border-left: 4px solid var(--coral); }

.card--dark {
  background: var(--ink);
  color: var(--sand);
  border-color: var(--ink);
}

.card--dark h2,
.card--dark h3,
.card--dark h4 { color: var(--sand); }

.card--lift:hover,
.card--lift:focus-within {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: var(--shadow-md);
}

/* 网格 */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .grid--split,
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* 面包屑 */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--broadcast);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(92, 107, 112, 0.55);
}

.breadcrumb a {
  color: var(--broadcast);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

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

/* 长文排版 */
.prose { max-width: 66ch; }

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

.prose p {
  max-width: 36em;
  line-height: 1.75;
}

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  max-width: 36em;
}

.prose li + li { margin-top: 0.35em; }

.prose a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid var(--sky);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

.prose blockquote {
  margin-left: 0;
  padding: 12px 18px;
  border-left: 4px solid var(--signal);
  background: var(--mist);
  color: var(--ink);
  font-size: 0.96em;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 5px;
  background: var(--mist);
  border: 1px solid rgba(36, 28, 24, 0.18);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.prose th,
.prose td {
  padding: 9px 12px;
  text-align: left;
  border: 1px solid rgba(36, 28, 24, 0.22);
}

.prose th {
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.prose tbody tr:nth-child(even) { background: var(--mist); }

/* 图片容器：供页面阶段放置图片 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  background-color: var(--mist);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(14, 124, 155, 0.12) 0 10px,
      transparent 10px 20px
    );
}

.media-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(8, 48, 61, 0.22) 0 1px,
    transparent 1px 3px
  );
}

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

.media-frame > figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sand);
  background: linear-gradient(180deg, transparent, rgba(8, 48, 61, 0.88));
}

/* ---------- reduced motion ---------- */
@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: 0s !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .card--lift:hover,
  .brand:hover .brand-mark {
    transform: none;
  }
}
