/* 全局重置 + 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f172a;
  color: #f1f5f9;
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
}

.logo span {
  color: #f1f5f9;
  font-weight: 400;
}

.nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #38bdf8;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #38bdf8;
}

.nav-link:hover::after {
  width: 100%;
}

/* 主体section通用样式 */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.title-line {
  width: 80px;
  height: 3px;
  background-color: #38bdf8;
  margin: 0 auto;
  border-radius: 3px;
}

/* 1. 游戏简介（已修复：不再是正方形！） */
.intro-container {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.intro-img {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
}

.cover-img {
  width: 100%;
  height: auto; /* 关键修复：自动高度，不再压扁 */
  aspect-ratio: 3/4; /* 正确竖版比例 3:4 */
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.intro-text {
  flex: 1.5;
  min-width: 300px;
}

.intro-desc {
  font-size: 16px;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.intro-desc strong {
  color: #38bdf8;
}

/* 2. 游戏下载 */
.download-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-card {
  background-color: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(4px);
  padding: 30px;
  border-radius: 16px;
  width: 300px;
  text-align: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: #38bdf8;
}

.download-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #f1f5f9;
}

.card-desc {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: #0ea5e9;
  transform: scale(1.05);
}

/* 3. 核心剧情 */
.story-container {
  max-width: 900px;
  margin: 0 auto;
}

.story-text {
  font-size: 16px;
  color: #e2e8f0;
  line-height: 1.9;
}

.story-text p {
  margin-bottom: 20px;
}

.story-slogan {
  margin-top: 30px;
  font-size: 18px;
  color: #38bdf8;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
}

/* 4. 游戏特色 */
.feature-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: rgba(30, 41, 59, 0.5);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #38bdf8;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(30, 41, 59, 0.7);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #f1f5f9;
}

.feature-card p {
  font-size: 14px;
  color: #94a3b8;
}

/* 5. 游戏攻略 */
.guide-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.guide-card {
  background-color: rgba(30, 41, 59, 0.5);
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.guide-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.guide-card h3 {
  font-size: 18px;
  color: #38bdf8;
  margin-bottom: 10px;
}

.guide-tag {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 15px;
  display: inline-block;
  background-color: rgba(56, 189, 248, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.guide-prefer {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.guide-tips {
  font-size: 14px;
  color: #94a3b8;
}

.guide-common {
  grid-column: 1 / -1;
  background-color: rgba(56, 189, 248, 0.1);
  padding: 25px;
  border-radius: 12px;
}

.guide-common h4 {
  font-size: 18px;
  color: #38bdf8;
  margin-bottom: 15px;
}

.guide-common p {
  font-size: 14px;
  color: #e2e8f0;
}

/* 6. 游戏截图 */
.screenshot-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.shot-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.shot-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
}

/* 7. 用户评价 */
.comment-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.comment-card {
  background-color: rgba(30, 41, 59, 0.5);
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.comment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stars {
  font-size: 18px;
  color: #fbbf24;
  margin-bottom: 15px;
}

.comment-content {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.comment-author {
  font-size: 13px;
  color: #94a3b8;
  display: block;
  text-align: right;
}

/* 底部 */
.footer {
  background-color: rgba(15, 23, 42, 0.9);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  text-align: center;
}

.footer-text {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: #64748b;
}

/* ======================================
   手机端完美适配（不会变形、不压图）
====================================== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .section {
    padding: 50px 0;
  }
  .section-title h2 {
    font-size: 24px;
  }
  .intro-container {
    flex-direction: column;
    text-align: center;
  }
  .download-container {
    flex-direction: column;
    align-items: center;
  }
  .download-card {
    width: 100%;
    max-width: 320px;
  }
  .feature-container,
  .guide-container,
  .comment-container {
    grid-template-columns: 1fr;
  }
  .screenshot-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .shot-img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .screenshot-container {
    grid-template-columns: 1fr;
  }
  .shot-img {
    height: 200px;
  }
}