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

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

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

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

.page-blog__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF6D6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Minimal top padding */
}

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

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

.page-blog__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  text-align: center;
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__intro-text {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-blog__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow */
  border: 2px solid #3A2A12; /* Border */
  margin-left: 20px;
}

.page-blog__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  border-color: #FFD36B;
}

.page-blog__btn-tertiary {
  background: transparent;
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B;
  padding: 12px 25px;
  font-size: 16px;
}

.page-blog__btn-tertiary:hover {
  background: #FFD36B;
  color: #111111;
}

/* Latest Posts Grid */
.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__post-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 15px;
}

.page-blog__read-more {
  color: #F2C14E;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.page-blog__read-more i {
  margin-left: 8px;
  font-size: 14px;
}

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

/* Featured Articles */
.page-blog__dark-section {
  background-color: #111111; /* Card BG */
}

.page-blog__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-blog__featured-card {
  display: flex;
  background: #0A0A0A; /* Background */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3A2A12; /* Border */
}

.page-blog__featured-thumbnail {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-blog__featured-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__featured-title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

.page-blog__featured-excerpt {
  font-size: 17px;
  color: #FFF6D6;
  margin-bottom: 25px;
}

/* Categories */
.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-blog__category-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-item:hover {
  background: #F2C14E;
  color: #111111;
}

/* CTA Section */
.page-blog__cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__cta-text {
  flex: 1;
}

.page-blog__cta-text .page-blog__section-title {
  text-align: left;
}

.page-blog__cta-text p {
  text-align: left;
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__cta-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3A2A12;
}

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

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  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 25px;
  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: 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;
  color: #FFD36B; /* Glow */
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #0A0A0A; /* Background */
  border-radius: 0 0 12px 12px;
  color: #FFF6D6;
}

.page-blog__faq-answer p {
  margin: 0;
}

/* General image styling */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Tablet & Smaller (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-blog__hero-image {
    height: 500px;
  }
  .page-blog__main-title {
    font-size: 40px;
  }
  .page-blog__intro-text {
    font-size: 18px;
  }
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__section-description {
    font-size: 16px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__featured-card {
    flex-direction: column;
  }
  .page-blog__featured-thumbnail,
  .page-blog__featured-content {
    width: 100%;
  }
  .page-blog__cta-content {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__cta-text .page-blog__section-title,
  .page-blog__cta-text p {
    text-align: center;
  }
  .page-blog__cta-buttons {
    justify-content: center;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px;
  }
  .page-blog__hero-image {
    height: 300px;
  }
  .page-blog__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
  }
  .page-blog__hero-content {
    padding: 25px 15px;
  }
  .page-blog__main-title {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .page-blog__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 产品展示图区域 (通用图片和容器) */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__section {
    padding: 40px 0;
  }
  .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: 28px;
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-blog__post-card {
    margin: 0 5px;
  }
  .page-blog__post-thumbnail {
    height: 180px;
  }
  .page-blog__card-content {
    padding: 15px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 14px;
  }
  .page-blog__read-more {
    font-size: 14px;
  }

  /* 装饰主标题 + 长文 SEO 区 (article-body) */
  .page-blog__featured-card {
    flex-direction: column;
  }
  .page-blog__featured-thumbnail,
  .page-blog__featured-content {
    width: 100%;
    padding: 20px;
  }
  .page-blog__featured-title {
    font-size: 22px;
  }
  .page-blog__featured-excerpt {
    font-size: 15px;
  }

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

  /* 按钮与按钮容器 */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-tertiary,
  .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: 12px 15px;
    font-size: 16px;
    margin-left: 0 !important; /* Remove margin for stacked buttons */
  }
  .page-blog__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    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: 24px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}