/* -------------------------------------------------------------------------- */
/*                            Blog Page Specific CSS                          */
/* -------------------------------------------------------------------------- */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background */
}

/* Container for content sections */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-blog__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #EA7C07;
  border-radius: 2px;
}

/* Text blocks */
.page-blog__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-blog__hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__lead-paragraph {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Primary Button */
.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #26A9E0;
  box-sizing: border-box;
}

.page-blog__btn-primary:hover {
  background-color: #1a8cc7;
  transform: translateY(-2px);
}

/* Secondary Button */
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #FFFFFF;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-blog__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/*                               About Blog Section                           */
/* -------------------------------------------------------------------------- */
.page-blog__about-blog {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

/* -------------------------------------------------------------------------- */
/*                               Hot Topics Section                           */
/* -------------------------------------------------------------------------- */
.page-blog__hot-topics {
  padding: 60px 20px;
  background-color: #f0f5f8;
}

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

.page-blog__topic-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-blog__topic-card .page-blog__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-blog__topic-card .page-blog__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__topic-card .page-blog__card-title a:hover {
  color: #EA7C07;
}

.page-blog__topic-card .page-blog__card-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
}

.page-blog__topic-card .page-blog__card-link {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  margin: 20px;
  transition: color 0.3s ease;
}

.page-blog__topic-card .page-blog__card-link:hover {
  color: #26A9E0;
}

/* -------------------------------------------------------------------------- */
/*                               Why Follow Section                           */
/* -------------------------------------------------------------------------- */
.page-blog__why-follow {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-blog__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__list-item {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-blog__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #26A9E0;
  font-weight: bold;
  font-size: 20px;
}

/* -------------------------------------------------------------------------- */
/*                                 CTA Section                                */
/* -------------------------------------------------------------------------- */
.page-blog__cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #26A9E0, #1a8cc7);
  color: #FFFFFF;
  text-align: center;
}

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

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

.page-blog__cta-section .page-blog__section-title::after {
  background-color: #EA7C07;
}

.page-blog__cta-section .page-blog__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-blog__cta-buttons .page-blog__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-blog__cta-buttons .page-blog__btn-primary:hover {
  background-color: #c76505;
  border-color: #c76505;
}

.page-blog__cta-buttons .page-blog__btn-secondary {
  border-color: #FFFFFF;
}

.page-blog__cta-buttons .page-blog__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #EA7C07;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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;
}

details.page-blog__faq-item .page-blog__faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
}

/* -------------------------------------------------------------------------- */
/*                                 Media Queries                              */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-blog__hero-section {
    height: 450px;
  }

  .page-blog__main-title {
    font-size: 42px;
  }

  .page-blog__lead-paragraph {
    font-size: 18px;
  }

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

  .page-blog__topic-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-blog__topic-card .page-blog__card-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    height: auto;
    min-height: 350px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-blog__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    position: relative; /* Adjust positioning for contain */
    width: 100%;
    height: auto;
    max-height: 250px; /* Limit height to prevent image from being too large */
  }

  .page-blog__hero-image::after {
    height: 100%; /* Ensure overlay covers adjusted image height */
  }

  .page-blog__hero-content {
    padding: 15px;
    margin-top: 20px;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-blog__lead-paragraph {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-blog__hero-buttons,
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General content area containers for mobile */
  .page-blog__container,
  .page-blog__section,
  .page-blog__about-blog,
  .page-blog__hot-topics,
  .page-blog__why-follow,
  .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;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Text blocks in content areas */
  .page-blog__text-block {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Section titles */
  .page-blog__section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  /* Topic grid for mobile */
  .page-blog__topic-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-blog__topic-card img {
    
  }

  .page-blog__topic-card .page-blog__card-title {
    font-size: 18px;
    margin: 15px;
  }

  .page-blog__topic-card .page-blog__card-description {
    font-size: 14px;
    padding: 0 15px;
  }

  .page-blog__topic-card .page-blog__card-link {
    margin: 15px;
  }

  /* Why Follow List */
  .page-blog__list-item {
    font-size: 15px;
    line-height: 1.7;
    padding-left: 25px;
  }

  .page-blog__list-item::before {
    font-size: 18px;
  }

  /* Buttons */
  .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 !important;
    font-size: 16px !important;
  }

  /* FAQ section */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }

  .page-blog__faq-qtext {
    font-size: 15px;
  }

  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  details.page-blog__faq-item .page-blog__faq-answer p {
    font-size: 14px;
  }

  /* Image responsive for all images in content */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}