.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F4F7FB; /* Default background */
}

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

.page-index__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 30px;
}

.page-index__section-title--white {
  color: #ffffff;
}

.page-index__text-block {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-index__text-block--white {
  color: #ffffff;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-promo,
.page-index__btn-readmore,
.page-index__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-index__btn-primary--full {
  width: 100%;
  max-width: 300px; /* Limit full-width button on desktop */
  margin: 0 auto;
}

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

.page-index__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

.page-index__btn-promo {
  background: #2F6BFF;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
}

.page-index__btn-promo:hover {
  background: #6FA3FF;
}

.page-index__btn-readmore {
  background: #6FA3FF;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
}

.page-index__btn-readmore:hover {
  background: #2F6BFF;
}

.page-index__btn-small {
  background: #6FA3FF;
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  font-size: 14px;
}

.page-index__btn-small:hover {
  background: #2F6BFF;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* HERO主图区域样式 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared.css has body padding-top */
  margin-top: 0;
  overflow: hidden;
}

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

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

.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: #F4F7FB;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small cards + 2 large cards */
  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; /* Max width for each product card */
  border-radius: 0; /* No rounded corners */
  overflow: hidden;
  background: transparent;
  box-shadow: none; /* No shadow */
  transition: transform 0.3s ease;
}

.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; /* Max width for product image */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}

/* 首页介绍模块 */
.page-index__introduction-section {
  padding: 80px 20px;
  background: #FFFFFF;
  color: #1F2D3D;
}

/* 快速访问链接模块 */
.page-index__quick-access-section {
  padding: 80px 20px;
  background: #2F6BFF;
  color: #ffffff;
}

.page-index__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-index__quick-link-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__quick-link-description {
  font-size: 15px;
  color: #f0f0f0;
  line-height: 1.5;
}

/* 核心游戏/服务介绍模块 */
.page-index__games-overview-section {
  padding: 80px 20px;
  background: #F4F7FB;
}

.page-index__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-index__game-category--reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.page-index__game-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-index__game-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__game-content {
  flex: 1;
}

.page-index__game-title {
  font-size: 28px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-index__game-description {
  font-size: 16px;
  line-height: 1.8;
  color: #1F2D3D;
  margin-bottom: 25px;
}

/* 优惠活动模块 */
.page-index__promotions-section {
  padding: 80px 20px;
  background: #2F6BFF;
  color: #ffffff;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
}

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

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

.page-index__promo-description {
  font-size: 15px;
  color: #f0ff;
  line-height: 1.6;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* 安全与客服模块 */
.page-index__security-support-section {
  padding: 80px 20px;
  background: #FFFFFF;
}

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

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

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 15px;
  color: #1F2D3D;
  line-height: 1.7;
}

/* FAQ常见问题区域 */
.page-index__faq-section {
  padding: 80px 20px;
  background: #F4F7FB;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
}

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: #F4F7FB;
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #6FA3FF;
  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: #F9FCFF;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D;
}

.page-index__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.7;
  color: #1F2D3D;
}

.page-index__faq-answer .page-index__btn-small {
  margin-top: 10px;
}

/* 最新博客内容模块 */
.page-index__blog-section {
  padding: 80px 20px;
  background: #FFFFFF;
}

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

.page-index__blog-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__blog-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-index__blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-title a {
  text-decoration: none;
  color: inherit;
}

.page-index__blog-title a:hover {
  color: #2F6BFF;
}

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

.page-index__blog-excerpt {
  font-size: 15px;
  color: #1F2D3D;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Global image styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------- */
/* 🚨 Mobile Responsive Styles (max-width: 1024px) */
/* -------------------------------------------------- */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 28px;
  }

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

  .page-index__game-category,
  .page-index__game-category--reverse {
    flex-direction: column;
    text-align: center;
  }

  .page-index__game-content {
    margin-top: 30px;
  }

  .page-index__game-title {
    font-size: 24px;
  }

  .page-index__promo-card img {
    
  }

  .page-index__feature-item {
    padding: 20px;
  }

  .page-index__blog-image-wrapper {
    height: 180px;
  }
}

/* -------------------------------------------------- */
/* 🚨 Mobile Responsive Styles (max-width: 768px) */
/* -------------------------------------------------- */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-index__text-block {
    font-size: 15px;
  }

  /* HERO主图区域 */
  .page-index__hero-section {
    padding-top: 10px !important; /* Fixed header offset handled by body, this is extra spacing */
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 */
  .page-index__products-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-index__products-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr) !important; /* 2x2 grid for first 4 cards */
    gap: 15px !important;
    max-width: 100% !important;
    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: 100% !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; /* Each of the last 2 cards takes a full row */
    gap: 15px !important;
    max-width: 100% !important;
    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: 100% !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__game-image-wrapper img {
    border-radius: 5px;
  }

  /* 按钮与按钮容器 */
  .page-index__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-promo,
  .page-index__btn-readmore,
  .page-index__btn-small,
  .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;
  }

  .page-index__btn-primary--full {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* 其他内容模块 */
  .page-index__quick-access-section {
    padding: 50px 15px;
  }

  .page-index__links-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-index__quick-link-title {
    font-size: 18px;
  }

  .page-index__game-category,
  .page-index__game-category--reverse {
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-index__game-title {
    font-size: 20px;
  }

  .page-index__game-description {
    font-size: 15px;
  }

  .page-index__promotions-section {
    padding: 50px 15px;
  }

  .page-index__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__promo-card img {
    
  }

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

  .page-index__security-support-section {
    padding: 50px 15px;
  }

  .page-index__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__feature-title {
    font-size: 18px;
  }

  .page-index__faq-section {
    padding: 50px 15px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }

  .page-index__faq-qtext {
    font-size: 15px;
  }

  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }

  .page-index__faq-answer p {
    font-size: 14px;
  }

  .page-index__blog-section {
    padding: 50px 15px;
  }

  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__blog-image-wrapper {
    height: 160px;
  }

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

  .page-index__blog-meta {
    font-size: 13px;
  }

  .page-index__blog-excerpt {
    font-size: 14px;
  }
}

/* Color contrast classes */
.page-index__light-bg {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-index__dark-bg {
  background-color: #2F6BFF;
  color: #ffffff;
}