.page-blog {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default to dark text for light background */
  background-color: var(--background, #F5F7FA); /* Default page background */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--background, #F5F7FA);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  max-height: 492px; /* Adjusted height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: bold;
  color: #E53935; /* Brand color */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main, #333333);
}

/* Common container for content sections */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #333333);
}

/* Article Cards Section */
.page-blog__articles-section {
  background-color: var(--card-bg, #FFFFFF); /* light background for cards section */
  color: var(--text-main, #333333);
}

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

.page-blog__article-card {
  background-color: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

.page-blog__article-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for image wrapper */
  overflow: hidden;
}

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

.page-blog__article-content {
  padding: 20px;
}

.page-blog__article-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: var(--text-main, #333333);
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #E53935;
  font-weight: bold;
  text-decoration: underline;
}

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

/* About F168 Blog Section */
.page-blog__about-section {
  background-color: var(--background, #F5F7FA);
  color: var(--text-main, #333333);
  padding: 60px 0;
}

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

.page-blog__about-content h2 {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #E53935;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-blog__about-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-blog__about-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-blog__about-list li {
  margin-bottom: 10px;
}

/* Categories Section */
.page-blog__categories-section {
  background-color: #E53935; /* Dark background */
  color: #ffffff; /* White text */
  padding: 60px 0;
}

.page-blog__categories-section .page-blog__section-title,
.page-blog__categories-section .page-blog__section-description {
  color: #ffffff; /* Ensure white text on dark background */
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__category-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FF5A4F; /* Auxiliary brand color */
}

.page-blog__category-desc {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* In-depth Articles / Guides Section */
.page-blog__guides-section {
  background-color: var(--background, #F5F7FA);
  color: var(--text-main, #333333);
  padding: 60px 0;
}

.page-blog__guides-section h2 {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__guide-item {
  margin-bottom: 40px;
}

.page-blog__guide-item h3 {
  font-size: clamp(1.4em, 2.8vw, 1.8em);
  color: #E53935;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__guide-item p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

/* News & Updates Section */
.page-blog__news-section {
  background-color: var(--card-bg, #FFFFFF);
  color: var(--text-main, #333333);
  padding: 60px 0;
}

.page-blog__news-section h2 {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #E53935;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-blog__news-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
}

/* CTA Section */
.page-blog__cta-section {
  background-color: var(--background, #F5F7FA);
  padding: 60px 0;
  text-align: center;
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-blog__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    max-width: 700px;
  }
}

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

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Still 10px, body handles main offset */
    padding-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: 2em;
  }

  .page-blog__intro-text {
    font-size: 1em;
  }

  /* 长文区 */
  .page-blog__container {
    padding: 30px 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* 博客区 */
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-blog__hero-image,
  .page-blog__article-image-wrapper,
  .page-blog__articles-section,
  .page-blog__about-section,
  .page-blog__categories-section,
  .page-blog__guides-section,
  .page-blog__news-section,
  .page-blog__cta-section,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__category-card,
  .page-blog__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__category-card {
    padding: 20px;
  }

  .page-blog__category-title {
    font-size: 1.2em;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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