/* 主内容视口容器，单区域显示 */
main {
  padding: 40px;
  min-height: calc(100vh - 92px);
}

/* 所有内容区块默认隐藏 */
.page-block {
  display: none;
}

/* 当前激活页面显示 */
.page-block.show {
  display: block;
}

/* 区块标题美化 紫蓝金渐变文字 */
.page-title {
  font-size: 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #9470ff, #48c0ff, #ffdd77);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #b0b0cc;
  max-width: 900px;
}

/* 移动端适配 */
@media screen and (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 20px;
  }
}

/* ====== 首页专属固定顶部版本标题 ====== */
.home-fixed-top {
  /* position: sticky; */
  top: 92px;
  width: 100%;
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(180deg, #0c0c14, rgba(12, 12, 20, 0.9));
  z-index: 99;
}

.home-version-title {
  font-size: 34px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #9470ff, #48c0ff, #ffdd77);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.home-version-desc {
  color: #b0b0cc;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ====== 首页左右分栏布局 ====== */
.home-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  position: relative;
}

/* 首页左侧子导航 固定定位 */
.home-sub-nav {
  min-width: 200px;
  position: sticky;
  top: calc(92px + 140px);
  /* 顶部全局导航高度 + 首页固定标题高度 */
  align-self: flex-start;
  /* 只固定自身，不占满高度 */
}

.home-sub-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-sub-item {
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  color: #b8b8d0;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.home-sub-item:hover {
  background: rgba(130, 90, 240, 0.18);
  color: #e0d0ff;
}

.home-sub-item.active {
  background: linear-gradient(135deg, rgba(110, 70, 220, 0.22), rgba(60, 160, 255, 0.12));
  border: 1px solid rgba(140, 100, 255, 0.4);
  color: #d8c8ff;
  box-shadow: 0 0 8px rgba(120, 80, 240, 0.2);
}

/* 首页右侧内容区 */
.home-sub-content {
  flex: 1;
}

.home-sub-block {
  display: none;
}

.home-sub-block.show {
  display: block;
}

/* 移动端适配首页分栏 */
@media screen and (max-width: 768px) {
  .home-container {
    flex-direction: column;
  }

  /* 移动端取消固定，正常流动布局 */
  .home-sub-nav {
    position: static;
  }

  .home-sub-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .home-version-title {
    font-size: 24px;
  }
}

/* 版本预告页面样式 */
.sub-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.video-card-box {
  text-align: center;
}

.video-card-title {
  font-size: 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #9470ff, #48c0ff, #ffdd77);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.video-cover {
  width: 80%;
  max-width: 720px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.video-cover:hover {
  border-color: #ffd77080;
  box-shadow: 0 0 16px rgba(150, 110, 255, 0.35);
  transform: scale(1.02);
}

/* 移动端适配封面宽度 */
@media screen and (max-width:768px) {
  .video-cover {
    width: 100%;
  }
}

/* 活动祈愿顶部切换导航 */
.wish-tab-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
  /* 禁止自动换行，强制同行 */
  flex-wrap: nowrap;
}

.wish-tab-item {
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: #b8b8d0;
  cursor: pointer;
  transition: 0.3s all;
  /* 压缩文字不换行 */
  white-space: nowrap;
}

.wish-tab-item:hover {
  background: rgba(130, 90, 240, 0.18);
  color: #e0d0ff;
}

.wish-tab-item.active {
  background: linear-gradient(135deg, rgba(110, 70, 220, 0.22), rgba(60, 160, 255, 0.12));
  border: 1px solid rgba(140, 100, 255, 0.4);
  color: #d8c8ff;
  box-shadow: 0 0 8px rgba(120, 80, 240, 0.2);
}

/* 祈愿卡池区块容器 */
.wish-stage-block {
  display: none;
}

.wish-stage-block.show {
  display: block;
}

/* 单卡池模块 */
.wish-card-wrap {
  margin-bottom: 48px;
  text-align: center;
}

.wish-card-title {
  font-size: 22px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #9470ff, #48c0ff, #ffdd77);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wish-card-img {
  width: 90%;
  max-width: 680px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: 0.3s all;
}

.wish-card-img:hover {
  border-color: #ffd77080;
  box-shadow: 0 0 16px rgba(150, 110, 255, 0.35);
  transform: scale(1.015);
}

@media screen and (max-width:768px) {
  .wish-card-img {
    width: 100%;
  }

  .wish-tab-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }
}

/* 全新剧情板块样式 */
.story-block-wrap {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.story-item {
  text-align: center;
}

.story-title {
  font-size: 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #9470ff, #48c0ff, #ffdd77);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-img {
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: 0.3s ease;
  margin-bottom: 12px;
}

.story-img:hover {
  border-color: #ffd77080;
  box-shadow: 0 0 16px rgba(150, 110, 255, 0.35);
  transform: scale(1.015);
}

.story-desc {
  color: #b0b0cc;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
}

@media screen and (max-width:768px) {
  .story-img {
    width: 100%;
  }
}

/* 全新地图页面样式 */
.map-wrap {
  text-align: center;
  padding: 20px 0;
}

.map-name-title {
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #9470ff, #48c0ff, #ffdd77);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.map-img {
  width: 92%;
  max-width: 900px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: 0.3s ease;
}

.map-img:hover {
  border-color: #ffd77080;
  box-shadow: 0 0 20px rgba(150, 110, 255, 0.35);
  transform: scale(1.01);
}

@media screen and (max-width:768px) {
  .map-img {
    width: 100%;
  }
}

/* 限时活动页面样式 */
.event-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  text-align: center;
}

.event-title {
  font-size: 26px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #9470ff, #48c0ff, #ffdd77);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.event-img-single {
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: 0.3s ease;
}

.event-img-single:hover {
  border-color: #ffd77080;
  box-shadow: 0 0 16px rgba(150, 110, 255, 0.35);
  transform: scale(1.015);
}

.event-preview-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.event-preview-img {
  width: 42%;
  max-width: 400px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: 0.3s ease;
}

.event-preview-img:hover {
  border-color: #ffd77080;
  box-shadow: 0 0 16px rgba(150, 110, 255, 0.35);
  transform: scale(1.015);
}

@media screen and (max-width:768px) {
  .event-preview-img {
    width: 100%;
  }

  .event-img-single {
    width: 100%;
  }
}