/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Color for Login/CTA buttons */
  --background-color-dark: #121212;
  --text-color-light: #FFFFFF;
  --text-color-dark: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color-light: #e0e0e0;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Body background is dark #121212 */
  background-color: var(--background-color-dark);
  padding-bottom: 60px; /* Ensure space above footer */
}

.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: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.page-index__section-title--light {
  color: var(--text-color-light);
}

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

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

/* Common CTA Button Styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  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;
  margin: 10px;
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-index__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-color-light);
}

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

.page-index__readmore-button {
  display: inline-block;
  padding: 10px 25px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.page-index__readmore-button:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-1px);
}

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

/* 🚨 视频区域样式 */
.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 offset */
  background-color: var(--background-color-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 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; /* Prevent video controls from interfering with click event on parent link */
}

.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;
}