.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1);
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-index__highlight {
  color: #26A9E0;
  font-weight: bold;
}

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

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-index__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

.page-index__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.6);
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.2);
}

.page-index__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
  transform: translateY(-2px);
}

.page-index__btn-tertiary {
  background: #EA7C07; /* Orange for 'Login' related actions or specific game CTAs */
  color: #ffffff;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
  margin-top: 20px;
}

.page-index__btn-tertiary:hover {
  background: #c26706;
  border-color: #c26706;
  transform: translateY(-1px);
}

/* HERO主图区域样式 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared 已给 body 留白时用 0；若 shared 未给 body 留白则改为 var(--header-offset, 120px) */
  margin-top: 0;
}

.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: #0d0d0d; /* Slightly darker background for contrast */
  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; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  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: 6px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* 允许内部链接点击 */
}

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

.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: var(--dark-bg-1);
}

.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: #ffd700; /* Yellow text */
  text-align: left;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  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.5);
}

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

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

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

.page-index__games-tab.active {
  color: #26A9E0; /* Brand 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: #1a1a1a;
  border: 1px solid #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  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.4);
}

.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: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px 5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Homepage Intro Section */
.page-index__intro-section {
  padding: 80px 20px;
  background: #1a1a1a;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #ffffff;
  line-height: 1.2;
}

.page-index__intro-description {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 60px 20px;
  background: var(--dark-bg-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__link-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__link-card:hover {
  background: #26A9E0;
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(38, 169, 224, 0.4);
}

.page-index__link-icon {
  font-size: 28px;
  color: #ffd700;
  flex-shrink: 0;
}

.page-index__link-text {
  flex-grow: 1;
}

/* Core Games/Services Section */
.page-index__core-games-section {
  padding: 80px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__game-category-card {
  background: var(--dark-bg-1);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-index__game-category-card p {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background: var(--dark-bg-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__promo-card {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__promo-card p {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security & Customer Service Section */
.page-index__security-section {
  padding: 80px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__feature-item {
  background: var(--dark-bg-1);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

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

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

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background: var(--dark-bg-1);
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333333;
}

.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 20px;
  opacity: 0;
  color: #f0f0f0;
}

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a;
  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: #2a2a2a;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  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: #ffd700;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

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

.page-index__blog-title {
  font-size: 20px;
  font-weight: bold;
  color: #26A9E0;
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

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

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

/* Dark background general styles */
.page-index__dark-section {
  background: #1a1a1a;
  color: #ffffff;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-index__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-index__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .page-index__main-title {
    font-size: 36px;
  }
  
  .page-index__intro-description {
    font-size: 16px;
  }

  .page-index__quick-links-section .page-index__links-grid,
  .page-index__core-games-section .page-index__game-category-grid,
  .page-index__promotions-section .page-index__promo-grid,
  .page-index__security-section .page-index__security-features,
  .page-index__blog-section .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__container {
    padding: 0 15px;
  }

  .page-index__section-title {
    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;
    margin-bottom: 30px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 15px;
  }

  /* HERO主图区域 */
  .page-index__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0 !important; /* 留白只做一处：shared 已给 body 留白时 hero 用 0 */
    margin-top: 0;
  }
  
  .page-index__hero-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* LOGO轮播区域 */
  .page-index__logo-carousel-section {
    padding: 20px 15px;
  }
  
  .page-index__logo-carousel {
    gap: 12px;
  }
  
  .page-index__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }
  
  .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 8px 3px;
  }

  /* Homepage Intro Section */
  .page-index__intro-section {
    padding: 60px 15px;
  }

  .page-index__main-title {
    font-size: 32px;
  }

  .page-index__intro-description {
    font-size: 15px;
  }

  /* Quick Links Section */
  .page-index__quick-links-section {
    padding: 40px 15px;
  }

  .page-index__links-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-index__link-card {
    font-size: 16px;
    padding: 15px;
  }

  .page-index__link-icon {
    font-size: 24px;
  }

  /* Core Games/Services Section */
  .page-index__core-games-section {
    padding: 60px 15px;
  }

  .page-index__game-category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-index__game-category-card p {
    font-size: 14px;
  }

  /* Promotions Section */
  .page-index__promotions-section {
    padding: 60px 15px;
  }

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

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

  /* Security & Customer Service Section */
  .page-index__security-section {
    padding: 60px 15px;
  }

  .page-index__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* FAQ Section */
  .page-index__faq-section {
    padding: 60px 15px;
  }

  .page-index__faq-question {
    padding: 15px;
  }
  
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* Blog Section */
  .page-index__blog-section {
    padding: 60px 15px;
  }

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

  .page-index__blog-image {
    height: 180px;
  }

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

  .page-index__blog-excerpt {
    font-size: 14px;
    margin: 0 15px 15px 15px;
  }
  
  /* Generic image responsiveness for all images */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers for responsive */
  .page-index__section, .page-index__card, .page-index__container, .page-index__games-layout, .page-index__links-grid, .page-index__game-category-grid, .page-index__promo-grid, .page-index__security-features, .page-index__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by specific sections */
  }
}