:root {
  --color-primary: #017439; /* Brand main green */
  --color-secondary: #FFFFFF; /* General secondary, often for text/accents */
  
  /* Specific colors from user scheme */
  --color-button-register-bg: #C30808;
  --color-button-login-bg: #C30808;
  --color-button-text: #FFFF00; /* WCAG AA Contrast ratio for #FFFF00 on #C30808 is 2.5:1, which fails. Using as per user instruction. */
  
  --color-page-background-light: #FFFFFF; /* User specified "背景: #FFFFFF" */
  --color-page-background-dark: #1a1a1a; /* Retaining existing dark background for dark sections */
  
  --color-text-dark-bg: #ffffff; /* Text on dark sections */
  --color-text-light-bg: #333333; /* Text on light sections, good contrast with #FFFFFF */
  --color-text-muted: #aaaaaa; /* For dates, hints etc. */

  --color-link: var(--color-primary);
  --color-link-hover: #02a04e; /* Slightly brighter green for hover */

  /* General button styles for consistency */
  --button-padding: 12px 25px;
  --button-border-radius: 8px;
  --button-font-size: 1rem;
  --button-line-height: 1.2;
}

/* Base styles for page content */
.page-index {
  color: var(--color-text-dark-bg); /* Default text color for body background */
  background-color: var(--color-page-background-dark); /* Inherit from body/shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* General container for sections */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* 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 spacing */
  background-color: var(--color-page-background-dark); /* Ensure section background matches body */
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow */
}

.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;
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow */
}

.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;
  box-sizing: border-box;
}

.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);
  box-sizing: border-box;
}

.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 */
  max-width: 100%; /* Ensure responsiveness */
  display: block; /* Ensure responsiveness */
}

/* --- Block 1: Video Section Missing Styles --- */
.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  pointer-events: none; /* Allow clicks to pass through to the video link */
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 0.8; /* Slightly less opaque on hover */
}

.page-index__video-click-hint {
  color: var(--color-button-text); /* Use the bright yellow for emphasis */
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow for better readability */
  text-align: center;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
  display: inline-block;
}

.page-index__video-cta {
  margin-top: 30px;
  text-align: center;
  width: 100%;
}

.page-index__play-now-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: var(--button-padding);
  border-radius: var(--button-border-radius);
  font-size: var(--button-font-size);
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  text-align: center;
}

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

/* --- Block 2: H1 Title + CTA Buttons Missing Styles --- */
.page-index__dark-section {
  background-color: var(--color-page-background-dark);
  color: var(--color-text-dark-bg);
}

.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__main-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--color-text-dark-bg); /* White text on dark background */
  line-height: 1.2;
}

.page-index__title-description {
  font-size: 1.15rem;
  color: var(--color-text-muted); /* Lighter grey for description */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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: var(--button-padding);
  border-radius: var(--button-border-radius);
  font-size: var(--button-font-size);
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 160px;
  text-align: center;
}

.page-index__btn-register {
  background-color: var(--color-button-register-bg);
  color: var(--color-button-text);
  border: 2px solid var(--color-button-register-bg);
}

.page-index__btn-register:hover {
  background-color: #a30707; /* Darkened version of #C30808 */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__btn-login {
  background-color: var(--color-button-login-bg);
  color: var(--color-button-text);
  border: 2px solid var(--color-button-login-bg);
}

.page-index__btn-login:hover {
  background-color: #a30707; /* Darkened version of #C30808 */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Block 3: Brand Introduction Missing Styles --- */
.page-index__light-bg {
  background-color: var(--color-page-background-light);
  color: var(--color-text-light-bg);
}

.page-index__brand-section {
  padding: 80px 20px;
}

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

.page-index__brand-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-primary); /* Green title on light background */
}

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

.page-index__brand-item {
  background-color: var(--color-secondary); /* White card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--color-primary); /* Green accent border */
}

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

.page-index__brand-item-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__brand-item-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
}

/* --- Block 4: FAQ Common Questions Area Missing Styles --- */
.page-index__faq-section {
  padding: 80px 20px;
}

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

.page-index__faq-main-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-primary); /* Green title on light background */
}

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

.page-index__faq-item {
  background-color: var(--color-secondary); /* White card background */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-index__faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text-light-bg);
  cursor: pointer;
  background-color: #f9f9f9; /* Slightly off-white for question header */
  border-bottom: 1px solid #e0e0e0;
}

.page-index__faq-question h3 {
  margin: 0;
  color: var(--color-primary); /* Green question title */
}

.page-index__faq-toggle {
  font-size: 1.8rem;
  font-weight: lighter;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.page-index__faq-answer {
  padding: 0 25px;
  font-size: 1rem;
  color: var(--color-text-light-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding-bottom: 0; /* Initial state */
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 200px; /* Will be overridden by JS for dynamic content */
  padding-top: 15px;
  padding-bottom: 20px;
}
.page-index__faq-answer p {
  margin: 0; /* Remove default paragraph margin */
}


/* --- Block 5: Blog List Display Missing Styles --- */
.page-index__blog-section {
  padding: 80px 20px;
}

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

.page-index__blog-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-text-dark-bg); /* White title on dark background */
}

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

.page-index__blog-item {
  background-color: #2a2a2a; /* Slightly lighter dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  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.3);
}

.page-index__blog-link {
  display: block;
  text-decoration: none;
  color: inherit; /* Inherit text color from parent */
  height: 100%; /* Make the link fill the card */
  display: flex;
  flex-direction: column;
}

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for images */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__blog-item-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary); /* Green title */
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-index__blog-item-excerpt {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 20px 15px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-index__blog-item-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 20px 20px;
  text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-index__video-section {
    padding-top: var(--header-offset-mobile, 80px); /* Adjust for mobile header */
    padding: 40px 15px;
  }

  .page-index__play-now-button {
    min-width: unset;
    width: 80%;
    max-width: 300px;
    font-size: 1rem;
    padding: 10px 20px;
  }

  .page-index__video-click-hint {
    font-size: 1rem;
    padding: 8px 15px;
  }

  .page-index__title-section,
  .page-index__brand-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 60px 15px;
  }

  .page-index__main-title {
    font-size: 2rem;
  }

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

  .page-index__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .page-index__cta-button {
    width: 80%;
    max-width: 300px;
    font-size: 1rem;
    padding: 10px 20px;
  }

  .page-index__brand-title,
  .page-index__faq-main-title,
  .page-index__blog-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .page-index__brand-content,
  .page-index__blog-list {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-index__brand-item-title {
    font-size: 1.3rem;
  }

  .page-index__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-index__faq-question h3 {
    font-size: 1.1rem;
  }

  .page-index__faq-toggle {
    font-size: 1.5rem;
  }

  .page-index__faq-answer {
    font-size: 0.95rem;
  }

  .page-index__blog-item-image {
    height: 180px;
  }

  .page-index__blog-item-title {
    font-size: 1.2rem;
    margin: 15px 15px 8px;
  }

  .page-index__blog-item-excerpt,
  .page-index__blog-item-date {
    margin: 0 15px 15px;
  }
}

@media (max-width: 375px) {
  .page-index__main-title {
    font-size: 1.8rem;
  }

  .page-index__title-description {
    font-size: 0.95rem;
  }

  .page-index__brand-title,
  .page-index__faq-main-title,
  .page-index__blog-title {
    font-size: 1.8rem;
  }

  .page-index__brand-item-title {
    font-size: 1.2rem;
  }

  .page-index__faq-question {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-index__faq-question h3 {
    font-size: 1rem;
  }

  .page-index__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px;
  }

  .page-index__blog-item-title {
    font-size: 1.1rem;
  }
}