/* === 智能颜色对比度保障系统 === */
.page-index {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-index__page-title .page-index__title-main {
  color: #F2FFF6;
}

.page-index__seo-links {
  color: #A7D9B8; /* Text Secondary */
}

.page-index__seo-links a {
  color: #57E38D; /* Glow */
}

.page-index__home-content blockquote {
  border-left: 4px solid #F2C14E; /* Gold */
  color: #A7D9B8; /* Text Secondary */
}

.page-index__home-content blockquote p strong a {
  color: #F2C14E; /* Gold */
}

.page-index__home-content p,
.page-index__home-content li {
  color: #A7D9B8; /* Text Secondary */
}

.page-index__home-content h2 {
  background: linear-gradient(-225deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: page-index-gradient 5s linear infinite;
}

.page-index__home-content h3 {
  color: #F2FFF6; /* Text Main */
}

.page-index__wp-caption-text {
  color: #A7D9B8; /* Text Secondary */
}

.page-index__game-card h4,
.page-index__blog-card-body h5,
.page-index__blog-slide-link h5 {
  color: #F2C14E; /* Gold */
}

.page-index__game-card,
.page-index__blog-card-link {
  color: inherit; /* Inherit from parent, usually Text Main or Secondary */
}

.page-index__btn-outline {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 5px;
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-index__btn-outline:hover {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  border-color: transparent;
  color: #F2FFF6;
}

.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

.page-index__post-date span:first-child {
  display: block;
  font-weight: bold;
  font-size: 14px;
}

.page-index__blog-card:hover {
  border-color: #57E38D; /* Glow */
}

/* === 模块 0：顶区 Hero 主图 === */
.page-index__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  background-color: #08160F;
}
.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* === 模块 1：h1 标题区 + SEO 合作外链条 === */
.page-index__title-section {
  max-width: 1330px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background-color: #08160F;
}
.page-index__page-title {
  font-weight: bold;
  margin: 0 0 15px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* H1 font size clamp */
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  position: relative;
  padding-bottom: 15px;
}
.page-index__page-title::before,
.page-index__page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #F2C14E; /* Gold */
}
.page-index__page-title::before {
  left: calc(50% - 70px);
}
.page-index__page-title::after {
  right: calc(50% - 70px);
}
.page-index__seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  gap: 5px 10px;
  padding: 10px 0;
  color: #A7D9B8; /* Text Secondary */
}
.page-index__seo-link-item a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* === 模块 2：可滚动长文区 === */
.page-index__home-content {
  border: 1px solid #F2C14E; /* Gold */
  border-radius: 10px;
  padding: 0 15px;
  height: 650px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #F2C14E #1A202C;
  max-width: 1330px;
  margin: 20px auto;
  background-color: #08160F;
}
.page-index__home-content h2 {
  background: linear-gradient(-225deg, #2AD16F 0%, #13994A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: page-index-gradient 5s linear infinite;
  margin: 30px 0 15px;
  font-size: 1.8em;
  line-height: 1.3;
}
.page-index__home-content h3 {
  color: #F2FFF6; /* Text Main */
  margin: 20px 0 10px;
  font-size: 1.4em;
  line-height: 1.4;
}
.page-index__home-content p {
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  margin-bottom: 15px;
}
.page-index__home-content ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}
.page-index__home-content ol {
  list-style-type: decimal;
  margin-left: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}
.page-index__home-content li {
  margin-bottom: 8px;
}
.page-index__wp-caption {
  text-align: center;
  margin: 20px auto;
}
.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.page-index__wp-caption-text {
  font-style: italic;
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 5px;
}
.page-index__home-content blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 4px solid #F2C14E; /* Gold */
  background-color: #11271B; /* Card BG */
  border-radius: 5px;
}
.page-index__home-content blockquote p {
  margin: 0;
  color: #A7D9B8; /* Text Secondary */
}
.page-index__home-content::-webkit-scrollbar {
  width: 8px;
}
.page-index__home-content::-webkit-scrollbar-thumb {
  background-color: #F2C14E; /* Gold */
  border-radius: 10px;
}
.page-index__home-content::-webkit-scrollbar-track {
  background-color: #1A202C;
}

@keyframes page-index-gradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 模块 3–6 共享：深色区块与金色标题线 === */
.page-index__row-games,
.page-index__row-sport,
.page-index__row-coop {
  background-color: #08160F; /* Background */
  padding: 40px 20px;
  max-width: 1330px;
  margin: 20px auto;
  box-sizing: border-box;
}
.page-index__games-title,
.page-index__sport-title,
.page-index__coop-title {
  color: #F2FFF6; /* Text Main */
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 10px;
}
.page-index__games-title::after,
.page-index__sport-title::after,
.page-index__coop-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #F2C14E; /* Gold */
  margin: 8px auto 0;
}

