.page-index {
  background-color: var(--dark-bg-1);
  color: #f0f0f0; /* Light text for dark body background */
}

/* HERO主图区域 */
.page-index__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, #FF4500, #00CED1);
  color: #ffffff;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color); /* #FF4500 */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button:hover {
  background: var(--secondary-color); /* #00CED1 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
  padding: 60px 20px;
  background: #f1f3f5; /* Light background for leaderboard */
  color: #333333; /* Dark text for light background */
  text-align: center;
}

.page-index__page-title {
  font-size: 36px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 40px;
  text-align: center;
}

.page-index__game-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__game-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-index__game-card-segment {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-index__segment-1 {
  flex-shrink: 0;
  width: 120px;
  padding-left: 0;
  align-items: flex-start;
  position: relative;
  border-left: none;
}

.page-index__segment-1::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  width: 1px;
  background-color: #e4e4e4;
}

.page-index__segment-2 {
  flex: 1;
  text-align: center;
  position: relative;
}

.page-index__segment-2::after,
.page-index__segment-3::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  width: 1px;
  background-color: #e4e4e4;
}

.page-index__segment-3 {
  flex-shrink: 0;
  width: 180px;
  position: relative;
}

.page-index__segment-4 {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 0;
}

.page-index__rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default orange for 4+ */
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-index__rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold */
}

.page-index__rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0); /* Silver */
}

.page-index__rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333); /* Bronze */
}

.page-index__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  margin-top: 10px;
  border-radius: 8px;
  object-fit: contain;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 5px;
  text-align: center;
  text-transform: uppercase;
}

.page-index__game-name-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-name-link:hover {
  color: #FF4500;
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 14px;
  color: #000000;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-index__game-description a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

.page-index__game-description a:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-size: 18px;
}

.page-index__stars {
  color: #FFD700;
  margin-right: 5px;
  font-weight: bold;
}

.page-index__rating-number {
  color: #333333;
  font-weight: bold;
}

.page-index__promotion-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-index__promotion-link {
  color: #0066cc;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
}

.page-index__promotion-link:hover {
  text-decoration: underline;
  color: #004499;
}

.page-index__hot-badge {
  background: #FF4500;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.page-index__cta-button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(135deg, #FF4500, #FF6347);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
}

