/* ==========================================================================
   爱游戏最新 / e-aiyouxi-fast.com.cn
   共享 Site CSS — /assets/site.css
   视觉基调：深蓝底 x 荧光绿 x 橙，侧边导览，切角面板，斜切标题
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 1rem;
}

[hidden] {
  display: none !important;
}

/* ---------- CSS 变量 ---------- */
:root {
  --bg-deep: #0a192f;
  --bg-panel: #112240;
  --bg-block: #1d2951;
  --primary: #39ff14;
  --accent: #ff6b35;
  --text-main: #e6f1ff;
  --text-sub: #ccd6f6;
  --text-muted: #8892b0;
  --nav-w: 260px;
  --topbar-h: 64px;
  --topbar-h-mobile: 56px;
  --font-display: Impact, "Arial Black", "Anton", Haettenschweiler, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
  --glow-green: 0 0 16px rgba(57, 255, 20, 0.22);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 可访问性 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.skip-link {
  position: fixed;
  top: -72px;
  left: 20px;
  z-index: 3000;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: top 0.24s var(--ease);
  pointer-events: auto;
}
.skip-link:focus-visible {
  top: 16px;
}

/* ---------- 正文区容器 ---------- */
#main-content {
  margin-left: var(--nav-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
  display: flow-root;
}

.container {
  width: min(100% - 32px, 1440px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 64px, 1440px);
  }
}

/* ---------- 章节标题 ---------- */
.section {
  padding-block: clamp(40px, 7vw, 88px);
}

.section-head {
  position: relative;
  margin-bottom: 32px;
  padding-left: 18px;
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  clip-path: polygon(0 0, 100% 8px, 100% calc(100% - 8px), 0 100%);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  transform: skewX(-5deg);
  margin-bottom: 8px;
}

.section-desc {
  max-width: 640px;
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* ---------- 页面头部框架 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  pointer-events: none;
}

/* ---------- 品牌轨道（左侧导航） ---------- */
.brand-track {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--nav-w);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  border-right: 1px solid rgba(57, 255, 20, 0.16);
  z-index: 1002;
}

.brand-lockup {
  padding: 24px 24px 28px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}

.brand-logo {
  display: inline-block;
  text-decoration: none;
  position: relative;
  color: var(--text-main);
}
.brand-logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: skewX(-6deg);
  line-height: 1.05;
}
.brand-logo::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -6px;
  width: 34px;
  height: 4px;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}
.brand-logo-tag {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  transform: skewX(-6deg);
}

/* ---------- 主导航 ---------- */
.site-nav {
  margin-top: 18px;
}

.site-nav-list {
  counter-reset: nav-count;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav-item {
  counter-increment: nav-count;
}

.site-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 24px;
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.site-nav-link::before {
  content: "0" counter(nav-count);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.site-nav-link:hover {
  color: var(--text-main);
  background: rgba(57, 255, 20, 0.06);
  padding-left: 30px;
}
.site-nav-link[aria-current="page"] {
  color: var(--primary);
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.14), transparent);
  border-left-color: var(--primary);
  font-weight: 700;
}
.site-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--primary);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 10px var(--primary);
}

/* ---------- 品牌轨道底部 ---------- */
.brand-track-foot {
  margin-top: auto;
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(57, 255, 20, 0.12);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: live-pulse 1.6s ease-out infinite;
}

.live-indicator-text {
  white-space: nowrap;
}

.brand-track-note {
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(57, 255, 20, 0);
  }
}

/* ---------- 顶栏 ---------- */
.top-rail {
  position: absolute;
  top: 0;
  left: var(--nav-w);
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(57, 255, 20, 0.16);
  pointer-events: auto;
  z-index: 1001;
}

.top-rail-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.top-rail-brand {
  display: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transform: skewX(-5deg);
  white-space: nowrap;
}

/* ---------- 移动导航开关 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(57, 255, 20, 0.28);
  background: rgba(57, 255, 20, 0.05);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: rgba(57, 255, 20, 0.12);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  margin: 2px 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar-top {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar-mid {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar-bot {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 顶栏搜索 ---------- */
.top-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.top-search-trigger:hover {
  color: var(--primary);
  border-color: rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.05);
}
.icon-search {
  flex-shrink: 0;
}

/* ---------- 语言标签 ---------- */
.lang-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--bg-panel);
  border: 1px solid rgba(136, 146, 176, 0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- 实时比分小部件 ---------- */
.score-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(10, 25, 47, 0.55);
  border: 1px solid rgba(57, 255, 20, 0.28);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.score-widget:hover {
  border-color: rgba(57, 255, 20, 0.55);
  background: rgba(10, 25, 47, 0.75);
}

.score-widget-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.score-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 1.6s ease-out infinite;
}

.score-widget-game {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
}

.score-team {
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(57, 255, 20, 0.1);
  padding: 2px 6px;
}

.score-widget-more {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 248px;
  padding: 12px 14px;
  background: var(--bg-panel);
  border: 1px solid rgba(57, 255, 20, 0.3);
  box-shadow: var(--shadow-card), var(--glow-green);
  z-index: 60;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.score-widget[data-expanded] .score-widget-more {
  display: block;
  animation: score-more-in 0.22s var(--ease);
}

.score-more-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-sub);
  border-bottom: 1px dashed rgba(136, 146, 176, 0.16);
}
.score-more-line:last-child {
  border-bottom: 0;
}
.score-more-line strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
}

