/* ==========================================================================
   澳门新京葡站 · 共享样式 /assets/site.css
   设计语言：海港夜色 × 葡式瓷砖索引 × 档案标签
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink-900: #071A2B;
  --ink-800: #0C2A40;
  --ink-950: #06121D;
  --paper: #F7F4EC;
  --tile: #72D6CE;
  --tile-pale: #D9F3EF;
  --dusk: #F5A55B;
  --coral: #FF7A6B;
  --celadon: #66C7A5;
  --mist: #A7B8C7;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-geo: "Space Grotesk", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Courier New", monospace;

  --rule: rgba(217, 243, 239, 0.15);
  --rule-strong: rgba(114, 214, 206, 0.42);

  --shell: 1260px;
  --gutter: clamp(18px, 4vw, 56px);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 112px;
}

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

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

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

ul, ol { padding: 0; }

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

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

/* ---------- 3. 基础排版 ---------- */
html { background: var(--ink-900); }

body {
  min-height: 100vh;
  font-family: var(--font-display);
  font-size: clamp(15px, 0.32vw + 14.1px, 17px);
  line-height: 1.78;
  letter-spacing: 0.01em;
  color: var(--paper);
  background:
    radial-gradient(1100px 620px at 84% -12%, rgba(114, 214, 206, 0.13), transparent 62%),
    radial-gradient(900px 520px at 2% 6%, rgba(245, 165, 91, 0.08), transparent 60%),
    var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(30px, 4.6vw, 56px); }
h2 { font-size: clamp(24px, 3.1vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 25px); }
h4 { font-size: clamp(16px, 1.3vw, 19px); }

p { margin: 0; }

a {
  color: var(--tile);
  text-decoration-color: rgba(114, 214, 206, 0.45);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: currentColor; }

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

small { font-size: 0.82em; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection {
  background: rgba(114, 214, 206, 0.35);
  color: var(--paper);
}

main { display: block; }

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

/* ---------- 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: -120px;
  left: 0;
  z-index: 200;
  padding: 13px 22px;
  background: var(--dusk);
  color: var(--ink-950);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top 0.24s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--ink-950);
  outline-offset: -4px;
}

:focus-visible {
  outline: 2px solid var(--tile);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 5. 阅读进度 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--tile) 0%, var(--dusk) 52%, var(--coral) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.scroll-progress[data-visible="true"] { opacity: 1; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-900);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 22px 48px -34px rgba(0, 0, 0, 0.95);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(114, 214, 206, 0) 0%,
    rgba(114, 214, 206, 0.55) 24%,
    rgba(245, 165, 91, 0.5) 72%,
    rgba(255, 122, 107, 0) 100%
  );
}

.header-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 顶部版本细轨 */
.header-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.header-version {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tile-pale);
  line-height: 1.4;
}

.header-version::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dusk);
  box-shadow: 0 0 0 4px rgba(245, 165, 91, 0.16);
}

.header-member {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 107, 0.46);
  background: rgba(255, 122, 107, 0.13);
  color: #FFC7BF;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.header-member::after {
  content: "\2192";
  font-size: 12px;
  line-height: 1;
}

.header-member:hover {
  background: rgba(255, 122, 107, 0.26);
  border-color: var(--coral);
  color: var(--paper);
}

/* 主行 */
.header-main {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 74px;
  padding: 10px 0;
}

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

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  border: 1px solid rgba(114, 214, 206, 0.5);
  background:
    linear-gradient(135deg, transparent 45%, var(--tile) 45%, var(--tile) 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(247, 244, 236, 0.5) 45%, rgba(247, 244, 236, 0.5) 55%, transparent 55%),
    var(--ink-800);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 236, 0.06);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dusk);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg);
  border-color: var(--tile);
}

.brand-text { display: block; min-width: 0; }

