.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  padding-bottom: 40px;
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,165,58,0.1) 0%, rgba(217,104,0,0.1) 100%);
  border-bottom: 1px solid #A84F0C;
}

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

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #FFF3E6;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-blog__description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(255, 165, 58, 0.3);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 15px rgba(255, 165, 58, 0.5);
}

.page-blog__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
}

.page-blog__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
}

.page-blog__articles-section,
.page-blog__about-section,
.page-blog__faq-section {
  padding: 60px 0;
}

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

.page-blog__section-title {
  font-size: 2.2em;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-intro {
  font-size: 1.1em;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__article-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #FFF3E6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  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.5);
}

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__article-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border color for meta info */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #FFF3E6;
  line-height: 1.5;
  flex-grow: 1;
}

.page-blog__view-all {
  text-align: center;
}

.page-blog__about-section {
  background-color: #17191F; /* Card BG */
  border-top: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
}

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

.page-blog__about-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.page-blog__text-block {
  flex: 1;
  color: #FFF3E6;
}

.page-blog__text-block p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-blog__faq-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 20px;
}

.page-blog__faq-question {
  font-size: 1.2em;
  color: #FFA53A; /* Auxiliary color */
  font-weight: bold;
  margin-bottom: 10px;
}

.page-blog__faq-answer {
  color: #FFF3E6;
  line-height: 1.6;
}

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

  /* 1. 顶区标题 + 双 CTA */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-blog__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  /* 2. 单栏长文容器 */
  .page-blog__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-blog__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-blog__article-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-blog__about-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-blog__about-image {
    max-width: 100%;
    width: 100%;
  }

  /* 4. 按钮与按钮容器 (already covered in CTA section, but ensuring general application) */
  .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;
  }
  
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 5. 注册教程与 FAQ 区块 (FAQ is a simple list of divs here) */
  .page-blog__faq-item {
    padding: 15px;
  }

  .page-blog__faq-question {
    font-size: 1.1em;
  }

  .page-blog__faq-answer {
    font-size: 0.95em;
  }

  /* Additional responsive adjustments */
  .page-blog__articles-section,
  .page-blog__about-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }

  .page-blog__article-grid {
    gap: 20px;
  }
}

/* --- General Image & Button CSS for safety --- */
/* This block ensures all images and buttons are responsive by default */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__article-card img,
.page-blog__about-image {
  box-sizing: border-box; /* Ensures padding/border are included in width */
}

.page-blog__cta-button,
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}