.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.2;
}

.page-index__text-block {
  font-size: 16px;
  text-align: center;
  margin-bottom: 25px;
  color: #FFF6D6; /* Text Main */
}

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Primary Color */
  border: 2px solid #F2C14E; /* Primary Color */
}

.page-index__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A; /* Background */
  transform: translateY(-2px);
}

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

/* HERO Section Styles */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared 已给 body 留白 */
  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;
}

/* Products Section Styles */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #0A0A0A; /* Background */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  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;
}

.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;
}

/* Intro Section Styles */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
}

.page-index__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

/* Quick Links Section Styles */
.page-index__quick-links-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

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

.page-index__link-card {
  background-color: #0A0A0A; /* Background */
  padding: 30px;
  border-radius: 8px;
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
}

.page-index__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: #F2C14E; /* Primary Color */
}

.page-index__link-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Primary Color */
}

.page-index__link-card-desc {
  font-size: 15px;
  color: #FFF6D6;
}

/* Games Section Styles */
.page-index__games-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

.page-index__games-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 25px;
  padding-bottom: 20px;
  margin-top: 40px;
}

.page-index__games-carousel::-webkit-scrollbar {
  height: 8px;
}

.page-index__games-carousel::-webkit-scrollbar-thumb {
  background: #F2C14E; /* Primary Color */
  border-radius: 10px;
}

.page-index__games-carousel::-webkit-scrollbar-track {
  background: #3A2A12; /* Border */
  border-radius: 10px;
}

.page-index__game-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid #3A2A12; /* Border */
}

.page-index__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Primary Color */
  padding: 0 15px;
}

.page-index__game-desc {
  font-size: 14px;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Promotions Section Styles */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
}

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

.page-index__promo-card {
  background-color: #0A0A0A; /* Background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border */
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-index__promo-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Primary Color */
  padding: 0 15px;
}

.page-index__promo-desc {
  font-size: 14px;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Safety & Support Section Styles */
.page-index__safety-support-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-index__info-card {
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border */
  text-align: center;
  padding-bottom: 25px;
}

.page-index__info-card img {
  width: 100%;
  
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__info-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Primary Color */
  padding: 0 15px;
}

.page-index__info-desc {
  font-size: 14px;
  color: #FFF6D6;
  padding: 0 15px;
}

/* FAQ Section Styles */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #0A0A0A; /* Background */
}

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;
  color: #FFF6D6; /* Text Main */
}

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

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  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: #0A0A0A; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6; /* Text Main */
}

.page-index__faq-answer p {
  margin-top: 10px;
  color: #FFF6D6;
}

/* Blog Section Styles */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-index__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border */
  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;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 15px 10px;
}

.page-index__blog-title a {
  color: #F2C14E; /* Primary Color */
  text-decoration: none;
}

.page-index__blog-title a:hover {
  text-decoration: underline;
}

.page-index__blog-date {
  font-size: 13px;
  color: #FFD36B; /* Glow */
  margin: 0 15px 10px;
}

.page-index__blog-excerpt {
  font-size: 15px;
  color: #FFF6D6;
  margin: 0 15px 20px;
}

.page-index__blog-card .page-index__btn-secondary {
  margin: 0 15px 20px;
}

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

/* General Image Styles for content area */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack products grid vertically */
  }

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

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

  .page-index__games-carousel {
    padding: 0 20px 20px;
  }

  .page-index__game-card {
    flex: 0 0 280px;
  }
}

/* Mobile Responsive - @media (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important;
  }

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

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

  .page-index__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !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-left: 15px;
    padding-right: 15px;
  }

  /* Product Showcase Mobile Styles */
  .page-index__products-section {
    padding: 40px 15px;
    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;
    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;
    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: 100% !important; /* Adjust to fit 2 columns */
  }

  .page-index__products-grid--small .page-index__product-card-image img {
    width: 100% !important;
    height: auto !important;
  }

  .page-index__products-grid--large {
    grid-template-columns: 1fr !important;
    gap: 15px;
    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: 100% !important;
  }

  .page-index__products-grid--large .page-index__product-card-image img {
    width: 100% !important;
    height: auto !important;
  }

  /* General Images and Containers Mobile Styles */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__intro-section,
  .page-index__quick-links-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__safety-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 40px 0;
  }

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

  .page-index__link-card,
  .page-index__promo-card,
  .page-index__info-card,
  .page-index__blog-card {
    margin: 0 auto;
    max-width: 400px; /* Constrain single column cards */
  }

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

  .page-index__link-card-desc {
    font-size: 14px;
  }

  .page-index__games-carousel {
    padding: 0 15px 20px;
    gap: 15px;
  }

  .page-index__game-card {
    flex: 0 0 calc(100% - 30px); /* Adjust for padding */
    max-width: calc(100% - 30px); /* Ensure it doesn't overflow */
  }

  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;
    margin-left: 10px;
  }

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

  .page-index__blog-card img {
    
  }

  .page-index__blog-title {
    font-size: 18px;
    margin: 10px 15px 5px;
  }

  .page-index__blog-date,
  .page-index__blog-excerpt {
    font-size: 14px;
    margin: 0 15px 15px;
  }

  .page-index__blog-card .page-index__btn-secondary {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
  }
}