@import url('base.css');



/* =====================================================
   乱世西游官网 - 首页样式
   ===================================================== */

/* Hero 区域 */
.hero-section {
  position: relative;
  min-height: clamp(720px, 95vh, 960px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 75% 28%, rgba(217, 119, 6, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 20% 72%, rgba(147, 51, 234, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #1a0f0a 0%, #2a1810 100%);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.9) 1px, transparent 1px);
  background-size: 40px 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 9999px;
  background: rgba(217, 119, 6, 0.1);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 25%, #fbbf24 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title span {
  color: var(--color-accent);
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-item i {
  color: var(--color-primary);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-ring {
  position: absolute;
  width: 112%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: inset 0 0 60px rgba(217, 119, 6, 0.12), 0 0 80px rgba(217, 119, 6, 0.1);
  animation: pulseRing 6s ease-in-out infinite;
}

.hero-image-ring.ring-2 {
  width: 90%;
  border-color: rgba(147, 51, 234, 0.14);
  box-shadow: inset 0 0 50px rgba(147, 51, 234, 0.1), 0 0 60px rgba(147, 51, 234, 0.08);
  animation: pulseRing 6s ease-in-out infinite reverse;
}

.hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: float 5s ease-in-out infinite;
}

.hero-staff {
  position: absolute;
  right: -20px;
  top: -30px;
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  opacity: 0.25;
  transform: rotate(15deg);
  z-index: 1;
  animation: spinSlow 12s linear infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes spinSlow {
  0% { transform: rotate(15deg); }
  100% { transform: rotate(375deg); }
}

/* 特色介绍区 - 六边形蜂窝布局 */
.features-section {
  padding: 5rem 0;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 30%, rgba(217, 119, 6, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(147, 51, 234, 0.08) 0%, transparent 30%);
}

.honeycomb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1023px) {
  .honeycomb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .honeycomb-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(145deg, rgba(58, 32, 20, 0.92), rgba(26, 15, 10, 0.95));
  border: 1px solid rgba(217, 119, 6, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-card:nth-child(even) {
  background: linear-gradient(145deg, rgba(50, 24, 45, 0.9), rgba(26, 15, 10, 0.94));
  border-color: rgba(147, 51, 234, 0.2);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.18);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #2a1505;
  background: linear-gradient(135deg, #fbbf24, var(--color-primary));
  box-shadow: var(--shadow-gold);
}

.feature-card:nth-child(even) .feature-icon {
  background: linear-gradient(135deg, #a855f7, var(--color-secondary));
  box-shadow: var(--shadow-purple);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* 游戏截图/特色图展示 */
.gallery-section {
  padding: 5rem 0;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 15, 10, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* 下载区 - 二维码卡片矩阵 */
.download-section {
  padding: 5rem 0;
  position: relative;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.download-card {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

.download-card:hover {
  transform: translateY(-5px);
}

.download-card img {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 3px solid rgba(217, 119, 6, 0.25);
}

.download-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.download-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

@media (max-width: 1023px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* 联系区 */
.contact-section {
  padding: 5rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contact-card {
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card img {
  width: 110px;
  height: 110px;
  margin: 0 auto 0.9rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* 适配 Hero 在小屏幕的堆叠 */
@media (max-width: 767px) {
  .hero-section {
    padding: 3rem 0 4rem;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .hero-image-wrap {
    margin-top: 2.5rem;
  }
  .hero-staff {
    display: none;
  }
}
