.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background: #B71C1C; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  position: relative;
  overflow: hidden;
  background: #7A0E0E; /* Deep Red */
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for desktop */
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Overlap slightly with image for visual effect, but not text on image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* H1 clamp font-size */
  color: #FFCC66; /* Glow */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
}

/* General Section Styling */
.page-blog__section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFCC66; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__section-title--light {
  color: #FFF5E1; /* Text Main */
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-blog__section-description--light {
  color: #FFF5E1; /* Text Main */
}

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

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

.page-blog__post-card {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  color: #FFCC66; /* Glow */
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-blog__read-more-btn {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  text-align: center;
}

.page-blog__read-more-btn:hover {
  opacity: 0.9;
}

.page-blog__view-all-button-wrapper {
  text-align: center;
}

/* Popular Topics Section */
.page-blog__popular-topics {
  background: #7A0E0E; /* Deep Red */
}

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

.page-blog__topic-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__topic-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.page-blog__topic-title {
  font-size: 1.5em;
  color: #FFCC66; /* Glow */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-blog__topic-desc {
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
}

/* About Blog Section */
.page-blog__about-blog {
  background: #B71C1C; /* Background */
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
}

.page-blog__article-body h3 {
  font-size: 1.8em;
  color: #FFCC66; /* Glow */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__article-body p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

.page-blog__article-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
}
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: rgba(255, 255, 255, 0.1);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFCC66; /* Glow */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  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: rgba(0, 0, 0, 0.2); /* Slightly darker for contrast */
  border-radius: 0 0 5px 5px;
}
.page-blog__faq-answer p {
  margin: 0;
  color: #FFF5E1; /* Text Main */
}

/* CTA Section */
.page-blog__cta-section {
  background: #C91F17; /* Main Color */
  text-align: center;
  padding: 80px 0;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container fills width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button is responsive */
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red */
  border: 2px solid transparent;
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FFCC66; /* Glow */
  border: 2px solid #FFCC66; /* Glow */
}

/* General image and button responsive styles for content area */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-thumbnail {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__topic-title {
    font-size: 1.3em;
  }
  .page-blog__article-body {
    font-size: 1em;
  }
  .page-blog__cta-button {
    min-width: unset;
    padding: 12px 25px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding */
  }
  .page-blog__hero-image-wrapper {
    max-height: 250px;
  }
  .page-blog__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    margin-top: -50px;
    padding: 20px 15px;
    border-radius: 5px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust clamp for mobile */
    margin-bottom: 10px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  /* 产品展示图区域 (not applicable for blog, but general grid rule) */
  .page-blog__posts-grid,
  .page-blog__topics-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns for blog cards and topics */
    gap: 15px;
  }
  .page-blog__post-thumbnail {
    height: 150px;
  }
  .page-blog__post-title {
    font-size: 1.1em;
  }
  .page-blog__topic-title {
    font-size: 1.2em;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-blog__article-body {
    max-width: 100% !important;
    font-size: 1em;
    padding: 0; /* Remove padding if any, container already has */
  }
  .page-blog__article-body h3 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-blog__article-body p {
    margin-bottom: 1em;
  }
  .page-blog__article-figure {
    margin: 20px auto;
    border-radius: 5px;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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; /* Add internal padding */
    padding-right: 15px; /* Add internal padding */
  }

  /* FAQ Styles */
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 1em; }
  .page-blog__faq-toggle { font-size: 20px; margin-left: 10px; width: 24px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
}

/* Ensure contrast for text on card backgrounds */
.page-blog__post-card,
.page-blog__faq-item {
  color: #FFF5E1; /* Text Main */
  background: #D32F2F; /* Card BG */
}

/* Dark section text */
.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__section-description,
.page-blog__dark-section .page-blog__topic-card .page-blog__topic-title,
.page-blog__dark-section .page-blog__topic-card .page-blog__topic-desc {
  color: #FFF5E1; /* Text Main */
}

/* Ensure button text is always visible */
.page-blog__btn-primary {
  color: #7A0E0E; /* Deep Red for contrast on gold gradient */
}
.page-blog__btn-secondary {
  color: #FFCC66; /* Glow for contrast on transparent/deep red background */
}