/* =====================================================
   星空竞技 · 全站共享样式 /assets/site.css
   设计基调：深空竞技场 · 斜切分割 · 星轨动效
   ===================================================== */

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

/* ---------- 2. Variables ---------- */
:root {
  --bg-deep: #0a0e27;
  --bg-elevated: #101534;
  --bg-card: #151b3a;
  --gold: #f5c518;
  --neon: #39ff14;
  --gray: #8a8d91;
  --moss: #6b8e23;
  --terra: #cc5500;
  --cream: #f5f5dc;
  --star-blue: #1a237e;
  --text-primary: #e8e9f0;
  --text-secondary: #a0a4b8;
  --border-main: rgba(232, 233, 240, 0.12);
  --border-gold: rgba(245, 197, 24, 0.25);
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --header-height: 72px;
  --container: 1240px;
  --radius: 12px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- 3. Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1px 1px at 15% 25%, rgba(245, 245, 220, 0.7) 0, transparent 100%),
    radial-gradient(1px 1px at 28% 65%, rgba(245, 245, 220, 0.4) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 12%, rgba(245, 197, 24, 0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 55% 48%, rgba(245, 245, 220, 0.6) 0, transparent 100%),
    radial-gradient(1px 1px at 67% 82%, rgba(57, 255, 20, 0.35) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 35%, rgba(245, 245, 220, 0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 88% 70%, rgba(245, 245, 220, 0.6) 0, transparent 100%),
    radial-gradient(1px 1px at 94% 15%, rgba(245, 197, 24, 0.3) 0, transparent 100%),
    linear-gradient(180deg, #0a0e27 0%, #0d1330 50%, #0a0e27 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  background: rgba(245, 197, 24, 0.3);
  color: var(--cream);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #070a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a237e, #0a0e27);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---------- 4. A11y / Focus ---------- */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-200%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.4);
}

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

/* ---------- 5. Main content ---------- */
#main-content {
  display: block;
  padding-top: var(--header-height);
  min-height: 70vh;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(10, 14, 39, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.12);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 14, 39, 0.94);
  border-bottom-color: rgba(245, 197, 24, 0.24);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  position: relative;
  max-width: var(--container);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 品牌标识 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

.brand-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.6));
}

.brand-orbit {
  position: absolute;
  inset: 4px -4px;
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 50%;
  transform: rotate(-24deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-orbit::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 60%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
}

.brand:hover .brand-orbit {
  transform: rotate(24deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-tagline {
  font-family: var(--font-data);
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  color: var(--gray);
  text-transform: uppercase;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 24px);
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 6px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.site-nav a::before {
  content: attr(data-index);
  position: absolute;
  top: -6px;
  left: 2px;
  font-family: var(--font-data);
  font-size: 0.5625rem;
  line-height: 1;
  color: var(--neon);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--neon));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.site-nav a:hover {
  color: var(--cream);
}

.site-nav a:hover::before,
.site-nav a[aria-current="page"]::before {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(245, 197, 24, 0.06);
  border-color: rgba(245, 197, 24, 0.4);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 滚动进度条 */
.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--gold), var(--neon));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0e27 0%, #070a1a 100%);
  border-top: 1px solid rgba(245, 197, 24, 0.15);
  padding-top: 64px;
}

.footer-stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 10% 40%, rgba(245, 245, 220, 0.6) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 15%, rgba(245, 197, 24, 0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 35% 75%, rgba(245, 245, 220, 0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 50% 30%, rgba(57, 255, 20, 0.4) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 60%, rgba(245, 245, 220, 0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(245, 197, 24, 0.3) 0, transparent 100%),
    radial-gradient(1px 1px at 92% 80%, rgba(245, 245, 220, 0.5) 0, transparent 100%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-statement {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-secondary);
  border-top: 1px solid rgba(245, 197, 24, 0.2);
  padding-top: 14px;
  max-width: 40ch;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--neon));
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  position: relative;
  display: block;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -8px;
  font-family: var(--font-data);
  color: var(--neon);
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
}

.footer-links a:hover {
  color: var(--cream);
  padding-left: 12px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-line {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  overflow-wrap: break-word;
}

.footer-note {
  font-size: 0.8125rem;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 4px;
  border-left: 2px solid rgba(245, 197, 24, 0.3);
  padding-left: 10px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 233, 240, 0.1);
}

.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--gray);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--gray);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--gold);
}

.footer-icp {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding: 14px clamp(16px, 4vw, 32px) 18px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(138, 141, 145, 0.7);
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1500;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 50%;
  background: rgba(10, 14, 39, 0.92);
  color: var(--gold);
  font-size: 1.125rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.4);
  transform: translateY(-2px);
}

.back-to-top-icon {
  display: inline-block;
  transform: translateY(-1px);
}

