/* Synthesized Theme: Acoustic Precision & Modern Iconography */
/* Refined with Calm Harmony, Eye-Friendly Dark Mode & Clean Iconography */

[data-theme="dark"] {
  --bg-page: #0b0f19;
  --bg-surface: #141a27;
  --bg-surface-elevated: #1a2334;
  --bg-subtle: #192233;
  --bg-muted: #232f45;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-focus: #3b82f6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-accent: #ffffff;

  --accent-primary: #3b82f6; /* Modern Acoustic Blue */
  --accent-primary-hover: #60a5fa;
  --accent-subtle: rgba(59, 130, 246, 0.12);

  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-violet: #818cf8;

  --baidu-color: #3b82f6;
  --quark-color: #ea580c;
  --bilibili-color: #00aeec;
  --github-color: #f1f5f9;

  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.22);

  --ambient-glow-1: rgba(59, 130, 246, 0.04);
  --ambient-glow-2: rgba(56, 189, 248, 0.02);
  --ambient-glow-3: rgba(129, 140, 248, 0.02);
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-subtle: #eef2f6;
  --bg-muted: #e2e8f0;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-accent: #ffffff;

  --accent-primary: #2563eb; /* Sapphire Acoustic Blue */
  --accent-primary-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.10);

  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-violet: #6366f1;

  --baidu-color: #1d4ed8;
  --quark-color: #c2410c;
  --bilibili-color: #00aeec;
  --github-color: #0f172a;

  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
  --card-shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.13), 0 0 0 1px rgba(37, 99, 235, 0.25);

  --ambient-glow-1: rgba(37, 99, 235, 0.08);
  --ambient-glow-2: rgba(56, 189, 248, 0.05);
  --ambient-glow-3: rgba(129, 140, 248, 0.04);
}

/* 优雅舒适的背景氛围 (静谧不刺眼，彻底告别花哨炫光) */
.ambient-background-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* 层次 1：微光声波网格 (极低透明度，柔和静谧) */
.acoustic-grid-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, black 15%, transparent 65%);
  opacity: 0.5;
}

[data-theme="light"] .acoustic-grid-mesh {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 25%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, black 25%, transparent 75%);
  opacity: 0.8;
}

/* 层次 2：极柔和静态氛围光斑，彻底移除晃眼移动大光圈 */
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--ambient-glow-1) 0%, transparent 70%);
  top: -140px;
  left: 30%;
}

.ambient-blob-2,
.ambient-blob-3,
.acoustic-ripple-circle {
  display: none !important; /* 彻底去除多余花哨的晃眼动态光球与扩散波纹 */
}

/* 顶部琴键静态素雅刻度尺条 */
.piano-key-strip {
  width: 100%;
  height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--border-subtle) 0px,
    var(--border-subtle) 1px,
    transparent 1px,
    transparent 16px
  );
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.piano-key-shimmer {
  display: none !important; /* 去除来回扫描的刺眼高光流 */
}

@keyframes keySweep {
  0% { left: -200px; }
  100% { left: 100%; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* 网站头部 */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* 顶部滚动进度指示条 */
.scroll-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 50%, #60a5fa 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.65), 0 0 3px rgba(56, 189, 248, 0.9);
  transition: width 0.08s ease-out;
  pointer-events: none;
  z-index: 105;
}

[data-theme="dark"] .main-header {
  background: rgba(15, 19, 29, 0.88);
}

[data-theme="light"] .main-header {
  background: rgba(255, 255, 255, 0.9);
}

/* 滚动时头部轻微加深磨砂玻璃与高光底边 */
.main-header.is-scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(59, 130, 246, 0.22);
}

[data-theme="dark"] .main-header.is-scrolled {
  background: rgba(9, 12, 21, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 35px -8px rgba(0, 0, 0, 0.65), 0 0 15px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .main-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08), 0 0 12px rgba(37, 99, 235, 0.06);
  border-bottom-color: rgba(37, 99, 235, 0.16);
}

.main-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 2px 10px rgba(25, 92, 250, 0.38);
  transition: transform var(--transition-fast);
}

.brand-wrap:hover .brand-logo-img {
  transform: scale(1.06);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--accent-primary);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link-btn,
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  font: inherit;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.social-link-btn:hover,
.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.social-link-btn.bilibili:hover {
  color: var(--bilibili-color);
  border-color: var(--bilibili-color);
  background: rgba(0, 174, 236, 0.08);
}

