/* ============================================================
   极速电竞 · 共享样式 /assets/site.css
   深空蓝黑控制台 + 奶油印刷展签
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 168px;
}
body, h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { 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; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-950: #04060D;
  --ink-900: #060A13;
  --panel-800: #0E1626;
  --panel-700: #141F33;
  --cream: #F2EDE0;
  --cream-line: #DCD4C2;
  --ink-on-cream: #111722;
  --cyan: #2FE3EA;
  --magenta: #FF3E9A;
  --yellow: #FFC63D;
  --orange: #F2623C;
  --steel: #93A2BC;

  --line-dark: rgba(147, 162, 188, 0.22);
  --line-cyan: rgba(47, 227, 234, 0.32);
  --line-warn: rgba(255, 198, 61, 0.45);

  --font-display: "Source Han Sans SC Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1280px;
  --gutter: clamp(1rem, 3vw, 2.75rem);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --step-1: clamp(1.6rem, 3.2vw, 2.6rem);
  --step-2: clamp(1.2rem, 2.1vw, 1.65rem);

  --dur: 240ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 580px at 82% -8%, rgba(47, 227, 234, 0.10), transparent 62%),
    radial-gradient(880px 520px at 6% 6%, rgba(255, 62, 154, 0.09), transparent 64%),
    var(--ink-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--cream);
}
h1 { font-size: var(--step-1); }
h2 { font-size: var(--step-2); }

p { max-width: 72ch; }

/* ---------- 4. Typography helpers ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.tick-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--steel);
}
.annot {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.annot--warn { color: var(--yellow); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. Layout ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.page-main { padding-block: clamp(1.25rem, 3vw, 2rem) 0; }
.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.catalog-rail { position: sticky; top: 172px; }
.catalog-main { min-width: 0; }

/* ---------- 6. Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--cyan);
  color: var(--ink-950);
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease-out;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 10, 19, 0.96);
  border-bottom: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 7.1 版本刻度带 */
.version-band {
  background: linear-gradient(90deg, rgba(47, 227, 234, 0.10), rgba(255, 62, 154, 0.10) 55%, rgba(242, 98, 60, 0.10));
  border-bottom: 1px solid rgba(47, 227, 234, 0.18);
}
.version-band__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-height: 40px;
  font-size: 12px;
}
.version-band__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: var(--steel);
}
.version-band__badge .mono {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}
.version-band__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 62, 154, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }
.version-band__rhythm {
  flex: 1;
  max-width: none;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.version-band__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.quick-link {
  display: inline-block;
  padding: 0.24rem 0.75rem;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.quick-link:hover { background: rgba(47, 227, 234, 0.16); border-color: var(--cyan); color: var(--cyan); }

/* 7.2 居中刊头 */
.masthead {
  border-bottom: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.92), rgba(6, 10, 19, 0.92));
}
.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: clamp(0.9rem, 1.8vw, 1.5rem) 0 clamp(0.7rem, 1.4vw, 1.05rem);
  transition: padding var(--dur) var(--ease);
}
.masthead__aside {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.masthead__aside--right { align-items: flex-end; text-align: right; }
.masthead__aside-num {
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}
.masthead__brand { text-align: center; }
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--cream);
  transition: font-size 200ms ease-out, color 160ms ease-out;
}
.brand:hover .brand__name { color: var(--cyan); }
.brand__rule {
  display: block;
  width: clamp(120px, 22vw, 240px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--orange));
}
.brand__note {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--steel);
}
.return-entry {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-end;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-md);
  background: rgba(47, 227, 234, 0.06);
  text-decoration: none;
  transition: background 160ms ease-out, border-color 160ms ease-out;
}
.return-entry__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.return-entry__note { font-size: 11px; letter-spacing: 0.06em; color: var(--steel); }
.return-entry:hover { background: rgba(47, 227, 234, 0.16); border-color: var(--cyan); }

