/* =========================================================
   6688体育中心 — 共享基础样式 /assets/site.css
   侧轨 + 命令栏外壳、通用组件、响应式与无障碍
   ========================================================= */

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

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

body {
  margin: 0;
  padding-top: var(--command-h);
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: var(--fs-2);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--paper);
  background-color: var(--ink-void);
  background-image:
    radial-gradient(120% 90% at 100% 0%, rgba(46, 42, 114, 0.55) 0%, rgba(46, 42, 114, 0) 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(14, 42, 47, 0.85) 0%, rgba(14, 42, 47, 0) 60%),
    linear-gradient(180deg, #0b1b3a 0%, #0a1730 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

p {
  margin: 0;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* 品牌色 */
  --ink-void: #0B1B3A;
  --ink-deep: #0E2A2F;
  --ink-wine: #6E1E3C;
  --ink-indigo: #2E2A72;
  --lime: #3DF58E;
  --orange: #FF8A3D;
  --magenta: #B0347A;
  --violet: #7A2FF0;
  --gold: #D9A441;
  --alert: #FF5C5C;
  --paper: #E8EEF7;
  --muted: #8A9BB5;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-soft: rgba(255, 255, 255, 0.05);
  --glass-line: rgba(255, 255, 255, 0.14);
  --grad-arena: linear-gradient(100deg, var(--magenta) 0%, var(--violet) 100%);

  /* 字体 */
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --fs-0: 12px;
  --fs-1: 14px;
  --fs-2: 16px;
  --fs-3: 20px;
  --fs-4: 28px;
  --fs-5: 40px;
  --fs-6: 64px;
  --fs-7: 96px;

  /* 布局 */
  --rail-w: 248px;
  --command-h: 64px;
  --cut: 6deg;
  --radius: 14px;
  --radius-lg: 22px;
  --shell: min(1180px, 100% - 48px);
  --scroll-progress: 0;
}

/* ---------- 2. 基础排版 ---------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(38px, 6.2vw, var(--fs-7));
  font-weight: 900;
}

h2 {
  font-size: clamp(26px, 3.4vw, var(--fs-5));
}

h3 {
  font-size: clamp(19px, 2.2vw, var(--fs-4));
}

h4 {
  font-size: var(--fs-3);
}

.num,
.mono,
[data-num] {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

#main-content {
  display: block;
  min-height: 60vh;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: #05170d;
  font-size: var(--fs-0);
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateY(-240%);
  transition: transform 0.22s ease;
}

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

/* ---------- 4. 品牌侧轨 ---------- */
.site-header {
  position: relative;
  z-index: 90;
}

.site-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 92;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--ink-void);
  background-image:
    linear-gradient(180deg, rgba(11, 27, 58, 0.94) 0%, rgba(14, 42, 47, 0.94) 100%),
    repeating-linear-gradient(118deg, rgba(217, 164, 65, 0.07) 0 1px, rgba(217, 164, 65, 0) 1px 11px);
  border-right: 1px solid var(--glass-line);
  transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.site-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(61, 245, 142, 0) 0%, var(--lime) 45%, rgba(61, 245, 142, 0) 100%);
  opacity: 0.55;
  pointer-events: none;
}

.rail-brand {
  padding-bottom: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #05170d;
  background: linear-gradient(135deg, var(--lime) 0%, #8bf3b9 100%);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 74% 100%, 0 100%);
}

.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand--footer .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

/* 轨道导航 */
.rail-nav {
  display: flex;
  flex-direction: column;
}

.rail-nav__title {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(232, 238, 247, 0.7);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.rail-nav__list a:hover {
  background: var(--glass);
  color: var(--paper);
  border-left-color: var(--lime);
  transform: translateX(3px);
}

.rail-nav__list a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(61, 245, 142, 0.2) 0%, rgba(61, 245, 142, 0.02) 100%);
  color: var(--paper);
  border-left-color: var(--lime);
}

.rail-nav__list .idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.rail-nav__list a[aria-current="page"] .idx {
  color: var(--lime);
}

.rail-nav__list .lbl {
  flex: 1 1 auto;
}

/* 轨道底部 */
.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-line);
}

.rail-meter {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.rail-meter span {
  display: block;
  height: 100%;
  width: calc(var(--scroll-progress) * 100%);
  border-radius: 3px;
  background: var(--grad-arena);
}

.rail-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.rail-meta {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* 状态点 */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: dot-pulse 2.2s ease-out infinite;
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 245, 142, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 245, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 245, 142, 0); }
}

