/* General styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Body background from shared */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop hero */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area, may crop */
  display: block;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: -300px; /* Pull content up over the bottom part of the image */
  background: rgba(17, 17, 17, 0.8); /* Card BG with transparency for content readability */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12; /* Border color */
}

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

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main color */
  margin-bottom: 30px;
}

.page-blog__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Section Titles & Subtitles */
.page-blog__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem); /* Responsive font size */
  color: #FFD36B; /* Glow color for titles */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-blog__section-subtitle {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main color */
  text-align: center;
  margin-bottom: 40px;
}

/* Blog Posts Grid */
.page-blog__posts-section {
  padding: 60px 0;
}

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

.page-blog__post-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  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;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-blog__post-title a {
  color: #FFD36B; /* Glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #F2C14E; /* Main color on hover */
}

.page-blog__post-meta {
  font-size: 0.9rem;
  color: #A0A0A0; /* Lighter grey for meta info */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main color */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #F2C14E; /* Main color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FFD36B; /* Glow color on hover */
  text-decoration: underline;
}

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

/* About Section */
.page-blog__about-section {
    padding: 60px 0;
}

.page-blog__text-block {
    max-width: 900px;
    margin: 0 auto;
    color: #FFF6D6;
    font-size: 1rem;
    line-height: 1.8;
}

.page-blog__text-block h3 {
    font-size: 1.8rem;
    color: #FFD36B;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-blog__text-block p {
    margin-bottom: 1.5em;
}

.page-blog__text-block ul {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 1.5em;
}

.page-blog__text-block li {
    margin-bottom: 0.8em;
    color: #FFF6D6;
}

.page-blog__text-block strong {
    color: #F2C14E; /* Main color for strong text */
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Use background color for section */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

.page-blog__cta-content {
  max-width: 600px;
  text-align: left;
}

.page-blog__cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #FFD36B;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

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

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

.page-blog__cta-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsive */
  box-sizing: border-box; /* For responsive */
  white-space: normal; /* For responsive */
  word-wrap: break-word; /* For responsive */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for light button */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFE699 0%, #E6B34A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color border */
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.2);
}

.page-blog__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #FFD36B; /* Glow color */
  border-color: #FFD36B; /* Glow color border */
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.4);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0 80px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
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;
  color: #FFD36B; /* Glow color for question */
  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: rgba(242, 193, 78, 0.05); /* Slight hover effect */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.5;
  text-align: left;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: rgba(17, 17, 17, 0.8); /* Slightly lighter dark background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main color */
}

.page-blog__faq-answer p {
  margin-bottom: 1em;
}

.page-blog__faq-answer a {
  color: #F2C14E;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    height: 500px;
  }
  .page-blog__hero-content {
    margin-top: -250px;
    padding: 30px;
  }
  .page-blog__cta-section {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__cta-content {
    text-align: center;
  }
  .page-blog__cta-buttons {
    justify-content: center;
  }
  .page-blog__cta-image-wrapper {
    width: 80%;
    height: 180px;
    margin-top: 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-blog__hero-image-wrapper {
    height: 250px;
  }
  .page-blog__hero-image {
    object-fit: contain !important; /* Mobile hero image should contain, not crop */
    aspect-ratio: unset !important;
  }
  .page-blog__hero-content {
    margin-top: -120px; /* Adjust pull-up for smaller image */
    padding: 20px;
    max-width: 95%;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

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

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-top: 40px;
    margin-bottom: 15px;
  }
  .page-blog__section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .page-blog__about-section .page-blog__text-block h3 {
      font-size: 1.5rem;
      text-align: left;
  }
  .page-blog__about-section .page-blog__text-block ul {
      padding-left: 25px;
  }
  .page-blog__about-section .page-blog__text-block p,
  .page-blog__about-section .page-blog__text-block li {
      font-size: 0.95rem;
  }

  /* 产品展示图区域 (Not applicable for blog, but general grid needs responsive handling) */
  .page-blog__posts-grid {
    grid-template-columns: 1fr; /* Single column for blog posts on mobile */
    gap: 20px;
  }
  .page-blog__posts-section {
    overflow-x: hidden; /* Prevent horizontal scroll for this section */
  }

  /* 按钮与按钮容器 */
  .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;
    font-size: 1rem;
  }
  .page-blog__cta-buttons,
  .page-blog__hero-actions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
    flex-direction: column;
    gap: 30px;
  }
  .page-blog__cta-content {
    text-align: center;
    max-width: 100%;
  }
  .page-blog__cta-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-blog__cta-image-wrapper {
    width: 90%;
    height: 150px;
    margin-top: 0;
  }

  /* FAQ Section */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 1rem;
  }
  .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;
  }
}