/* General Body and Page Content Styles */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  line-height: 1.6;
}

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

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

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

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.page-blog__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

.page-blog__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-blog__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

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

/* Latest Posts Section */
.page-blog__latest-posts {
  background-color: #FFFFFF;
}

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

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

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

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

/* Featured Categories Section */
.page-blog__featured-categories {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__category-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-blog__category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 15px;
  opacity: 0.9;
}

/* SEO Content Section */
.page-blog__seo-content {
  background-color: #FFFFFF;
}

.page-blog__article-body {
  font-size: 16px;
  line-height: 1.7;
  max-width: 900px; /* Constrain width for readability */
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__article-body h2,
.page-blog__article-body h3 {
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog__article-body h2 {
  font-size: 32px;
}

.page-blog__article-body h3 {
  font-size: 24px;
}

.page-blog__article-body p {
  margin-bottom: 1em;
  color: #333333;
}

.page-blog__article-body strong {
  color: #26A9E0;
}

.page-blog__article-body ul {
  list-style: disc inside;
  margin-bottom: 1em;
  padding-left: 20px;
}

.page-blog__article-body li {
  margin-bottom: 0.5em;
  color: #333333;
}

.page-blog__article-figure {
  margin: 30px auto;
  max-width: 80%;
  text-align: center;
}

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

.page-blog__article-figure figcaption {
  font-size: 14px;
  color: #777777;
  margin-top: 10px;
}

.page-blog__cta-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-blog__btn-about {
  margin-top: 20px;
}

/* CTA Section (Bottom) */
.page-blog__cta-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

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

/* 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;
}
.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;
}

/* Global Image Styles for content area */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__main-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-blog__description {
    font-size: 17px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__category-title {
    font-size: 20px;
  }
  .page-blog__article-body h2 {
    font-size: 28px;
  }
  .page-blog__article-body h3 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Approx 10px top spacing */
    padding-bottom: 30px;
  }
  .page-blog__hero-content {
    margin-bottom: 20px;
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Mobile H1 font size */
    margin-bottom: 10px;
  }
  .page-blog__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-blog__hero-image-wrapper {
    border-radius: 0;
    box-shadow: none;
  }
  .page-blog__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 (Latest Posts) */
  .page-blog__post-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }
  .page-blog__latest-posts .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__article-body,
  .page-blog__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 按钮与按钮容器 */
  .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;
    margin-right: 0 !important; /* Remove right margin for stacked buttons */
    margin-bottom: 10px; /* Add bottom margin for stacked buttons */
  }

  .page-blog__cta-buttons,
  .page-blog__cta-bottom {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  .page-blog__btn-primary:last-child,
  .page-blog__btn-secondary:last-child {
    margin-bottom: 0; /* No bottom margin for the last button */
  }

  .page-blog__post-thumbnail {
    height: 180px;
  }

  .page-blog__post-content {
    padding: 15px;
  }

  .page-blog__post-title {
    font-size: 17px;
  }

  .page-blog__post-excerpt {
    font-size: 14px;
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .page-blog__category-card {
    padding: 20px;
  }

  .page-blog__category-icon {
    width: 60px;
    height: 60px;
  }

  .page-blog__category-title {
    font-size: 18px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__article-body {
    font-size: 15px;
    padding: 0 15px; /* Adjust padding for mobile */
    text-align: left; /* Align text left on mobile */
  }
  .page-blog__article-body h2 {
    font-size: 26px;
    text-align: center;
  }
  .page-blog__article-body h3 {
    font-size: 20px;
    text-align: left;
  }
  .page-blog__article-figure {
    max-width: 100%;
    margin: 20px 0;
  }

  /* FAQ Section */
  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; }

  .page-blog__cta-description {
    font-size: 16px;
    padding: 0 15px;
  }
}