/* 7.3 栏目条 */
.nav-bar { background: #080D18; border-bottom: 1px solid var(--line-dark); }
.nav-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.site-nav__link {
  display: block;
  padding: 0.5rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: rgba(242, 237, 224, 0.82);
  text-decoration: none;
  transition: color 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out;
}
.site-nav__link:hover { color: var(--cyan); background: rgba(47, 227, 234, 0.10); }
.site-nav__link[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-950);
  font-weight: 700;
}

/* 7.4 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-pill);
  background: rgba(47, 227, 234, 0.06);
  transition: background 160ms ease-out;
}
.nav-toggle:hover { background: rgba(47, 227, 234, 0.16); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.nav-toggle__text {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--cream);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 7.5 滚动进度 */
.header-progress {
  position: relative;
  height: 2px;
  background: rgba(147, 162, 188, 0.14);
  overflow: hidden;
}
.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 120ms linear;
}

/* 7.6 滚动收窄态 */
.site-header[data-scrolled="true"] .masthead__inner { padding: 0.35rem 0; }
.site-header[data-scrolled="true"] .brand__name { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.site-header[data-scrolled="true"] .brand__note,
.site-header[data-scrolled="true"] .return-entry__note,
.site-header[data-scrolled="true"] .masthead__aside--left { display: none; }

/* ---------- 8. Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--ink-950);
  border-top: 1px solid var(--line-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}
.footer__brand-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  transition: color 160ms ease-out;
}
.footer__brand-link:hover { color: var(--cyan); }
.footer__brand-note {
  margin-top: 0.55rem;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.footer__stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.32rem 0.85rem;
  border: 1px dashed var(--line-warn);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--yellow);
}
.footer__stamp .mono { font-size: 13px; font-weight: 700; color: var(--yellow); }
.footer__stamp .tick-label { color: var(--yellow); opacity: 0.85; }
.footer__col-title {
  margin-bottom: 0.95rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.footer__col-list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col-link {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(242, 237, 224, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}
.footer__col-link:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }

.footer__contact-panel {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: 0.5rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink-on-cream);
}
.footer__contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(17, 23, 34, 0.05) 0 1px, transparent 1px 6px);
}
.footer__panel-lead,
.footer__contact-list { position: relative; z-index: 1; }
.footer__panel-lead .tick-label { color: rgba(17, 23, 34, 0.5); }
.footer__panel-title {
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--ink-on-cream);
}
.footer__note {
  margin-top: 0.7rem;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(17, 23, 34, 0.68);
}
.footer__contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}
.footer__contact-item--wide { grid-column: 1 / -1; }
.footer__contact-list dt {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(17, 23, 34, 0.52);
}
.footer__contact-list dd {
  margin: 0.25rem 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-on-cream);
}
.footer__contact-list .mono {
  font-size: 14px;
  font-weight: 600;
  color: #0D5A63;
  word-break: break-all;
}
.footer__base { background: #03050A; border-top: 1px solid var(--line-dark); }
.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 0 1.4rem;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.footer__copy { max-width: none; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-inline: auto; }
.footer__legal a { color: var(--steel); text-decoration: none; transition: color 160ms ease-out; }
.footer__legal a:hover { color: var(--cyan); }
.footer__icp { font-family: var(--font-mono); color: rgba(147, 162, 188, 0.8); }

/* ---------- 9. Shared components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}
.btn--primary { background: var(--magenta); color: #12040C; }
.btn--primary:hover { background: #FF6CB0; }
.btn--ghost { border-color: var(--line-cyan); color: var(--cyan); background: rgba(47, 227, 234, 0.07); }
.btn--ghost:hover { background: rgba(47, 227, 234, 0.18); }
.btn--quiet { border-color: var(--line-dark); color: var(--cream); background: rgba(147, 162, 188, 0.06); }
.btn--quiet:hover { border-color: var(--steel); background: rgba(147, 162, 188, 0.14); }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--cream);
  text-decoration: none;
  transition: color 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out;
}
.pill-link:hover { color: var(--cyan); border-color: var(--line-cyan); background: rgba(47, 227, 234, 0.08); }

.breadcrumb {
  padding-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(147, 162, 188, 0.5); }
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cream); }

.panel-cream {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink-on-cream);
  border: 1px solid var(--cream-line);
}
.panel-cream h2, .panel-cream h3 { color: var(--ink-on-cream); }
.panel-cream a { color: #0D5A63; }

.prose { max-width: 68ch; font-size: 16px; line-height: 1.78; }
.prose > * + * { margin-top: 0.9rem; }
.prose h2 { margin-top: 1.8rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose--on-dark { color: rgba(242, 237, 224, 0.84); }
.prose--on-dark a { color: var(--cyan); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-dark);
}
.section-head__title { font-size: var(--step-1); letter-spacing: 0.04em; }
.section-head__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}
.capsule--section {
  padding: 0.35rem 0.8rem;
  font-size: 12px;
  border: 1px solid var(--line-cyan);
  color: var(--cyan);
  background: rgba(47, 227, 234, 0.07);
}
.capsule--spec {
  padding: 0.3rem 0.7rem;
  font-size: 12px;
  border: 1px solid var(--line-warn);
  color: var(--yellow);
  background: rgba(255, 198, 61, 0.08);
}
.capsule--state {
  padding: 0.28rem 0.65rem;
  font-size: 11px;
  font-weight: 700;
  background: var(--magenta);
  color: #12040C;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #101A2B, #070C16);
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--card { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05) hue-rotate(-6deg);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(147, 162, 188, 0.10) 0 1px, transparent 1px 4px);
}
.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(4, 6, 13, 0.94), rgba(4, 6, 13, 0));
}
.media-frame--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: var(--line-dark);
  background: repeating-linear-gradient(135deg, rgba(147, 162, 188, 0.06) 0 10px, transparent 10px 20px);
}
.media-frame--empty .annot { color: var(--steel); }

.slant-band { clip-path: polygon(0 3.5%, 100% 0, 100% 100%, 0 100%); }
.slant-band--reverse { clip-path: polygon(0 0, 100% 3.5%, 100% 100%, 0 100%); }

.rule-scale {
  height: 14px;
  border-bottom: 1px solid var(--line-dark);
  background: repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 24px);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: var(--panel-800);
}
.segmented__btn {
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--steel);
  transition: color 160ms ease-out, background 160ms ease-out, box-shadow 160ms ease-out;
}
.segmented__btn:hover { color: var(--cream); }
.segmented__btn[aria-selected="true"] {
  color: var(--cyan);
  background: rgba(47, 227, 234, 0.14);
  box-shadow: inset 0 0 0 1px var(--cyan);
}
.tab-panel { animation: fade-in 240ms ease-out; }
.tab-panel[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.filter-chip {
  min-height: 36px;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--steel);
  transition: color 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out;
}
.filter-chip:hover { color: var(--cream); border-color: var(--steel); }
.filter-chip[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(47, 227, 234, 0.12);
}
[data-filter-item][hidden] { display: none; }

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) ease-out, transform var(--dur) ease-out;
}
html.has-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 10. 平板 ---------- */
@media (max-width: 1024px) {
  .version-band__rhythm { display: none; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contact-panel { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-rail { position: static; }
}

/* ---------- 11. 手机 ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 128px; }
  .masthead__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0;
  }
  .masthead__aside--left { display: none; }
  .masthead__aside--right { width: 100%; align-items: center; text-align: center; }
  .return-entry { width: 100%; align-items: center; text-align: center; }
  .brand__note { letter-spacing: 0.14em; }

  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; order: 3; width: 100%; }
  .site-nav[data-open] { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.35rem 0 0.85rem; }
  .site-nav__link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border-color: var(--line-dark);
    border-radius: var(--radius-md);
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .version-band__links { display: none; }
  .version-band__inner { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact-list { grid-template-columns: 1fr; }
  .footer__base-inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { margin-inline: 0; }
  .segmented { border-radius: var(--radius-md); }
}

/* ---------- 12. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.has-js [data-reveal] { opacity: 1; transform: none; }
  .tab-panel { animation: none; }
  .header-progress__bar { transition: none; }
}
