/* ============================================================
   澳门银诃品牌 · 数字港湾共享样式
   /assets/site.css
   ============================================================ */

/* ---------- 1. 重置 ---------- */
*,
*::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, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

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

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

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

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

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

table { border-collapse: collapse; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 深水层 */
  --ink-950: #06131F;
  --ink-900: #0A1E2E;
  --ink-800: #102B40;
  /* 银面层 */
  --silver-100: #E8EDF2;
  --silver-300: #B9C6D2;
  --silver-500: #7F909F;
  /* 识别色 */
  --tide-400: #3FB6B0;
  --gold-400: #D8A84E;
  --sand-300: #C9B99A;
  /* 浅色阅读层 */
  --paper-000: #F4F6F8;
  --ink-black: #101820;

  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --surface-raised: var(--ink-800);
  --text: var(--silver-100);
  --text-soft: var(--silver-300);
  --text-muted: var(--silver-500);
  --line: rgba(185, 198, 210, 0.16);
  --line-strong: rgba(185, 198, 210, 0.32);

  --font-display: "Archivo Narrow", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-frame: 28px;
  --radius-card: 20px;
  --radius-pill: 999px;

  --shell-w: 1280px;
  --gutter: clamp(18px, 4vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-mid: 480ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image:
    radial-gradient(70% 55% at 6% 0%, rgba(63, 182, 176, 0.12), rgba(6, 19, 31, 0) 68%),
    radial-gradient(62% 52% at 100% 2%, rgba(16, 43, 64, 0.9), rgba(6, 19, 31, 0) 72%),
    linear-gradient(180deg, #071726 0%, #06131F 46%, #040E17 100%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.55vw + 10px, 18px);
  line-height: 1.85;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--silver-100);
}

strong, b { font-weight: 600; color: var(--silver-100); }

::selection {
  background: var(--tide-400);
  color: var(--ink-950);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--tide-400);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content { scroll-margin-top: clamp(76px, 10vh, 120px); }

/* ---------- 4. 工具类 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 220;
  transform: translate(-50%, -200%);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--gold-400);
  color: var(--ink-black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  transition: transform 220ms var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

.skip-link:focus-visible {
  outline: 3px solid var(--tide-400);
  outline-offset: 3px;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 19, 31, 0.84);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(232, 237, 242, 0.05);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: 78px;
  transition: min-height 280ms var(--ease), padding-block 280ms var(--ease);
}

.site-header[data-condensed="true"] .header-inner {
  min-height: 60px;
  padding-block: 6px;
}

/* 左侧品牌轨道 */
.brand-rail {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-right: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.brand-link:hover {
  border-color: var(--line-strong);
  background: rgba(16, 43, 64, 0.6);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--tide-400), #1E6E72 72%);
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transform-origin: center;
  transition: transform 280ms var(--ease);
}

.site-header[data-condensed="true"] .brand-mark { transform: scale(0.86); }

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--silver-100);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.site-header[data-condensed="true"] .brand-sub {
  opacity: 0;
  transform: translateY(-4px);
}

/* ---------- 6. 主导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.012em;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.nav-link:hover {
  color: var(--silver-100);
  background: rgba(16, 43, 64, 0.78);
}

.nav-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--silver-500);
  transition: color var(--dur-fast) var(--ease);
}

.nav-label {
  display: inline-block;
  letter-spacing: 0.012em;
}

.nav-link[aria-current="page"] {
  color: var(--silver-100);
  background: var(--ink-800);
  box-shadow: inset 0 0 0 1px rgba(63, 182, 176, 0.3);
}

.nav-link[aria-current="page"] .nav-code { color: var(--gold-400); }

/* 右侧工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 43, 64, 0.62);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

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

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--silver-100);
  transition: transform 220ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

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

/* ---------- 7. 移动导航 ---------- */
@media (max-width: 1180px) {
  .nav-code { display: none; }
  .nav-link { padding: 10px 12px; font-size: 14px; }
}

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

  .site-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 95;
    display: block;
    max-height: 80vh;
    overflow-y: auto;
    padding: 22px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(10, 30, 46, 0.985), rgba(6, 19, 31, 0.995));
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    box-shadow: 0 -26px 68px rgba(0, 0, 0, 0.62);
    transform: translateY(calc(100% + 26px));
    opacity: 0;
    visibility: hidden;
    transition: transform 340ms var(--ease), opacity 220ms var(--ease), visibility 0s linear 340ms;
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 340ms var(--ease), opacity 220ms var(--ease), visibility 0s linear 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 15px 18px;
    font-size: 16px;
    border-radius: 16px;
    background: rgba(16, 43, 64, 0.45);
  }

  .nav-link[aria-current="page"] {
    background: var(--ink-800);
    box-shadow: inset 0 0 0 1px rgba(63, 182, 176, 0.36);
  }
}

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
  .pill { padding: 9px 15px; font-size: 13px; }
  .nav-toggle { width: 42px; height: 42px; border-radius: 12px; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 11vw, 150px);
  padding-top: clamp(46px, 6.5vw, 88px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 10% 0%, rgba(63, 182, 176, 0.08), rgba(6, 19, 31, 0) 70%),
    linear-gradient(180deg, rgba(10, 30, 46, 0.78), rgba(4, 14, 23, 1) 78%);
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.footer-inner {
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) 2.15fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(32px, 4.6vw, 60px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--silver-100);
  transition: color var(--dur-fast) var(--ease);
}

