* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff8b94;
  --primary-dark: #ff6b77;
  --secondary: #ffaaa5;
  --accent: #ffd3b6;
  --bg: #fdfbf7;
  --bg-light: #ffffff;
  --text: #2d3748;
  --text-dim: #718096;
  --border: rgba(0,0,0,0.06);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(253,251,247,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
  font-size: 15px;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255,139,148,0.08), transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(255,170,165,0.08), transparent 50%),
              linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,139,148,0.1);
  border: 1px solid rgba(255,139,148,0.2);
  border-radius: 24px;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary, .btn-secondary {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 24px rgba(255,139,148,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,139,148,0.35);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
  border-radius: 16px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: white;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
  border: 4px solid #f1f3f5;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #fdfcfb;
  border-radius: 32px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.screen-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 50px;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 20px;
  max-width: 85%;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  animation: fadeIn 0.6s ease-out backwards;
}

.chat-bubble.ai {
  background: white;
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid rgba(0,0,0,0.02);
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  animation-delay: 0.3s;
}

.chat-bubble:nth-child(3) {
  animation-delay: 1s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 功能特点 */
.features {
  padding: 120px 24px;
  position: relative;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,139,148,0.1);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.section-header p {
  font-size: 18px;
  color: var(--text-dim);
}

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

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,139,148,0.3);
}

.feature-card.featured {
  background: #fdfbfc;
  border: 2px solid rgba(255,139,148,0.2);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15px;
}

.feature-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 14px;
  background: rgba(255,139,148,0.1);
  color: var(--primary-dark);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* 游戏介绍 */
.game-intro {
  padding: 120px 24px;
  background: var(--bg);
}

.game-intro-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.game-intro-text h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  margin-top: 16px;
}

.game-intro-text p {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.8;
}

.game-features-list {
  list-style: none;
  margin: 40px 0;
}

.game-features-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255,139,148,0.1);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.game-card {
  background: white;
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,139,148,0.03) 10px,
    rgba(255,139,148,0.03) 20px
  );
  border-radius: 36px;
  z-index: -1;
}

.game-card-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.avatar-circle {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(255,139,148,0.2);
}

.char-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.char-title {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-bar span:first-child {
  width: 64px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.bar {
  flex: 1;
  height: 10px;
  background: #f1f3f5;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 5px;
  transition: width 1s ease-out;
}

.stat-bar span:last-child {
  width: 40px;
  text-align: right;
  font-weight: 700;
  color: var(--primary-dark);
}

/* CTA */
.cta {
  padding: 120px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,139,148,0.08), rgba(255,170,165,0.08)), white;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* 页脚 */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 80px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--text-dim);
  margin-top: 20px;
  line-height: 1.8;
  font-size: 15px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
}

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

.footer-contact p {
  color: var(--text-dim);
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 900px) {
  .hero-title { font-size: 48px; }
  .game-intro-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual {
    margin-top: 64px;
    margin-bottom: 40px;
  }

  .phone-mockup {
    width: 280px;
    height: 560px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
