/* ============================================================
   安博电竞娱乐 CN站 · 星图版 / Site Kit
   /assets/site.css — reset · tokens · header · footer · 通用组件
   ============================================================ */

*,
*::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 {
  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;
  padding: 0;
  cursor: pointer;
  border-radius: 0;
}

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

:focus-visible {
  outline: 2px solid #3DF2E6;
  outline-offset: 3px;
}

::selection {
  background: #7A5CFF;
  color: #F4F6FF;
}

/* ---------- tokens ---------- */
:root {
  --ink-0: #070A14;
  --ink-1: #0D1426;
  --purple: #7A5CFF;
  --cyan: #3DF2E6;
  --magenta: #FF3FA4;
  --gold: #FFC857;
  --text: #F4F6FF;
  --muted: #A6B1CC;
  --line: #2A3350;
  --green: #46E6A0;

  --font-head: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1360px;
  --pad: clamp(18px, 4vw, 48px);
  --grid-gap: clamp(16px, 2vw, 24px);
  --section-space: clamp(56px, 8vw, 132px);
  --rule: 1px solid var(--line);
}

/* ---------- 中文排版基座 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--ink-0);
  background-image:
    linear-gradient(to right, rgba(42, 51, 80, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 51, 80, 0.22) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
}

h1 { font-size: clamp(36px, 6vw, 88px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

p { color: var(--muted); }

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

#main-content { display: block; scroll-margin-top: 140px; }

/* ---------- 布局原子 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.anno {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.9;
}

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

.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(61, 242, 230, 0.45);
}

.prose ul, .prose ol {
  padding-left: 1.2em;
  list-style: none;
}

.prose li { position: relative; padding-left: 16px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 1px;
  background: var(--purple);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(13, 20, 38, 0.75);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  transition: transform 0.16s ease, background-color 0.16s ease,
              border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-0);
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(255, 200, 87, 0);
}

.btn--gold:hover {
  background: #FFD67E;
  border-color: #FFD67E;
  box-shadow: 0 8px 26px rgba(255, 200, 87, 0.28);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(61, 242, 230, 0.4);
  color: var(--cyan);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(61, 242, 230, 0.08);
}

.btn--sm {
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -130%);
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: transform 0.16s ease;
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 10, 20, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--ink-0); }
}

/* 顶部状态横条 */
.header-rail {
  border-bottom: 1px solid rgba(42, 51, 80, 0.65);
  background:
    linear-gradient(90deg, rgba(122, 92, 255, 0.12), rgba(7, 10, 20, 0) 34%, rgba(7, 10, 20, 0) 68%, rgba(61, 242, 230, 0.09));
}

.header-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
}

.rail-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(166, 177, 204, 0.85);
}

.rail-note::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--purple);
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rail-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.16s ease;
}

.rail-link:hover { color: var(--cyan); }

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

.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(166, 177, 204, 0.9);
}

.status-lamp__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(70, 230, 160, 0.9);
}

.rail-coord {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(166, 177, 204, 0.5);
}

/* 刊头 */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
}

.masthead__side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.masthead__side--right {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(122, 92, 255, 0.95);
}

.brand-tag {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(166, 177, 204, 0.8);
}

.masthead__brand {
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.brand-name {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 0 32px rgba(122, 92, 255, 0.38);
  transition: color 0.16s ease, text-shadow 0.16s ease;
}

.masthead__brand:hover .brand-name {
  color: #FFFFFF;
  text-shadow: 0 0 34px rgba(61, 242, 230, 0.55);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(13, 20, 38, 0.85);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav-toggle:hover,
.site-header[data-open] .nav-toggle {
  color: var(--cyan);
  border-color: rgba(61, 242, 230, 0.5);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 9px; }

.site-header[data-open] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

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

/* 主导航 */
.nav-bar {
  border-top: 1px solid var(--line);
}

.primary-nav { width: 100%; }

.primary-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2.4vw, 34px);
  padding-block: 2px;
  counter-reset: navidx;
}

.primary-nav__item { counter-increment: navidx; }

.primary-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 4px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--muted);
  transition: color 0.16s ease, border-color 0.16s ease, text-shadow 0.16s ease;
}

.primary-nav__link::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(166, 177, 204, 0.45);
  transition: color 0.16s ease;
}

.primary-nav__link:hover {
  color: var(--text);
  border-bottom-color: rgba(61, 242, 230, 0.5);
}

.primary-nav__link:hover::before { color: rgba(61, 242, 230, 0.85); }

.primary-nav__link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 18px rgba(61, 242, 230, 0.45);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: var(--section-space);
  background: linear-gradient(180deg, rgba(13, 20, 38, 0.95) 0%, #070A14 68%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 92, 255, 0.9), rgba(61, 242, 230, 0.55), transparent);
}

.footer-orbit {
  position: absolute;
  right: -170px;
  top: -140px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(122, 92, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.footer-orbit::before {
  content: "";
  position: absolute;
  inset: 74px;
  border: 1px solid rgba(61, 242, 230, 0.16);
  border-radius: 50%;
}

.footer-orbit::after {
  content: "";
  position: absolute;
  inset: 158px;
  border: 1px dashed rgba(255, 63, 164, 0.18);
  border-radius: 50%;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 68px);
  padding-block: clamp(44px, 6vw, 80px) clamp(28px, 4vw, 46px);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--text);
}

.footer-brand__tag {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(166, 177, 204, 0.85);
}

.footer-brand__note {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(122, 92, 255, 0.95);
}

