/* ==========================================================================
   半岛赛场 · 共享站点样式  /assets/site.css
   夜战控制台：深海底色 + 荧光青结构线 + 琥珀金关键数据
   ========================================================================== */

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

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

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

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

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

a { color: inherit; }

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

button { cursor: pointer; }

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

[id] { scroll-margin-top: 96px; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-abyss: #04121F;
  --c-panel: #0A2233;
  --c-raise: #103247;
  --c-line: #1E4E68;
  --c-cyan: #2BE7D0;
  --c-cyan-soft: #7CF3E4;
  --c-amber: #FFB43C;
  --c-pulse: #FF7A45;
  --c-text: #E9F4F8;
  --c-muted: #8FA9B8;
  --c-teal: #0E7A6E;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --shell-max: 1320px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --notch: 14px;
  --dur: 0.18s;
  --ease: cubic-bezier(0.3, 0.8, 0.3, 1);
  --shadow-panel: 0 18px 44px -30px rgba(0, 0, 0, 0.95);
  --clip-notch: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%, 0 100%);
}

/* ---------- 3. 基础排版与页面底色 ---------- */
body {
  min-height: 100vh;
  background-color: var(--c-abyss);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(30, 78, 104, 0.16) 0 1px,
    transparent 1px 11px
  );
  background-attachment: fixed;
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; }

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-text);
}

h1 {
  font-size: clamp(34px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 { font-size: clamp(24px, 3.4vw, 42px); }
h3 { font-size: clamp(18px, 2vw, 24px); }

p { max-width: 74ch; }

strong { font-weight: 800; color: var(--c-text); }

::selection {
  background: var(--c-cyan);
  color: var(--c-abyss);
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

.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: 10px;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  background: var(--c-cyan);
  color: var(--c-abyss);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  clip-path: var(--clip-notch);
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

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

/* ---------- 5. 头部：命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 18, 31, 0.94);
  border-bottom: 1px solid var(--c-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px -30px #000;
}

.header__rail {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--c-cyan) 0%,
    var(--c-cyan) 34%,
    var(--c-amber) 34%,
    var(--c-amber) 41%,
    var(--c-teal) 41%,
    var(--c-teal) 100%
  );
}

.header__shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header__bar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 78px;
  padding-block: 10px;
}

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

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

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-teal) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--c-abyss);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

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

.brand__name {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  transition: color var(--dur) var(--ease);
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
  text-transform: uppercase;
}

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

/* 双入口分段控件 */
.entry-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px),
    calc(100% - 10px) 100%, 0 100%);
}

.entry-switch__item {
  padding: 6px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.entry-switch__item:hover {
  color: var(--c-text);
  background: var(--c-raise);
}

.entry-switch__item[aria-current="page"] {
  color: var(--c-abyss);
  background: var(--c-cyan);
  font-weight: 700;
}

/* 同步状态条 */
.sync-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}

.sync-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-pulse);
  animation: pulse-dot 2s infinite;
}

.sync-strip__text { white-space: nowrap; }

.sync-strip__time { color: var(--c-amber); white-space: nowrap; }

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 69, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 122, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 69, 0); }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--c-panel);
  color: var(--c-text);
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid var(--c-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px),
    calc(100% - 9px) 100%, 0 100%);
  transition: border-color var(--dur) var(--ease);
}

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

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--c-cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) 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(-5px) rotate(-45deg);
}

.nav-toggle__label { white-space: nowrap; }

/* 主导航 */
.site-nav {
  border-top: 1px solid rgba(30, 78, 104, 0.55);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 2px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--c-text);
  background: rgba(16, 50, 71, 0.6);
}

.site-nav__link[aria-current="page"] { color: var(--c-text); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--c-teal);
  transition: color var(--dur) var(--ease);
}

.site-nav__link:hover .site-nav__index { color: var(--c-cyan-soft); }
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--c-amber); }

.site-nav__label { white-space: nowrap; }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(43, 231, 208, 0.05) 0 1px,
    transparent 1px 15px
  );
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--c-teal) 0%,
    var(--c-teal) 34%,
    var(--c-amber) 34%,
    var(--c-amber) 41%,
    var(--c-cyan) 41%,
    var(--c-cyan) 100%
  );
}

.footer__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 68px) var(--gutter) clamp(20px, 3vw, 32px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer__brand {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--c-text);
  margin-bottom: 14px;
  max-width: none;
}

.footer__brand::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 10px;
  background: var(--c-amber);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.footer__desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--c-muted);
  max-width: 36ch;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-amber);
  background: rgba(255, 180, 60, 0.1);
  border: 1px solid rgba(255, 180, 60, 0.32);
  max-width: none;
}

.footer__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-pulse);
  animation: pulse-dot 2s infinite;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
  text-transform: uppercase;
}

.footer__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.6;
}

.footer__list a {
  color: var(--c-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__list a:hover {
  color: var(--c-cyan);
  border-bottom-color: rgba(43, 231, 208, 0.5);
}

.footer__list--contact {
  gap: 12px;
  color: var(--c-text);
  font-size: 13px;
}

.footer__key {
  display: inline-block;
  min-width: 42px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--c-teal);
}

.footer__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 34ch;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(30, 78, 104, 0.6);
  font-size: 12.5px;
  color: var(--c-muted);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  max-width: none;
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-teal);
  max-width: none;
}

