/* ============================================
   首页专属暗色主题（参考 GAMESCOM 2026 风格）
   在 style.css 之后加载，作用于 body.home
   主色：霓虹紫 #8b5cf6 / 霓虹青 #06b6d4
   ============================================ */

/* ---------- 变量覆盖 ---------- */
body.home {
  --primary: #8b5cf6;
  --primary-deep: #a78bfa;
  --primary-light: rgba(139, 92, 246, 0.14);
  --primary-hover: #a78bfa;
  --bg: #0a0a0f;
  --bg-soft: #11111a;
  --text: #e8e8f2;
  --text-muted: #9aa0b8;
  --border: rgba(139, 92, 246, 0.18);
  --success: #4ade80;
  --danger: #f87171;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(139, 92, 246, 0.16);
  background: #0a0a0f;
  color: #e8e8f2;
}

body.home a { color: inherit; }

/* ---------- 字体 ---------- */
body.home {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
}
body.home .font-display {
  font-family: 'Orbitron', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: 0.06em;
}

/* ---------- 无 JS 时保证内容可见（安全网） ---------- */
html:not(.js) .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- 顶部导航栏（暗色） ---------- */
body.home .navbar {
  background: rgba(10, 10, 15, 0.82);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.home .navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
body.home .nav-logo { color: #f1f0ff; }
body.home .nav-logo .logo-icon { filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55)); }
body.home .nav-logo .logo-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.home .nav-links a { color: #9aa0b8; }
body.home .nav-links a::after { background: linear-gradient(90deg, #8b5cf6, #06b6d4); }
body.home .nav-links a:hover,
body.home .nav-links a.active {
  color: #d6c9ff;
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
}
body.home .nav-auth .user-chip { background: rgba(139, 92, 246, 0.14); color: #e8e8f2; }
body.home .nav-auth .user-chip .nav-avatar-letter { background: linear-gradient(135deg, #8b5cf6, #06b6d4); }
body.home .menu-toggle span { background: #d6c9ff; }

/* 移动端抽屉菜单（暗色） */
body.home .nav-links { background: #0d0d15; }

/* ---------- 按钮（霓虹） ---------- */
body.home .btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
body.home .btn-primary:hover {
  background: linear-gradient(135deg, #9d74ff, #22d3ee);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}
body.home .btn-outline {
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.5);
}
body.home .btn-outline:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: #8b5cf6;
  color: #e9dfff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
}
body.home .btn-ghost { color: #9aa0b8; }
body.home .btn-ghost:hover { color: #d6c9ff; }

/* ---------- Hero 首屏（暗色 + 粒子） ---------- */
body.home .hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at 25% 28%, rgba(139, 92, 246, 0.22) 0%, transparent 52%),
    radial-gradient(circle at 75% 72%, rgba(6, 182, 212, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse at center, #150b28 0%, #0a0a0f 72%);
}
body.home #hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
body.home .hero-content { position: relative; z-index: 2; }

body.home .hero-badge {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25), inset 0 0 12px rgba(139, 92, 246, 0.12);
}

body.home .hero h1 {
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(196, 181, 253, 0.85),
    0 0 22px rgba(139, 92, 246, 0.7),
    0 0 44px rgba(139, 92, 246, 0.5);
}

body.home .hero p { color: rgba(230, 228, 255, 0.82); }

body.home .hero .btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
}
body.home .hero .btn-outline {
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.5);
}
body.home .hero .btn-outline:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: #c4b5fd;
}

/* 装饰线 */
.deco-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
body.home .deco-line.visible { transform: scaleX(1); }

/* 霓虹文字 */
.neon-text {
  text-shadow:
    0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 40px currentColor;
}

/* 发光边框 */
body.home .glow-border {
  box-shadow:
    0 0 20px rgba(139, 92, 246, 0.3),
    inset 0 0 20px rgba(139, 92, 246, 0.08);
}

/* Hero 统计数字（渐变 + 流光） */
.hero-stats {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-stats .stat { text-align: center; min-width: 96px; }
.stat-number {
  font-family: 'Orbitron', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #a78bfa, #06b6d4, #a78bfa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-stats .stat-label { color: #9aa0b8; font-size: 0.8rem; margin-top: 8px; letter-spacing: 1px; }

/* Hero 入场动画（JS 添加 .in 触发；无 JS 时保持可见） */
html.js body.home .hero .hero-badge,
html.js body.home .hero h1,
html.js body.home .hero p,
html.js body.home .hero .hero-actions,
html.js body.home .hero .hero-stats {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
html.js body.home .hero .hero-badge.in,
html.js body.home .hero h1.in,
html.js body.home .hero p.in,
html.js body.home .hero .hero-actions.in,
html.js body.home .hero .hero-stats.in {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #9aa0b8;
  font-size: 0.75rem;
  letter-spacing: 3px;
  animation: bounce-hint 2s ease-in-out infinite;
}
@keyframes bounce-hint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

/* ---------- 区块通用（暗色 + 网格背景） ---------- */
body.home .section { position: relative; }
body.home .section-alt {
  background:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    #0d0d16;
  background-size: 60px 60px, 60px 60px, auto;
}

body.home .section-head .tag {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
body.home .section-head h2 { color: #f1f0ff; }
body.home .section-head p { color: #9aa0b8; }

/* 区块标题装饰线（始终可见） */
.section-head .deco-line {
  width: 120px;
  margin: 16px auto 0;
  transform-origin: center;
  transform: scaleX(1);
}

/* ---------- 个人简介 ---------- */
body.home .about-text h3 { color: #c4b5fd; }
body.home .about-text p { color: #c9ccdb; }
body.home .value-item {
  background: #12121d;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.home .value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
}
body.home .value-item h4 { color: #e8e8f2; }
body.home .value-item p { color: #9aa0b8; }

/* ---------- 游戏卡片 ---------- */
body.home .game-card {
  background: #12121d;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
body.home .game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.24);
  border-color: rgba(139, 92, 246, 0.45);
}
body.home .game-cover {
  background: linear-gradient(135deg, #1a1030 0%, #0d1b2e 100%);
}
body.home .game-card-body h3 { color: #f1f0ff; }
body.home .game-card-body .game-tags span {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.22);
}
body.home .game-card-body .game-desc { color: #9aa0b8; }
body.home .game-card-body .card-foot { color: #7c8296; }
body.home .progress-bar { background: rgba(139, 92, 246, 0.14); }
body.home .progress-bar .fill { background: linear-gradient(90deg, #8b5cf6, #06b6d4); }
body.home .progress-wrap .pct { color: #c4b5fd; }

/* ---------- 动态公告 ---------- */
body.home .news-item {
  background: #12121d;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
body.home .news-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
}
body.home .news-date .day { color: #a78bfa; }
body.home .news-date .mon { color: #7c8296; }
body.home .news-item h4 { color: #f1f0ff; }
body.home .news-item p { color: #9aa0b8; }

/* ---------- 资源导航 ---------- */
body.home .ref-card {
  background: #12121d;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
body.home .ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
}
body.home .ref-card .rc-name { color: #f1f0ff; }
body.home .ref-card .rc-desc { color: #9aa0b8; }

/* ---------- 首页热门模组 ---------- */
body.home .home-mod-card {
  background: #12121d;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
body.home .home-mod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
}
body.home .home-mod-card .hmc-name { color: #f1f0ff; }
body.home .home-mod-card .hmc-game { color: #c4b5fd; }
body.home .home-mod-card .hmc-rating { margin: 2px 0; }
body.home .home-mod-card .hearts .heart { font-size: 0.95rem; }
body.home .home-mod-card .hmc-stats { color: #9aa0b8; }

/* ---------- 页脚 ---------- */
body.home .footer {
  background: #0a0a0f;
  border-top: 1px solid rgba(139, 92, 246, 0.18);
}
body.home .footer-contact { color: #c9ccdb; }
body.home .footer-contact span b { color: #c4b5fd; }
body.home .footer-icp,
body.home .footer-copy { color: #7c8296; }
body.home .footer-icp a { color: #7c8296; }

/* ---------- 返回顶部 ---------- */
body.home .back-top {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

/* ---------- 空状态文字 ---------- */
body.home .empty-state { color: #9aa0b8; }

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  body.home .stat-number,
  body.home .scroll-hint { animation: none; }
  body.home .deco-line { transform: scaleX(1); }
  body.home .reveal { opacity: 1; transform: none; }
}
