/* ===== style.css — 易游体育官方网站 ===== */

/* ---------- 全局重置 & 变量 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
  --bg: #f8faff;
  --bg-card: #ffffff;
  --text: #1a1f2e;
  --text-secondary: #3d4a5c;
  --primary: #0b2b4e;
  --primary-light: #1e4a76;
  --accent: #eab308;
  --accent-soft: #fef3c7;
  --glass: rgba(255, 255, 255, 0.55);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --radius: 24px;
  --radius-sm: 12px;
  --transition: 0.25s ease;
}

body.dark {
  --bg: #0d111c;
  --bg-card: #1a2235;
  --text: #e8edf5;
  --text-secondary: #b0c0d0;
  --primary: #0b1a2e;
  --primary-light: #1f3b5c;
  --accent: #facc15;
  --accent-soft: #2a2a1a;
  --glass: rgba(20, 30, 50, 0.7);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

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

/* ---------- 头部导航 ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  transition: box-shadow 0.2s;
}

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

.logo svg {
  height: 44px;
  width: auto;
  display: block;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  border-bottom-color: var(--accent);
  color: var(--primary-light);
}

body.dark .nav-menu a:hover,
body.dark .nav-menu a.active {
  color: var(--accent);
}

.dark-toggle {
  background: var(--bg-card);
  border: none;
  border-radius: 40px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-toggle:hover {
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 10px;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* ---------- Hero 区 ---------- */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(145deg, var(--primary) 0%, #0f2a4a 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(234, 179, 8, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0b1a2e;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #f0c040;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* ---------- 通用区块 ---------- */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 48px;
  font-size: 1.1rem;
}

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

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

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

body.dark .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.badge {
  background: var(--accent-soft);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

body.dark .badge {
  background: #2f3a4a;
  color: #eab308;
}

/* ---------- 辅助类 ---------- */
.flex-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mt-2 {
  margin-top: 20px;
}

.mb-2 {
  margin-bottom: 20px;
}

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

/* ---------- 文章卡片 ---------- */
.article-card {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: padding-left 0.2s;
}

body.dark .article-card {
  border-color: rgba(255, 255, 255, 0.04);
}

.article-card h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.article-card a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
}

.article-card a:hover {
  text-decoration: underline;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ---------- 评价卡片 ---------- */
.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.testimonial:hover {
  transform: translateY(-2px);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.15s;
}

body.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.dark .faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* ---------- HowTo 步骤 ---------- */
.howto-step {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-num {
  background: var(--accent);
  color: #0b1a2e;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

body.dark .step-num {
  color: #0b1a2e;
}

/* ---------- 数字动画 ---------- */
.counter-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-light);
}

body.dark .counter-number {
  color: var(--accent);
}

/* ---------- 轮播 ---------- */
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.carousel-track > * {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 10px;
}

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

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

/* ---------- 页脚 ---------- */
footer {
  background: var(--primary);
  color: #ccdbe9;
  padding: 48px 0 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 60px;
}

footer a {
  color: #b0c8e0;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.footer-grid p {
  color: #b0c8e0;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a0b8d0;
}

/* ---------- 返回顶部按钮 ---------- */
.go-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #0b1a2e;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.go-top:hover {
  transform: scale(1.05);
  background: #f0c040;
}

body.dark .go-top {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero {
    padding: 40px 0 60px;
  }

  section {
    padding: 40px 0;
  }

  .footer-grid {
    gap: 24px;
  }

  .go-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

/* ---------- 列表样式辅助 ---------- */
ul[style*="list-style:none"] {
  padding-left: 0;
}

ul[style*="list-style:none"] li {
  padding: 4px 0;
  font-size: 0.95rem;
}

/* ---------- 卡片内标题间距 ---------- */
.card h3,
.glass-card h3,
.card h4,
.glass-card h4 {
  margin-bottom: 12px;
}

/* ---------- 联系卡片 ---------- */
.card[style*="text-align:center"] h2 {
  margin-bottom: 16px;
}

.card[style*="text-align:center"] p {
  margin-bottom: 8px;
}