@keyframes dot-pulse-alert {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 92, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0); }
}

/* ---------- 5. 顶部命令栏 ---------- */
.command-bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 88;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--command-h);
  padding: 0 22px;
  background: rgba(11, 27, 58, 0.82);
  border-bottom: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.command-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: calc(var(--scroll-progress) * 100%);
  background: linear-gradient(90deg, var(--lime) 0%, var(--orange) 58%, var(--violet) 100%);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(61, 245, 142, 0.45);
  background: rgba(61, 245, 142, 0.08);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: background-color 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform 0.25s ease;
}

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

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.command-brand {
  display: none;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  white-space: nowrap;
}

.command-brand span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.command-mid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.date-switch {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-line);
}

.date-switch button {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.date-switch button:hover {
  color: var(--paper);
}

.date-switch button[aria-pressed="true"] {
  background: var(--lime);
  color: #05170d;
  font-weight: 800;
}

.command-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 340px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-line);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.command-search:hover {
  border-color: rgba(61, 245, 142, 0.4);
}

.command-search:focus-within {
  border-color: var(--lime);
  background: rgba(61, 245, 142, 0.08);
}

.command-search__icon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
}

.command-search__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.command-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.command-search input:focus-visible {
  outline: none;
}

.command-search input::placeholder {
  color: rgba(138, 155, 181, 0.8);
}

.command-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.section-status {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(61, 245, 142, 0.25);
  background: rgba(46, 42, 114, 0.55);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lime);
  white-space: nowrap;
}

.live {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 92, 92, 0.32);
  background: rgba(255, 92, 92, 0.1);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #ffc3c3;
  white-space: nowrap;
}

.live .dot {
  width: 7px;
  height: 7px;
  background: var(--alert);
  animation: dot-pulse-alert 1.8s ease-out infinite;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  overflow: hidden;
  border-top: 1px solid var(--glass-line);
  background-color: var(--ink-void);
  background-image:
    linear-gradient(180deg, rgba(14, 42, 47, 0.9) 0%, rgba(11, 27, 58, 1) 58%),
    repeating-linear-gradient(118deg, rgba(122, 47, 240, 0.06) 0 1px, rgba(122, 47, 240, 0) 1px 13px);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 52, 122, 0.3) 0%, rgba(176, 52, 122, 0) 70%);
  pointer-events: none;
}

.footer-ridge {
  position: relative;
  width: 100%;
  height: 64px;
  pointer-events: none;
}

.footer-ridge span {
  position: absolute;
  inset: 0;
  display: block;
}

.footer-ridge span:nth-child(1) {
  background: linear-gradient(180deg, rgba(61, 245, 142, 0.16) 0%, rgba(61, 245, 142, 0) 100%);
  clip-path: polygon(0 100%, 7% 42%, 15% 70%, 26% 22%, 37% 62%, 48% 34%, 59% 72%, 70% 38%, 81% 66%, 92% 44%, 100% 68%, 100% 100%);
}

.footer-ridge span:nth-child(2) {
  background: rgba(46, 42, 114, 0.55);
  clip-path: polygon(0 100%, 9% 62%, 20% 86%, 32% 50%, 45% 80%, 57% 56%, 69% 84%, 80% 60%, 91% 82%, 100% 66%, 100% 100%);
}

.footer-inner {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 2.6fr);
  gap: 56px;
  padding: 40px 0 44px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(232, 238, 247, 0.7);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-contact li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
}

.footer-contact .k {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-contact .v {
  color: rgba(232, 238, 247, 0.86);
  letter-spacing: 0.02em;
}

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

.footer-group h2 {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime);
}

.footer-group li + li {
  margin-top: 9px;
}

