/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main on dark background */
  background-color: #08160F; /* Background color */
}

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

.page-blog__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__text-content {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green for hero section background */
}

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

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

.page-blog__hero-content {
  position: relative; /* Ensure content is above image if z-index is used, but avoid overlaying */
  max-width: 800px;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  z-index: 1; /* Keep content above image if there's any overlap logic, but avoid for pure "上图下文" */
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #2AD16F;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid #2AD16F;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.page-blog__btn-secondary:hover {
  background-color: #2AD16F;
  color: #ffffff;
}

/* Introduction Section */
.page-blog__introduction-section {
  padding: 60px 0;
  background-color: #08160F;
}

/* Featured Articles Section */
.page-blog__featured-articles {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

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

.page-blog__article-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #F2FFF6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #2E7A4E;
}

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

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

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

.page-blog__card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-blog__card-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__card-date {
  font-size: 0.85rem;
  color: #A7D9B8;
  opacity: 0.8;
}

.page-blog__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Benefits Section */
.page-blog__benefits-section {
  padding: 60px 0;
  background-color: #08160F;
}

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

.page-blog__benefit-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid #2E7A4E;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-blog__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-blog__benefit-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-blog__benefit-description {
  font-size: 0.95rem;
  color: #A7D9B8;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

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

.page-blog__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E;
  overflow: hidden;
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

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

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.7;
}

/* Call to Action Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #08160F;
  text-align: center;
}

.page-blog__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-blog__cta-section .page-blog__section-title {
  margin-bottom: 20px;
}

.page-blog__cta-section .page-blog__text-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 30px 20px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }
  .page-blog__description {
    font-size: 1rem;
  }
  .page-blog__articles-grid,
  .page-blog__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    margin-top: 20px;
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }
  .page-blog__description {
    font-size: 0.95rem;
  }
  .page-blog__section-title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-blog__text-content {
    font-size: 0.9rem;
  }
  .page-blog__articles-grid,
  .page-blog__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-card,
  .page-blog__benefit-item {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-blog__card-image {
    height: 180px;
  }
  .page-blog__card-title {
    font-size: 1.15rem;
  }
  .page-blog__card-excerpt,
  .page-blog__benefit-description {
    font-size: 0.85rem;
  }
  .page-blog__faq-item summary {
    padding: 15px;
    font-size: 1rem;
  }
  .page-blog__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__hero-image-wrapper,
  .page-blog__article-card,
  .page-blog__benefit-item,
  .page-blog__cta-image,
  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__featured-articles,
  .page-blog__benefits-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-blog__hero-section {
    padding-top: 10px !important;
  }
  .page-blog__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .page-blog__section-title {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}