/* Base styles for the blog page content */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF3E6); /* Text Main for dark background */
  background: var(--bg-color, #0D0E12); /* Background color */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, assuming body has --header-offset */
}

.page-blog__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__hero-content {
  position: relative;
  text-align: center;
  padding: 30px 20px 0;
  max-width: 900px;
  width: 100%;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: #FFF3E6;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1rem;
  color: rgba(255, 243, 230, 0.8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  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;
}

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

/* General Container */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section Title */
.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FFA53A;
  border-radius: 2px;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background: var(--bg-color, #0D0E12);
}

.page-blog__post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__post-card {
  background: var(--card-bg-color, #17191F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #A84F0C);
}

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

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

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

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

.page-blog__post-title {
  font-size: 1.25rem;
  color: #FFF3E6;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-blog__post-title:hover {
  color: #FFA53A;
}

.page-blog__post-meta {
  font-size: 0.9rem;
  color: rgba(255, 243, 230, 0.6);
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: rgba(255, 243, 230, 0.8);
  margin-bottom: 0;
}

.page-blog__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background: var(--card-bg-color, #17191F);
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-blog__category-card {
  background: var(--bg-color, #0D0E12);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #FFF3E6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color, #A84F0C);
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

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

.page-blog__category-title {
  font-size: 1.1rem;
  padding: 15px;
  margin: 0;
  font-weight: 600;
  color: #FFF3E6;
}

/* About Blog Section (Article Body) */
.page-blog__about-blog-section {
  padding: 60px 0;
  background: var(--bg-color, #0D0E12);
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 243, 230, 0.9);
}

.page-blog__article-body h2,
.page-blog__article-body h3 {
  color: #FFF3E6;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog__article-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
}

.page-blog__article-body h3.page-blog__article-subtitle {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #FFA53A;
}

.page-blog__article-body p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
}

.page-blog__article-body strong {
  color: #FFA53A;
}

.page-blog__article-body ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: rgba(255, 243, 230, 0.9);
}

.page-blog__article-body li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-blog__article-figure {
  margin: 30px 0;
  text-align: center;
  background: var(--card-bg-color, #17191F);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #A84F0C);
}

.page-blog__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-blog__article-figure figcaption {
  margin-top: 15px;
  font-size: 0.9rem;
  color: rgba(255, 243, 230, 0.7);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background: var(--card-bg-color, #17191F);
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #A84F0C);
  overflow: hidden;
  background: var(--bg-color, #0D0E12);
}

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: #FFF3E6;
  font-weight: 600;
}
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: #1e2027;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  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: var(--card-bg-color, #17191F);
  border-radius: 0 0 10px 10px;
  color: rgba(255, 243, 230, 0.8);
  font-size: 1rem;
}
details.page-blog__faq-item .page-blog__faq-answer p {
  margin-bottom: 0;
}
details.page-blog__faq-item .page-blog__faq-answer a {
  color: #FFA53A;
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-image img {
    max-height: 400px;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-bottom: 30px;
    padding-top: 10px; /* Small top padding */
  }
  .page-blog__hero-image {
    max-height: unset;
  }
  .page-blog__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    padding: 20px 15px 0;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.3;
  }
  .page-blog__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 30px;
    padding-bottom: 10px;
 }}