:root {
  --primary-color: #300060; /* Royal Purple */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: var(--dark-bg); /* Inherited from shared.css */
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

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

.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;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #000; /* Dark 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;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__video-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.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 blocking click event */
}

.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.5);
  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: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8); /* Gold with transparency */
  color: var(--primary-color); /* Dark text for gold background */
  border-radius: 5px;
  white-space: nowrap;
}

.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: 18px 50px;
  background: var(--secondary-color); /* Gold color */
  color: var(--primary-color); /* Dark text for gold background */
  text-decoration: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-index__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

/* Hero Section */
.page-index__hero-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color); /* Royal Purple */
  color: var(--text-light);
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* Gold for emphasis */
}

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

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index__cta-button--primary {
  background-color: var(--secondary-color); /* Gold */
  color: var(--primary-color); /* Dark text for gold background */
  border: 2px solid var(--secondary-color);
}

.page-index__cta-button--primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
  background-color: transparent;
  color: var(--secondary-color); /* Gold text */
  border: 2px solid var(--secondary-color);
}

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


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

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

.page-index__brand-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--secondary-color); /* Gold for headings */
}

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

.page-index__brand-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__brand-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-index__brand-image {
  width: 100%;
  max-width: 400px;
  height: 300px; /* Recommended content display size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: none; /* No CSS filters allowed */
}

.page-index__brand-item-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color); /* Gold for subheadings */
}

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

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

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

.page-index__faq-main-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  color: var(--primary-color); /* Dark text for light background */
}

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

/* FAQ容器样式 */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

/* 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 20px;
  opacity: 0;
  color: var(--text-dark);
  background-color: #f9f9f9;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
}

/* 问题样式 */
.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--primary-color); /* Dark text for question */
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-index__faq-question-title {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color); /* Ensure dark color for question title */
}

/* 切换图标 */
.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.1); /* Light gold background */
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: var(--primary-color); /* Darker color when active */
  transform: rotate(180deg);
}

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

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

.page-index__blog-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--primary-color); /* Dark text for light background */
}

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

.page-index__blog-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__blog-image {
  width: 100%;
  height: 250px; /* Recommended content display size */
  object-fit: cover;
  display: block;
  filter: none; /* No CSS filters allowed */
}

.page-index__blog-item-title {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: var(--primary-color); /* Dark text */
  line-height: 1.3;
}

.page-index__blog-item-excerpt {
  font-size: 16px;
  color: #666;
  margin: 0 20px 15px;
  line-height: 1.5;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #999;
  margin: 0 20px 20px;
  display: block;
}

.page-index__view-all-button-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color); /* Royal Purple */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
  background-color: #24004d; /* Slightly darker purple */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__brand-title,
  .page-index__faq-main-title,
  .page-index__blog-title {
    font-size: 36px;
  }
  .page-index__brand-image {
    height: 250px;
  }
  .page-index__blog-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* 🚨 移动端必须确保不超出容器 */
  .page-index__video-section,
  .page-index__hero-section,
  .page-index__brand-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__video-container,
  .page-index__hero-container,
  .page-index__brand-container,
  .page-index__faq-container,
  .page-index__blog-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  /* 🚨 视频链接移动端适配（必须严格遵守） */
  .page-index__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }

  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }

  /* 🚨 Play Now按钮移动端响应式适配（必须严格遵守） */
  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }

  .page-index__main-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button {
    width: 100%; /* Full width for buttons on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to match section */
    padding-right: 15px; /* Add padding to match section */
  }

  .page-index__brand-title,
  .page-index__faq-main-title,
  .page-index__blog-title {
    font-size: 30px;
    margin-bottom: 40px;
  }
  .page-index__brand-content {
    grid-template-columns: 1fr;
  }
  .page-index__brand-item {
    padding: 25px;
  }
  .page-index__brand-item-title {
    font-size: 20px;
  }
  .page-index__brand-item-description {
    font-size: 15px;
  }

  /* FAQ mobile styles */
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-index__faq-question-title {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-index__faq-answer {
    padding: 0 15px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  .page-index__blog-list {
    grid-template-columns: 1fr;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
  .page-index__blog-item-excerpt {
    font-size: 15px;
  }
  .page-index__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 🚨 All content area images must be responsive and not cause overflow */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Ensure no CSS filters are applied to images */
.page-index img {
  filter: none !important;
}

/* General Link Styling (ensure contrast) */
.page-index a {
  color: var(--secondary-color); /* Gold for links on dark background */
  text-decoration: underline;
}
.page-index__light-bg a {
  color: var(--primary-color); /* Purple for links on light background */
}