/* ============================================================
   style.css – 爱游戏(AYX) 中国官方网站
   所有样式已内联至HTML，此为独立CSS文件版本
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --primary: #6b37ff;
  --primary-light: #8f5eff;
  --secondary: #ff3c9e;
  --accent: #00d4aa;
  --bg-dark: #0f0c29;
  --bg-card: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.08);
  --text: #e8e6f0;
  --text-muted: #a09bb0;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 明亮主题 ---------- */
[data-theme="light"] {
  --bg-dark: #f5f3ff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --glass: rgba(255, 255, 255, 0.5);
  --text: #1a1433;
  --text-muted: #5f5580;
  --shadow: 0 8px 32px rgba(107, 55, 255, 0.12);
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ---------- 背景光晕 ---------- */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(107, 55, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 60, 158, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- 容器 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- 链接 ---------- */
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* ---------- 图片 ---------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- 区块 ---------- */
.section {
  padding: 100px 0 80px;
  position: relative;
}

/* ---------- 区块标题 ---------- */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- 毛玻璃卡片 ---------- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(107, 55, 255, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 55, 255, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- 网格布局 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

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

/* ---------- 实用类 ---------- */
.text-center {
  text-align: center;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mt-32 {
  margin-top: 32px;
}

/* ---------- 滚动动画 ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .section {
    padding: 60px 0 40px;
  }

  .glass-card {
    padding: 20px;
  }

  .container {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }

  .glass-card:hover {
    transform: none;
  }
}

/* ============================================================
   页眉导航
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 12, 41, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

[data-theme="light"] header {
  background: rgba(245, 243, 255, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--transition);
}

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

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 28px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: all var(--transition);
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: rgba(15, 12, 41, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 24px;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

[data-theme="light"] .mobile-menu {
  background: rgba(245, 243, 255, 0.98);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu a:hover {
  color: var(--text);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border-radius: 50px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 220px;
  transition: border var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary-light);
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* 移动端导航响应 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .search-bar {
    width: 160px;
  }
}

/* ============================================================
   英雄区（Hero）
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(15, 12, 41, 0.6);
}

.hero-bg .slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px 24px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-indicators button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-indicators button.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(107, 55, 255, 0.5);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ============================================================
   数据统计
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--glass);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card .number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .label {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ============================================================
   团队介绍
   ============================================================ */
.team-grid .member-card {
  text-align: center;
  padding: 32px 20px;
}

.member-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}

.member-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.member-card .role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.member-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   常见问题（FAQ）
   ============================================================ */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 0;
  user-select: none;
}

.faq-question .icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding-top: 12px;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer a,
.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 2;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-bottom .legal-links a {
  font-size: 0.8rem;
}

/* ============================================================
   极小屏适配
   ============================================================ */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}