/* === 模块 3：游戏横滑 === */
.page-index__slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.page-index__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  transition: transform 0.4s ease;
  padding-bottom: 15px; /* Space for scrollbar on mobile */
}
.page-index__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  min-width: 0;
}
.page-index__game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2E7A4E;
  transition: border-color 0.3s ease;
}
.page-index__game-card:hover {
  border-color: #57E38D; /* Glow */
}
.page-index__game-card-image {
  position: relative;
  width: 100%;
  padding-top: 71.2%; /* 146/205 = ~0.712 */
  overflow: hidden;
}
.page-index__game-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index__game-card h4 {
  color: #F2C14E; /* Gold */
  margin: 8px 0 10px;
  font-size: 14px;
  text-align: center;
  padding: 0 5px;
}
.page-index__slider-prev,
.page-index__slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(17, 168, 78, 0.7); /* Main color with opacity */
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}
.page-index__slider-prev:hover,
.page-index__slider-next:hover {
  background-color: #11A84E;
}
.page-index__slider-prev {
  left: 10px;
}
.page-index__slider-next {
  right: 10px;
}

/* === 模块 4：合作品牌固定 6 列（仅此模块禁止滚动） === */
.page-index__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: visible;
  padding: 20px 0;
}
.page-index__banner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.page-index__banner-item a {
  display: block;
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
  text-align: center;
}
.page-index__banner-item img {
  width: 100%;
  
  height: auto;
  
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* === 模块 5：博客卡片区等高网格 === */
.page-index__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.page-index__blog-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  height: 100%;
  transition: border-color 0.3s ease;
}
.page-index__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.page-index__blog-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio for blog images */
  overflow: hidden;
  flex-shrink: 0;
}
.page-index__blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index__blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 15px;
  min-height: 0;
}
.page-index__blog-card-body h5 {
  color: #F2C14E; /* Gold */
  margin: 0 0 10px;
  font-size: 1.1em;
  line-height: 1.4;
}
.page-index__blog-card-body p {
  color: #A7D9B8; /* Text Secondary */
  margin: 0 0 12px;
  flex: 1 1 auto;
  font-size: 0.9em;
  line-height: 1.5;
}
.page-index__btn-outline {
  margin-top: auto;
  align-self: flex-start;
}
.page-index__blog-card:hover {
  border-color: #57E38D; /* Glow */
}

/* === 模块 6：最新博客轮播 === */
.page-index__blog-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}
.page-index__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.4s ease;
  padding-bottom: 15px; /* Space for scrollbar on mobile */
}
.page-index__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* (20px * 2 / 3) = 13.333px */
  max-width: calc(33.333% - 14px);
  min-width: 0;
}
.page-index__blog-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  height: 100%;
  transition: border-color 0.3s ease;
}
.page-index__blog-slide-link:hover {
  border-color: #57E38D; /* Glow */
}
.page-index__blog-slide-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}
.page-index__blog-slide-link h5 {
  color: #F2C14E; /* Gold */
  margin: 10px 15px 6px;
  font-size: 1em;
  line-height: 1.4;
}
.page-index__blog-slide-link p {
  color: #A7D9B8; /* Text Secondary */
  margin: 0 15px 15px;
  font-size: 0.85em;
  line-height: 1.5;
}

/* === 移动端通用图片与容器适配 === */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-index__section,
.page-index__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* === 移动端按钮响应式适配 === */
.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__cta-buttons,
.page-index__button-group,
.page-index__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* === 移动端媒体查询 (max-width: 768px) === */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-index__hero-section {
    padding-top: 10px;
  }
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* H1 标题区 */
  .page-index__title-section {
    padding: 15px;
  }
  .page-index__page-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding-bottom: 10px;
  }
  .page-index__page-title::before,
  .page-index__page-title::after {
    width: 30px;
    left: calc(50% - 40px);
    right: calc(50% - 40px);
  }
  .page-index__seo-links {
    font-size: 13px;
    gap: 5px;
  }

  /* 长文金框区 */
  .page-index__home-content {
    height: 500px; /* Adjust height for mobile */
    padding: 0 10px;
    margin: 15px auto;
  }
  .page-index__home-content h2 {
    font-size: 1.5em;
  }
  .page-index__home-content h3 {
    font-size: 1.2em;
  }
  .page-index__home-content p,
  .page-index__home-content li {
    font-size: 0.95em;
  }
  .page-index__wp-caption img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 游戏轮播 */
  .page-index__slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Ensure scrollbar is visible */
  }
  .page-index__game-slide {
    scroll-snap-align: start;
    flex: 0 0 160px;
    max-width: 160px;
  }
  .page-index__slider-prev,
  .page-index__slider-next {
    display: none; /* Hide buttons on small screens if using native scroll */
  }

  /* 合作品牌六宫格 */
  .page-index__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    padding: 15px 0;
  }
  .page-index__banner-item img {
    
    
  }

  /* 博客卡片区 */
  .page-index__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-index__blog-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__post-date {
    font-size: 10px;
    padding: 3px 6px;
  }
  .page-index__post-date span:first-child {
    font-size: 12px;
  }

  /* 最新博客轮播 */
  .page-index__blog-slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .page-index__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    display: none; /* Hide buttons on small screens if using native scroll */
  }
  .page-index__blog-slide-link img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 通用图片与容器 */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-section,
  .page-index__title-section,
  .page-index__home-content,
  .page-index__row-games,
  .page-index__row-sport,
  .page-index__row-coop,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center; /* Center button text if it wraps */
  }
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}