/* style/index.css */

/* --- Base Layout & Typography --- */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensure white background for main content */
}

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

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

.page-index__section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main titles */
  font-weight: bold;
}

.page-index__section p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* --- CTA Button Styles --- */
.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.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;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-index__btn-primary {
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

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

.page-index__btn-secondary {
  background: #EA7C07; /* Login color for secondary CTA */
  color: #ffffff;
}

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

/* --- Video Section --- */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 顶部间距以公用片段约定为准，使用 var(--header-offset)，避免被固定页头盖住 */
  padding-top: var(--header-offset, 120px);
  background-color: #f0f8ff; /* Light blue background for video section */
}

.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 宽高比 - 🚨 PageSpeed优化：固定宽高比避免布局偏移（CLS） */
  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(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

/* 🚨 Play Now按钮样式（必须严格遵守，位于视频下方中间位置） */
.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, #26A9E0); /* Use 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;
}

.page-index__play-now-button:hover {
  background: #1e87c0; /* Slightly darker primary */
  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);
}


/* --- H1 Title Section --- */
.page-index__title-section {
  padding: 80px 20px;
  background-color: #FFFFFF; /* Light background for contrast */
  color: #333333;
}

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

.page-index__main-title {
  font-size: 48px;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-index__title-description {
  font-size: 20px;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Why Choose Section --- */
.page-index__why-choose-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  color: #333333;
}

.page-index__why-choose-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__why-choose-title {
  font-size: 36px;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__why-choose-description {
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__why-choose-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-index__why-choose-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__why-choose-item-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__why-choose-item p {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
}

/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #FFFFFF; /* Slightly off-white background for FAQ */
  color: #333333;
}

.page-index__faq-main-title {
  font-size: 36px;
  color: #26A9E0;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
}

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

.page-index__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* FAQ容器样式 */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}