/* General styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
  background-color: #F4F7FB; /* Background */
}

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

.page-blog__section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-blog__section-description {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  white-space: normal; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF; /* Primary color */
}

.page-blog__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

/* Image base styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has --header-offset */
  margin-bottom: 40px;
  background-color: #F4F7FB; /* Background */
}

.page-blog__hero-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image img {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio */
  object-fit: cover; /* Cover the area */
  border-radius: 12px;
}

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

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 20px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For responsive buttons */
  width: 100%; /* For responsive buttons */
  max-width: 100%; /* For responsive buttons */
  overflow: hidden; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
}

/* Latest Posts Section */
.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: #ffffff; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px; /* Fixed height for thumbnails */
  overflow: hidden;
  flex-shrink: 0;
}

.page-blog__post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-thumbnail img {
  transform: scale(1.05);
}

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #1F2D3D; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #2F6BFF; /* Primary color */
}

.page-blog__post-meta {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

/* About Section */
.page-blog__about-section {
  background: #2F6BFF; /* Primary color */
  color: #ffffff;
}

.page-blog__about-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__about-text {
  flex: 1;
}

.page-blog__about-text p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-blog__about-image {
  flex-shrink: 0;
  width: 500px;
  border-radius: 12px;
  overflow: hidden;
}

.page-blog__about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-blog__about-section .page-blog__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border-color: #ffffff;
}

.page-blog__about-section .page-blog__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  border-color: #f0f0f0;
}

/* Why Choose Us Section */
.page-blog__why-choose-us .page-blog__section-title {
  margin-bottom: 60px;
}

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

.page-blog__feature-item {
  background: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-blog__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 15px;
}

.page-blog__feature-item p {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
}

/* FAQ Section */
.page-blog__faq-section .page-blog__section-title {
  margin-bottom: 40px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Primary color */
  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: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
}
.page-blog__faq-item .page-blog__faq-answer p {
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
}

/* CTA Banner Section */
.page-blog__cta-banner {
  background: linear-gradient(135deg, #2F6BFF, #6FA3FF); /* Blend of primary and auxiliary */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-blog__cta-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-blog__cta-banner .page-blog__cta-buttons {
  gap: 20px;
}

.page-blog__cta-banner .page-blog__btn-primary {
  background: #ffffff;
  color: #2F6BFF;
  border-color: #ffffff;
}

.page-blog__cta-banner .page-blog__btn-primary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  border-color: #f0f0f0;
}

.page-blog__cta-banner .page-blog__btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-blog__cta-banner .page-blog__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image img {
    height: 500px;
  }
  .page-blog__main-title {
    font-size: 40px;
  }
  .page-blog__description {
    font-size: 18px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__about-content {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__about-image {
    width: 100%;
    max-width: 600px;
  }
  .page-blog__section-title {
    font-size: 30px;
  }
  .page-blog__cta-title {
    font-size: 36px;
  }
  .page-blog__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Force small top padding */
    margin-bottom: 30px;
  }
  .page-blog__hero-image img {
    height: auto !important; /* Allow height to adjust */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    object-fit: contain !important; /* Prevent cropping, show full image */
    border-radius: 0;
  }
  .page-blog__hero-content {
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Adaptive font size for H1 */
    margin-bottom: 15px;
  }
  .page-blog__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-blog__section,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__about-content,
  .page-blog__features-grid,
  .page-blog__faq-list,
  .page-blog__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 7vw, 28px);
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* 产品展示图区域 (Latest Posts Grid) */
  .page-blog__posts-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-blog__post-thumbnail {
    height: 180px; /* Adjust thumbnail height for mobile */
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 (About Section, Why Choose Us) */
  .page-blog__about-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-blog__about-image {
    width: 100%;
    max-width: 100%;
  }
  .page-blog__about-text p {
    font-size: 16px;
  }
  .page-blog__features-grid {
    grid-template-columns: 1fr; /* Single column for features */
    gap: 20px;
  }
  .page-blog__feature-title {
    font-size: 20px;
  }
  .page-blog__feature-item p {
    font-size: 15px;
  }

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

  /* CTA Banner */
  .page-blog__cta-banner {
    padding: 50px 15px;
  }
  .page-blog__cta-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-blog__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}