.footer-address {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(166, 177, 204, 0.62);
}

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

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col__title::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--magenta);
}

.footer-col__list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.footer-col__link {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-col__link:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

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

.footer-contact {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid rgba(42, 51, 80, 0.75);
}

.footer-contact__line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(166, 177, 204, 0.9);
}

.footer-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-btn,
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: rgba(13, 20, 38, 0.8);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.copy-btn:hover,
.to-top:hover {
  color: var(--cyan);
  border-color: rgba(61, 242, 230, 0.55);
  background: rgba(61, 242, 230, 0.07);
}

.copy-btn[data-copied="true"] {
  color: var(--gold);
  border-color: rgba(255, 200, 87, 0.6);
}

.to-top {
  color: var(--text);
  border-color: rgba(255, 200, 87, 0.45);
}

.to-top:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 200, 87, 0.08);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid rgba(42, 51, 80, 0.75);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(166, 177, 204, 0.7);
}

.footer-legal__text,
.footer-legal__icp { color: inherit; }

.footer-legal__coord {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(166, 177, 204, 0.4);
}

/* ============================================================
   通用组件
   ============================================================ */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  font-size: clamp(24px, 3.2vw, 40px);
}

.section-head__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(166, 177, 204, 0.75);
}

.coord-corner { position: relative; }

.coord-corner::before,
.coord-corner::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(61, 242, 230, 0.6);
  pointer-events: none;
}

.coord-corner::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.coord-corner::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

/* 控制台面板 */
.panel {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 20, 38, 0.95), rgba(7, 10, 20, 0.92));
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), rgba(122, 92, 255, 0) 72%);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(42, 51, 80, 0.75);
}

.panel__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-block: 8px;
  border-bottom: 1px dashed rgba(42, 51, 80, 0.55);
}

.panel__row:last-child { border-bottom: 0; }

.panel__label {
  font-size: 13px;
  color: var(--muted);
}

.panel__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.panel__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(70, 230, 160, 0.85);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(61, 242, 230, 0.45);
  background: rgba(61, 242, 230, 0.08);
}

.tag--magenta {
  color: var(--magenta);
  border-color: rgba(255, 63, 164, 0.45);
  background: rgba(255, 63, 164, 0.08);
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(255, 200, 87, 0.45);
  background: rgba(255, 200, 87, 0.08);
}

/* 图片容器基座（页面阶段放占位图） */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(158deg, rgba(13, 20, 38, 1), rgba(7, 10, 20, 0.96) 62%),
    radial-gradient(circle at 78% 18%, rgba(122, 92, 255, 0.35), transparent 58%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(42, 51, 80, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 51, 80, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 88%, rgba(61, 242, 230, 0.16), transparent 62%);
  pointer-events: none;
}

.media-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06) brightness(0.92);
}

.media-frame__caption {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.72);
}

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

/* 面包屑 */
.breadcrumb {
  padding-block: 14px;
  border-bottom: 1px solid rgba(42, 51, 80, 0.55);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(166, 177, 204, 0.38);
}

.breadcrumb__link { color: var(--muted); transition: color 0.16s ease; }
.breadcrumb__link:hover { color: var(--cyan); }

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

/* 筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(13, 20, 38, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--muted);
  transition: color 0.16s ease, border-color 0.16s ease,
              background-color 0.16s ease, transform 0.16s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(61, 242, 230, 0.4);
  transform: translateY(-1px);
}

.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-0);
  font-weight: 700;
}

[data-filter-item][hidden] { display: none !important; }

/* 显现 */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }

.js .reveal[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

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

/* 滚动进度（JS 注入） */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  z-index: 130;
  background: linear-gradient(90deg, var(--purple), var(--cyan) 55%, var(--magenta));
  pointer-events: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-address { max-width: 44ch; }
}

@media (max-width: 900px) {
  .header-rail { display: none; }

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 12px;
    gap: 10px;
  }

  .masthead__side--left { display: none; }

  .masthead__brand { justify-content: flex-start; text-align: left; }

  .masthead__side--right { gap: 10px; }

  .brand-name { font-size: 22px; letter-spacing: 0.04em; }

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

  .nav-bar { border-top: 1px solid var(--line); }

  .primary-nav { display: none; }

  .site-header[data-open] .primary-nav { display: block; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 4px 12px;
  }

  .primary-nav__item { border-bottom: 1px solid rgba(42, 51, 80, 0.6); }

  .primary-nav__item:last-child { border-bottom: 0; }

  .primary-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 2px;
    font-size: 15px;
  }

  .primary-nav__link[aria-current="page"] {
    border-bottom-color: transparent;
    box-shadow: inset 2px 0 0 var(--cyan);
    padding-left: 12px;
  }

  .grid12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 {
    grid-column: span 6;
  }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

  .footer-contact { flex-direction: column; align-items: flex-start; }

  .footer-legal { justify-content: flex-start; }

  .footer-orbit { right: -240px; top: -180px; opacity: 0.7; }
}

@media (max-width: 560px) {
  .masthead__side--right .btn--gold {
    padding: 9px 11px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .nav-toggle { padding: 8px 10px; }
  .nav-toggle__label { display: none; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-contact__line { font-size: 11px; letter-spacing: 0.04em; }
  .footer-legal { font-size: 10px; letter-spacing: 0.08em; }

  .panel { padding: 14px 14px; }
}

/* ============================================================
   动效偏好
   ============================================================ */
@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;
  }

  .btn:hover { transform: none; }
  .filter-btn:hover { transform: none; }
  .footer-col__link:hover { transform: none; }

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