/* ============================================================
   火博体育CN — 共享站点样式 /assets/site.css
   夜赛指挥台 · 编辑部档案柜
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

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

/* ---------- variables ---------- */
:root {
  --flame: #FF5A2A;
  --flame-deep: #C9271D;
  --char: #121316;
  --char-lift: #0D0E11;
  --pitch: #0B1A17;
  --slate: #4A5966;
  --paper: #F5F2EA;
  --cyan: #24F0C8;
  --amber: #FFB000;
  --wine: #6B1F35;
  --indigo: #1D1B4F;
  --pulp: #E7D8BF;

  --ink: #121316;
  --ink-mute: rgba(18, 19, 22, .66);
  --paper-mute: rgba(245, 242, 234, .64);
  --paper-faint: rgba(245, 242, 234, .36);
  --hair-dark: rgba(245, 242, 234, .14);
  --hair-soft: rgba(245, 242, 234, .08);
  --hair-light: rgba(18, 19, 22, .16);

  --font-display: "Impact", "Haettenschweiler", "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 3.6vw, 44px);
  --radius: 2px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, .34);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base / 中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper);
  background: var(--char);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .94; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: .98; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { max-width: 44ch; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

strong, b { font-weight: 700; }

::selection { background: var(--flame); color: var(--char); }

main { display: block; }

#main-content { scroll-margin-top: 128px; }

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.surface-paper :focus-visible,
.surface-pulp :focus-visible { outline-color: var(--flame-deep); }

/* ---------- 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 900px; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.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;
}

.section { padding-block: clamp(40px, 6vw, 92px); }

.section--tight { padding-block: clamp(26px, 4vw, 56px); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 20px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--char);
  background: var(--cyan);
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--char); outline-offset: 2px; }

/* ============================================================
   头部 · 双层命令栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--char);
  color: var(--paper);
  border-bottom: 1px solid var(--hair-dark);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}

.site-header.is-scrolled {
  background: var(--char-lift);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}

/* 阅读进度条 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(36, 240, 200, .1);
  pointer-events: none;
  z-index: 3;
}

.scroll-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--flame), var(--amber) 58%, var(--cyan));
  transition: transform .09s linear;
}

/* 上层状态轨道 */
.cmd-rail {
  background:
    linear-gradient(90deg, rgba(255, 90, 42, .16), transparent 62%),
    repeating-linear-gradient(-45deg, rgba(245, 242, 234, .05) 0 1px, transparent 1px 9px);
  border-bottom: 1px solid var(--hair-soft);
}

.cmd-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-block: 4px;
  padding-inline: var(--gutter);
}

.cmd-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(36, 240, 200, .55);
  animation: hb-pulse 2.4s ease-out infinite;
}

@keyframes hb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(36, 240, 200, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(36, 240, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 240, 200, 0); }
}

.cmd-rail__meta {
  margin-inline: auto 0;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  white-space: nowrap;
}

.util-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--paper);
  background: rgba(245, 242, 234, .04);
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.util-btn:hover,
.util-btn:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(36, 240, 200, .08);
}

.util-btn--hot {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--char);
}

.util-btn--hot:hover,
.util-btn--hot:focus-visible {
  background: var(--flame-deep);
  border-color: var(--flame-deep);
  color: var(--paper);
}

/* 下层命令条 */
.cmd-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-block: 10px;
  padding-inline: var(--gutter);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.brand-lockup__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--char);
  background: var(--flame);
  border-radius: 1px;
  transform: skewX(-9deg);
  box-shadow: 4px 4px 0 rgba(201, 39, 29, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.brand-lockup:hover .brand-lockup__mark,
.brand-lockup:focus-visible .brand-lockup__mark {
  transform: skewX(-9deg) translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(201, 39, 29, .45);
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.brand-lockup__name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  letter-spacing: .04em;
}

.brand-lockup__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--paper);
  background: rgba(245, 242, 234, .04);
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible { color: var(--flame); border-color: var(--flame); }

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 主导航 */
.primary-nav { display: flex; align-items: center; }

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

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px 11px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--paper);
  border-radius: var(--radius);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .07em;
  color: var(--paper-faint);
  transition: color .18s var(--ease);
}

.nav-link__label { position: relative; z-index: 1; }

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

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 90, 42, .1);
}

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

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