/* ---------- 7. 通用布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(32px, 5vw, 72px); }

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(18px, 3vw, 32px);
  max-width: 78ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c-amber);
}

.section__title {
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section__lede {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 66ch;
}

/* 横向主题带 */
.band {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.6vw, 48px) clamp(18px, 3vw, 44px);
  background: linear-gradient(100deg, var(--c-panel) 0%, var(--c-abyss) 80%);
  border-left: 3px solid var(--c-cyan);
}

.band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(43, 231, 208, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.band__title {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 7vw, 96px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--c-text);
}

.band__note {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  max-width: 56ch;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--c-cyan-soft);
}

/* 堆叠面板 */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 38px);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-panel);
  clip-path: var(--clip-notch);
  transition: border-color var(--dur) var(--ease);
}

.panel:hover { border-color: #2b6a8c; }

.panel__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-teal);
}

.panel__title {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.panel__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

/* 斜线分隔条 */
.slash {
  height: clamp(20px, 3vw, 34px);
  border-block: 1px solid rgba(30, 78, 104, 0.6);
  background: repeating-linear-gradient(
    -45deg,
    rgba(43, 231, 208, 0.22) 0 2px,
    transparent 2px 12px
  );
}

/* 网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

/* ---------- 8. 通用组件 ---------- */
/* 按钮 */
.btn {
  --btn-bg: var(--c-raise);
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-line);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px),
    calc(100% - 12px) 100%, 0 100%);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); border-color: var(--c-cyan); }

.btn--primary {
  --btn-bg: var(--c-cyan);
  --btn-fg: var(--c-abyss);
  --btn-bd: var(--c-cyan);
}

.btn--primary:hover { --btn-bg: var(--c-cyan-soft); }

.btn--amber {
  --btn-bg: var(--c-amber);
  --btn-fg: var(--c-abyss);
  --btn-bd: var(--c-amber);
}

.btn--amber:hover { --btn-bg: #ffc867; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-cyan);
  --btn-bd: var(--c-line);
}

.btn--ghost:hover { --btn-fg: var(--c-cyan-soft); }

/* 面包屑 */
.crumbs { margin-bottom: clamp(14px, 2vw, 24px); }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.crumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs__link {
  color: var(--c-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.crumbs__link:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

.crumbs__sep { color: var(--c-teal); }

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.chip:hover {
  color: var(--c-text);
  border-color: var(--c-cyan);
}

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

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-cyan-soft);
  background: rgba(43, 231, 208, 0.1);
  border: 1px solid rgba(43, 231, 208, 0.35);
  white-space: nowrap;
}

.tag--live {
  color: var(--c-pulse);
  background: rgba(255, 122, 69, 0.12);
  border-color: rgba(255, 122, 69, 0.42);
}

.tag--amber {
  color: var(--c-amber);
  background: rgba(255, 180, 60, 0.12);
  border-color: rgba(255, 180, 60, 0.42);
}

/* 数字 / 比分 */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.score {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-abyss);
  background: var(--c-amber);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 0 100%);
}

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--c-raise);
  background-image:
    radial-gradient(circle at 24% 28%, rgba(43, 231, 208, 0.18), transparent 58%),
    repeating-linear-gradient(
      -45deg,
      rgba(124, 243, 228, 0.08) 0 1px,
      transparent 1px 16px
    );
  border: 1px solid var(--c-line);
  clip-path: var(--clip-notch);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 18, 31, 0) 42%,
    rgba(4, 18, 31, 0.82) 100%
  );
  pointer-events: none;
}

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

.media__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-cyan-soft);
}

/* 阅读进度 */
.read-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.read-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-amber) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
  will-change: transform;
}

/* 入场 */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .footer__contact { grid-column: 1 / -1; }
}

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

  .header__bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    min-height: 0;
    padding-block: 12px 10px;
    row-gap: 10px;
  }

  .brand { grid-area: 1 / 1 / 2 / 2; }
  .header__meta { grid-area: 1 / 2 / 2 / 3; justify-self: end; margin-left: 0; }

  .entry-switch {
    grid-area: 2 / 1 / 3 / 3;
    justify-self: start;
  }

  .entry-switch__item { padding: 6px 13px; font-size: 12.5px; }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 55;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--c-panel);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 26px 44px -32px #000;
    transition: max-height 0.28s var(--ease), visibility 0.28s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    visibility: visible;
  }

  .site-nav__list { flex-direction: column; padding: 6px 0; }
  .site-nav__item { display: block; }

  .site-nav__link {
    padding: 15px var(--gutter);
    font-size: 15px;
    letter-spacing: 0.05em;
  }

  .site-nav__link::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: 50% 0;
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(16, 50, 71, 0.65);
    color: var(--c-cyan-soft);
  }

  .site-nav__link[aria-current="page"]::after { transform: scaleY(1); }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact { grid-column: auto; }
  .footer__desc,
  .footer__note { max-width: 52ch; }
}

@media (max-width: 760px) {
  .grid--split,
  .grid--halves,
  .grid--thirds { grid-template-columns: 1fr; }

  .sync-strip { display: none; }

  .panel { --notch: 11px; }
}

@media (max-width: 640px) {
  .footer__nav { grid-template-columns: 1fr; gap: 22px; }
  .footer__base { justify-content: flex-start; }

  .btn { width: 100%; justify-content: center; }
}

/* 减弱动效 */
@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;
  }

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

  .read-progress__bar { transition: none; }
}
