.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
}

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

/* Hero Section */
.page-news__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  min-height: 600px;
  background-color: #26A9E0; /* Brand primary color for dark section */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-news__hero-content {
  flex: 1;
  padding: 40px;
  z-index: 1;
  max-width: 50%;
  box-sizing: border-box;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-news__hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-news__btn-primary:hover {
  background-color: #d86c06;
  border-color: #d86c06;
}

.page-news__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-news__hero-image-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
}

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

/* General Section Styling */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color */
}

.page-news__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #666666;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: #26A9E0; /* Brand primary color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #1a7fb2;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #EA7C07; /* Login color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #d86c06;
}

/* Featured Topics Section */
.page-news__featured-topics {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color for dark section */
  color: #ffffff;
}

.page-news__featured-topics .page-news__section-title {
  color: #ffffff;
}

.page-news__featured-topics .page-news__section-subtitle {
  color: #f0f0f0;
}

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

.page-news__topic-item {
  display: block;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__topic-item:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
  text-align: center;
}

.page-news__cta-section .page-news__section-title {
  color: #26A9E0;
}

.page-news__cta-section .page-news__section-subtitle {
  color: #666666;
  margin-bottom: 40px;
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color for dark section */
  color: #ffffff;
}

.page-news__faq-section .page-news__section-title {
  color: #ffffff;
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.6;
}

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

/* Media Queries for Responsiveness */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
  .page-news__hero-section {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding-top: var(--header-offset, 120px);
  }

  .page-news__hero-content {
    max-width: 100%;
    padding: 30px;
  }

  .page-news__hero-title {
    font-size: 2.5em;
  }

  .page-news__hero-description {
    font-size: 1.1em;
  }

  .page-news__hero-image-container {
    position: static;
    width: 100%;
    margin-top: 30px;
  }

  .page-news__hero-image {
    height: 400px;
  }

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

  .page-news__article-title {
    font-size: 1.3em;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    flex-direction: column;
    text-align: center;
  }

  .page-news__hero-content {
    padding: 20px;
    max-width: 100%;
  }

  .page-news__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-news__hero-image-container {
    width: 100%;
    margin-top: 20px;
  }

  .page-news__hero-image {
    height: 300px;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* 产品展示图区域 (Latest Articles) */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-news__article-image {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-news__container,
  .page-news__section,
  .page-news__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news 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;
  }

  .page-news__hero-buttons,
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  /* 其他内容模块 */
  .page-news__latest-articles,
  .page-news__featured-topics,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 50px 0;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }

  .page-news__section-subtitle {
    font-size: 0.9em;
    margin-bottom: 25px;
  }

  .page-news__topic-item {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-news__faq-answer {
    font-size: 0.95em;
    padding: 0 20px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px;
  }
}