.brand-name {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.brand-descriptor {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.3;
}

/* 菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: rgba(114, 214, 206, 0.07);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-toggle:hover {
  background: rgba(114, 214, 206, 0.16);
  border-color: var(--tile);
}

.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 11px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(4.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-4.75px) rotate(-45deg);
}

/* 导航轨道 */
.site-nav {
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
}

.nav-track {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.nav-track::-webkit-scrollbar { display: none; }

.nav-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--mist);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

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

.nav-link:hover {
  color: var(--paper);
  background: rgba(114, 214, 206, 0.09);
}

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

.nav-link[aria-current="page"] {
  background: var(--tile);
  color: var(--ink-950);
  font-weight: 700;
}

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

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  color: var(--paper);
  background:
    radial-gradient(760px 380px at 88% 0%, rgba(114, 214, 206, 0.12), transparent 70%),
    radial-gradient(620px 320px at 0% 100%, rgba(245, 165, 91, 0.09), transparent 70%),
    var(--ink-950);
  border-top: 1px solid var(--rule);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--tile) 0%,
    var(--tile-pale) 28%,
    var(--dusk) 62%,
    var(--coral) 84%,
    var(--celadon) 100%
  );
}

.footer-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) var(--gutter) 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.8fr) minmax(250px, 1fr);
  gap: clamp(26px, 4vw, 60px);
}

.footer-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(114, 214, 206, 0.5);
  background:
    linear-gradient(135deg, transparent 45%, var(--tile) 45%, var(--tile) 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(247, 244, 236, 0.42) 45%, rgba(247, 244, 236, 0.42) 55%, transparent 55%),
    var(--ink-800);
}

.footer-name {
  margin: 16px 0 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.footer-summary {
  max-width: 34ch;
  margin-bottom: 20px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.85;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--coral);
  color: #2A0E0A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.footer-cta::after {
  content: "\2192";
  line-height: 1;
}

.footer-cta:hover {
  background: #FF9184;
  transform: translateY(-2px);
}

.footer-label {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tile);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: foot-index;
}

.footer-links li { counter-increment: foot-index; }

