/* General styles for page-blog */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  padding-bottom: 50px; /* Adjust as needed for footer */
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size */
  font-weight: bold;
  color: #F3C54D; /* Gold for titles */
  text-align: center;
  margin-bottom: 15px;
  margin-top: 40px;
}

.page-blog__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: #FFF1E8; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #140C0C; /* Background */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 40px 15px;
  background-color: #140C0C; /* Background */
  color: #FFF1E8; /* Text Main */
}

.page-blog__main-title {
  font-size: clamp(28px, 3.5vw, 50px); /* Using clamp for H1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
  color: #FFF1E8; /* Text Main */
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #FFF1E8; /* Text Main for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__btn-secondary:hover {
  background: rgba(243, 197, 77, 0.1); /* Gold tint */
  transform: translateY(-2px);
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

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

.page-blog__article-card {
  background-color: #2A1212; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px 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 25px rgba(0, 0, 0, 0.4);
}

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

.page-blog__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-blog__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: #FFF1E8; /* Text Main */
}

.page-blog__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F3C54D; /* Gold */
  line-height: 1.4;
}

.page-blog__card-meta {
  font-size: 14px;
  color: #E53030; /* Auxiliary color */
  margin-bottom: 15px;
  opacity: 0.8;
}

.page-blog__card-excerpt {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
  opacity: 0.9;
  color: #FFF1E8; /* Text Main */
}

.page-blog__read-more {
  display: inline-block;
  color: #FFB04A; /* Gold gradient start */
  font-weight: bold;
  text-decoration: none;
}

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

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

/* Categories Section */
.page-blog__categories {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-blog__category-item {
  background-color: #2A1212; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #FFF1E8; /* Text Main */
  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;
  justify-content: space-between;
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-blog__category-title {
  font-size: 18px;
  font-weight: bold;
  padding: 15px 10px;
  color: #F3C54D; /* Gold */
}

/* Featured Guides Section */
.page-blog__featured-guides {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

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

.page-blog__guide-item {
  background-color: #2A1212; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF1E8; /* Text Main */
  display: flex;
  flex-direction: column;
}

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

.page-blog__guide-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold */
  line-height: 1.4;
}

.page-blog__guide-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
  opacity: 0.9;
  color: #FFF1E8; /* Text Main */
}

/* Why Choose Us Section */
.page-blog__why-choose-us {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

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

.page-blog__feature-item {
  background-color: #2A1212; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #FFF1E8; /* Text Main */
}

.page-blog__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold */
}

.page-blog__feature-description {
  font-size: 16px;
  opacity: 0.9;
  color: #FFF1E8; /* Text Main */
}

/* Call to Action Banner */
.page-blog__cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0;
  background-color: #140C0C; /* Background */
  position: relative;
  overflow: hidden;
}

.page-blog__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-blog__cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay */
}

.page-blog__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #FFF1E8; /* Text Main */
}

.page-blog__cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: bold;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: clamp(16px, 2vw, 19px);
  margin-bottom: 30px;
  opacity: 0.9;
  color: #FFF1E8; /* Text Main */
}

.page-blog__cta-button {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #FFF1E8; /* Text Main */
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-blog__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* Card B G */
  color: #FFF1E8; /* Text Main */
}
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: #2A1212; /* Card B G, slightly brighter on hover */
  filter: brightness(1.2); /* Subtle hover effect */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold */
}
details.page-blog__faq-item[open] .page-blog__faq-qtext {
    color: #FFB04A; /* Highlight when open */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53030; /* Auxiliary color */
  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: #2A1212; /* Card B G */
  border-radius: 0 0 10px 10px;
  color: #FFF1E8; /* Text Main */
  opacity: 0.9;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-blog__guides-grid,
  .page-blog__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
  }
  .page-blog__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow height to adjust naturally */
    height: auto !important;
    width: 100% !important;
  }
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .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: 12px 20px;
    font-size: 16px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* 产品展示图区域 (for general grids on mobile) */
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__guides-grid,
  .page-blog__features-grid {
    grid-template-columns: 1fr; /* Single column for most grids on mobile */
    gap: 20px;
    padding: 0;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Allow 2 if space, else 1 */
  }
  .page-blog__article-image {
    height: 180px; /* Adjust height for mobile cards */
  }
  .page-blog__category-image {
    height: 100px; /* Adjust height for mobile categories */
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .page-blog__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-blog__article-body p,
  .page-blog__article-body ul,
  .page-blog__article-body ol {
    max-width: 100% !important;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
  }
  .page-blog__article-figure {
    max-width: 100% !important;
    margin: 0 auto;
  }
}