:root {
  --primary-color: #017439; /* Main green */
  --secondary-color: #FFFFFF; /* Auxiliary white */
  --btn-register-bg: #C30808; /* Red for register */
  --btn-login-bg: #C30808; /* Red for login */
  --btn-register-login-text: #FFFF00; /* Yellow text for register/login */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #017439;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Default light background */
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-index__section-subtitle {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 40px;
}

/* Color schemes for sections */
.page-index__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.page-index__dark-bg .page-index__section-title,
.page-index__dark-bg .page-index__section-subtitle,
.page-index__dark-bg h3 {
  color: var(--text-light);
}

/* --- CTA Buttons General --- */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--primary {
  background: var(--btn-register-bg);
  color: var(--btn-register-login-text);
  margin-right: 15px;
}

.page-index__cta-button--primary:hover {
  background: #A00606; /* Darker red for hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: var(--btn-login-bg);
  color: var(--btn-register-login-text);
}

.page-index__cta-button--secondary:hover {
  background: #A00606; /* Darker red for hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-small:hover {
  background: #005C2E; /* Darker green for hover */
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__cta-center {
  margin-top: 40px;
}

/* --- HERO Section --- */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%); /* Darker gradient for hero */
  color: var(--text-light);
  overflow: hidden; /* Ensure no overflow from image */
}

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

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Ensure image is behind content if content is overlaid */
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px; /* Constrain content width */
  margin-top: -100px; /* Overlay content slightly on image */
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
  border-radius: 12px;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 15px;
  color: var(--btn-register-login-text); /* Yellow for high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* --- Module 1: Intro Section --- */
.page-index__intro-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-index__intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__intro-text {
  flex: 2;
}

.page-index__intro-text p {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-dark);
}

.page-index__intro-text strong {
  color: var(--primary-color);
}

.page-index__intro-image {
  flex: 1;
  min-width: 300px;
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

/* --- Module 2: Quick Access Section --- */
.page-index__quick-access-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__quick-access-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-light);
  text-align: left;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__quick-access-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__quick-access-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--btn-register-login-text); /* Yellow for titles */
}

.page-index__quick-access-item p {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Module 3: Games Section --- */
.page-index__games-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__game-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-card .page-index__game-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px;
}

.page-index__game-card .page-index__game-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card .page-index__game-title a:hover {
  color: #005C2E; /* Darker green for hover */
}

.page-index__game-card .page-index__game-description {
  font-size: 15px;
  color: #666;
  margin: 0 20px 20px;
}

/* --- Module 4: Promotions Section --- */
.page-index__promotions-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.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: 220px;
  object-fit: cover;
  display: block;
}

.page-index__promo-card .page-index__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--btn-register-login-text); /* Yellow for titles */
}

.page-index__promo-card .page-index__promo-description {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 20px 20px;
}

/* --- Module 5: Security & CS Section --- */
.page-index__security-cs-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__security-cs-item {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__security-cs-item img {
  width: 100%;
  max-width: 300px; /* Constrain image size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__security-cs-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index__security-cs-item p {
  font-size: 16px;
  color: #666;
}

/* --- Module 6: FAQ Section --- */
.page-index__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-index__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

/* FAQ容器样式 */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: var(--secondary-color); /* Light background for FAQ items */
  color: var(--text-dark); /* Dark text for FAQ items */
}