/* 社交与功能按钮质感优化 (深色模式柔和自然) */
[data-theme="dark"] .social-link-btn,
[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .mobile-menu-toggle-btn {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .social-link-btn:hover,
[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .mobile-menu-toggle-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

[data-theme="dark"] .social-link-btn.bilibili:hover {
  border-color: var(--bilibili-color);
  color: var(--bilibili-color);
  background: rgba(0, 174, 236, 0.12);
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.2);
}

/* 主题切换按钮：彻底去除突兀黄色，统一为极简纯净的品牌冷色调 */
.theme-toggle-btn {
  color: var(--text-secondary);
}

.theme-toggle-btn:hover {
  color: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  background: var(--accent-subtle) !important;
}

[data-theme="dark"] .theme-toggle-btn {
  color: var(--text-secondary);
  border-color: var(--border-subtle);
  background: var(--bg-surface);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  color: var(--accent-primary-hover) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(59, 130, 246, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 移动端汉堡菜单按钮 (桌面默认隐藏) */
.mobile-menu-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-download-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
  transition: all var(--transition-fast);
}

.btn-download-quick:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.48);
  filter: brightness(1.08);
  color: #ffffff;
}

/* Hero 区域 (经典左对齐排版 + 实时全息声学律动台) */
.hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 44px;
  position: relative;
  text-align: left;
}

.hero-main-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

