.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #F4F7FB;
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #F4F7FB;
  padding-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-blog__description {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 30px;
}

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
  margin-right: 15px;
}

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

.page-blog__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.1);
}

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

.page-blog__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

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

.page-blog__latest-posts-section,
.page-blog__guides-section,
.page-blog__faq-section,
.page-blog__cta-section {
  padding: 60px 0;
}

.page-blog__latest-posts-section {
  background-color: #F4F7FB;
}

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

.page-blog__blog-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  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.15);
}

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

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

.page-blog__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #1F2D3D;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__card-title a {
  color: #1F2D3D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #2F6BFF;
}

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

.page-blog__card-excerpt {
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  position: relative;
  padding-right: 15px;
}

.page-blog__read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.page-blog__read-more:hover::after {
  transform: translateY(-50%) translateX(5px);
}

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

.page-blog__guides-section {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
}

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

.page-blog__guide-card {
  background: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__guide-title {
  font-size: 20px;
  font-weight: 600;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-blog__guide-card p {
  font-size: 16px;
  line-height: 1.6;
}

.page-blog__faq-section {
  background-color: #F4F7FB;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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;
  font-weight: 600;
  color: #1F2D3D;
}

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;
  line-height: 1.5;
  text-align: left;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Optional: animate to 'x' or rotate */
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

details.page-blog__faq-item .page-blog__faq-answer p {
  margin: 0;
}

.page-blog__cta-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-blog__description--light {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    max-width: 700px;
  }
  .page-blog__main-title {
    font-size: clamp(26px, 4.5vw, 40px);
  }
  .page-blog__description {
    font-size: 17px;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-blog__section-title {
    font-size: clamp(22px, 3.8vw, 34px);
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-blog__card-title {
    font-size: 20px;
  }
  .page-blog__card-meta, .page-blog__card-excerpt, .page-blog__read-more {
    font-size: 15px;
  }
  .page-blog__guide-card {
    padding: 25px;
  }
  .page-blog__guide-title {
    font-size: 18px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 18px;
  }
  .page-blog__faq-qtext {
    font-size: 17px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 18px 18px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-blog__hero-image img {
    object-fit: contain !important; /* 强制 contain */
    aspect-ratio: unset !important; /* 取消固定比例 */
    border-radius: 5px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
  }
  .page-blog__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .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-left: 15px;
    padding-right: 15px;
    margin-right: 0 !important; /* Remove margin for stacked buttons */
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 产品展示图区域 (通用图片和容器) */
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__blog-card {
    margin: 0 auto;
    max-width: 400px; /* Constrain card width for better readability */
  }
  .page-blog__card-image {
    height: 180px;
  }
  .page-blog__card-content {
    padding: 20px;
  }
  .page-blog__card-title {
    font-size: 18px;
  }
  .page-blog__card-excerpt {
    font-size: 15px;
  }
  .page-blog__guide-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__guide-card {
    padding: 20px;
  }
  .page-blog__guide-title {
    font-size: 18px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 30px;
    padding-top: 30px;
    text-align: center;
  }
  .page-blog__content-area, .page-blog__text-block {
    padding: 0 15px;
  }
  .page-blog__content-area img, .page-blog__text-block img, .page-blog__article-figure img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-blog__section, .page-blog__card, .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__latest-posts-section, .page-blog__guides-section, .page-blog__faq-section, .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__cta-section {
    padding: 60px 0;
  }
}