.score-widget.is-refreshing .score-widget-game {
  animation: score-refresh 0.4s var(--ease);
}

@keyframes score-more-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes score-refresh {
  0% {
    opacity: 0.3;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: absolute;
  top: var(--topbar-h);
  left: var(--nav-w);
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 20%, var(--accent) 120%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1003;
  pointer-events: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-left: var(--nav-w);
  background: var(--bg-deep);
  border-top: 1px solid rgba(57, 255, 20, 0.14);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.footer-content {
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.6fr) minmax(120px, 0.6fr) minmax(220px, 1fr);
  gap: 40px;
}

.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transform: skewX(-5deg);
  position: relative;
}
.footer-brand::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -6px;
  width: 30px;
  height: 3px;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.footer-tagline {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.footer-intro {
  margin-top: 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 46ch;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  transform: skewX(-4deg);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}
.footer-list a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-list li {
  display: flex;
  gap: 10px;
  line-height: 1.6;
}

.footer-c-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 34px;
  transform: skewX(-4deg);
  margin-top: 1px;
}

.footer-note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(136, 146, 176, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  color: var(--bg-deep);
  background: var(--primary);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  filter: brightness(1.1);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-accent:hover {
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.28);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-ghost:hover {
  background: rgba(57, 255, 20, 0.08);
  box-shadow: var(--glow-green);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}
.btn-block {
  width: 100%;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-item a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-item a:hover {
  color: var(--primary);
}
.breadcrumb-item[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
}
.breadcrumb-sep {
  font-family: var(--font-mono);
  color: var(--primary);
  opacity: 0.4;
}

/* ---------- 卡片 ---------- */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid rgba(136, 146, 176, 0.16);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow: var(--shadow-card), var(--glow-green);
}

.card-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-block);
  overflow: hidden;
  position: relative;
}
.card-media img,
.card-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
}

.card-title {
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(136, 146, 176, 0.12);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.card-link::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: margin-left 0.2s var(--ease);
}
.card-link:hover::after {
  margin-left: 12px;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(57, 255, 20, 0.1);
  color: var(--primary);
  border: 1px solid rgba(57, 255, 20, 0.3);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.tag-accent {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
  border-color: rgba(255, 107, 53, 0.3);
}

/* ---------- 图片容器 ---------- */
.img-frame {
  position: relative;
  display: block;
  background: var(--bg-block);
  overflow: hidden;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.12) 0%, transparent 42%, rgba(255, 107, 53, 0.1) 100%);
  pointer-events: none;
}
.img-frame img,
.img-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- 筛选按钮 ---------- */
[data-filter] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sub);
  background: transparent;
  border: 1px solid rgba(136, 146, 176, 0.28);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
[data-filter]:hover {
  color: var(--primary);
  border-color: rgba(57, 255, 20, 0.45);
}
[data-filter].is-active {
  color: var(--bg-deep);
  background: var(--primary);
  border-color: var(--primary);
}
[data-filter][aria-pressed="true"] {
  color: var(--bg-deep);
  background: var(--primary);
  border-color: var(--primary);
}

[data-filter-group] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 显现动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .score-widget-caption {
    display: none;
  }
  .top-search-trigger span {
    display: none;
  }
  .top-rail {
    gap: 8px;
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-h: 56px;
  }

  .site-header {
    height: var(--topbar-h-mobile);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .brand-track {
    top: var(--topbar-h-mobile);
    bottom: 0;
    width: min(320px, 86vw);
    height: calc(100vh - var(--topbar-h-mobile));
    transform: translateX(-105%);
    transition: transform 0.32s var(--ease);
    border-right: 0;
    box-shadow: none;
  }
  .brand-track[data-open] {
    transform: translateX(0);
    box-shadow: 24px 0 48px rgba(0, 0, 0, 0.45);
  }

  .top-rail {
    left: 0;
    height: var(--topbar-h-mobile);
    padding: 0 12px;
  }
  .top-rail-brand {
    display: inline-block;
  }

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

  .scroll-progress {
    top: var(--topbar-h-mobile);
    left: 0;
  }

  #main-content,
  .site-footer {
    margin-left: 0;
  }
  #main-content {
    padding-top: var(--topbar-h-mobile);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-content {
    padding: 48px 0 28px;
  }
}

@media (max-width: 640px) {
  .top-rail {
    gap: 8px;
    padding: 0 10px;
  }
  .lang-chip {
    display: none;
  }
  .top-search-trigger span {
    display: none;
  }
  .top-search-trigger {
    padding: 6px 8px;
  }
  .score-widget-caption {
    display: none;
  }
  .score-widget {
    padding: 6px 10px;
    gap: 8px;
  }
  .score-widget-more {
    right: -40px;
    min-width: 220px;
  }
  .top-rail-brand {
    font-size: 1.05rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover {
    transform: none;
  }
  .score-widget.is-refreshing .score-widget-game {
    animation: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .brand-track {
    transition: none;
  }
}