@media (max-width: 1040px) {
  .hero-main-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-left-box {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  z-index: 50; /* 确保 Hero 区域包括下拉菜单层级高于后方卡片 */
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 全息声学实时律动演奏台 (Acoustic Hologram Live Stage) */
.hero-stage-box {
  position: relative;
  width: 100%;
  animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both 0.15s;
}

.stage-device-shell {
  position: relative;
  background: rgba(18, 24, 40, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 30px rgba(59, 130, 246, 0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .stage-device-shell {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(37, 99, 235, 0.08);
}

.stage-device-shell:hover {
  border-color: rgba(59, 130, 246, 0.48);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 40px rgba(59, 130, 246, 0.22);
}

/* 演奏台顶栏 */
.stage-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.stage-song-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-song-btn {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stage-song-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.stage-song-btn.active {
  background: var(--accent-subtle);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--accent-primary);
  font-weight: 700;
}

/* Canvas 瀑布流容器 */
.stage-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.14) 0%, rgba(9, 12, 21, 0.85) 80%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .stage-canvas-wrapper {
  background: radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.1) 0%, rgba(241, 245, 249, 0.85) 80%);
  border-color: rgba(0, 0, 0, 0.06);
}

#hero-waterfall-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-floating-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  background: rgba(15, 20, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .stage-floating-tag {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.stage-floating-tag.tag-bpm {
  top: 10px;
  right: 12px;
  color: #38bdf8;
}

.stage-floating-tag.tag-latency {
  top: 10px;
  left: 12px;
  color: #34d399;
}

/* 交互虚拟琴键区 */
.stage-piano-keyboard {
  position: relative;
  display: flex;
  height: 68px;
  margin-top: 10px;
  background: #0b0e17;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

[data-theme="light"] .stage-piano-keyboard {
  background: #e2e8f0;
  border-color: rgba(0, 0, 0, 0.08);
}

.piano-key {
  position: relative;
  flex: 1;
  border-radius: 0 0 4px 4px;
  cursor: pointer;
  transition: background-color 0.1s ease, box-shadow 0.1s ease, transform 0.08s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}

.piano-key span {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.7;
}

.piano-key.white-key {
  background: #ffffff;
  margin: 0 1.5px;
  height: 100%;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

[data-theme="dark"] .piano-key.white-key {
  background: #e2e8f0;
  color: #1e293b;
}

.piano-key.black-key {
  background: #1e293b;
  width: 5.5%;
  height: 58%;
  margin: 0 -2.75%;
  z-index: 2;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

[data-theme="dark"] .piano-key.black-key {
  background: #090d16;
  border: 1px solid rgba(255,255,255,0.1);
}

.piano-key.black-key span {
  display: none;
}

.piano-key.active,
.piano-key:hover {
  background: #60a5fa !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.9), inset 0 0 8px #93c5fd !important;
  transform: translateY(2px);
}

.piano-key.black-key.active,
.piano-key.black-key:hover {
  background: #3b82f6 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.9) !important;
}

/* 演奏台遥测底栏 */
.stage-footer-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.telemetry-dot.success {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.telemetry-pill b {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero 底部微指标行 */
.hero-telemetry-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-telem-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-telem-item svg {
  color: var(--accent-primary);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

/* 动效：律动均衡器条 */
.sound-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
  margin-right: 4px;
}

.eq-bar {
  width: 2.5px;
  background: var(--accent-primary);
  border-radius: 1px;
  animation: eqBounce 1.2s infinite ease-in-out alternate;
}

.eq-bar.bar-1 { height: 40%; animation-delay: 0.1s; }
.eq-bar.bar-2 { height: 95%; animation-delay: 0.35s; }
.eq-bar.bar-3 { height: 60%; animation-delay: 0.2s; }
.eq-bar.bar-4 { height: 80%; animation-delay: 0.45s; }

@keyframes eqBounce {
  0% { height: 25%; }
  100% { height: 100%; }
}

.hero-main-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: left;
}

.hero-title-accent {
  background: linear-gradient(135deg, #ffffff 15%, #93c5fd 60%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] .hero-title-accent {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc-text {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 60; /* 确保操作按钮组处于高层级 */
}

/* 下拉式立即下载组件 (层次性修复：确保弹窗菜单绝对处于所有卡片与元素最顶层) */
.download-dropdown {
  position: relative;
  display: inline-block;
}

.download-dropdown.open {
  z-index: 100;
}

.dropdown-toggle-btn {
  cursor: pointer;
  user-select: none;
  font-family: inherit;
  border: none;
}

.dropdown-caret {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.download-dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}

.download-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  pointer-events: none;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

[data-theme="light"] .download-dropdown-menu {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.25), 0 4px 16px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .download-dropdown-menu {
  background: #141a27 !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 55px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.download-dropdown.open .download-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.header-dropdown-menu {
  right: 0;
  left: auto;
  min-width: 250px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

[data-theme="light"] .dropdown-menu-item:hover {
  background: #f1f5f9;
}

.dropdown-menu-item .item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.netdisk-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.item-info-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu-item .item-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dropdown-menu-item .item-badge {
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-weight: 500;
}

[data-theme="light"] .dropdown-menu-item .item-badge {
  background: #e2e8f0;
}

.dropdown-menu-item .item-badge.code-badge {
  background: rgba(59, 130, 246, 0.16);
  color: var(--accent-primary);
  font-weight: 700;
}

.dropdown-menu-item .item-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu-item:hover .item-arrow {
  color: var(--accent-primary);
  transform: translate(2px, -2px);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}

[data-theme="light"] .dropdown-divider {
  background: #f1f5f9;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.52);
  filter: brightness(1.08);
  color: #ffffff;
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* 热门游戏真实支持带 (去除外层框体，自然融入页面底色) */
.hero-games-quickbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 40px;
  width: 100%;
  position: relative;
  z-index: 20; /* 低于上方下载下拉按钮 */
}

.quickbar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quickbar-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.quick-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.quick-tag:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.quick-tag img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.quick-tag-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 核心特性数据行 (升级为 Bento 矩阵设计，增强科技感与充实感) */
.stats-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: none;
  padding-top: 0;
  margin-top: 10px;
  position: relative;
  z-index: 10; /* 低于上方 Hero 区域，确保下载下拉框完全置顶 */
}

@media (max-width: 960px) {
  .stats-summary-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .stats-summary-row {
    grid-template-columns: 1fr;
  }
}

.stat-item-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--card-shadow);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.stat-item-box:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--card-shadow-hover), 0 0 25px rgba(59, 130, 246, 0.15);
}

.stat-item-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.stat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-highlight {
  color: var(--accent-primary);
  font-weight: 800;
  margin-right: 2px;
}

.stat-text {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bento 微图解视效 */
.stat-mini-infographic {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
  width: 100%;
}

.bento-tag-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bento-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.bento-latency-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
}

.latency-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
}

.bento-octave-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.octave-step {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.octave-step.highlight {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border-color: rgba(59, 130, 246, 0.3);
  font-weight: 700;
}

/* 鼠标光晕追随微视效 (Spotlight Cursor Halo) */
.stat-item-box::before,
.game-item-card::before,
.disk-card-panel::before,
.stage-device-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(59, 130, 246, 0.15), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.stat-item-box:hover::before,
.game-item-card:hover::before,
.disk-card-panel:hover::before,
.stage-device-shell:hover::before {
  opacity: 1;
}

/* 下载专区 (百度与夸克网盘) */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  border-top: 1px solid var(--border-subtle);
}

.section-head-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading-large {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 底部非折叠双网盘下载卡片 (使用官方品牌图标，百度网盘自带提取码参数) */
.download-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 30px;
}

.disk-card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.disk-card-panel:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

[data-theme="light"] .disk-card-panel:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.disk-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.disk-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.disk-name-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.disk-sub-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.disk-status-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.disk-status-tag.code-tag {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border-color: rgba(59, 130, 246, 0.25);
  font-weight: 700;
}

.disk-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.disk-single-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.disk-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.disk-file-heading {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.disk-file-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.disk-file-size {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.btn-disk-action {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32);
  transition: all var(--transition-fast);
}

.btn-disk-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.48);
  filter: brightness(1.08);
  color: #ffffff;
}

.btn-copy-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-action:hover {
  background: var(--text-primary);
  color: var(--bg-page);
}

/* 游戏适配卡片展示 (含真实官方高清 512x512 图标) */
.games-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-item-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

[data-theme="light"] .game-item-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
}