.footer-group a {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(232, 238, 247, 0.68);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-group a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.footer-base {
  position: relative;
  padding: 18px 0 26px;
  border-top: 1px solid var(--glass-line);
}

.footer-base__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-base__inner a {
  color: rgba(232, 238, 247, 0.72);
  transition: color 0.2s ease;
}

.footer-base__inner a:hover {
  color: var(--lime);
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: rgba(138, 155, 181, 0.9);
}

.footer-trust {
  width: var(--shell);
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(138, 155, 181, 0.22);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(232, 238, 247, 0.55);
}

/* ---------- 7. 通用按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.btn--primary {
  background: var(--orange);
  color: #24110a;
}

.btn--primary::before {
  background: #ffb27a;
}

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

.btn--primary:hover::before {
  transform: scale(1);
}

.btn--ghost {
  border-color: var(--glass-line);
  background: var(--glass-soft);
  color: var(--paper);
}

.btn--ghost::before {
  background: rgba(61, 245, 142, 0.18);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.btn--ghost:hover::before {
  transform: scale(1);
}

/* ---------- 8. 面包屑 / 正文 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(138, 155, 181, 0.45);
}

.breadcrumb a {
  color: rgba(232, 238, 247, 0.7);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--lime);
}

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: rgba(232, 238, 247, 0.86);
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  margin-top: 42px;
  font-size: clamp(24px, 3vw, 32px);
}

.prose h3 {
  margin-top: 32px;
}

.prose a {
  color: var(--lime);
  border-bottom: 1px solid rgba(61, 245, 142, 0.35);
}

.prose a:hover {
  border-bottom-color: var(--lime);
}

.prose strong {
  font-weight: 700;
  color: var(--paper);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-top: 8px;
}

/* ---------- 9. 网格与布局工具 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--5-3-4 { grid-template-columns: 5fr 3fr 4fr; }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--lime);
}

.section-head__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-arena);
}

.cut-line {
  height: 6px;
  border-radius: 6px;
  background: var(--grad-arena);
  transform: skewX(calc(var(--cut) * -1));
  opacity: 0.85;
}

/* ---------- 10. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-line);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card--solid {
  background-image: none;
  background-color: rgba(14, 42, 47, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card--wine {
  background-image: linear-gradient(150deg, rgba(110, 30, 60, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card--indigo {
  background-image: linear-gradient(150deg, rgba(46, 42, 114, 0.92) 0%, rgba(11, 27, 58, 0.94) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(61, 245, 142, 0.3);
  background: rgba(61, 245, 142, 0.1);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.tag--orange {
  border-color: rgba(255, 138, 61, 0.35);
  background: rgba(255, 138, 61, 0.12);
  color: #ffc49b;
}

.tag--gold {
  border-color: rgba(217, 164, 65, 0.35);
  background: rgba(217, 164, 65, 0.12);
  color: #ebc77f;
}

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-line);
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(150deg, rgba(46, 42, 114, 0.7) 0%, rgba(14, 42, 47, 0.88) 100%),
    repeating-linear-gradient(118deg, rgba(61, 245, 142, 0.08) 0 1px, rgba(61, 245, 142, 0) 1px 14px);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.media:hover > img {
  transform: scale(1.04);
}

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

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

.media__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.media-stack {
  position: relative;
}

.media-stack__front {
  position: relative;
  z-index: 2;
  width: 78%;
}

.media-stack__back {
  position: absolute;
  right: 0;
  bottom: -10%;
  z-index: 1;
  width: 56%;
  opacity: 0.85;
}

/* ---------- 12. 状态类 ---------- */
.is-filtered-out {
  display: none !important;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1);
}

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  :root {
    --rail-w: 212px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 1120px) {
  .section-status {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --rail-w: 0px;
    --command-h: 56px;
  }

  body {
    padding-left: 0;
    padding-top: var(--command-h);
  }

  .site-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 82vh;
    padding: 22px 20px 30px;
    border-right: 0;
    border-top: 1px solid rgba(61, 245, 142, 0.3);
    border-radius: 20px 20px 0 0;
    transform: translateY(102%);
    z-index: 95;
  }

  .site-header[data-open] .site-rail {
    transform: translateY(0);
  }

  .site-rail::after {
    display: none;
  }

  .rail-nav__list {
    gap: 2px;
  }

  .rail-nav__list a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .command-bar {
    left: 0;
    gap: 10px;
    padding: 0 14px;
  }

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

  .command-brand {
    display: inline-flex;
  }

  .date-switch {
    display: none;
  }

  .command-search {
    max-width: none;
  }

  .grid--7-5,
  .grid--8-4,
  .grid--5-3-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1180px, 100% - 32px);
  }

  .command-search {
    display: none;
  }

  .command-brand span {
    display: none;
  }

  .footer-ridge {
    height: 48px;
  }

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

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

  .media-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .media-stack__front,
  .media-stack__back {
    position: static;
    width: 100%;
    opacity: 1;
  }
}

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
