/* ============================================================
   乐虎国玩家 · 共享站点样式 /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 {
  margin: 0;
}

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

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

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

a { color: inherit; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0B1A15;
  --panel: #12291F;
  --panel-deep: #0E211A;
  --orange: #FF7A18;
  --orange-soft: #FFB067;
  --purple: #7C4DFF;
  --purple-deep: #4B2E9E;
  --cyan: #35F0CE;
  --paper: #F4F1E8;
  --muted: #9AAFA6;
  --alert: #F0574B;
  --pixel: #E9D66B;

  /* 线与面 */
  --line-warm: rgba(255, 122, 24, 0.26);
  --line-cool: rgba(53, 240, 206, 0.22);
  --line-dim: rgba(154, 175, 166, 0.18);
  --grad-warm: linear-gradient(100deg, #FFB067, #FF7A18 55%, #F0574B);
  --grad-cool: linear-gradient(100deg, #4B2E9E, #7C4DFF 70%, #35F0CE);
  --grad-band: linear-gradient(90deg, #FF7A18, #7C4DFF 68%, #35F0CE);

  /* 虎纹斜条 */
  --tiger: repeating-linear-gradient(
    8deg,
    rgba(255, 122, 24, 0.10) 0 6px,
    transparent 6px 18px,
    rgba(124, 77, 255, 0.10) 18px 24px,
    transparent 24px 40px
  );

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas,
    "Courier New", "PingFang SC", monospace;

  /* 度量 */
  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-cut: 12px;
  --clip-cut: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.36);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 520px at 84% -10%, rgba(124, 77, 255, 0.18), transparent 62%),
    radial-gradient(900px 420px at 2% 2%, rgba(255, 122, 24, 0.12), transparent 64%),
    var(--tiger);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; }
h2 { font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-size: 20px; line-height: 1.35; }
h4 { font-size: 17px; line-height: 1.4; letter-spacing: 0; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: #fff; }

::selection {
  background: rgba(255, 122, 24, 0.4);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 400;
  display: inline-block;
  padding: 9px 18px;
  background: var(--cyan);
  color: #06231C;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: top 180ms ease-out;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 26, 21, 0.97);
  border-bottom: 1px solid rgba(255, 122, 24, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 5.1 播报带 */
.broadcast {
  background-color: var(--panel-deep);
  background-image:
    linear-gradient(90deg, rgba(255, 122, 24, 0.16), transparent 36%, transparent 64%, rgba(124, 77, 255, 0.2)),
    var(--tiger);
  border-bottom: 1px solid var(--line-cool);
}

.broadcast__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 18px;
  transform: skewX(-14deg);
  background: linear-gradient(105deg, var(--orange-soft), var(--orange) 44%, var(--purple));
  box-shadow: 0 0 0 1px rgba(255, 176, 103, 0.45), 0 0 14px rgba(255, 122, 24, 0.32);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    105deg,
    rgba(11, 26, 21, 0.92) 0 2px,
    transparent 2px 6px
  );
}

.brand__text {
  display: inline-block;
  transform: skewX(-3deg);
  color: var(--paper);
}

.brand:hover .brand__text { color: #fff; }

/* 5.2 滚动播报 */
.broadcast__feed {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.broadcast__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--cyan);
  padding: 1px 7px;
  border: 1px solid rgba(53, 240, 206, 0.4);
  border-radius: 2px;
  background: rgba(53, 240, 206, 0.08);
  white-space: nowrap;
}

.ticker {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 30px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 30px), transparent);
}

.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.ticker__track[data-ticker-ready="true"] {
  animation: ticker-scroll 40s linear infinite;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 26px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(244, 241, 232, 0.84);
  white-space: nowrap;
}

.ticker__item::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 8px;
  background: var(--orange);
  transform: rotate(45deg);
  opacity: 0.75;
}

.ticker__time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

/* 5.3 右侧元信息 */
.broadcast__meta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--cyan);
  background: rgba(53, 240, 206, 0.08);
  border: 1px solid rgba(53, 240, 206, 0.38);
  border-radius: 2px;
  white-space: nowrap;
}

.version-tag__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 7px var(--cyan);
}

.search-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--paper);
  text-decoration: none;
  background: rgba(255, 122, 24, 0.12);
  border: 1px solid rgba(255, 122, 24, 0.46);
  border-radius: 2px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.search-link:hover {
  background: rgba(255, 122, 24, 0.26);
  border-color: var(--orange-soft);
  color: #fff;
}