.page-index__cta-button:hover {
  background: linear-gradient(135deg, #FF6347, #FF4500);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 40px 20px;
  background: #f1f3f5;
}

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

.page-index__review-content-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-index__review-title {
  font-size: 28px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 24px;
  text-align: center;
}

.page-index__review-content-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-index__review-body {
  color: #333333;
  line-height: 1.7;
}

.page-index__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Homepage Introduction Section */
.page-index__introduction-section {
  padding: 60px 20px;
  background: var(--dark-bg-1);
  color: #f0f0f0;
  text-align: center;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 40px;
}

.page-index__intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__intro-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__intro-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__card-description {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Core Games/Services Section */
.page-index__games-section {
  padding: 60px 20px;
  background: #f1f3f5;
  color: #333333;
  text-align: center;
}

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

.page-index__games-section .page-index__section-title {
  color: #333333;
}

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

.page-index__game-category-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

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

.page-index__category-link {
  color: #333333;
  text-decoration: none;
}

.page-index__category-link:hover {
  color: #FF4500;
  text-decoration: underline;
}

.page-index__category-description {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__category-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color); /* #FF4500 */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__category-button:hover {
  background: var(--secondary-color); /* #00CED1 */
  transform: translateY(-2px);
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  background: var(--dark-bg-1);
  color: #f0f0f0;
  text-align: center;
}

.page-index__promotions-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__promotions-section .page-index__section-title {
  color: #ffffff;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-index__promo-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-index__promo-description {
  font-size: 15px;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color); /* #FF4500 */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__promo-button:hover {
  background: var(--secondary-color); /* #00CED1 */
  transform: translateY(-2px);
}

.page-index__all-promos-link {
  margin-top: 20px;
}

.page-index__all-promos-button {
  display: inline-block;
  padding: 12px 30px;
  background: #00CED1; /* Auxiliary color for 'view all' */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__all-promos-button:hover {
  background: #00B8C0;
  transform: translateY(-2px);
}

/* Latest Blog Section */
.page-index__latest-blog-section {
  padding: 60px 20px;
  background: #f1f3f5;
  color: #333333;
  text-align: center;
}

.page-index__latest-blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__latest-blog-section .page-index__section-title {
  color: #333333;
}

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

.page-index__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__blog-content {
  padding: 20px;
}

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

.page-index__blog-link {
  color: #333333;
  text-decoration: none;
}

.page-index__blog-link:hover {
  color: #FF4500;
  text-decoration: underline;
}

.page-index__blog-excerpt {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 13px;
  color: #888888;
}

.page-index__all-news-link {
  margin-top: 20px;
}

.page-index__all-news-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color); /* #FF4500 */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__all-news-button:hover {
  background: var(--secondary-color); /* #00CED1 */
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 40px;
  }

  .page-index__hero-description {
    font-size: 18px;
  }

  .page-index__page-title,
  .page-index__section-title {
    font-size: 30px;
  }

  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .page-index__game-card-segment {
    padding: 10px;
    border-left: none !important;
    border-right: none !important;
    width: 100%;
    text-align: center;
  }

  .page-index__segment-1,
  .page-index__segment-2,
  .page-index__segment-3,
  .page-index__segment-4 {
    border: none;
  }

  .page-index__segment-1::after,
  .page-index__segment-2::after,
  .page-index__segment-3::after {
    content: none;
  }

  .page-index__segment-1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-bottom: 10px;
  }
  
  .page-index__rank-badge {
    position: static;
    margin-right: 15px;
    transform: none;
    box-shadow: none;
  }

  .page-index__game-icon {
    margin: 0;
  }

  .page-index__game-name,
  .page-index__game-description,
  .page-index__game-rating,
  .page-index__promotion-text {
    text-align: center;
    width: 100%;
  }

  .page-index__segment-4 {
    flex-direction: row;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
    padding: 0 15px;
  }
  
  .page-index__cta-button {
    flex: 1;
    font-size: 15px;
    padding: 10px 15px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-index__hero-description {
    font-size: 16px;
  }

  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__introduction-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__latest-blog-section {
    padding: 30px 15px;
  }

  .page-index__page-title,
  .page-index__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-index__review-content-card {
    padding: 24px 20px;
  }
  
  .page-index__review-title {
    font-size: 24px;
  }
  
  .page-index__review-content-card h3 {
    font-size: 18px;
  }
  
  .page-index__review-body p {
    font-size: 15px;
  }

  .page-index__intro-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__intro-icon {
    width: 80px;
  }

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

  .page-index__category-image,
  .page-index__promo-image,
  .page-index__blog-image {
    height: 150px;
  }

  .page-index__category-title,
  .page-index__promo-title,
  .page-index__blog-title {
    font-size: 18px;
  }

  .page-index__category-button,
  .page-index__promo-button,
  .page-index__all-promos-button,
  .page-index__all-news-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  
  .page-index__segment-4 {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .page-index__btn-download,
  .page-index__btn-review {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__intro-card,
  .page-index__game-category-card,
  .page-index__promo-card,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-index__hero-image {
    margin-left: -15px !important;
    margin-right: -15px !important;
    width: calc(100% + 30px) !important;
  }
  .page-index__hero-image img {
    border-radius: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 28px;
  }

  .page-index__hero-description {
    font-size: 14px;
  }

  .page-index__page-title,
  .page-index__section-title {
    font-size: 22px;
  }

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

  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__game-rating {
    font-size: 16px;
  }
  .page-index__promotion-link {
    font-size: 13px;
  }
  .page-index__hot-badge {
    font-size: 11px;
  }
}