/* ---------- 8. 通用组件 ---------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, #f5c518, #e0a800);
  color: #0a0e27;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.25);
}

.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(245, 197, 24, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(245, 197, 24, 0.4);
  color: var(--gold);
}

.btn-ghost:hover {
  background: rgba(245, 197, 24, 0.08);
  border-color: var(--gold);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gray);
  padding: 16px 0;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs-sep {
  color: var(--neon);
  font-family: var(--font-data);
  font-size: 0.75rem;
}

.breadcrumbs [aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}

/* 容器与分节 */
.content-container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(26, 35, 126, 0.2), rgba(10, 14, 39, 0));
}

.section-tight {
  padding: 48px 0;
}

/* 栅格 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 卡片 */
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(21, 27, 58, 0.9), rgba(16, 21, 52, 0.9));
  border: 1px solid rgba(232, 233, 240, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(245, 197, 24, 0.4);
  border-left: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 0 0 0 2px;
}

.card:hover {
  border-color: rgba(245, 197, 24, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card-gold-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--neon));
  border-radius: 0 0 2px 2px;
}

.card-data {
  font-family: var(--font-data);
  letter-spacing: 0.02em;
}

/* 标签 */
.stamp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.06);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 6px 14px 6px 12px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
}

.stamp-label::before {
  content: '★';
  color: var(--gold);
  font-size: 0.875rem;
  line-height: 1;
}

.ticket-tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 2px;
  padding: 3px 8px;
  background: rgba(57, 255, 20, 0.04);
}

/* 标题层级 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon);
}

.eyebrow::before {
  content: '';
  flex: 0 0 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--neon));
}

.display-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin: 12px 0 16px;
}

.display-title em {
  font-style: normal;
  color: var(--gold);
}

/* 图片容器 */
.img-frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(245, 245, 220, 0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(245, 197, 24, 0.3) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(57, 255, 20, 0.3) 0, transparent 100%),
    linear-gradient(135deg, #151b3a 0%, #1a237e 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 233, 240, 0.08);
}

.img-frame::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.img-frame::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 140%;
  background: linear-gradient(115deg, transparent 20%, rgba(245, 197, 24, 0.1) 40%, transparent 60%);
  transform: rotate(12deg);
  pointer-events: none;
}

.img-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
}

.img-frame-ratio-4-3::before {
  padding-top: 75%;
}

.img-frame-ratio-1-1::before {
  padding-top: 100%;
}

/* 斜切装饰与星野背景 */
.diag-section {
  position: relative;
  padding: 88px 0;
  background:
    linear-gradient(135deg, rgba(245, 197, 24, 0.07) 0%, transparent 30%),
    linear-gradient(45deg, rgba(26, 35, 126, 0.35) 0%, transparent 40%),
    rgba(16, 21, 52, 0.5);
  border-top: 1px solid rgba(245, 197, 24, 0.12);
  border-bottom: 1px solid rgba(245, 197, 24, 0.12);
}

.diag-band {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--neon) 60%, transparent 100%);
  transform: skewY(-1.2deg);
  transform-origin: left center;
  border: 0;
}

.star-field {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(245, 245, 220, 0.7) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 23% 68%, rgba(245, 197, 24, 0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 37% 15%, rgba(245, 245, 220, 0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 52% 44%, rgba(57, 255, 20, 0.35) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 72%, rgba(245, 245, 220, 0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 81% 30%, rgba(245, 197, 24, 0.45) 0, transparent 100%),
    radial-gradient(1px 1px at 93% 58%, rgba(245, 245, 220, 0.6) 0, transparent 100%),
    linear-gradient(160deg, #101534 0%, #0a0e27 60%, #070d2e 100%);
}

.meteor-line {
  display: block;
  height: 2px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--neon) 70%, transparent);
}

.meteor-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: meteor-sweep 4s ease-in-out infinite;
}

@keyframes meteor-sweep {
  0% {
    left: -40%;
  }
  100% {
    left: 140%;
  }
}

/* 文本修饰 */
.text-gold {
  color: var(--gold);
}

.text-neon {
  color: var(--neon);
}

.text-muted {
  color: var(--gray);
}

.text-center {
  text-align: center;
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 14, 39, 0.97);
    border-bottom: 1px solid rgba(245, 197, 24, 0.25);
    padding: 12px clamp(16px, 4vw, 32px) 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .site-nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(232, 233, 240, 0.08);
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    background: linear-gradient(90deg, rgba(245, 197, 24, 0.08), transparent);
    padding-left: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    height: var(--header-height);
  }

  body {
    background-attachment: scroll;
  }

  .section {
    padding: 56px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-legal {
    gap: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10. 动画偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .meteor-line::after {
    animation: none;
  }
}
