/* -------------------------------------------------------------------------- */
/*                            Base Styles for Blog Page                       */
/* -------------------------------------------------------------------------- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-blog__section-spacing {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  overflow: hidden;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

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

.page-blog__hero-content-area {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect */
  background: rgba(17, 17, 17, 0.8); /* Card BG with opacity */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12; /* Border */
}

.page-blog__main-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-blog__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for contrast */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-blog__cta-button--secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E;
}

.page-blog__cta-button--secondary:hover {
  background: #F2C14E;
  color: #111111;
}

/* -------------------------------------------------------------------------- */
/*                               Intro Section                                */
/* -------------------------------------------------------------------------- */
.page-blog__intro-section .page-blog__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/*                              Latest Articles                               */
/* -------------------------------------------------------------------------- */
.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: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
}

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

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

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

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

.page-blog__article-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-excerpt {
  font-size: 15px;
  color: #FFF6D6;
  margin-bottom: 15px;
  min-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
}

.page-blog__article-date {
  font-size: 14px;
  color: #F2C14E;
}

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

/* -------------------------------------------------------------------------- */
/*                                In-depth Guide                              */
/* -------------------------------------------------------------------------- */
.page-blog__in-depth-guide .page-blog__section-title {
  margin-bottom: 30px;
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.9;
}

.page-blog__article-body p {
  margin-bottom: 25px;
}

.page-blog__article-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border */
}

/* -------------------------------------------------------------------------- */
/*                                    CTA Section                             */
/* -------------------------------------------------------------------------- */
.page-blog__cta-content {
  text-align: center;
  max-width: 800px;
}

.page-blog__cta-content .page-blog__text-block {
  margin-bottom: 30px;
}

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

/* -------------------------------------------------------------------------- */
/*                                   FAQ Section                              */
/* -------------------------------------------------------------------------- */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* 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;
  color: #FFD36B; /* Glow */
}
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(242, 193, 78, 0.1);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main 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: rgba(17, 17, 17, 0.7); /* Slightly darker for contrast */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
  font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/*                             Responsive Styles                              */
/* -------------------------------------------------------------------------- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 32px;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 5vw, 48px);
  }

  .page-blog__hero-content-area {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-blog__article-title {
    font-size: 20px;
  }

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

/* Mobile Specific */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__section-spacing {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px;
  }
  .page-blog__hero-image-wrapper {
    max-height: 400px;
  }
  .page-blog__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__hero-content-area {
    margin-top: -50px;
    padding: 25px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-blog__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .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% !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__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 (Blog articles grid acts like this) */
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 18px;
  }
  .page-blog__article-excerpt {
    font-size: 14px;
    min-height: unset; /* Allow natural height */
    -webkit-line-clamp: unset;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__text-block,
  .page-blog__article-body p {
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
  }
  .page-blog__article-body {
    max-width: 100% !important;
    padding: 0 10px;
  }
  .page-blog__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* 通用图片与容器 */
  .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__intro-section,
  .page-blog__latest-articles-section,
  .page-blog__in-depth-guide,
  .page-blog__cta-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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