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

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

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background */
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #ffffff;
  border: none;
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A; /* Auxiliary color for border */
}

.page-blog__btn-secondary:hover {
  background: rgba(255, 165, 58, 0.1);
  color: #ffffff;
}

.page-blog__latest-articles,
.page-blog__why-follow {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 20px;
}

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

.page-blog__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF3E6;
}

.page-blog__section-description--white {
  color: #ffffff;
}

.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: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__article-image {
  width: 100%;
  height: 220px;
  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.3rem;
  font-weight: 600;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-blog__article-excerpt {
  font-size: 0.95rem;
  color: #FFF3E6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #FFA53A;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

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

.page-blog__categories {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
}

.page-blog__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  display: inline-block;
  background-color: #A84F0C; /* Border */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 0.95rem;
}

.page-blog__category-item:hover {
  background-color: #FFA53A;
  transform: translateY(-2px);
}

.page-blog__advantage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__advantage-item {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-blog__advantage-item:hover {
  transform: translateY(-5px);
}

.page-blog__advantage-item h3 {
  font-size: 1.4rem;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-blog__advantage-item p {
  font-size: 1rem;
  color: #FFF3E6;
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}

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

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: #2a2c33;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow */
}

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

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

.page-blog__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(180deg, #0D0E12 0%, #17191F 100%); /* Background to Card BG */
  color: #FFF3E6;
}

.page-blog__cta-bottom .page-blog__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-blog__cta-content {
  flex: 1;
  text-align: left;
}

.page-blog__cta-content .page-blog__section-title {
  text-align: left;
  margin-bottom: 20px;
}

.page-blog__cta-content .page-blog__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
}

.page-blog__cta-image {
  flex-shrink: 0;
  width: 50%;
  max-width: 600px;
}

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

/* ==================================================================
   Responsive Styles (max-width: 1024px)
   ================================================================== */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 15px;
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__hero-image {
    max-height: 400px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .page-blog__latest-articles,
  .page-blog__why-follow,
  .page-blog__categories,
  .page-blog__faq-section,
  .page-blog__cta-bottom {
    padding: 60px 0;
  }

  .page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

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

  .page-blog__article-image {
    height: 200px;
  }

  .page-blog__article-title {
    font-size: 1.2rem;
  }

  .page-blog__advantage-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-blog__advantage-item h3 {
    font-size: 1.3rem;
  }

  .page-blog__faq-qtext {
    font-size: 1rem;
  }

  .page-blog__cta-bottom .page-blog__container {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__cta-content {
    text-align: center;
  }

  .page-blog__cta-content .page-blog__section-title,
  .page-blog__cta-content .page-blog__section-description {
    text-align: center;
  }

  .page-blog__cta-image {
    width: 80%;
    margin-top: 30px;
  }
}

/* ==================================================================
   Responsive Styles (max-width: 768px)
   ================================================================== */
@media (max-width: 768px) {
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Fixed top padding for mobile */
    padding-bottom: 30px;
  }

  .page-blog__hero-image {
    max-height: 250px;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog__hero-description {
    font-size: 0.95rem;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .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__latest-articles,
  .page-blog__why-follow,
  .page-blog__categories,
  .page-blog__faq-section,
  .page-blog__cta-bottom {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-blog__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

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

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.1rem;
  }

  .page-blog__article-meta,
  .page-blog__article-excerpt {
    font-size: 0.85rem;
  }

  .page-blog__category-item {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .page-blog__advantage-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__advantage-item h3 {
    font-size: 1.2rem;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }

  .page-blog__faq-qtext {
    font-size: 0.95rem;
  }

  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  .page-blog__cta-bottom .page-blog__container {
    padding: 0;
  }

  .page-blog__cta-content {
    padding: 0 15px;
  }

  .page-blog__cta-image {
    width: 100%;
    margin-top: 20px;
    padding: 0 15px;
  }
  
  /* Content area images CSS size lower bound */
  .page-blog__latest-articles img, 
  .page-blog__why-follow img, 
  .page-blog__cta-bottom img {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* For elements that contain images and need specific padding for mobile */
  .page-blog__articles-grid .page-blog__article-card .page-blog__article-content,
  .page-blog__advantage-item {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__articles-grid .page-blog__article-card .page-blog__article-image {
    max-width: 100%;
    height: auto; /* Allow height to adjust naturally */
  }
  .page-blog__articles-grid {
    overflow-x: hidden;
  }
}