.page-blog {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-blog__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__hero-section {
  padding-top: 10px;
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  color: #ffffff;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  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%); /* Button */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-blog__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-blog__featured-articles,
.page-blog__categories-section,
.page-blog__latest-updates,
.page-blog__promo-section,
.page-blog__about-blog {
  padding: 60px 0;
}

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

.page-blog__article-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px 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 30px rgba(0, 0, 0, 0.12);
}

.page-blog__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

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

.page-blog__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

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

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

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

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

.page-blog__view-all-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #2F6BFF;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__view-all-btn:hover {
  background: #4A8BFF;
  transform: translateY(-2px);
}

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

.page-blog__category-card {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #1F2D3D; /* Text Main */
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(47, 107, 255, 0.1);
  border-color: #2F6BFF;
}

.page-blog__category-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-blog__category-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #333333;
}

.page-blog__update-list {
  display: grid;
  gap: 30px;
}

.page-blog__update-item {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.page-blog__update-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF;
}

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

.page-blog__update-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 20px;
}

.page-blog__promo-section {
  padding: 80px 0;
  background: #2F6BFF;
  color: #ffffff;
  text-align: center;
}

.page-blog__promo-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-blog__promo-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__promo-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-blog__about-blog {
  padding-bottom: 80px;
}

.page-blog__text-block {
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-blog__section-title,
  .page-blog__promo-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 40px;
  }
  .page-blog__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-blog__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 2. 单栏长文容器 (applies to general sections like about-blog) */
  .page-blog__featured-articles,
  .page-blog__categories-section,
  .page-blog__latest-updates,
  .page-blog__promo-section,
  .page-blog__about-blog {
    padding: 40px 0;
  }
  .page-blog__section-title,
  .page-blog__promo-title {
    font-size: clamp(1.5em, 6vw, 2.2em) !important;
    margin-bottom: 30px;
    padding-top: 0; /* Adjust padding-top for sections */
  }
  .page-blog__text-block {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  /* 3. 通用图片与 figure */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-blog__article-image {
    height: 200px;
  }

  /* 4. 按钮与按钮容器 */
  .page-blog__view-all-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-blog__cta-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 5. 注册教程与 FAQ 区块 (Not explicitly in this blog page, but general styles for card/list items) */
  .page-blog__article-card,
  .page-blog__category-card,
  .page-blog__update-item {
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }
  .page-blog__card-title a,
  .page-blog__category-title,
  .page-blog__update-title {
    font-size: 1.2em !important;
  }
  .page-blog__card-excerpt,
  .page-blog__category-description,
  .page-blog__update-excerpt {
    font-size: 0.9em !important;
  }

  .page-blog__promo-box {
    padding: 30px 20px;
  }
  .page-blog__promo-description {
    font-size: 0.95em;
  }
}