/* style/index.css */

.page-index {
  color: #333333; /* Body is light, so use dark text */
  background-color: #FFFFFF;
}

/* HERO 主图区域样式 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared 已给 body 留白：约 10px 级 */
  margin-top: 0;
  background-color: #f0f0f0; /* Fallback background for hero */
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
  display: block;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* 产品展示图区域样式 */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #f9f9f9;
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* 前4个占4列，后2个占2列 */
  gap: 20px;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
}

.page-index__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-index__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* 最宽不超过300px */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in grid cells */
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__product-card-image {
  width: 100%;
  max-width: 300px; /* 最宽不超过300px */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* 保持图片原始宽高比 */
  display: block;
}

/* 通用内容区域样式 */
.page-index__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 模块 1: 首页介绍 */
.page-index__intro-section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__intro-section p strong {
  color: #26A9E0;
}

/* 模块 2: 快速访问链接入口 */
.page-index__quick-links-section {
  background: linear-gradient(90deg, #26A9E0 0%, #1a8ccb 100%);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-index__quick-links-section .page-index__section-title,
.page-index__quick-links-section .page-index__section-description {
  color: #ffffff;
}

.page-index__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: #EA7C07;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: #d46d06;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index__btn-secondary:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
}

/* 模块 3: 核心游戏/服务介绍 */
.page-index__game-category {
  margin-bottom: 50px;
}

.page-index__game-title {
  font-size: 28px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 25px;
}

.page-index__game-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
}

.page-index__game-content img {
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.page-index__game-content p {
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
  flex-grow: 1;
}

.page-index__game-category:nth-child(even) .page-index__game-content {
  flex-direction: row-reverse;
}

/* 模块 4: 优惠活动 */
.page-index__promotions-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #ffffff;
}

.page-index__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__promo-item {
  background: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-index__promo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-item p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* 模块 5: 安全与客服 */
.page-index__security-support-section {
  padding: 60px 20px;
  background-color: #f0f5f9;
  box-sizing: border-box;
}

.page-index__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
}

.page-index__feature-item img {
  width: 100%;
  
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

/* 模块 6: FAQ常见问题区域 */
.page-index__faq-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
  box-sizing: border-box;
}

.page-index__faq-list {
  margin-top: 40px;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #f5f5f5;
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
details.page-index__faq-item .page-index__faq-answer p {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

/* 模块 7: 最新博客内容 */
.page-index__blog-section {
  padding: 60px 20px;
  background-color: #f0f5f9;
  box-sizing: border-box;
}

.page-index__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
}

.page-index__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__blog-card-content {
  padding: 20px;
}

.page-index__blog-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card-title a:hover {
  color: #1a8ccb;
}

.page-index__blog-card-meta {
  font-size: 14px;
  color: #888888;
  margin-bottom: 15px;
}

.page-index__blog-card-summary {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__btn-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-index__btn-link:hover {
  color: #1a8ccb;
  text-decoration: underline;
}

.page-index__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* 通用图片响应式样式 */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 移动端响应式设计 */
@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr;
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index__game-content {
    flex-direction: column;
    align-items: center;
  }

  .page-index__game-content img {
    max-width: 60%;
    margin-bottom: 20px;
  }

  .page-index__game-category:nth-child(even) .page-index__game-content {
    flex-direction: column;
  }

  .page-index__promo-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 - 移动端 */
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 - 移动端 */
  .page-index__products-section {
    padding: 40px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--small .page-index__product-card-image {
    max-width: 300px !important;
  }
  
  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__products-grid--large {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-grid--large .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card-image {
    max-width: 300px !important;
  }
  
  .page-index__products-grid--large .page-index__product-card-image 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__section,
  .page-index__card,
  .page-index__container,
  .page-index__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 - 移动端 */
  .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 !important;
    padding-right: 15px !important;
    font-size: 16px !important;
  }
  
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* 移动端垂直排列 */
    gap: 10px !important;
  }

  /* 其他内容模块 - 移动端 */
  .page-index__section-title {
    font-size: 24px !important;
    margin-bottom: 15px !important;
  }

  .page-index__section-description {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }

  .page-index__intro-section p {
    font-size: 15px !important;
  }

  .page-index__game-title {
    font-size: 22px !important;
  }

  .page-index__game-content img {
    max-width: 90% !important;
  }

  .page-index__game-content p {
    font-size: 15px !important;
  }

  .page-index__promo-list {
    grid-template-columns: 1fr !important;
  }

  .page-index__promo-item img {
    
  }

  .page-index__promo-title {
    font-size: 20px !important;
  }

  .page-index__security-features {
    grid-template-columns: 1fr !important;
  }

  .page-index__feature-title {
    font-size: 20px !important;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px !important;
  }
  .page-index__faq-qtext {
    font-size: 15px !important;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px !important;
  }

  .page-index__blog-list {
    grid-template-columns: 1fr !important;
  }

  .page-index__blog-card img {
    
  }

  .page-index__blog-card-title {
    font-size: 18px !important;
  }

  .page-index__blog-card-summary {
    font-size: 14px !important;
  }
}