:root {
  --primary-color: #26A9E0;
  --secondary-color: #0056b3; /* Darker shade for hover */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #0d0d0d; /* Assuming --black-color from shared.css is dark */
  --button-login-color: #EA7C07;
}

/* 🚨 Body background is from shared.css (var(--black-color), assumed dark), so text should be light by default. */
/* However, for content sections, we want light backgrounds with dark text for readability. */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default for sections that might inherit body background */
  background-color: var(--bg-dark); /* Ensure it contrasts with header/footer */
}

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

/* --- Video Section --- */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 页头整段高度由 shared 的 body { padding-top: var(--header-offset); } 承担；此处仅用小额顶距，禁止再写 var(--header-offset) 以免双倍空白 */
  padding-top: 10px;
  background-color: var(--bg-dark); /* Match body background for seamless transition */
}

.page-index__video-container {
  position: relative;
  width: 100%; /* 🚨 Desktop: Ensure width: 100% for flex item */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 🚨 视频点击链接样式（必须严格遵守） */
.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; /* 防止视频控件阻止点击事件 */
  /* 🚨 保持图片原始颜色，禁止滤镜 */
  filter: 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: var(--text-light);
  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 transparency */
  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);
  color: var(--text-light);
  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: normal;
  word-wrap: break-word;
  box-sizing: border-box; /* 🚨 Important for max-width on mobile */
  max-width: 100%; /* 🚨 Important for mobile responsiveness */
}

.page-index__play-now-button:hover {
  background: var(--secondary-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);
}

/* --- H1 Title + CTA Buttons Section --- */
.page-index__title-section {
  background-color: var(--bg-light); /* Light background for this section */
  padding: 80px 20px;
  text-align: center;
  color: var(--text-dark); /* Dark text on light background */
}

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

.page-index__main-title {
  /* 🚨 H1字号：禁止写死，使用 clamp 或仅用权重 */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  /* Fallback for clamp, if not supported will use a reasonable size */
  font-size: clamp(28px, 4vw, 48px);
}

.page-index__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* 🚨 Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  /* 🚨 确保按钮文字换行 */
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box; /* 🚨 Important for max-width on mobile */
  max-width: 100%; /* 🚨 Important for mobile responsiveness */
}

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

.page-index__cta-button--primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-index__cta-button--secondary {
  background: var(--button-login-color); /* Using login color for secondary CTA */
  color: var(--text-light);
}

.page-index__cta-button--secondary:hover {
  background: #c76505; /* Slightly darker for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* --- FAQ Section --- */
.page-index__faq-section {
  background-color: var(--bg-dark); /* Dark background */
  padding: 80px 20px;
  color: var(--text-light); /* Light text */
}

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

.page-index__faq-main-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 38px);
  margin-bottom: 50px;
  color: var(--primary-color);
  font-weight: 700;
}

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

/* details 作为 FAQ 卡片 */
details.page-index__faq-item {
  margin-bottom: 0; /* Gap handled by parent flex */
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}
.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: var(--text-light); /* Ensure text is light */
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Use primary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.03); /* Slightly lighter transparent for answer */
  border-radius: 0 0 8px 8px;
  color: rgba(255, 255, 255, 0.8); /* Slightly muted light text */
}
.page-index__faq-answer p {
  margin-bottom: 0;
}

/* --- Brand Section --- */
.page-index__brand-section {
  background-color: var(--bg-light); /* Light background */
  padding: 80px 20px;
  color: var(--text-dark); /* Dark text */
}

.page-index__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__brand-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 38px);
  margin-bottom: 50px;
  color: var(--primary-color);
  font-weight: 700;
}

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

.page-index__brand-item {
  background: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__brand-img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  /* 🚨 确保图片最小尺寸 */
  min-width: 200px;
  min-height: 200px;
  /* 🚨 保持图片原始颜色，禁止滤镜 */
  filter: none;
}

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

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

/* --- Blog Section --- */
.page-index__blog-section {
  background-color: var(--bg-dark); /* Dark background */
  padding: 80px 20px;
  color: var(--text-light); /* Light text */
}

.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__blog-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 38px);
  margin-bottom: 50px;
  color: var(--primary-color);
  font-weight: 700;
}

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

.page-index__blog-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* 🚨 确保图片最小尺寸 */
  min-width: 200px;
  min-height: 200px;
  /* 🚨 保持图片原始颜色，禁止滤镜 */
  filter: none;
}

.page-index__blog-item-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-link {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.page-index__blog-link:hover {
  color: var(--primary-color);
}

.page-index__blog-item-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--text-light); /* Ensure title is light */
  font-weight: 600;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  text-align: right;
}

.page-index__view-all-button-wrapper {
  text-align: center;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* 🚨 确保按钮文字换行 */
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box; /* 🚨 Important for max-width on mobile */
  max-width: 100%; /* 🚨 Important for mobile responsiveness */
}

.page-index__view-all-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 🚨 全局内容区图片适配（必须严格遵守） */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* 🚨 全局内容区视频适配（必须严格遵守） */
  .page-index video,
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* 🚨 所有包含图片/视频/按钮的容器移动端适配 */
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__title-section,
  .page-index__title-container,
  .page-index__faq-section,
  .page-index__faq-container,
  .page-index__brand-section,
  .page-index__brand-container,
  .page-index__blog-section,
  .page-index__blog-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* 🚨 视频区域移动端适配 */
  .page-index__video-section {
    padding-top: 10px !important; /* body已承担--header-offset，此处禁止 var(--header-offset) */
    padding-bottom: 40px;
    padding-left: 0; /* Container handles padding */
    padding-right: 0; /* Container handles padding */
  }
  
  .page-index__video-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__video-wrapper {
    border-radius: 4px;
  }
  
  .page-index__video {
    border-radius: 4px;
    object-fit: contain; /* 移动端使用contain确保视频完整显示且不超出 */
  }
  
  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
  }

  /* 🚨 H1 Title Section mobile */
  .page-index__title-section {
    padding: 60px 15px;
  }

  .page-index__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust clamp for mobile */
  }

  .page-index__title-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* 🚨 FAQ Section mobile */
  .page-index__faq-section {
    padding: 60px 15px;
  }

  .page-index__faq-main-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 30px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-qtext { font-size: 15px; }
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 15px;
  }
  .page-index__faq-answer p {
    font-size: 15px;
  }

  /* 🚨 Brand Section mobile */
  .page-index__brand-section {
    padding: 60px 15px;
  }

  .page-index__brand-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 30px;
  }

  .page-index__brand-content {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-index__brand-item {
    padding: 25px;
  }

  .page-index__brand-img {
    
  }

  .page-index__brand-subtitle {
    font-size: 20px;
  }
  .page-index__brand-item p {
    font-size: 15px;
  }

  /* 🚨 Blog Section mobile */
  .page-index__blog-section {
    padding: 60px 15px;
  }

  .page-index__blog-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 30px;
  }

  .page-index__blog-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-index__blog-item-img {
    
  }

  .page-index__blog-item-title {
    font-size: 18px;
  }

  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
  
  .page-index__view-all-button-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__view-all-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px;
    font-size: 15px;
  }
}