/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity if body is not */
}

/* Module 0: Hero Banner */
.page-index__hero-section {
  width: 100%;
  padding-top: 10px; /* Small top padding, not --header-offset */
  box-sizing: border-box;
  background-color: #181b1f; /* Dark background for the very top section */
}
.page-index__hero-banner {
  width: 100%;
  overflow: hidden;
  max-width: 1920px; /* Max width for large screens */
  margin: 0 auto;
}
.page-index__hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Module 1: Intro Section */
.page-index__intro-section {
  background: #252b38; /* Deep dark gray background */
  color: #f0f0f0; /* Light text for dark background */
  padding: 60px 20px;
  box-sizing: border-box;
}
.page-index__intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #ed9107; /* Gold/Orange for titles */
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.page-index__section-title--center {
  text-align: center;
}
.page-index__section-title b {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, #ed9107, transparent);
  margin: 0 15px;
}
.page-index__section-title--center b:first-child {
    background: linear-gradient(to right, transparent, #ed9107);
}
.page-index__section-title--center b:last-child {
    background: linear-gradient(to left, transparent, #ed9107);
}
.page-index__section-title span {
  white-space: nowrap;
}
.page-index__section-title--normal b {
    background: linear-gradient(to right, transparent, #ed9107);
}
.page-index__section-title--normal b:first-child {
    background: linear-gradient(to right, transparent, #ed9107);
}
.page-index__section-title--normal b:last-child {
    background: linear-gradient(to left, transparent, #ed9107);
}


.page-index__intro-quote {
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #cccccc; /* Slightly lighter text for quote */
  font-style: italic;
  text-align: left;
}
.page-index__intro-quote p {
  margin-bottom: 1em;
}
.page-index__intro-quote p:last-child {
  margin-bottom: 0;
}

.page-index__intro-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  word-wrap: break-word; /* Allow text to wrap */
}
.page-index__btn-primary {
  background: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}
.page-index__btn-primary:hover {
  background: #1e87c2; /* Darker shade on hover */
  border-color: #1e87c2;
}
.page-index__btn-secondary {
  background: transparent;
  color: #26A9E0; /* Brand primary color for text */
  border: 2px solid #26A9E0;
}
.page-index__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

/* Module 2: FAQ Section */
.page-index__faq-section {
  background: #181b1f; /* Slightly darker background for FAQ */
  color: #f0f0f0;
  padding: 60px 20px;
  box-sizing: border-box;
}
.page-index__faq-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-index__faq-list {
  margin-top: 40px;
}
details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  background: #252b38; /* Darker background for FAQ items */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
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: #ed9107; /* Gold/Orange for FAQ questions */
  font-weight: bold;
}
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: #2e3544; /* Slightly lighter dark on hover */
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}
.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #f0f0f0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #252b38; /* Same as item background */
  border-radius: 0 0 8px 8px;
  color: #cccccc; /* Lighter text for answers */
  font-size: 16px;
  line-height: 1.7;
}
.page-index__faq-answer p {
  margin-bottom: 1em;
}
.page-index__faq-answer p:last-child {
  margin-bottom: 0;
}
.page-index__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-index__faq-answer a:hover {
    color: #ed9107;
}


/* Module 3: Blog Section */
.page-index__blog-section {
  background: #252b38; /* Same as intro section */
  color: #f0f0f0;
  padding: 60px 20px;
  box-sizing: border-box;
}
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive grid */
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}
.page-index__blog-card {
  background: #181b1f; /* Darker background for blog cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.page-index__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block; /* Make the entire card clickable */
}
.page-index__blog-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.page-index__blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index__blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ed9107; /* Gold/Orange date tag */
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}
.page-index__blog-day {
  display: block;
  font-size: 1.2em;
}
.page-index__blog-month {
  display: block;
  font-size: 0.8em;
  text-transform: uppercase;
}
.page-index__blog-body {
  padding: 20px;
  color: #cccccc;
}
.page-index__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: #f0f0f0; /* Lighter text for titles */
  line-height: 1.4;
}
.page-index__blog-title:hover {
    color: #ed9107; /* Hover effect for blog titles */
}
.page-index__blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #aaaaaa;
  margin-bottom: 0;
}
.page-index__view-all-posts {
  text-align: center;
  margin-top: 40px;
}

/* General button styles for blog section */
.page-index__view-all-posts .page-index__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.page-index__view-all-posts .page-index__btn-primary:hover {
  background: #1e87c2;
  border-color: #1e87c2;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__intro-quote {
    font-size: 17px;
  }
  .page-index__faq-qtext {
    font-size: 17px;
  }
  .page-index__blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
  }
  .page-index__blog-title {
    font-size: 18px;
  }
}

@media (max-width: 849px) {
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-index__hero-section {
    padding-top: 10px !important; /* Small top padding */
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-index__hero-banner img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 深色导语区 */
  .page-index__intro-section {
    padding: 30px 15px !important;
  }
  .page-index__intro-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-index__section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem) !important; /* H1 clamp font size */
    margin-bottom: 25px !important;
  }
  .page-index__section-title b {
    height: 1px; /* Thinner lines on mobile */
    margin: 0 10px;
  }
  .page-index__intro-quote {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    text-align: center !important; /* Center align quote on mobile */
  }
  .page-index__intro-actions {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px; /* Add padding to button container */
  }

  /* 博客网格 */
  .page-index__blog-section {
    padding: 30px 15px !important;
  }
  .page-index__blog-grid {
    grid-template-columns: 1fr !important; /* Mobile: 1 column */
    gap: 20px !important;
    margin-top: 25px !important;
  }
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__blog-title {
    font-size: 18px !important;
  }
  .page-index__blog-excerpt {
    font-size: 14px !important;
  }

  /* 通用图片与容器 */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__container,
  .page-index__intro-inner, /* Added for intro section content */
  .page-index__faq-inner, /* Added for faq section content */
  .page-index__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__intro-actions,
  .page-index__view-all-posts {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* FAQ 与其他模块 */
  .page-index__faq-section {
    padding: 30px 15px !important;
  }
  details.page-index__faq-item {
    margin-bottom: 10px !important;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px !important;
  }
  .page-index__faq-qtext {
    font-size: 16px !important;
  }
  .page-index__faq-toggle {
    font-size: 24px !important;
    width: 24px !important;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 549px) {
  .page-index__blog-grid {
    grid-template-columns: 1fr; /* Smaller mobile: 1 column */
  }
}