:root {
  --primary-color: #26A9E0; /* 主色调 */
  --secondary-color: #FFFFFF; /* 辅助色 */
  --login-color: #EA7C07; /* 登录按钮颜色 */
  --background-color: #FFFFFF; /* 背景色，但body背景来自shared */
  --text-dark: #333333;
  --text-light: #ffffff;
  --body-bg-from-shared: #1a1a2e; /* From instructions */
}

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark from shared, so use light text */
  background-color: var(--body-bg-from-shared); /* Ensure consistency, though shared.css sets body */
  padding: 0;
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Video Section */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #000000; /* Dark background for video */
}

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

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevents video controls from blocking click event on parent <a> */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(38, 169, 224, 0.8); /* Using primary color */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-index__play-now-button:hover {
  background: #1e87b6; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Module 1: Hero Section */
.page-index__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  background-image: url("[GALLERY:hero_bg:1920x1080:9bet app,homepage,betting_platform,dynamic,gaming]"); /* Use hero_bg image */
  background-size: cover;
  background-position: center;
  color: var(--text-light); /* Light text for dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-index__hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* White for H1 */
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #e0e0e0; /* Slightly off-white for description */
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap; /* Prevent text wrapping on desktop */
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-primary:hover {
  background: #1e87b6; /* Slightly darker primary color */
  border-color: #1e87b6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-index__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Module 2: FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: var(--secondary-color); /* Light background */
  color: var(--text-dark); /* Dark text for light background */
}

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

.page-index__faq-main-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--primary-color);
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #f5f5f5;
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}
.page-index__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Module 3: Brand Introduction */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: var(--body-bg-from-shared); /* Dark background */
  color: var(--text-light); /* Light text */
  text-align: center;
}

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

.page-index__brand-title {
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

.page-index__brand-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have consistent height */
  display: flex;
  flex-direction: column;
}

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

.page-index__brand-item-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-index__brand-item p {
  font-size: 16px;
  color: #e0e0e0;
}

.page-index__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 20px;
}

/* Module 4: Blog List Display */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: var(--secondary-color); /* Light background */
  color: var(--text-dark); /* Dark text */
}

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

.page-index__blog-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-index__blog-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have consistent height */
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-index__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #555;
  margin: 0 20px 15px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #888;
  margin: 0 20px 20px;
  display: block;
}

.page-index__more-news-cta {
  text-align: center;
}

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

/* Responsive Design for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Video Section Mobile */
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-index__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }

  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Use contain for mobile to ensure video is fully visible */
  }

  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Hero Section Mobile */
  .page-index__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

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

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

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-index__faq-main-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext { font-size: 15px; }
  .page-index__faq-answer {
    padding: 0 15px 15px;
  }
  .page-index__faq-answer p {
    font-size: 15px;
  }

  /* Brand Section Mobile */
  .page-index__brand-section {
    padding: 60px 15px;
  }

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

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

  .page-index__brand-item {
    padding: 20px;
  }

  .page-index__brand-item-title {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .page-index__brand-item p {
    font-size: 15px;
  }

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

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

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

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

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

  .page-index__blog-item-excerpt {
    font-size: 14px;
    margin: 0 15px 10px;
  }

  .page-index__blog-item-date {
    font-size: 13px;
    margin: 0 15px 15px;
  }

  .page-index__more-news-cta {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure all content area images are responsive and not small icons */
.page-index__brand-image,
.page-index__blog-item-image,
.page-index img {
  min-width: 200px;
  min-height: 200px;
}
/* Override specific small icon prevention for any img tag */
.page-index img {
  width: auto; /* allow default width if not specified by parent */
  height: auto; /* allow default height if not specified by parent */
}
/* Enforce minimum size for all content images */
.page-index img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Ensure no CSS filters are used on images */
.page-index img,
.page-index__brand-image,
.page-index__blog-item-image,
.page-index__video {
  filter: none !important;
}