/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main color on dark body background */
  background-color: #08160F; /* Body background color */
}

/* Container for consistent content width */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  display: flex; /* Use flex for image above content */
  flex-direction: column; /* Stack image above content */
  padding-top: 10px; /* Small top padding, assuming body has header offset */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-blog__hero-content {
  padding: 40px 20px;
  text-align: center;
  background: #11271B; /* Card BG color */
  color: #F2FFF6; /* Text Main color */
  border-radius: 0 0 8px 8px;
  margin-top: -5px; /* Slightly overlap with image for visual continuity */
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main color */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Text Secondary color */
}

/* Call to Action Button */
.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main color for button text */
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #11271B; /* Card BG for secondary button */
  color: #2AD16F; /* Lighter green from gradient for text */
  border: 1px solid #2AD16F;
  margin-left: 15px;
}

.page-blog__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* Intro Section */
.page-blog__intro-section,
.page-blog__content-section,
.page-blog__faq-section,
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #08160F; /* Body background */
  color: #F2FFF6; /* Text Main color */
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main color */
}

.page-blog__subsection-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  margin-top: 35px;
  margin-bottom: 20px;
  color: #2AD16F; /* A lighter green for subsection titles */
}

.page-blog__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary color */
}

.page-blog__text-block a {
  color: #57E38D; /* Glow color for links */
  text-decoration: underline;
}

.page-blog__text-block a:hover {
  color: #F2C14E; /* Gold color on hover */
}

/* Article Body */
.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-blog__article-figure {
  margin: 30px 0;
  text-align: center;
}

.page-blog__article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.page-blog__figcaption {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary color */
  margin-top: 10px;
}

/* Button Group */
.page-blog__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  background: #11271B; /* Card BG for FAQ item */
  color: #F2FFF6; /* Text Main color */
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main color */
}

details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #0A4B2C; /* Deep Green for hover */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main color */
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C; /* Deep Green for answer background */
  border-radius: 0 0 8px 8px;
  color: #A7D9B8; /* Text Secondary color */
}

.page-blog__faq-answer p {
  margin-bottom: 0;
}

.page-blog__faq-answer a {
  color: #57E38D; /* Glow color for links */
  text-decoration: underline;
}

.page-blog__faq-answer a:hover {
  color: #F2C14E; /* Gold color on hover */
}

/* CTA Section */
.page-blog__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(180deg, #08160F 0%, #0A4B2C 100%); /* Gradient background */
}

.page-blog__cta-container {
  max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__hero-content {
    padding: 30px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .page-blog__intro-section,
  .page-blog__content-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 50px 0;
  }

  .page-blog__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .page-blog__subsection-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }

  .page-blog__faq-qtext {
    font-size: 1rem;
  }

  .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-blog__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio for object-fit */
  }
  
  .page-blog__hero-image-wrapper {
    padding-bottom: 0; /* Remove padding-bottom when aspect-ratio is unset */
    height: auto;
  }

  .page-blog__hero-content {
    padding: 25px 15px;
    border-radius: 0 0 5px 5px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem); /* Adjust H1 for smaller screens */
    margin-bottom: 10px;
  }

  .page-blog__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-blog__container,
  .page-blog__intro-section,
  .page-blog__content-section,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .page-blog__article-body,
  .page-blog__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-blog__article-figure {
    margin: 20px 0;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog 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;
    margin-left: 0 !important; /* Reset margin for stacking */
    margin-bottom: 10px; /* Add space between stacked buttons */
  }
  
  .page-blog__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked buttons */
    padding-left: 0;
    padding-right: 0;
  }

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

  /* Section padding adjustment */
  .page-blog__intro-section,
  .page-blog__content-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }
}