.game-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.game-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-subtle);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.game-item-card:hover .game-icon-img {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.game-item-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.game-item-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.game-tag-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.game-item-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.game-item-foot {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.game-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 6px #10b981;
}

/* 核心安全机制 */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.safety-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.safety-icon-wrap {
  color: var(--accent-emerald);
  margin-bottom: 14px;
}

.safety-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.safety-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 常见问题 FAQ */
.faq-box-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q-bar {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-toggle-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-row.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.faq-a-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0 20px;
}

.faq-row.active .faq-a-content {
  max-height: 250px;
  padding: 0 20px 16px;
}

/* 页脚 */
.site-main-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 40px 24px 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner-box {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--text-primary);
}

.footer-social-link.bilibili:hover {
  color: var(--bilibili-color);
}

/* ==========================================================================
   全设备移动端自适应响应式系统 (Mobile & Tablet Responsiveness)
   ========================================================================== */

/* 平板端优化 (<= 992px) */
@media (max-width: 992px) {
  .hero-main-title {
    font-size: 2.4rem;
  }
  .stats-summary-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-dual-grid {
    grid-template-columns: 1fr;
  }
  .safety-grid {
    grid-template-columns: 1fr;
  }
}

/* 手机端深度适配 (<= 768px) */
@media (max-width: 768px) {
  /* 头部导航与移动端抽屉菜单 */
  .main-header-inner {
    padding: 10px 16px;
  }
  .header-download-dropdown {
    display: none !important; /* 手机端隐藏顶部下载按键，消除空间挤压 */
  }
  .mobile-menu-toggle-btn {
    display: inline-flex !important;
  }
  .main-nav-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    padding: 14px 18px 18px;
    display: none;
    z-index: 999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .main-nav-container.mobile-nav-open {
    display: block;
    animation: mobileNavFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes mobileNavFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .main-nav-container .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }
  .main-nav-container .nav-menu li {
    width: 100%;
  }
  .main-nav-container .nav-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
  }
  .main-nav-container .nav-menu a:hover,
  .main-nav-container .nav-menu a.active {
    background: var(--accent-subtle);
    color: var(--accent-primary);
  }
  .main-nav-container .nav-menu a::after {
    display: none !important;
  }

  /* Hero 区域 */
  .hero-wrapper {
    padding: 32px 16px 24px !important;
  }
  .hero-main-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    margin: 12px 0 14px !important;
  }
  .hero-desc-text {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
  }
  .hero-label {
    font-size: 0.74rem !important;
    padding: 4px 10px !important;
    gap: 6px !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
  .hero-btn-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
    margin-bottom: 26px !important;
  }
  .hero-download-dropdown,
  .btn-primary-action,
  .btn-secondary-action {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .btn-primary-action {
    padding: 12px 18px !important;
    font-size: 0.98rem !important;
  }
  .btn-secondary-action {
    padding: 11px 18px !important;
    font-size: 0.92rem !important;
  }
  .download-dropdown-menu {
    width: 100% !important;
    min-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-games-quickbar {
    margin-bottom: 28px !important;
    gap: 8px !important;
  }
  .quickbar-tags {
    gap: 6px !important;
  }
  .quick-tag {
    font-size: 0.76rem !important;
    padding: 3px 8px !important;
  }

  /* Bento 核心特性 */
  .stats-summary-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 14px !important;
  }
  .stat-item-box {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }
  .stat-title {
    font-size: 1.05rem !important;
  }
  .stat-text {
    font-size: 0.86rem !important;
  }
  .bento-tag-pills {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .bento-tag {
    font-size: 0.72rem !important;
    padding: 3px 7px !important;
  }

  /* 容器与标题 */
  .section-container {
    padding: 44px 16px !important;
  }
  .section-heading-large {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  .section-subtext {
    font-size: 0.86rem !important;
  }

  /* 游戏卡片 */
  .games-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .game-item-card {
    padding: 16px 14px !important;
  }
  .game-item-name {
    font-size: 1.05rem !important;
  }
  .game-item-info {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
  }
  .game-tag-badge {
    font-size: 0.72rem !important;
    padding: 2px 7px !important;
  }

  /* 安全与 FAQ */
  .safety-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .safety-card {
    padding: 18px 16px !important;
  }
  .safety-title {
    font-size: 1.02rem !important;
  }
  .safety-text {
    font-size: 0.85rem !important;
  }
  .faq-row {
    padding: 14px 14px !important;
  }
  .faq-q-bar {
    font-size: 0.92rem !important;
  }
  .faq-a-content {
    font-size: 0.86rem !important;
  }

  /* 网盘下载 */
  .download-dual-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .disk-card-panel {
    padding: 18px 14px !important;
  }
  .disk-single-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 10px 12px !important;
  }
  .disk-item-left {
    gap: 10px !important;
  }
  .disk-file-heading {
    font-size: 0.92rem !important;
  }
  .disk-file-caption {
    font-size: 0.78rem !important;
  }
  .disk-file-size {
    font-size: 0.76rem !important;
    padding: 2px 6px !important;
    margin-left: 28px !important;
  }
  .btn-disk-action {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
  }

  /* QQ 交流群 */
  .community-qq-box {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 18px 14px !important;
    gap: 14px !important;
    margin-top: 20px !important;
  }
  .community-qq-left {
    width: 100% !important;
    gap: 12px !important;
  }
  .community-qq-title {
    font-size: 0.98rem !important;
  }
  .community-qq-desc {
    font-size: 0.78rem !important;
  }
  .community-qq-groups {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .qq-group-pill {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  /* 页脚 */
  .site-main-footer {
    padding: 24px 16px !important;
  }
  .footer-inner-box {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px !important;
    font-size: 0.8rem !important;
  }
  .footer-social-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}

/* QQ 玩家交流群展示模块 */
.community-qq-box {
  margin-top: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--card-shadow);
}

.community-qq-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.community-qq-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(18, 150, 219, 0.12);
  color: #1296db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-qq-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.community-qq-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.community-qq-groups {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qq-group-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.qq-group-pill:hover {
  border-color: var(--border-strong);
}

.qq-group-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.qq-group-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   页面滚动动画系统 (Scroll Reveal, Stagger & Back to Top)
   ========================================================================== */

/* 单独元素进入视口上浮与优雅渐变 */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 栅格或多卡片容器子元素阶梯瀑布流平滑微动效 */
.reveal-stagger-parent > * {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-stagger-parent.is-visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 级联时延分配 */
.reveal-stagger-parent.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger-parent.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger-parent.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger-parent.is-visible > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger-parent.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger-parent.is-visible > *:nth-child(6) { transition-delay: 0.34s; }
.reveal-stagger-parent.is-visible > *:nth-child(7) { transition-delay: 0.40s; }
.reveal-stagger-parent.is-visible > *:nth-child(8) { transition-delay: 0.46s; }
.reveal-stagger-parent.is-visible > *:nth-child(9) { transition-delay: 0.52s; }
.reveal-stagger-parent.is-visible > *:nth-child(10) { transition-delay: 0.58s; }
.reveal-stagger-parent.is-visible > *:nth-child(11) { transition-delay: 0.64s; }
.reveal-stagger-parent.is-visible > *:nth-child(12) { transition-delay: 0.70s; }

/* 悬浮返回顶部按钮 */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.85);
  transition: opacity 0.3s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s ease,
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              color 0.2s ease;
  z-index: 99;
}

[data-theme="light"] .back-to-top-btn {
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

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

.back-to-top-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.96);
}

/* 动效偏好辅助支持 (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll,
  .reveal-stagger-parent > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-progress-line {
    display: none !important;
  }
  .ambient-blob {
    animation: none !important;
    transform: none !important;
  }
  .back-to-top-btn {
    transition: none !important;
  }
}
