.page-index {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  line-height: 1.6;
  background-color: #F4F7FB;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

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

.page-index__section-description {
  font-size: 18px;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-index__section-description--light {
  color: #f0f0f0;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-index__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.1);
}

.page-index__btn-secondary:hover {
  background: #F4F7FB;
  color: #2F6BFF;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.2);
}

.page-index__btn-text {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-index__btn-text:hover {
  color: #4A8BFF;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared already handles body padding-top */
  margin-top: 0;
  background-color: #F4F7FB;
}

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

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

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

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #F4F7FB;
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small cards, 2 large cards */
  gap: 20px;
  box-sizing: border-box;
}

.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;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
}

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

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

.page-index__product-card-image {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}

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

/* Intro Section */
.page-index__intro-section {
  padding: 80px 20px;
  background-color: #F4F7FB;
  color: #1F2D3D;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #2F6BFF;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
}

.page-index__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.page-index__quick-link-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #1F2D3D;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: #F4F7FB;
}

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

.page-index__quick-link-text {
  font-size: 16px;
  color: #1F2D3D;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 20px;
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-index__games-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 50px;
}

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

.page-index__games-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-index__game-item {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-index__game-title {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__game-text {
  font-size: 16px;
  color: #1F2D3D;
  margin-bottom: 15px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #2F6BFF;
  color: #ffffff;
  background-image: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
}

.page-index__promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.page-index__promotion-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  color: #1F2D3D;
}

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

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

.page-index__promotion-title {
  font-size: 22px;
  font-weight: 700;
  padding: 20px 20px 10px;
  color: #000000;
}

.page-index__promotion-text {
  font-size: 16px;
  padding: 0 20px 20px;
  color: #1F2D3D;
}

/* Safety & Support Section */
.page-index__safety-support-section {
  padding: 80px 20px;
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-index__safety-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.page-index__info-block {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-index__info-block img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.page-index__info-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__info-text {
  font-size: 16px;
  color: #1F2D3D;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #2F6BFF;
  color: #ffffff;
  background-image: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
}

.page-index__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #1F2D3D;
}

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #000000;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #F4F7FB;
  border-radius: 0 0 10px 10px;
  color: #1F2D3D;
}

details.page-index__faq-item .page-index__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.page-index__blog-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  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-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.page-index__blog-card-text {
  font-size: 15px;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-index__blog-card-date {
  font-size: 14px;
  color: #666666;
}

/* Copyright Section */
.page-index__copyright-section {
  padding: 30px 20px;
  background-color: #1F2D3D; /* Darker background for footer-like section */
  color: #f0f0f0;
  text-align: center;
}

.page-index__copyright-text {
  margin: 0;
  font-size: 15px;
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 32px;
  }

  .page-index__section-description {
    font-size: 17px;
  }

  .page-index__products-container {
    grid-template-columns: 1fr;
  }

  .page-index__products-grid--small,
  .page-index__products-grid--large {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

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

  .page-index__games-content {
    grid-template-columns: 1fr;
  }

  .page-index__promotions-grid,
  .page-index__safety-support-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page-index__game-title,
  .page-index__promotion-title,
  .page-index__info-title {
    font-size: 22px;
  }

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

@media (max-width: 768px) {
  /* HERO主图区域 */
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 0 !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;
    justify-content: center;
  }

  .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;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center;
  }

  .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__container,
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__safety-support-section,
  .page-index__faq-section,
  .page-index__blog-section,
  .page-index__copyright-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-index__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .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: 12px 20px !important;
    font-size: 16px !important;
  }

  /* 其他内容模块 */
  .page-index__section-title {
    font-size: 28px;
  }

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

  .page-index__quick-links-grid {
    grid-template-columns: 1fr;
  }

  .page-index__games-content {
    gap: 30px;
  }

  .page-index__promotions-grid,
  .page-index__safety-support-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__quick-link-card,
  .page-index__promotion-card,
  .page-index__info-block,
  .page-index__blog-card {
    padding: 25px;
  }

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

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

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

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

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

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

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

  .page-index__blog-card img {
    
  }
  .page-index__copyright-text {
    font-size: 14px;
  }
}