.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background #121212 is dark, so use light text */
  background-color: #121212; /* Ensure page content background matches body */
}

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

.page-index__section {
  padding: 60px 0;
  margin-bottom: 0;
}

.page-index__section:nth-child(even) {
  background-color: #0A2E4A; /* Use main brand color for alternating sections */
}

.page-index__heading {
  font-size: 36px;
  color: #FFC107; /* Use auxiliary color for main headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index__text-block {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

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

.page-index__btn-primary {
  background-color: #FFC107; /* Auxiliary color */
  color: #0A2E4A; /* Dark blue text for contrast */
  border: 2px solid #FFC107;
}

.page-index__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

.page-index__btn-secondary {
  background-color: transparent;
  color: #FFC107; /* Auxiliary color */
  border: 2px solid #FFC107;
}

.page-index__btn-secondary:hover {
  background-color: #FFC107;
  color: #0A2E4A;
}

.page-index__btn-small {
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
  background-color: #0A2E4A;
  color: #FFC107;
  border: 1px solid #FFC107;
}

.page-index__btn-small:hover {
  background-color: #072238;
  border-color: #FFC107;
}

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

/* HERO主图区域 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
  background-color: #0A2E4A; /* Fallback background for hero */
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  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;
}

/* LOGO轮播区域 */
.page-index__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background: #0A2E4A; /* Main brand color for this section */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-index__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  width: max-content; /* Allow content to be wider than container for scrolling */
}

.page-index__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-index__logo-item {
  flex-shrink: 0;
  width: 80px; /* Fixed size */
  height: 80px; /* Fixed size */
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff; /* White background for logos */
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.page-index__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-index__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 游戏展示区域 */
.page-index__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #1a1a1a; /* A slightly lighter dark background for contrast with body */
}

.page-index__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-index__featured-game-area {
  width: 100%;
}

.page-index__featured-game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #FFC107; /* Auxiliary color for jackpot title */
  text-align: left;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0A2E4A; /* Dark blue background for featured game card */
  border: 1px solid #FFC107;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-index__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.page-index__games-grid-area {
  width: 100%;
}

.page-index__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: flex-start;
}

.page-index__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999; /* Grey for inactive tabs */
  transition: color 0.3s ease, text-decoration 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-index__games-tab:hover {
  color: #ffffff;
}

.page-index__games-tab.active {
  color: #FFC107; /* Auxiliary color for active tab */
  text-decoration: underline;
}

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

.page-index__games-grid.active {
  display: grid;
}

.page-index__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #0A2E4A; /* Dark blue background for game cards */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

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

.page-index__game-card-image {
  width: 100%;
  height: 180px; /* Adjusted height for grid cards */
  overflow: hidden;
}

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

.page-index__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 15px 0;
  padding: 0 5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* 快速访问链接入口 */
.page-index__quick-access-section .page-index__heading {
  color: #FFC107;
}

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

.page-index__quick-link-card {
  display: block;
  background: #0A2E4A;
  border: 1px solid #FFC107;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

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

.page-index__quick-link-description {
  font-size: 14px;
  color: #f0f0f0;
}

/* 核心游戏/服务介绍 */
.page-index__core-games-section .page-index__heading {
  color: #FFC107;
}

.page-index__game-category {
  background: #0A2E4A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.page-index__game-category-title {
  font-size: 28px;
  color: #FFC107;
  margin-bottom: 20px;
}

.page-index__game-category-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* 优惠活动 */
.page-index__promotions-section .page-index__heading {
  color: #FFC107;
}

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

.page-index__promotion-card {
  background: #0A2E4A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__promotion-title {
  font-size: 22px;
  color: #FFC107;
  margin-bottom: 15px;
}

.page-index__promotion-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* 安全与客服 */
.page-index__security-support-section .page-index__heading {
  color: #FFC107;
}

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

.page-index__feature-card {
  background: #0A2E4A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__feature-title {
  font-size: 20px;
  color: #FFC107;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 15px;
  color: #f0f0f0;
}

/* FAQ常见问题区域 */
.page-index__faq-section .page-index__heading {
  color: #FFC107;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #072238; /* Slightly lighter dark blue for FAQ answer background */
  border-radius: 0 0 5px 5px;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A2E4A; /* Main brand color for FAQ question */
  border: 1px solid #FFC107;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #072238;
  border-color: #e0a800;
}

.page-index__faq-question:active {
  background: #051a2d;
}

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFC107;
  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); /* Rotate for minus sign effect */
}

.page-index__faq-answer p {
  margin: 0;
  color: #f0f0f0;
  font-size: 15px;
}

/* 最新博客内容 */
.page-index__blog-section .page-index__heading {
  color: #FFC107;
}

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

.page-index__blog-card {
  background: #0A2E4A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__blog-image {
  width: 100%;
  height: 180px; /* Consistent image height for blog cards */
  object-fit: cover;
  display: block;
}

.page-index__blog-title {
  font-size: 18px;
  color: #FFC107;
  padding: 15px;
  margin: 0;
}

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

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

  .page-index__heading {
    font-size: 32px;
  }

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

  .page-index__link-grid,
  .page-index__promotion-grid,
  .page-index__feature-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index__section {
    padding: 40px 0;
  }

  .page-index__container {
    padding: 0 15px;
  }

  .page-index__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

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

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary,
  .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;
    padding-right: 15px;
  }
  
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-index__logo-carousel-section {
    padding: 20px 15px;
  }
  
  .page-index__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }
  
  .page-index__logo-carousel {
    gap: 12px;
  }
  
  .page-index__logo-item a {
    padding: 8px;
  }

  .page-index__games-section {
    padding: 40px 15px;
  }
  
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-index__featured-game-title {
    font-size: 20px;
  }
  
  .page-index__featured-game-image {
    height: 300px;
  }
  
  .page-index__games-tabs {
    gap: 15px;
  }
  
  .page-index__games-tab {
    font-size: 16px;
  }
  
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-index__game-card-image {
    height: 150px;
  }
  
  .page-index__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }

  .page-index__link-grid,
  .page-index__promotion-grid,
  .page-index__feature-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-index__quick-link-card,
  .page-index__promotion-card,
  .page-index__feature-card,
  .page-index__blog-card {
    padding: 20px;
  }

  .page-index__quick-link-title,
  .page-index__promotion-title,
  .page-index__feature-title,
  .page-index__blog-title {
    font-size: 18px;
  }

  .page-index__quick-link-description,
  .page-index__promotion-description,
  .page-index__feature-description,
  .page-index__blog-excerpt {
    font-size: 14px;
  }

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

  /* General image responsive rules for content area */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__game-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-index__container for sections */
  }
}