.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background: var(--secondary-color, #FFFFFF);
}

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #017439; /* Use brand color for titles */
  text-align: center;
}

.page-blog__section-title--light {
  color: #ffffff;
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 30px 15px;
  text-align: center;
  margin-top: -100px; /* Pull content up slightly over the image */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-blog__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-blog__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-blog__btn--register {
  background: #C30808;
  color: #FFFF00;
}

.page-blog__btn--register:hover {
  background: #a30606;
  transform: translateY(-2px);
}

.page-blog__btn--download {
  background: #017439;
  color: #ffffff;
}

.page-blog__btn--download:hover {
  background: #005c2d;
  transform: translateY(-2px);
}

.page-blog__btn--primary {
  background: #017439;
  color: #ffffff;
}

.page-blog__btn--primary:hover {
  background: #005c2d;
  transform: translateY(-2px);
}

.page-blog__btn--secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-blog__btn--secondary:hover {
  background: #f0f0f0;
  color: #005c2d;
  border-color: #005c2d;
  transform: translateY(-2px);
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.page-blog__post-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-blog__post-thumbnail-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #005c2d;
  text-decoration: underline;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 14px;
  color: #888888;
  display: block;
}

.page-blog__view-all-wrapper {
  margin-top: 40px;
}

.page-blog__featured-article {
  background: #017439; /* Dark background for this section */
  color: #ffffff;
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 17px;
  line-height: 1.8;
}

.page-blog__article-body p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-blog__article-body a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-blog__article-body a:hover {
  color: #ffe033;
}

.page-blog__article-subtitle {
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__article-body ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-blog__article-body ul li {
  margin-bottom: 10px;
}

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

.page-blog__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-blog__cta-description {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
}
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: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure dark text on light background */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure dark text for answers */
}

/* General image responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 42px;
  }
  .page-blog__hero-description {
    font-size: 17px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__article-subtitle {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }
  .page-blog__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }
  .page-blog__hero-title {
    font-size: clamp(28px, 8vw, 36px) !important; /* clamp for H1 */
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-blog__hero-buttons,
  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 产品展示图区域 (Recent Blog Posts) */
  .page-blog__posts-grid {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 20px;
  }
  .page-blog__recent-posts {
    overflow-x: hidden !important;
  }
  .page-blog__post-thumbnail-wrapper {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__post-excerpt {
    font-size: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-blog__article-body {
    font-size: 16px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__article-subtitle {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 0 15px;
  }
  .page-blog__article-body ul {
    margin-left: 35px;
    padding-right: 15px;
  }
  .page-blog__article-figure {
    margin: 20px 0;
  }
  .page-blog__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__section,
  .page-blog__post-card,
  .page-blog__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__post-card {
    margin-left: 0;
    margin-right: 0;
  }

  /* 按钮与按钮容器 */
  .page-blog__btn,
  .page-blog__btn--primary,
  .page-blog__btn--secondary,
  .page-blog__btn--register,
  .page-blog__btn--download,
  .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;
  }

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