/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a2e; /* Body background from shared.css */
  --bg-light: #f5f5f5;
  --card-bg-dark-theme: rgba(255, 255, 255, 0.1);
  --card-bg-light-theme: #ffffff;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure main content area respects body background */
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-light);
}

.page-index__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-index__light-bg .page-index__section-title,
.page-index__light-bg .page-index__section-description {
  color: var(--text-dark);
}

.page-index__card {
  background: var(--card-bg-dark-theme);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-index__light-bg .page-index__card {
  background: var(--card-bg-light-theme);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

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

.page-index__card img {
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary:hover {
  background: #1e87b7; /* Darker shade of primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary:hover {
  background: #bf6606; /* Darker shade of secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push link to bottom of card */
  display: inline-block;
  transition: color 0.3s ease;
}

.page-index__btn-link:hover {
  color: #1e87b7; /* Darker shade of primary color */
  text-decoration: underline;
}

.page-index__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-index__cta-center .page-index__btn-primary,
.page-index__cta-center .page-index__btn-secondary {
  margin: 0 10px;
}

/* 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);
  background-color: var(--bg-dark);
}

.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 宽高比 */
  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; /* 防止视频控件阻止点击事件 */
}

.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 with opacity */
  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;
}

.page-index__play-now-button:hover {
  background: #1e87b7; /* Darker shade of 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);
}

/* Title Section */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.page-index__title-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-light);
  opacity: 0.9;
}

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

/* Features Section */
.page-index__features-section {
  padding: 80px 20px;
}

.page-index__features-container,
.page-index__games-container,
.page-index__promotions-container,
.page-index__brand-container,
.page-index__faq-container,
.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__feature-item {
  text-align: center;
}

.page-index__feature-item img {
  width: 100%;
  height: 200px;
  object-fit: contain; /* Use contain for feature icons/images */
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index__light-bg .page-index__feature-title {
  color: var(--text-dark);
}

.page-index__feature-text {
  font-size: 16px;
  color: var(--text-light);
}

.page-index__light-bg .page-index__feature-text {
  color: var(--text-dark);
}

/* Games Showcase Section */
.page-index__games-showcase {
  padding: 80px 20px;
}

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

.page-index__game-item {
  text-align: center;
}

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

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

.page-index__game-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index__game-text {
  font-size: 15px;
  color: var(--text-light);
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
}

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

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

.page-index__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index__light-bg .page-index__promotion-title {
  color: var(--text-dark);
}

.page-index__promotion-text {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-index__light-bg .page-index__promotion-text {
  color: var(--text-dark);
}

/* Brand Section */
.page-index__brand-section {
  padding: 80px 20px;
}

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

.page-index__brand-item {
  background: var(--card-bg-dark-theme);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__brand-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index__brand-text {
  font-size: 16px;
  color: var(--text-light);
}

.page-index__brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-index__brand-list li {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text-light);
}

.page-index__brand-list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
}

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

/* details as FAQ card */
details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-light-theme);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}