.nav-link[aria-current="page"] {
  color: var(--amber);
  background: rgba(255, 176, 0, .09);
}

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

.nav-link[aria-current="page"] .nav-link__idx { color: var(--amber); }

/* ============================================================
   页脚 · 装订档案
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--char);
  color: var(--paper);
  border-top: 3px solid var(--flame);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 8% 0%, rgba(255, 90, 42, .13), transparent 62%),
    repeating-linear-gradient(90deg, rgba(245, 242, 234, .03) 0 1px, transparent 1px 90px);
}

.footer-rail {
  position: relative;
  background: var(--pitch);
  border-bottom: 1px solid rgba(36, 240, 200, .16);
}

.footer-rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 40px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-rail__item {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-mute);
  padding: 6px 16px 6px 0;
}

.footer-rail__item + .footer-rail__item {
  padding-left: 16px;
  border-left: 1px solid rgba(245, 242, 234, .12);
}

.footer-rail__item:last-child { color: var(--cyan); padding-right: 0; }

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, .85fr));
  gap: clamp(26px, 3.4vw, 52px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 66px) var(--gutter) clamp(24px, 3.4vw, 46px);
}

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

.footer-brand__line {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  letter-spacing: .02em;
  color: var(--paper);
  max-width: none;
}

.footer-brand__desc {
  margin-top: 10px;
  max-width: 42ch;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--paper-mute);
}

.footer-contact {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--hair-dark);
}

.footer-contact__head {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  max-width: none;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: .86rem;
}

.contact-item__label {
  flex: none;
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  color: var(--paper-faint);
}

.contact-item__value {
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--paper);
  word-break: break-word;
}

.copy-btn {
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--paper-mute);
  background: transparent;
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}

.copy-btn:hover,
.copy-btn:focus-visible { color: var(--cyan); border-color: var(--cyan); }

.copy-btn[data-copied="true"] {
  color: var(--char);
  background: var(--cyan);
  border-color: var(--cyan);
}

.footer-brand__note {
  margin-top: 10px;
  max-width: 40ch;
  font-size: .76rem;
  line-height: 1.65;
  color: var(--paper-faint);
}

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

.footer-col__title {
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid var(--hair-dark);
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.footer-link {
  display: inline-block;
  font-size: .9rem;
  color: var(--paper-mute);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-link::before {
  content: "›";
  display: inline-block;
  width: 0;
  overflow: hidden;
  color: var(--flame);
  transition: width .18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible { color: var(--paper); }

.footer-link:hover::before,
.footer-link:focus-visible::before { width: 12px; }

.footer-bottom {
  position: relative;
  background: rgba(0, 0, 0, .3);
  border-top: 1px solid var(--hair-soft);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 15px var(--gutter);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--paper-faint);
}

.footer-legal { color: var(--paper-mute); }

.footer-domain { color: var(--paper-faint); }

.footer-copy { color: var(--paper-faint); }

/* ============================================================
   通用按钮 / 标签 / 标题 / 卡片
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.btn--primary {
  background: var(--flame);
  color: var(--char);
  box-shadow: 4px 4px 0 rgba(201, 39, 29, .55);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--flame-deep);
  color: var(--paper);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(201, 39, 29, .45);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--hair-dark);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(36, 240, 200, .07);
}

.surface-paper .btn--ghost,
.surface-pulp .btn--ghost {
  color: var(--ink);
  border-color: var(--hair-light);
}

.surface-paper .btn--ghost:hover,
.surface-pulp .btn--ghost:hover {
  color: var(--flame-deep);
  border-color: var(--flame-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--flame);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 176, 0, .14);
  border: 1px solid rgba(255, 176, 0, .32);
  border-radius: var(--radius);
}

.tag--cyan { color: var(--cyan); background: rgba(36, 240, 200, .12); border-color: rgba(36, 240, 200, .34); }
.tag--flame { color: var(--flame); background: rgba(255, 90, 42, .14); border-color: rgba(255, 90, 42, .38); }
.tag--wine { color: #F4CBD6; background: rgba(107, 31, 53, .55); border-color: rgba(107, 31, 53, .9); }
.tag--indigo { color: #C9C6FF; background: rgba(29, 27, 79, .6); border-color: rgba(29, 27, 79, .95); }

.rule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: clamp(16px, 2.4vw, 28px);
  border-bottom: 2px solid var(--flame);
}

.rule-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1;
  letter-spacing: .01em;
}

.rule-head__meta {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-mute);
  white-space: nowrap;
}

.surface-paper .rule-head { border-color: var(--ink); }
.surface-paper .rule-head__meta { color: var(--ink-mute); }

.paper-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--hair-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.4vw, 32px);
}

.paper-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(18, 19, 22, .04) 0 1px, transparent 1px 4px);
  opacity: .55;
}

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

.data-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: rgba(36, 240, 200, .07);
  border: 1px solid rgba(36, 240, 200, .24);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius);
}

.data-chip__value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.data-chip__label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.surface-paper .data-chip { background: rgba(11, 26, 23, .05); border-color: rgba(11, 26, 23, .2); }
.surface-paper .data-chip__value { color: var(--ink); }
.surface-paper .data-chip__label { color: var(--ink-mute); }

/* 面包屑 */
.breadcrumbs {
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

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

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

.breadcrumbs__list li + li::before {
  content: "/";
  color: var(--flame);
  opacity: .8;
}

.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

.surface-paper .breadcrumbs { color: var(--ink-mute); }
.surface-paper .breadcrumbs [aria-current="page"] { color: var(--ink); }
.surface-paper .breadcrumbs a:hover { color: var(--flame-deep); }

/* 图片容器 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: var(--pitch);
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(36, 240, 200, .12), transparent 58%),
    repeating-linear-gradient(90deg, rgba(245, 242, 234, .05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(245, 242, 234, .05) 0 1px, transparent 1px 32px);
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame--skew {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.media-frame__label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--char);
  background: var(--amber);
  border-radius: var(--radius);
}

.media-frame__num {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

/* 分区底色 */
.surface-paper { background: var(--paper); color: var(--ink); }
.surface-pulp { background: var(--pulp); color: var(--ink); }
.surface-pitch { background: var(--pitch); color: var(--paper); }
.surface-wine { background: var(--wine); color: var(--paper); }
.surface-indigo { background: var(--indigo); color: var(--paper); }

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

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* 显现 */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

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

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) {
  .cmd-rail__meta { display: none; }
  .nav-link { padding-inline: 10px; font-size: .84rem; }
  .nav-link::after { left: 10px; right: 10px; }
}

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    z-index: 95;
    background: var(--pitch);
    border-top: 1px solid rgba(36, 240, 200, .18);
    border-bottom: 2px solid var(--flame);
    box-shadow: 0 26px 48px rgba(0, 0, 0, .6);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .primary-nav[data-open] {
    display: block;
    animation: nav-drop .2s var(--ease);
  }

  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }

  .nav-link {
    padding: 15px 6px;
    font-size: 1rem;
    border-bottom: 1px dashed var(--hair-dark);
    border-radius: 0;
  }

  .nav-link::after {
    left: 6px;
    right: auto;
    bottom: 8px;
    width: 26px;
  }

  .nav-link[aria-current="page"] { background: rgba(255, 176, 0, .07); }

  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .cmd-rail__inner { min-height: 34px; }
  .cmd-status { font-size: .68rem; letter-spacing: .08em; }
  .cmd-main__inner { min-height: 62px; gap: 12px; }
  .brand-lockup__mark { width: 36px; height: 36px; font-size: 1.2rem; }
  .brand-lockup__name { font-size: 1rem; }
  .brand-lockup__sub { font-size: .58rem; letter-spacing: .16em; }
  .util-btn { padding: 4px 9px; font-size: .68rem; letter-spacing: .06em; }
  .nav-toggle { padding: 8px 11px; }
  .nav-toggle__label { display: none; }
  .footer-rail__inner { justify-content: flex-start; }
  .footer-rail__item { font-size: .6rem; letter-spacing: .16em; padding-right: 12px; }
  .footer-rail__item + .footer-rail__item { padding-left: 12px; }
  .footer-bottom__inner { font-size: .64rem; letter-spacing: .06em; }
}

@media (max-width: 600px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr; }
  .contact-item__value { font-size: .76rem; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .pulse-dot { animation: none; box-shadow: 0 0 0 3px rgba(36, 240, 200, .18); }

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

  .primary-nav[data-open] { animation: none; }
}