.footer-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  color: var(--mist);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(167, 184, 199, 0.18);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.footer-link::before {
  content: counter(foot-index, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(114, 214, 206, 0.78);
}

.footer-link:hover {
  color: var(--paper);
  border-color: var(--rule-strong);
}

.footer-contact-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.footer-contact-item { display: block; }

.footer-contact-key {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

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

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

.copy-btn {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(114, 214, 206, 0.4);
  background: rgba(114, 214, 206, 0.1);
  color: var(--tile);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.copy-btn:hover {
  background: rgba(114, 214, 206, 0.22);
  border-color: var(--tile);
}

.copy-btn[data-copied="true"] {
  background: var(--celadon);
  border-color: var(--celadon);
  color: #04231A;
}

.footer-note {
  margin: 0;
  padding-left: 13px;
  border-left: 2px solid rgba(102, 199, 165, 0.55);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  margin-top: clamp(32px, 4vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.footer-legal-copy { margin: 0; }

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

.footer-legal-links a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.footer-legal-links a:hover {
  color: var(--tile);
  border-color: var(--rule-strong);
}

/* ---------- 8. 布局容器与栅格 ---------- */
.content-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.stack { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); }
.stack--tight { gap: clamp(10px, 1.4vw, 16px); }
.stack--loose { gap: clamp(30px, 4.5vw, 60px); }

.rule {
  height: 1px;
  border: 0;
  margin: clamp(24px, 3.4vw, 44px) 0;
  background: linear-gradient(90deg, var(--rule-strong), rgba(217, 243, 239, 0.04));
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.bento > * { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 760px) {
  .bento > .b-span-3 { grid-column: span 3; }
  .bento > .b-span-4 { grid-column: span 4; }
  .bento > .b-span-5 { grid-column: span 5; }
  .bento > .b-span-6 { grid-column: span 6; }
  .bento > .b-span-7 { grid-column: span 7; }
  .bento > .b-span-8 { grid-column: span 8; }
  .bento > .b-span-9 { grid-column: span 9; }
  .bento > .b-span-12 { grid-column: span 12; }
}

/* ---------- 9. 通用组件 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tile);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-lede {
  max-width: 64ch;
  margin: 0;
  color: var(--mist);
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.88;
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: linear-gradient(158deg, rgba(12, 42, 64, 0.94), rgba(7, 26, 43, 0.88));
  overflow: hidden;
}

.panel > * { position: relative; z-index: 1; }

.panel--tile { border-color: rgba(114, 214, 206, 0.34); }
.panel--coral { border-color: rgba(255, 122, 107, 0.36); }
.panel--celadon { border-color: rgba(102, 199, 165, 0.36); }
.panel--dusk { border-color: rgba(245, 165, 91, 0.38); }

.btn {
  --btn-bg: var(--tile);
  --btn-fg: var(--ink-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }

.btn--tile { --btn-bg: var(--tile); --btn-fg: var(--ink-950); }
.btn--coral { --btn-bg: var(--coral); --btn-fg: #2A0E0A; }
.btn--celadon { --btn-bg: var(--celadon); --btn-fg: #04231A; }
.btn--dusk { --btn-bg: var(--dusk); --btn-fg: #2B1608; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  background: rgba(114, 214, 206, 0.1);
  border-color: var(--tile);
  filter: none;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(114, 214, 206, 0.4);
  background: rgba(114, 214, 206, 0.12);
  color: var(--tile);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--coral {
  color: #FFB4A9;
  background: rgba(255, 122, 107, 0.14);
  border-color: rgba(255, 122, 107, 0.42);
}

.tag--celadon {
  color: #9FE4CB;
  background: rgba(102, 199, 165, 0.14);
  border-color: rgba(102, 199, 165, 0.44);
}

.tag--dusk {
  color: #FFD2A6;
  background: rgba(245, 165, 91, 0.14);
  border-color: rgba(245, 165, 91, 0.46);
}

.breadcrumb {
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(167, 184, 199, 0.5);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
}

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

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

.prose { max-width: 68ch; }

.prose p {
  margin: 0 0 1.05em;
  color: rgba(247, 244, 236, 0.87);
  line-height: 1.9;
}

.prose p:last-child { margin-bottom: 0; }

.prose h3 { margin: 1.5em 0 0.6em; }
.prose ul, .prose ol { margin: 0 0 1.05em; padding-left: 1.3em; color: rgba(247, 244, 236, 0.87); }
.prose li { margin-bottom: 0.4em; }

/* 图片容器基础规则（共享层不放图片，页面阶段放入 img） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(114, 214, 206, 0.22), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(245, 165, 91, 0.16), transparent 62%),
    var(--ink-800);
}

.media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame > figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(6, 18, 29, 0.92), rgba(6, 18, 29, 0));
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame--tile {
  background-image:
    linear-gradient(45deg, rgba(114, 214, 206, 0.16) 25%, transparent 25%, transparent 75%, rgba(114, 214, 206, 0.16) 75%),
    linear-gradient(45deg, rgba(114, 214, 206, 0.16) 25%, transparent 25%, transparent 75%, rgba(114, 214, 206, 0.16) 75%),
    linear-gradient(158deg, var(--ink-800), var(--ink-900));
  background-size: 34px 34px, 34px 34px, auto;
  background-position: 0 0, 17px 17px, 0 0;
}

/* ---------- 10. 滚动显现 ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-ready [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 平板与移动端 ---------- */
@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  :root { --header-h: 104px; }

  .header-main { min-height: 64px; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin-left: 0;
    max-height: 78vh;
    overflow-y: auto;
    padding: 0 var(--gutter);
    background: linear-gradient(180deg, #0C2A40 0%, #071A2B 100%);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 34px 62px -32px rgba(0, 0, 0, 0.96);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-track {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 0 22px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-link::after { display: none; }

  .nav-link:hover { background: rgba(114, 214, 206, 0.1); }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-brand { grid-column: auto; }
}

@media (max-width: 640px) {
  .header-rail { font-size: 10px; letter-spacing: 0.12em; }
  .header-member { padding: 5px 11px; font-size: 10px; }
  .brand-mark, .footer-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 17.5px; }
  .brand-descriptor { font-size: 9.5px; letter-spacing: 0.16em; }
  .nav-toggle { padding: 9px 13px; font-size: 10px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .footer-cta { width: 100%; justify-content: center; }
}

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .footer-cta:hover,
  .brand:hover .brand-mark {
    transform: none;
  }
}
