:root {
  --primary-color: #11A84E; /* 主色调 */
  --secondary-color: #22C768; /* 辅助色 */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* 按钮 */
  --card-background: #11271B; /* Card B G */
  --background: #08160F; /* 背景 */
  --text-main: #F2FFF6; /* Text Main */
  --text-secondary: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E; /* 边框 */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green: #0A4B2C; /* Deep Green */
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page, assuming dark body bg */
  background-color: var(--background); /* Overall page background */
}

/* General styles for contrast and responsiveness */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold-color); /* Using gold for prominent titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-blog p {
  margin-bottom: 1em;
  color: var(--text-main);
}

.page-blog ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--text-main);
}

.page-blog li {
  margin-bottom: 0.5em;
  color: var(--text-main);
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background);
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-blog__hero-content {
  width: 100%;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  background: var(--card-background); /* Using a dark background for hero content */
  color: var(--text-main);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: -60px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 10;
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for h1 font size */
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-blog__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.3);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  background-color: var(--background);
  padding: 80px 0;
  color: var(--text-main);
}

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

.page-blog__post-card {
  background-color: var(--card-background);
  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;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  flex-grow: 1;
}

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

/* Content Section */
.page-blog__content-section {
  background-color: var(--background); /* Use dark background consistently */
  padding: 80px 0;
  color: var(--text-main);
}

.page-blog__content-section p,
.page-blog__content-section ul,
.page-blog__content-section li {
  color: var(--text-main); /* Ensure text is main color on dark background */
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: var(--card-background);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker for details */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main);
  background-color: var(--card-background);
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: var(--deep-green);
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1em;
  max-height: 0; /* For div based accordion */
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 2000px; /* Sufficiently large for content */
  transition: max-height 0.5s ease-in;
}

/* For <details> native behavior, max-height is not needed on .page-blog__faq-answer */
.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: none;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−'; /* Change to minus when open */
}

/* CTA Section */
.page-blog__cta-section {
  background-color: var(--deep-green);
  padding: 80px 0;
  text-align: center;
  color: var(--text-main);
}

.page-blog__section-title--cta {
  color: var(--gold-color);
  margin-bottom: 20px;
}

.page-blog__description--cta {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -40px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

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

  .page-blog__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog__hero-content {
    padding: 30px 15px;
    margin-top: -30px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* Mobile image and video responsive rules */
  .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__hero-image-wrapper,
  .page-blog__posts-grid,
  .page-blog__post-card,
  .page-blog__faq-list,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-blog__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Video specific rules, even if no video is explicitly added now, for future-proofing */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (min-width: 769px) {
  /* Desktop styles for video container width */
  .page-blog__video-container {
    width: 100%; /* Ensure it's 100% and max-width is also set */
    max-width: 1200px;
  }
}