.page-index {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8; /* Slightly off-white for main content */
}

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

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

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

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-index__btn-primary {
  background: #FFD700;
  color: #000000; /* Contrast for yellow background */
  border: 2px solid #FFD700;
}

.page-index__btn-primary:hover {
  background: #e6c200;
  color: #000000;
}

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

.page-index__btn-secondary:hover {
  background: #333333;
  color: #FFD700;
}

/* HERO主图区域样式 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--header-offset, 120px); /* Assuming shared.css does NOT set body padding-top */
  margin-top: 0;
  background-color: #000000; /* Ensure black background for hero if image has transparency */
}

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

.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-color: #ffffff; /* White background for logos */
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.page-index__logo-carousel {
  display: flex;
  gap: 25px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-index__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px 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: 80px 20px;
  background-color: #f8f8f8;
}

.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: 28px;
  font-weight: bold;
  margin: 0 0 25px 0;
  color: #FFD700;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__featured-game:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.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: 30px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 2px solid #eeeeee;
}

.page-index__games-tab {
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  position: relative;
  margin-bottom: -2px; /* Compensate for border-bottom */
}

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

.page-index__games-tab.active {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
}

.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: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

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

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

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

/* 模块 1：首页介绍 */
.page-index__introduction-section {
  padding: 80px 20px;
}

.page-index__dark-section {
  background-color: #000000;
  color: #f0f0f0;
}

.page-index__dark-section .page-index__section-title {
  color: #FFD700;
}

.page-index__dark-section .page-index__section-description {
  color: #cccccc;
}

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

.page-index__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
}

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

.page-index__quick-access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* 模块 3：核心游戏/服务介绍 */
.page-index__core-games-section {
  padding: 80px 20px;
}

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

.page-index__game-category-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-index__game-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__category-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__game-category-item p {
  font-size: 16px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-index__game-category-item .page-index__btn-primary {
  margin-top: auto;
}

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

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.page-index__promo-card p {
  font-size: 16px;
  color: #666666;
  padding: 0 20px 20px 20px;
  line-height: 1.6;
}

.page-index__promo-card .page-index__btn-primary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

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

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

.page-index__info-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__info-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__info-item img {
  
  
  margin-bottom: 20px;
  filter: brightness(0) invert(1) saturate(100) hue-rotate(180deg); /* Make icons white/light for dark background */
}

.page-index__info-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__info-item p {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
}

.page-index__contact-cta {
  margin-top: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 模块 6：FAQ常见问题区域 */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #f0f0f0;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.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 25px;
  opacity: 0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #eeeeee;
}

.page-index__faq-answer p {
  color: #555555;
  font-size: 16px;
  line-height: 1.6;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-index__faq-item.active .page-index__faq-question {
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
}

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

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

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

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

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

.page-index__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

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

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

.page-index__blog-excerpt {
  font-size: 16px;
  color: #666666;
  padding: 0 20px;
  line-height: 1.6;
}

.page-index__blog-date {
  display: block;
  font-size: 14px;
  color: #999999;
  padding: 10px 20px 20px 20px;
}

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

/* 移动端响应式设计 */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 30px;
  }
  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Games Section */
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-index__featured-game-image {
    height: 400px;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__game-card-image {
    height: 180px;
  }

  /* Introduction Section */
  .page-index__intro-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Core Games Section */
  .page-index__game-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Promotions Section */
  .page-index__promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Security Support Section */
  .page-index__security-support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Hero Section */
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile if not set by shared */
  }
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Games Section */
  .page-index__games-section {
    padding: 50px 15px;
  }
  .page-index__featured-game-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .page-index__featured-game-image {
    height: 300px;
  }
  .page-index__games-tabs {
    gap: 15px;
    margin-bottom: 20px;
  }
  .page-index__games-tab {
    font-size: 17px;
    padding: 8px 0;
  }
  .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: 14px;
    margin: 10px 0;
    padding: 0 5px;
  }

  /* Introduction Section */
  .page-index__introduction-section {
    padding: 50px 15px;
  }
  .page-index__intro-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-index__feature-title {
    font-size: 20px;
  }
  .page-index__feature-item p {
    font-size: 15px;
  }

  /* Quick Access Links */
  .page-index__quick-access-section {
    padding: 50px 15px;
  }
  .page-index__quick-access-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  /* Core Games Section */
  .page-index__core-games-section {
    padding: 50px 15px;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-index__game-category-item img {
    
  }
  .page-index__category-title {
    font-size: 20px;
  }
  .page-index__game-category-item p {
    font-size: 15px;
  }

  /* Promotions Section */
  .page-index__promotions-section {
    padding: 50px 15px;
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-index__promo-card img {
    height: 200px;
  }
  .page-index__promo-title {
    font-size: 20px;
  }
  .page-index__promo-card p {
    font-size: 15px;
  }

  /* Security Support Section */
  .page-index__security-support-section {
    padding: 50px 15px;
  }
  .page-index__security-support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-index__info-title {
    font-size: 20px;
  }
  .page-index__info-item p {
    font-size: 15px;
  }
  .page-index__contact-cta {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }

  /* FAQ Section */
  .page-index__faq-section {
    padding: 50px 15px;
  }
  .page-index__faq-list {
    margin-top: 30px;
  }
  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-index__faq-answer {
    padding: 0 20px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }
  .page-index__faq-answer p {
    font-size: 15px;
  }

  /* Blog Section */
  .page-index__blog-section {
    padding: 50px 15px;
  }
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-index__blog-card img {
    height: 200px;
  }
  .page-index__blog-title {
    font-size: 20px;
  }
  .page-index__blog-excerpt {
    font-size: 15px;
  }
  .page-index__blog-date {
    font-size: 13px;
  }

  /* General image and container responsive */
  .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;
    padding-right: 15px;
  }
  .page-index__logo-item {
    width: 80px !important; 
    height: 80px !important; 
    max-width: 80px !important; 
    box-sizing: border-box;
    padding: 0; /* Remove padding from logo item to keep it tight */
  }
  .page-index__logo-item a {
    padding: 8px; /* Apply padding to the link inside */
  }
  .page-index__contact-cta,
  .page-index__quick-access-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}