.footer-logo:hover { color: var(--tide-400); }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 168, 78, 0.45);
  background: rgba(216, 168, 78, 0.1);
  color: var(--gold-400);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.footer-return::after {
  content: "↗";
  font-size: 12px;
  line-height: 1;
}

.footer-return:hover {
  background: rgba(216, 168, 78, 0.2);
  border-color: var(--gold-400);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--tide-400);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-link {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 14.5px;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.footer-link:hover {
  color: var(--silver-100);
  transform: translateX(3px);
}

.footer-contact {
  padding-block: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.footer-contact-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sand-300);
  margin-bottom: 20px;
}

.footer-contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 34px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-contact-value {
  color: var(--silver-100);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-note {
  margin-top: 22px;
  max-width: 64ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-block: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.footer-copy { margin-right: auto; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-legal-link {
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease);
}

.footer-legal-link:hover { color: var(--tide-400); }

.footer-icp { color: var(--silver-500); }

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer-copy { margin-right: 0; }
  .footer-base { gap: 12px 20px; }
}

@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- 9. 按钮 / 胶囊 / 标签 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.pill--gold {
  background: var(--gold-400);
  color: var(--ink-black);
  box-shadow: 0 6px 22px rgba(216, 168, 78, 0.24);
}

.pill--gold:hover {
  background: #E9BE6C;
  transform: translateY(-1px);
}

.pill--tide {
  background: rgba(63, 182, 176, 0.14);
  color: var(--tide-400);
  border-color: rgba(63, 182, 176, 0.42);
}

.pill--tide:hover { background: rgba(63, 182, 176, 0.24); }

.pill--ghost {
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.pill--ghost:hover {
  color: var(--silver-100);
  border-color: var(--tide-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn--primary {
  background: var(--gold-400);
  color: var(--ink-black);
}

.btn--primary:hover {
  background: #E9BE6C;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--tide-400);
  color: var(--tide-400);
}

.btn--quiet {
  min-height: 0;
  padding: 6px 2px;
  color: var(--tide-400);
  border-radius: 4px;
}

.btn--quiet:hover { color: var(--gold-400); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(185, 198, 210, 0.1);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--tide {
  color: var(--tide-400);
  background: rgba(63, 182, 176, 0.12);
  border-color: rgba(63, 182, 176, 0.34);
}

.tag--gold {
  color: var(--gold-400);
  background: rgba(216, 168, 78, 0.12);
  border-color: rgba(216, 168, 78, 0.36);
}

.tag--sand {
  color: var(--sand-300);
  background: rgba(201, 185, 154, 0.12);
  border-color: rgba(201, 185, 154, 0.32);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb { margin-block: clamp(18px, 3vw, 32px); }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-inline: 10px;
  color: rgba(127, 144, 159, 0.7);
}

.breadcrumb-link {
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease);
}

.breadcrumb-link:hover { color: var(--tide-400); }

/* ---------- 11. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 760px; }
.container--wide { max-width: 1440px; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}

.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-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
}

.prose {
  max-width: 68ch;
  color: var(--text-soft);
}

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

/* ---------- 12. 框景 / 旁注 / 目录 / 图片 ---------- */
.frame {
  position: relative;
  padding: clamp(20px, 3.2vw, 46px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-frame);
  background: linear-gradient(165deg, rgba(16, 43, 64, 0.62), rgba(6, 19, 31, 0.84) 62%);
  overflow: hidden;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(185, 198, 210, 0.14);
  border-radius: calc(var(--radius-frame) - 9px);
  pointer-events: none;
}

.frame > * { position: relative; }

.note {
  padding-left: 16px;
  border-left: 2px solid var(--tide-400);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 60ch;
}

.note--sand { border-left-color: var(--sand-300); }
.note--gold { border-left-color: var(--gold-400); }

.ledger {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-index {
  flex: 0 0 auto;
  min-width: 2.6em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.ledger-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  color: var(--text);
}

.ledger-meta {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(150deg, rgba(16, 43, 64, 0.95), rgba(6, 19, 31, 0.95));
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

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

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 19, 31, 0) 44%, rgba(6, 19, 31, 0.62) 100%);
  box-shadow: inset 0 0 0 1px rgba(185, 198, 210, 0.07);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* ---------- 13. 栏目头组 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--tide-400);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--silver-100);
  max-width: 24ch;
}

.section-lede {
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-soft);
}

/* ---------- 14. 滚动显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

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

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-nav {
    transition: none !important;
  }
}
