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

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

.page-blog__dark-bg {
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-blog__light-bg {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
}

.page-blog__medium-bg {
  background-color: rgba(255, 132, 26, 0.1); /* Lighter version of primary for subtle cards */
  color: #FFF3E6;
  border: 1px solid #A84F0C; /* Border */
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Max height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Pull content up slightly over image for better flow */
  background: rgba(13, 14, 18, 0.8); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-blog__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__hero-cta-button:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #FF8C1A; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Recent Posts Section */
.page-blog__recent-posts {
  padding: 60px 0;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__blog-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__blog-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__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__card-meta {
  font-size: 0.9rem;
  color: rgba(255, 243, 230, 0.7); /* Lighter Text Main */
  margin-bottom: 10px;
}

.page-blog__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #FFF3E6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #FFA53A; /* Auxiliary color */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #D96800; /* Deep Orange */
}

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

.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

/* Categories Section */
.page-blog__categories {
  padding: 60px 0;
}

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

.page-blog__category-card {
  background-color: rgba(255, 132, 26, 0.1); /* Medium BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.page-blog__category-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 0.95rem;
  color: #FFF3E6;
}

/* Why Choose Section */
.page-blog__why-choose {
  padding: 60px 0;
}

.page-blog__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-blog__why-choose p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-blog__why-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-blog__why-list li {
  font-size: 1.1rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #FFF3E6;
}

.page-blog__why-list li::before {
  content: '✓';
  color: #FFA53A; /* Auxiliary color */
  position: absolute;
  left: 0;
  font-weight: 700;
}

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

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFB04D; /* Glow */
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: #FFA53A;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #FFF3E6;
}

/* Final CTA Section */
.page-blog__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-blog__cta-final-content {
  max-width: 800px;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

/* Ensure all images are responsive */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__content-wrapper,
.page-blog__faq-list,
.page-blog__cta-final-content {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Buttons responsive */
.page-blog__hero-cta-button,
.page-blog__btn-primary {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button containers responsive */
.page-blog__view-all-button-wrapper,
.page-blog__cta-final-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming body handles --header-offset */
    min-height: 400px;
  }
  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    padding: 20px 15px;
    margin-top: -60px;
    max-width: 95%;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-blog__hero-cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  /* 深色导语区 (Hero content also acts as intro) */
  .page-blog__hero-content p {
    font-size: 1rem !important;
  }

  /* 博客网格 */
  .page-blog__recent-posts {
    padding: 40px 0;
  }
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-blog__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 180px !important; /* Adjust height for mobile */
  }
  .page-blog__card-title {
    font-size: 1.2rem;
  }

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

  /* 按钮与按钮容器 */
  .page-blog__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    margin: 0 15px;
  }
  .page-blog__view-all-button-wrapper {
    padding: 0 15px;
  }
  .page-blog__cta-final-content .page-blog__btn-primary {
    margin: 0;
  }

  /* FAQ 与其他模块 */
  .page-blog__faq-section {
    padding: 40px 0;
  }
  .page-blog__faq-list {
    padding: 0 15px;
  }
  .page-blog__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-blog__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  /* Categories Section */
  .page-blog__categories {
    padding: 40px 0;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-blog__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px;
  }
  .page-blog__category-title {
    font-size: 1.2rem;
  }

  /* Why Choose Section */
  .page-blog__why-choose {
    padding: 40px 0;
  }
  .page-blog__content-wrapper {
    padding: 0 15px;
  }
  .page-blog__why-choose p,
  .page-blog__why-list li {
    font-size: 1rem;
  }

  /* Final CTA Section */
  .page-blog__cta-final {
    padding: 40px 0;
  }
  .page-blog__cta-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
}

@media (max-width: 549px) {
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
}