/* 5.4 命令栏导航 */
.nav-bar {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 41, 31, 0.94), rgba(11, 26, 21, 0.94));
  border-top: 1px solid rgba(255, 122, 24, 0.08);
}

.nav-bar__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 52px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: stretch;
  height: 52px;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav__list::-webkit-scrollbar { display: none; }

.nav__item { display: flex; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 13px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.nav__index {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(154, 175, 166, 0.72);
  transition: color 180ms ease;
}

.nav__label { display: inline-block; }

.nav__link:hover {
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(255, 122, 24, 0.10));
}

.nav__link:hover .nav__index { color: var(--cyan); }
.nav__link:hover::after { background: rgba(53, 240, 206, 0.55); }

.nav__link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(255, 122, 24, 0.14));
}

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

.nav__link[aria-current="page"]::after {
  background: linear-gradient(90deg, var(--orange-soft), var(--orange));
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.6);
}

/* 5.5 移动端抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 122, 24, 0.13);
  border: 1px solid rgba(255, 122, 24, 0.48);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-toggle:hover {
  background: rgba(255, 122, 24, 0.24);
  border-color: var(--orange-soft);
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(124, 77, 255, 0.24);
  border-color: rgba(124, 77, 255, 0.7);
}

.nav-toggle__icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--orange-soft);
  transition: transform 180ms ease;
}

.nav-toggle__icon::before { top: 0; box-shadow: 0 5px 0 var(--orange-soft); }
.nav-toggle__icon::after { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(5px) rotate(45deg);
  box-shadow: none;
  background: var(--cyan);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-5px) rotate(-45deg);
  background: var(--cyan);
}

.nav-toggle__text { display: inline-block; }

/* 5.6 阅读进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-band);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 7vw, 84px);
  border-top: 1px solid rgba(255, 122, 24, 0.24);
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(18, 41, 31, 0.9), rgba(11, 26, 21, 0.98) 62%),
    var(--tiger);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 38px var(--gutter) 0;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-dim);
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.footer-brand__name {
  display: inline-block;
  transform: skewX(-3deg);
}

.footer-brand__link:hover .footer-brand__name { color: #fff; }

.footer-brand__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 26px;
}

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

.footer-col__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.footer-col__title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 13px;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-link {
  position: relative;
  display: inline-block;
  padding-left: 13px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 2px;
  background: rgba(53, 240, 206, 0.55);
  transition: width 180ms ease, background 180ms ease;
}

.footer-link:hover { color: var(--paper); }
.footer-link:hover::before { width: 10px; background: var(--orange); }

.footer-contact {
  display: grid;
  gap: 11px;
  font-size: 14px;
}

.footer-contact__row {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: rgba(154, 175, 166, 0.88);
}

.footer-contact__val {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(244, 241, 232, 0.92);
  overflow-wrap: break-word;
}

.footer-stripes {
  height: 54px;
  margin-bottom: 14px;
  background-color: var(--panel);
  border: 1px solid rgba(255, 122, 24, 0.3);
  clip-path: var(--clip-cut);
}

.footer-note {
  margin: 0 0 8px;
  padding-left: 11px;
  border-left: 3px solid var(--orange);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.footer-note--dim {
  border-left-color: rgba(124, 77, 255, 0.85);
  color: rgba(154, 175, 166, 0.8);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 32px;
  padding: 15px 0 17px;
  border-top: 1px solid rgba(53, 240, 206, 0.18);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(154, 175, 166, 0.9);
}

.footer-bottom__ver { color: var(--cyan); }
.footer-bottom__sep { color: rgba(154, 175, 166, 0.4); }
.footer-bottom__item { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 7. 通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(34px, 5.4vw, 68px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--grad-band);
}

.display-skew {
  display: inline-block;
  transform: skewX(-3deg);
}

.num {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

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

.crumb li { display: inline-flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: "/"; color: rgba(154, 175, 166, 0.45); }
.crumb a { color: var(--muted); text-decoration: none; transition: color 180ms ease; }
.crumb a:hover { color: var(--orange-soft); }
.crumb [aria-current="page"] { color: var(--paper); }

/* 按钮 */
.btn {
  --btn-fg: #0B1A15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--grad-warm);
  border: 1px solid rgba(255, 176, 103, 0.62);
  border-radius: 2px;
  cursor: pointer;
  clip-path: var(--clip-cut);
  transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(255, 122, 24, 0.28);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-fg: var(--paper);
  background: rgba(124, 77, 255, 0.18);
  border-color: rgba(124, 77, 255, 0.6);
  color: var(--paper);
}

