/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #0a0e1a 0%,
    #1a2332 25%,
    #0f1419 50%,
    #1e2a3d 75%,
    #0a0e1a 100%
  );
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    /* 星空效果 */ radial-gradient(
      2px 2px at 20px 30px,
      #40e0d0,
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #00a8ff, transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(2px 2px at 160px 30px, #40e0d0, transparent),
    /* 大气光效 */
      radial-gradient(
        circle at 20% 80%,
        rgba(120, 155, 255, 0.1) 0%,
        transparent 50%
      ),
    radial-gradient(
      circle at 80% 20%,
      rgba(64, 224, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(0, 150, 255, 0.05) 0%,
      transparent 50%
    );
  background-repeat: repeat;
  background-size: 200px 100px, 200px 100px, 200px 100px, 200px 100px,
    200px 100px, 100% 100%, 100% 100%, 100% 100%;
  animation: stars 20s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes stars {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100px);
  }
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(45deg, #00a8ff, #40e0d0);
  color: white;
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
  border: 1px solid rgba(64, 224, 208, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 168, 255, 0.6),
    0 0 30px rgba(64, 224, 208, 0.4);
  background: linear-gradient(45deg, #0099e6, #36d1dc);
}

.btn-secondary {
  background: transparent;
  color: #40e0d0;
  border: 2px solid #00a8ff;
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

.btn-secondary:hover {
  background: linear-gradient(
    45deg,
    rgba(0, 168, 255, 0.2),
    rgba(64, 224, 208, 0.2)
  );
  color: white;
  box-shadow: 0 0 25px rgba(0, 168, 255, 0.4);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 168, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar {
  width: 100%;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #40e0d0;
  text-shadow: 0 0 8px rgba(64, 224, 208, 0.6);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("public/游戏宣传图.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(64, 224, 208, 0.5);
}

.video-play-button:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: #40e0d0;
  box-shadow: 0 0 20px rgba(64, 224, 208, 0.4);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  color: #40e0d0;
  font-size: 24px;
  margin-left: 4px; /* Adjust for visual centering */
  text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 26, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(10, 14, 26, 0.9) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #40e0d0;
  text-shadow: 0 0 15px rgba(64, 224, 208, 0.5);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.feature-tag {
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid #00a8ff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* Video Showcase Section */
.video-showcase {
  background: linear-gradient(
    135deg,
    rgba(15, 20, 35, 0.9) 0%,
    rgba(26, 35, 50, 0.8) 100%
  );
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 168, 255, 0.2);
  border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 宽高比 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(64, 224, 208, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: #40e0d0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.section-subtitle {
  color: #40e0d0;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  text-shadow: 0 0 10px rgba(64, 224, 208, 0.4);
}

/* What is Section */
.what-is {
  background: linear-gradient(
    135deg,
    rgba(15, 20, 35, 0.9) 0%,
    rgba(26, 35, 50, 0.8) 100%
  );
  border-top: 1px solid rgba(0, 168, 255, 0.2);
  border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

.what-is-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.what-is-text {
  color: white;
}

.lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.what-is-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item h3 {
  color: #40e0d0;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px rgba(64, 224, 208, 0.4);
}

.gameplay-image {
  width: 100%;
  border-radius: 8px;
}

/* Why Section */
.why {
  background: rgba(10, 14, 26, 0.8);
  position: relative;
}

.why::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 168, 255, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

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

.why-card {
  background: linear-gradient(
    135deg,
    rgba(15, 25, 40, 0.8) 0%,
    rgba(25, 35, 55, 0.6) 100%
  );
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0, 168, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 168, 255, 0.05) 0%,
    rgba(64, 224, 208, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: #40e0d0;
  box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2),
    0 0 20px rgba(64, 224, 208, 0.1);
}

.why-card:hover::before {
  opacity: 1;
}

.why-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.why-card h3 {
  color: white;
  margin-bottom: 1rem;
}

.why-card p {
  color: #ccc;
}

/* Features Section */
.features {
  background: linear-gradient(
    135deg,
    rgba(20, 25, 40, 0.9) 0%,
    rgba(15, 20, 35, 0.8) 100%
  );
  border-top: 1px solid rgba(64, 224, 208, 0.2);
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-item.reverse {
  direction: rtl;
}

.feature-item.reverse * {
  direction: ltr;
}

.feature-image img {
  width: 100%;
  border-radius: 8px;
}

.feature-text {
  color: white;
}

.feature-text h3 {
  color: #40e0d0;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(64, 224, 208, 0.4);
}

.feature-text ul {
  list-style: none;
  margin-top: 1rem;
}

.feature-text li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #40e0d0;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(64, 224, 208, 0.6);
}

/* How to Section */
.how-to {
  background: rgba(10, 14, 26, 0.9);
  position: relative;
}

.how-to::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(64, 224, 208, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(0, 168, 255, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.how-to-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.step {
  background: linear-gradient(
    135deg,
    rgba(15, 25, 40, 0.8) 0%,
    rgba(25, 35, 55, 0.6) 100%
  );
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 168, 255, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #00a8ff, #40e0d0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.step-content h3 {
  color: white;
  margin-bottom: 1rem;
}

.step-content p {
  color: #ccc;
  margin-bottom: 1rem;
}

.platform-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.platform-btn {
  background: linear-gradient(
    45deg,
    rgba(0, 168, 255, 0.2),
    rgba(64, 224, 208, 0.2)
  );
  color: #40e0d0;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 168, 255, 0.4);
}

.platform-btn:hover {
  background: linear-gradient(45deg, #00a8ff, #40e0d0);
  color: white;
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.system-requirements,
.tips {
  margin-top: 1rem;
  color: #ccc;
}

.system-requirements ul,
.tips ul {
  margin-left: 1rem;
}

/* FAQ Section */
.faq {
  background: linear-gradient(
    135deg,
    rgba(15, 20, 35, 0.9) 0%,
    rgba(26, 35, 50, 0.8) 100%
  );
  border-top: 1px solid rgba(0, 168, 255, 0.2);
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(15, 25, 40, 0.8) 0%,
    rgba(25, 35, 55, 0.6) 100%
  );
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(
    135deg,
    rgba(20, 30, 45, 0.9) 0%,
    rgba(30, 40, 60, 0.7) 100%
  );
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.1);
}

.faq-question h3 {
  color: white;
  margin: 0;
}

.faq-toggle {
  color: #40e0d0;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(64, 224, 208, 0.4);
  transition: all 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #ccc;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Footer Section */
.footer {
  background: linear-gradient(
    135deg,
    rgba(5, 10, 20, 0.95) 0%,
    rgba(10, 15, 25, 0.9) 100%
  );
  color: white;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(0, 168, 255, 0.3);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 168, 255, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-description {
  color: #ccc;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #40e0d0;
  text-shadow: 0 0 8px rgba(64, 224, 208, 0.6);
}

.footer-section h4 {
  color: #40e0d0;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(64, 224, 208, 0.4);
}

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #ccc;
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.footer-legal-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: white;
}

/* 滚动动画 */
.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

/* 发光脉冲效果 */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.6),
      0 0 40px rgba(64, 224, 208, 0.4);
  }
}

.btn-primary {
  animation: pulse 2s infinite;
}

/* 标题发光效果 */
.hero-title {
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
      0 0 10px rgba(64, 224, 208, 0.3);
  }
  to {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
      0 0 20px rgba(64, 224, 208, 0.6), 0 0 30px rgba(0, 168, 255, 0.4);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }

  .video-play-button {
    width: 60px;
    height: 60px;
  }

  .play-icon {
    font-size: 18px;
  }

  .what-is-content,
  .feature-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-item.reverse {
    direction: ltr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-container {
    margin-bottom: 1.5rem;
  }
}
