.page-blog {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color, will be adjusted by contrast system */
  background: var(--background); /* Default background, will be adjusted by contrast system */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding */
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Brand colors for hero background */
  color: #ffffff; /* White text on dark gradient */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__main-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* White text */
}

.page-blog__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly off-white for description */
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px; /* Limit max width for button group */
  margin: 0 auto;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't exceed container */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  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;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-blog__btn-secondary:hover {
  background: #f0f5ff;
  color: #1a4cd8;
  border-color: #1a4cd8;
}

/* General Section Styles */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-blog__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-blog__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #666;
}

.page-blog__light-bg {
  background: var(--background); /* #F4F7FB */
  color: var(--text-main); /* #1F2D3D */
}

.page-blog__dark-bg {
  background: #2F6BFF; /* Brand primary color */
  color: #ffffff;
}
.page-blog__dark-bg .page-blog__section-subtitle {
  color: #f0f0f0;
}
.page-blog__dark-bg .page-blog__section-title {
  color: #ffffff;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

.page-blog__article-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for thumbnails */
  overflow: hidden;
}

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

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

.page-blog__article-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.page-blog__article-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-blog__article-title a {
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.3s ease;
}

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

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

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

.page-blog__read-more:hover {
  color: #1a4cd8;
  text-decoration: underline;
}

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

/* Categories Section */
.page-blog__categories-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-blog__category-card {
  background: rgba(255, 255, 255, 0.1); /* Light transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 30px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-blog__category-card img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px; /* Add slight border-radius for aesthetic */
}

.page-blog__category-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-blog__category-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* About Blog Section */
.page-blog__about-blog {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-blog__about-blog .page-blog__section-title {
  color: var(--text-main);
}

.page-blog__content-area {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: #333333; /* Specific dark color for readability */
}

.page-blog__content-area p {
  margin-bottom: 20px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6FA3FF; /* Lighter brand color for border */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  color: #ffffff;
}
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: rgba(255, 255, 255, 0.25);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}
.page-blog__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: rgba(0, 0, 0, 0.1); /* Darker transparent background for answer */
  border-radius: 0 0 10px 10px;
  color: #f0f0f0;
}
.page-blog__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Banner Section */
.page-blog__cta-banner {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%); /* Horizontal gradient */
  color: #ffffff;
}

.page-blog__cta-banner .page-blog__section-title {
  font-size: 42px;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-blog__cta-banner .page-blog__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Global Image Responsiveness & Contrast */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Color Contrast Fixes (if needed) */
.page-blog__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 40px;
  }
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__cta-banner .page-blog__section-title {
    font-size: 36px;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding: 10px 15px 40px;
  }
  .page-blog__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-blog__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  /* 产品展示图区域 (General grid handling for articles/categories) */
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-blog__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog__content-area {
    font-size: 15px;
    line-height: 1.7;
    padding: 0 10px;
  }
  .page-blog__article-card {
    margin-bottom: 20px;
  }
  .page-blog__article-title {
    font-size: 18px;
  }
  .page-blog__article-excerpt {
    font-size: 14px;
  }

  /* FAQ Section Mobile */
  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: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
  .page-blog__faq-answer p {
    font-size: 14px;
  }

  /* CTA Banner */
  .page-blog__cta-banner {
    padding: 50px 15px;
  }
  .page-blog__cta-banner .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-blog__cta-banner .page-blog__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}