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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

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

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #1677ff;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #1e40af;
}

.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  color: white;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: white;
  color: #1e40af;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

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

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1f2937;
  border-radius: 40px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 30px;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 30px;
}

.team {
  text-align: center;
}

.team-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.team-score {
  font-size: 48px;
  font-weight: 700;
  color: white;
}

.vs {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23f8fafc' fill-opacity='1' d='M0,32L60,42.7C120,53,240,75,360,80C480,85,600,75,720,69.3C840,64,960,64,1080,69.3C1200,75,1320,85,1380,90.7L1440,96L1440,120L1380,120C1320,120,1200,120,1080,120C960,120,840,120,720,120C600,120,480,120,360,120C240,120,120,120,60,120L0,120Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

.features, .games, .about {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #1e293b;
}

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

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1e293b;
}

.feature-desc {
  color: #64748b;
  font-size: 14px;
}

.games {
  background: #f1f5f9;
}

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

.game-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
}

.game-icon {
  font-size: 50px;
}

.game-info {
  flex: 1;
}

.game-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
}

.game-desc {
  font-size: 14px;
  color: #94a3b8;
}

.game-arrow {
  font-size: 20px;
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.game-card:hover .game-arrow {
  color: #3b82f6;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-desc {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-stats {
  flex: 1;
  display: flex;
  gap: 40px;
}

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

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: #94a3b8;
}

.footer {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  padding: 40px 0;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-icon {
  filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
  color: white !important;
}

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

.footer-copyright {
  color: white;
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-icp {
  color: white;
  font-size: 12px;
}

.footer-icp a {
  color: white;
  text-decoration: none;
}

.footer-icp a:hover {
  color: white;
  text-decoration: underline;
}

.footer-divider {
  margin: 0 8px;
  opacity: 0.7;
}

.footer-beian-icon {
  width: 16px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 16px;
  color: #1677ff;
}

.modal-qrcode {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qrcode {
  width: 200px;
  height: 200px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
}

.qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qrcode-status {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
}

.qrcode-desc {
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .phone-mockup {
    width: 220px;
    height: 440px;
  }
  
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-stats {
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-links {
    display: none;
  }
}
