:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF; /* 白色 */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #ffffff;
  --bg-color-dark: #26A9E0; /* Using primary color for dark sections */
  --login-button-color: #EA7C07;
}

/* 确保所有内容区域的默认文字颜色与背景形成对比 */
.page-index {
  color: var(--text-color-dark); /* Default text color for light backgrounds */
  background: var(--bg-color-light); /* Default light background */
}

/* HERO 主图区域样式 */
.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 offset */
  background-color: var(--primary-color); /* Fallback color */
  color: var(--text-color-light);
  overflow: hidden; /* Ensure content doesn't overflow */
}

.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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no filter is applied */
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-color-light);
  opacity: 0.9;
}

.page-index__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button {
  display: inline-block;
  padding: 18px 45px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--primary {
  background: var(--login-button-color); /* Use login color for primary action */
  color: var(--text-color-light);
  border: 2px solid var(--login-button-color);
  box-shadow: 0 4px 15px rgba(234, 124, 7, 0.4);
}

.page-index__cta-button--primary:hover {
  background: #C46706; /* Manually darkened */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(234, 124, 7, 0.6);
}

.page-index__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(38, 169, 224, 0.4);
}

/* Common Section Styles */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index__section-description {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-color-dark);
}

.page-index__text--white {
  color: var(--text-color-light);
}

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

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

/* Module 1: Introduction */
.page-index__introduction-section {
  padding: 80px 0;
}

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

.page-index__intro-feature-item {
  text-align: center;
  padding: 30px;
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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