/* head 区域 */
.head-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.head-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.head-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
}

.head-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, #000);
}

.head-content {
  position: relative;
  z-index: 20;
  text-align: center;
  max-width: 56rem;
  padding: 2rem 1rem;
}

.head-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 2rem;
}

.head-main-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  opacity: 0.9;
  margin-bottom: 1rem;
}

.head-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.head-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
}

/* 二维码容器 */
.qr-code-container {
  position: relative;
  display: none;
}

.qr-trigger {
  cursor: pointer;
  width: 48px;
  height: 48px;
  border: none;
  background-color: transparent;
  background-image: url('../images/qr-icon.png');
  background-size: 32px 32px;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
}

.qr-popup {
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.qr-trigger:hover + .qr-popup,
.qr-popup:hover {
  opacity: 1;
  visibility: visible;
}

.qr-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-image {
  display: block;
  width: 150px;
  height: 150px;
  background: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.qr-popup-content p {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  white-space: nowrap;
}

/* 游戏特色 */
.features-section {
  background: transparent;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-divider {
  height: 0.375rem;
  width: 6rem;
  background: hsl(var(--primary));
  border-radius: 9999px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: hsla(var(--primary), 0.5);
}

.feature-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.feature-card:hover .feature-image img {
  transform: scale(1.1);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  opacity: 0.6;
}

.feature-content {
  padding: 2rem;
}

.feature-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.feature-card:hover .feature-content h3 {
  color: hsl(var(--primary));
}

.feature-content p {
  color: hsl(var(--muted-foreground));
}

/* 游戏亮点 */
.highlights-section {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.highlight-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}

.highlight-card:hover {
  border-color: hsla(var(--primary), 0.3);
}

.highlight-icon {
  padding: 1rem;
  border-radius: 1rem;
  background: hsla(var(--primary), 0.1);
  transition: background 0.3s;
}

.highlight-card:hover .highlight-icon {
  background: hsla(var(--primary), 0.2);
}

.highlight-icon svg {
  color: hsl(var(--primary));
}

.highlight-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.highlight-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* CTA 区域 */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.cta-highlight {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-color: hsla(var(--primary), 0.3);
  text-underline-offset: 0.5rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* 响应式 */
@media (min-width: 768px) {
  .head-title {
    font-size: 6rem;
  }

  .head-main-subtitle {
    font-size: 2.5rem;
  }

  .head-subtitle {
    font-size: 1.25rem;
  }

  .head-actions {
    flex-direction: row;
  }

  .qr-code-container {
    display: block;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 3rem;
  }

  .cta-title {
    font-size: 3.75rem;
  }

  .cta-actions {
    flex-direction: row;
  }
}