.btn--ghost:hover {
  background: rgba(124, 77, 255, 0.3);
  box-shadow: 0 12px 28px rgba(124, 77, 255, 0.26);
}

.btn--quiet {
  --btn-fg: var(--cyan);
  background: transparent;
  border-color: rgba(53, 240, 206, 0.5);
  color: var(--cyan);
}

.btn--quiet:hover {
  background: rgba(53, 240, 206, 0.1);
  box-shadow: 0 12px 28px rgba(53, 240, 206, 0.18);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--orange-soft);
  background: rgba(255, 122, 24, 0.1);
  border: 1px solid rgba(255, 122, 24, 0.46);
  border-radius: 999px;
  white-space: nowrap;
}

.tag--purple {
  color: #BFA8FF;
  background: rgba(124, 77, 255, 0.15);
  border-color: rgba(124, 77, 255, 0.58);
}

.tag--pixel {
  color: var(--pixel);
  background: rgba(233, 214, 107, 0.1);
  border-color: rgba(233, 214, 107, 0.5);
  border-radius: 2px;
  transition: transform 180ms ease;
}

.tag--pixel:hover { transform: translate(1px, -1px); }

/* 面板 */
.panel {
  background: linear-gradient(160deg, rgba(18, 41, 31, 0.97), rgba(14, 33, 26, 0.97));
  border: 1px solid var(--line-dim);
  padding: clamp(16px, 2.4vw, 24px);
}

.panel--clip { clip-path: var(--clip-cut); }

.panel--neon {
  border-color: rgba(53, 240, 206, 0.36);
  box-shadow: inset 0 0 0 1px rgba(53, 240, 206, 0.08), var(--shadow-soft);
}

/* 章节斜带 */
.rule-band {
  height: 8px;
  background: var(--grad-band);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  opacity: 0.9;
}

/* 虎纹纹理 */
.tiger-stripes {
  background-image: repeating-linear-gradient(
    8deg,
    rgba(255, 122, 24, 0.22) 0 5px,
    transparent 5px 16px,
    rgba(124, 77, 255, 0.22) 16px 21px,
    transparent 21px 34px
  );
}

/* 图片容器 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--panel);
  background-image:
    linear-gradient(160deg, rgba(124, 77, 255, 0.34), rgba(11, 26, 21, 0.9) 56%, rgba(255, 122, 24, 0.22)),
    var(--tiger);
  border: 1px solid rgba(53, 240, 206, 0.24);
  clip-path: var(--clip-cut);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(53, 240, 206, 0.06) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: screen;
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 232, 0.92);
  background: linear-gradient(180deg, transparent, rgba(11, 26, 21, 0.9));
}

/* 视口显现 */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 340ms ease-out, transform 340ms ease-out;
}

.has-js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav__link { padding: 0 10px; font-size: 14px; }
  .nav__link::after { left: 9px; right: 9px; }
}

@media (max-width: 940px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .broadcast__label { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-bar__inner {
    min-height: 50px;
    padding-inline: var(--gutter);
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    height: auto;
    padding: 8px var(--gutter) 16px;
    background-color: var(--panel-deep);
    background-image: var(--tiger);
    border-bottom: 1px solid rgba(255, 122, 24, 0.34);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
  }

  .nav[data-open="true"] { display: flex; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    height: auto;
    width: 100%;
    overflow: visible;
  }

  .nav__item { display: block; }

  .nav__link {
    width: 100%;
    height: auto;
    padding: 12px 10px 12px 15px;
    font-size: 15px;
    border-bottom: 1px solid rgba(154, 175, 166, 0.12);
  }

  .nav__link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 22px;
    transform: translateY(-50%);
  }

  .nav__link[aria-current="page"]::after {
    box-shadow: 0 0 10px rgba(255, 122, 24, 0.55);
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .footer-grid { gap: 26px 20px; }
  .site-footer__inner { padding-top: 30px; }
}

@media (max-width: 640px) {
  .broadcast__inner { gap: 10px; }
  .search-link { display: none; }
  .brand { font-size: 14px; }
  .brand__mark { width: 18px; height: 15px; }
  .ticker__item { font-size: 11.5px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { margin-bottom: 22px; }
  .footer-bottom { font-size: 11px; gap: 6px 10px; }
}

@media (max-width: 400px) {
  .version-tag { font-size: 10px; padding: 1px 6px; }
}

/* ---------- 9. 动效降级 ---------- */
@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;
  }

  .ticker__track { animation: none !important; }

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

  .btn:hover,
  .tag--pixel:hover { transform: none; }
}
