/* ===== 变量 ===== */
:root {
  --red: #e62e2e;
  --red-hover: #d42828;
  --dark: #333333;
  --dark-btn: #4a4a4a;
  --dark-btn-hover: #3a3a3a;
  --gray-text: #666666;
  --gray-light: #999999;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --icon-bg: #e7f1ff;
  --icon-color: #4a90e2;
  --border: #eeeeee;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-dark {
  background: var(--dark-btn);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--dark-btn-hover);
  transform: translateY(-1px);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 40px;
  font-size: 16px;
}

/* ===== 头部 ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.02em;
}

.logo:hover {
  opacity: 0.85;
}

/* ===== Hero ===== */
.hero {
  background: var(--bg-light);
  padding: 60px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  color: var(--red);
  text-shadow: 0 2px 8px rgba(230, 46, 46, 0.15);
}

.hero-desc {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

/* 游戏界面模拟 */
.game-mockup {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #8ecae6 0%, #a8d8a0 35%, #c9b896 65%, #7a9e7e 100%);
}

.mockup-menu {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(30, 60, 120, 0.82);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 11px;
  color: #b0c4de;
  line-height: 1.9;
  z-index: 2;
  min-width: 110px;
}

.mockup-menu-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 12px;
}

.mockup-item.active {
  color: #7ec8ff;
}

.mockup-esp {
  position: absolute;
  border: 2px solid #ff4444;
  border-radius: 2px;
  z-index: 1;
}

.esp-1 {
  width: 36px;
  height: 72px;
  top: 28%;
  left: 52%;
}

.esp-2 {
  width: 28px;
  height: 56px;
  top: 42%;
  left: 68%;
}

.mockup-line {
  position: absolute;
  width: 2px;
  background: #ff4444;
  transform-origin: bottom center;
  z-index: 1;
}

.line-1 {
  height: 80px;
  bottom: 18%;
  left: 48%;
  transform: rotate(-25deg);
}

.line-2 {
  height: 65px;
  bottom: 18%;
  left: 56%;
  transform: rotate(-8deg);
}

.line-3 {
  height: 50px;
  bottom: 18%;
  left: 64%;
  transform: rotate(12deg);
}

.mockup-dist {
  position: absolute;
  font-size: 10px;
  color: #ff4444;
  font-weight: 700;
  z-index: 1;
}

.dist-1 { top: 24%; left: 54%; }
.dist-2 { top: 38%; left: 70%; }
.dist-3 { top: 32%; left: 42%; }

/* ===== 数据统计 ===== */
.stats-section {
  background: var(--white);
  padding: 72px 0 80px;
  text-align: center;
}

.stats-title {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.stats-desc {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gray-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--gray-light);
  line-height: 1.3;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-light);
}

/* ===== 功能模块 ===== */
.features-section {
  background: var(--bg-light);
  padding: 80px 0 96px;
}

.features-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--icon-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.feature-body p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.75;
}

/* ===== CTA 下载区 ===== */
.cta-section {
  background: var(--white);
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  font-size: 13px;
  color: var(--gray-light);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--gray-text);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--red);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual img {
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .features-section {
    padding: 56px 0 72px;
  }
}
