/* style/blog.css */

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

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles header-offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
  color: #FFF5E1; /* Text Main */
  background-color: #7A0E0E; /* Deep Red */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD86A; /* Gold gradient start */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold Gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFD86A; /* Gold */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFCC66; /* Glow border */
  margin-left: 15px;
}

.page-blog__btn-secondary:hover {
  background-color: #5a0a0a;
  transform: translateY(-3px);
}

/* Section Titles and Descriptions */
.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #FFD86A; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-blog__section-description {
  font-size: 1.05rem;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Blog Articles Grid */
.page-blog__blog-list-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-blog__blog-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1; /* Text Main */
  border: 1px solid #F2B544; /* Border Gold */
}

.page-blog__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-blog__card-link {
  color: #FFD86A; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-link:hover {
  color: #FFCC66; /* Glow */
  text-decoration: underline;
}

.page-blog__card-meta {
  font-size: 0.9rem;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-blog__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C91F17; /* Primary Red */
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  background-color: #E53935; /* Auxiliary Red */
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
}

.page-blog__cta-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD86A; /* Gold */
}

.page-blog__cta-description {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0 80px 0;
  background-color: #B71C1C; /* Background */
}

.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border Gold */
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  color: #FFF5E1; /* Text Main */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #C91F17; /* Primary Red */
  color: #FFD86A; /* Gold */
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question:hover {
  background-color: #E53935; /* Auxiliary Red */
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #FFF5E1; /* Text Main */
}

.page-blog__faq-answer p {
  margin-bottom: 10px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-blog__hero-description,
  .page-blog__cta-description {
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-blog__card-title {
    font-size: 1.3rem;
  }

  .page-blog__faq-question {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

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

  .page-blog__main-title {
    font-size: 2.2rem !important;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  /* 其他内容模块 */
  .page-blog__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 2rem !important;
    padding-top: 30px;
  }

  .page-blog__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-blog__blog-list-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 40px 0 !important;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__blog-card {
    margin-bottom: 15px;
  }

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

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

  .page-blog__card-title {
    font-size: 1.2rem;
  }

  .page-blog__card-excerpt {
    font-size: 0.9rem;
  }

  .page-blog__read-more-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .page-blog__view-all-wrapper {
    margin-top: 30px;
  }

  /* 按钮与按钮容器 */
  .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 !important;
    padding-right: 15px !important;
    margin-left: 0 !important; /* Reset margin for stacking */
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* FAQ Section */
  .page-blog__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  .page-blog__cta-title {
    font-size: 2.1rem !important;
  }

  .page-blog__cta-description {
    font-size: 1rem;
  }
}