/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure visibility for image and content */
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area, will be `contain` on mobile */
  display: block;
}

.page-news__hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
  z-index: 1;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px; /* Space for the image above the content */
  padding-bottom: 40px;
  text-align: center;
  color: #ffffff;
  width: 100%;
  max-width: 900px;
}

.page-news__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsive handling */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
}

.page-news__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: #F4F7FB; /* Background */
  padding: 80px 0;
}

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

.page-news__article-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

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

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #1F2D3D; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #2F6BFF; /* Main color */
}

.page-news__article-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  display: block;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-news__read-more:hover {
  text-decoration: underline;
}

.page-news__view-all {
  margin-top: 60px;
}

/* Why Follow Section */
.page-news__why-follow {
  background: #2F6BFF; /* Main color */
  color: #ffffff;
  padding: 80px 0;
}

.page-news__why-follow .page-news__section-title {
  color: #ffffff;
}

.page-news__why-follow .page-news__section-description {
  color: #f0f0f0;
}

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

.page-news__feature-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-news__feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-news__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__feature-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 0;
}

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

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

details.page-news__faq-item summary.page-news__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;
}

details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #F4F7FB; /* Lighter background */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 12px 12px;
  color: #333333;
  text-align: left;
}

details.page-news__faq-item .page-news__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
  padding: 80px 0;
  background-color: #FFFFFF; /* Card BG */
}

.page-news__cta-bottom .page-news__section-title {
  color: #1F2D3D; /* Text Main */
}

.page-news__cta-bottom .page-news__section-description {
  color: #333333;
}

/* General image and container responsiveness */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__container,
.page-news__hero-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__section-description {
    font-size: 17px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__feature-item {
    padding: 25px;
  }
  .page-news__feature-title {
    font-size: 22px;
  }
  .page-news__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    min-height: auto;
  }
  .page-news__hero-image-wrapper {
    position: relative; /* Change to relative for better mobile flow if image is above text */
    height: auto;
    margin-bottom: 20px; /* Space between image and content */
  }
  .page-news__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible, not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-image-wrapper::before {
    display: none; /* Remove overlay if image is `contain` */
  }
  .page-news__hero-content {
    padding-top: 0;
    padding-bottom: 0;
    color: #1F2D3D; /* Change text color for better contrast on lighter background */
    background-color: transparent; /* Remove any background */
  }
  .page-news__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Adjusted clamp for mobile */
    color: #1F2D3D; /* Text Main */
  }
  .page-news__hero-description {
    font-size: 16px;
    color: #333333; /* Darker text for readability */
  }

  /* 按钮与按钮容器 */
  .page-news__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-news__container,
  .page-news__section,
  .page-news__card,
  .page-news__hero-content,
  .page-news__cta-bottom .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 (News page uses articles grid) */
  .page-news__articles-grid {
    grid-template-columns: 1fr; /* Single column for articles */
    gap: 20px;
  }
  .page-news__article-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px; /* Optional: limit card width for better readability on small screens */
  }
  .page-news__article-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__card-excerpt {
    font-size: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-news__section-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-news__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__feature-item {
    padding: 20px;
  }
  .page-news__feature-title {
    font-size: 20px;
  }

  /* FAQ */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 15px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
  }
}