.page-blog {
  font-family: Arial, sans-serif;
  color: #FFF1E8; /* Main text color for dark background */
  background-color: #140C0C; /* Overall page background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  margin-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-blog__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default cover for desktop */
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 */
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button itself is responsive */
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  border: none;
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: #FFB04A; /* Gold text */
  border: 2px solid #FFB04A; /* Gold border */
}

.page-blog__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C; /* Dark text on hover */
  transform: translateY(-2px);
}

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  color: #F3C54D; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  line-height: 1.2;
}

/* Article Cards Grid */
.page-blog__featured-articles,
.page-blog__all-articles {
  padding-bottom: 40px;
}

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

.page-blog__article-card {
  background: #2A1212; /* Card background */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-blog__card-title {
  font-size: 20px;
  color: #FFB04A; /* Gold for card titles */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: #FFB04A;
  text-decoration: none;
}

.page-blog__card-title a:hover {
  text-decoration: underline;
}

.page-blog__card-meta {
  font-size: 14px;
  color: #AAA; /* Lighter grey for meta info */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 16px;
  color: #FFF1E8;
  flex-grow: 1;
}

/* Article List */
.page-blog__articles-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
}

.page-blog__list-item {
  background: #2A1212; /* Card background */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
}

.page-blog__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__list-image {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
  min-width: 200px; /* Min size requirement, will be scaled down by width */
  min-height: 200px; /* Min size requirement, will be scaled down by height */
}

.page-blog__list-content {
  flex-grow: 1;
}

.page-blog__list-title {
  font-size: 20px;
  color: #FFB04A;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-blog__list-title a {
  color: #FFB04A;
  text-decoration: none;
}

.page-blog__list-title a:hover {
  text-decoration: underline;
}

.page-blog__list-meta {
  font-size: 14px;
  color: #AAA;
  margin-bottom: 10px;
}

.page-blog__list-excerpt {
  font-size: 16px;
  color: #FFF1E8;
  margin-bottom: 15px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFB04A;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #F3C54D;
  text-decoration: underline;
}

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

/* CTA Section */
.page-blog__cta-section {
  background: #140C0C; /* Dark background */
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #6A1E1E;
}

/* FAQ Section */
.page-blog__faq-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* Card background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-blog__faq-item summary.page-blog__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;
}
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.05); /* Slight hover effect */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04A; /* Gold for FAQ question text */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFF1E8; /* Light color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #140C0C; /* Darker background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF1E8;
}
.page-blog__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* All images responsive */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .page-blog__hero-image {
    max-height: 450px;
  }
  .page-blog__main-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-blog__description {
    font-size: 17px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 25px;
    font-size: 15px;
  }
  .page-blog__section-title {
    font-size: clamp(22px, 3.8vw, 34px);
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__card-title,
  .page-blog__list-title {
    font-size: 18px;
  }
  .page-blog__list-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__list-image {
    margin-right: 0;
    margin-bottom: 15px;
    width: 100%;
    height: auto;
    max-width: 400px; /* Limit width for centered image */
  }
  .page-blog__list-content {
    padding: 0 15px;
  }
  .page-blog__faq-qtext {
    font-size: 17px;
  }
}


@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    margin-bottom: 30px;
  }
  .page-blog__hero-image {
    max-height: 300px;
  }
  .page-blog__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-blog__description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  /* 按钮与按钮容器 */
  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 15px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__featured-articles,
  .page-blog__all-articles,
  .page-blog__cta-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 30px;
    padding-top: 30px;
  }
  /* .page-blog__article-body, .page-blog__article-figure are not explicitly used on this page, 
     but if they were, they would have max-width: 100% and proper padding/centering. */

  /* Article Cards Grid */
  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__card-title {
    font-size: 18px;
  }
  .page-blog__list-item {
    padding: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-blog__list-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-blog__list-title {
    font-size: 18px;
  }
  .page-blog__list-excerpt {
    font-size: 15px;
  }

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