.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #0a0a0a, so text is white */
  background-color: #0a0a0a; /* Ensure consistency, though shared.css defines body */
}

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

.page-index__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark gray for sections */
  padding: 60px 0;
  margin-bottom: 20px;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--header-offset, 120px); /* Use var for header offset, default 120px if not set by shared */
  margin-top: 0;
  background-color: #0a0a0a;
}

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

.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 */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #1a1a1a;
  box-sizing: border-box;
}

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

.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 image container */
  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-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__intro-text {
  flex: 1;
  font-size: 1.1em;
  color: #ffffff;
}

.page-index__intro-text p {
  margin-bottom: 15px;
}

.page-index__intro-image {
  flex: 0 0 40%; /* Fixed width for image */
  max-width: 500px;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__intro-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Quick Access Section */
.page-index__quick-access-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__quick-access-description {
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.page-index__quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-index__quick-access-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__quick-access-item:hover {
  background-color: #1e87b3;
  transform: translateY(-3px);
}

.page-index__quick-access-icon {
  margin-right: 10px;
  font-size: 1.2em;
}

/* Games Section */
.page-index__games-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__games-description {
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-size: 1.1em;
}

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

.page-index__game-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__game-card-text {
  color: #f0f0f0;
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Promotions Section */
.page-index__promotions-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__promotions-description {
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-size: 1.1em;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.page-index__promo-card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-index__promo-card-text {
  color: #f0f0f0;
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: #26A9E0;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  border: 2px solid #26A9E0;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Security & Support Section */
.page-index__security-support-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__security-support-description {
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.page-index__security-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-index__feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-index__feature-card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__feature-card-text {
  color: #f0f0f0;
  font-size: 1em;
}

.page-index__security-image {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__security-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
.page-index__faq-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__faq-description {
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-index__faq-question:hover {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-index__faq-question:active {
  background: #3a3a3a;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #f0f0f0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 5px 5px;
}

/* Blog Section */
.page-index__blog-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__blog-description {
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-size: 1.1em;
}

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

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-index__blog-card img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

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

.page-index__blog-card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-index__blog-card-text {
  color: #f0f0f0;
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-readmore {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__blog-readmore:hover {
  color: #1e87b3;
  text-decoration: underline;
}

/* General Image and Button Responsive Styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__quick-access-item {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Media Queries for Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-index__container {
    padding: 15px;
  }

  .page-index__dark-section {
    padding: 40px 0;
  }

  .page-index__intro-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-index__intro-image {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .page-index__intro-title,
  .page-index__quick-access-title,
  .page-index__games-title,
  .page-index__promotions-title,
  .page-index__security-support-title,
  .page-index__faq-title,
  .page-index__blog-title {
    font-size: 2em;
  }

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

  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__security-support-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .page-index__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids stack vertically */
  }
  
  .page-index__products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-index__hero-section {
    padding-top: 0 !important; /* shared handles body padding, so hero uses 0 */
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 */
  .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 !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; /* 4-grid (2x2) */
    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;
    width: 100% !important;
  }
  
  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Maintain aspect ratio */
  }
  
  .page-index__products-grid--large {
    grid-template-columns: 1fr !important; /* 2-single-column */
    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;
    width: 100% !important;
  }
  
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Maintain aspect ratio */
  }

  /* 通用图片与容器 */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container {
    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"],
  .page-index__quick-access-item {
    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__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container,
  .page-index__quick-access-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    grid-template-columns: 1fr !important; /* Ensure single column for grids */
  }
  
  .page-index__quick-access-grid {
    grid-template-columns: 1fr !important;
  }

  /* 其他内容模块 */
  .page-index__intro-title,
  .page-index__quick-access-title,
  .page-index__games-title,
  .page-index__promotions-title,
  .page-index__security-support-title,
  .page-index__faq-title,
  .page-index__blog-title {
    font-size: 1.8em !important;
    margin-bottom: 15px !important;
  }

  .page-index__intro-text,
  .page-index__quick-access-description,
  .page-index__games-description,
  .page-index__promotions-description,
  .page-index__security-support-description,
  .page-index__faq-description,
  .page-index__blog-description,
  .page-index__game-card-text,
  .page-index__promo-card-text,
  .page-index__feature-card-text,
  .page-index__faq-question h3,
  .page-index__blog-card-text {
    font-size: 0.95em !important;
  }

  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__security-support-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__blog-card {
    padding: 20px !important;
  }

  .page-index__faq-question {
    padding: 15px !important;
    flex-wrap: wrap !important;
  }
  
  .page-index__faq-question h3 {
    font-size: 1em !important;
    margin-bottom: 0 !important;
    width: calc(100% - 40px) !important;
  }
  
  .page-index__faq-toggle {
    margin-left: 10px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 20px !important;
  }
  
  .page-index__faq-answer {
    padding: 0 15px !important;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }
}