/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a40;
  --accent: #ff6b35;
  --accent-light: #ff8c5a;
  --accent-glow: rgba(255, 107, 53, 0.3);
  --gold: #f7c948;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #ff6b35 0%, #f7c948 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.3s ease;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(10, 14, 23, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

.logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  font-size: 24px;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

.nav-list a:hover {
  color: var(--text-primary);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(247, 201, 72, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 50px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.avatar-group {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -10px;
}

.avatar:first-child {
  margin-left: 0;
}

.rating-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Section Common ===== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Video Section ===== */
.video-section {
  padding: 60px 0;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}

.video-placeholder:hover {
  border-color: var(--accent);
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(99,102,241,0.1));
}

.play-btn {
  width: 72px;
  height: 72px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.video-placeholder:hover .play-btn {
  transform: scale(1.1);
}

.video-placeholder p {
  font-size: 18px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.video-hint {
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* ===== Features ===== */
.features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Screenshots ===== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screenshot-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.screenshot-card:hover {
  transform: translateY(-4px);
}

.screenshot-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}

.img-main {
  background: linear-gradient(135deg, #1a2235 0%, #2d1f3d 50%, #1a2235 100%);
  position: relative;
}

.img-main::after {
  content: "主界面";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.img-perf {
  background: linear-gradient(135deg, #1a2a35 0%, #1a3540 50%, #1a2235 100%);
  position: relative;
}

.img-perf::after {
  content: "性能优化";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.img-speed {
  background: linear-gradient(135deg, #1a2235 0%, #2a1a35 50%, #1a2235 100%);
  position: relative;
}

.img-speed::after {
  content: "游戏加速";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.screenshot-card figcaption {
  padding: 24px;
}

.screenshot-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.screenshot-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Comparison ===== */
.comparison {
  background: var(--bg-secondary);
}

.comparison-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.comparison-card {
  flex: 1;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  padding-bottom: 32px;
}

.comparison-img {
  aspect-ratio: 16/10;
  margin-bottom: 20px;
}

.img-before {
  background: linear-gradient(180deg, #2a1a1a 0%, #1a2235 100%);
  position: relative;
}

.img-before::after {
  content: "KD: 0.5";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 24px;
  font-weight: 700;
}

.img-after {
  background: linear-gradient(180deg, #1a2a1a 0%, #1a2235 100%);
  position: relative;
}

.img-after::after {
  content: "KD: 5.8";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 24px;
  font-weight: 700;
}

.comparison-label {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.comparison-label.highlight {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.comparison-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.comparison-card p {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 0 24px;
}

.comparison-arrow {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: transform var(--transition);
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: scale(1.05);
}

.price-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.price {
  margin-bottom: 12px;
}

.currency {
  font-size: 20px;
  color: var(--accent);
  vertical-align: top;
}

.amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
}

.period {
  color: var(--text-muted);
  font-size: 15px;
}

.price-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.price-features {
  text-align: left;
  margin-bottom: 32px;
}

.price-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 24px;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Reviews ===== */
.reviews {
  background: var(--bg-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-content h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.review-stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.review-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(255, 107, 53, 0.1) 0%, transparent 60%),
    var(--bg-primary);
  padding: 80px 0;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Chat Widget ===== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: none;
  animation: slideUp 0.3s ease;
}

.chat-panel.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #f7c948);
}

.online-status {
  display: block;
  font-size: 12px;
  color: #22c55e;
}

.chat-body p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid,
  .screenshot-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card.popular {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid,
  .screenshot-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    flex-direction: column;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-rating {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  section {
    padding: 60px 0;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-desc { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-rating { animation-delay: 0.5s; }
