/* style/news.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Page Styling */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #121212 (dark), so use light text */
  background-color: transparent; /* Main content background will be handled by sections */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-news__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__section-description--white {
  color: #ffffff;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px; /* Adjusted to allow video to be background-like */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #017439; /* Fallback background for hero */
}

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

.page-news__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #FFFF00; /* Register/Login font color for highlight */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-news__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-news__btn-primary,
.page-news__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;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsiveness */
  max-width: 100%;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-news__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

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

.page-news__btn-primary--large,
.page-news__btn-secondary--large {
  padding: 18px 35px;
  font-size: 1.2em;
  min-width: 250px;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for news section */
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark 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-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__card-image {
  width: 100%;
  height: 225px; /* 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: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #017439; /* Brand primary color for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #FFFF00; /* Highlight on hover */
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #aaaaaa;
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-link {
  display: inline-block;
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__card-link:hover {
  color: #C30808;
}

/* Featured Articles Section */
.page-news__featured-articles-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color background */
  color: #ffffff;
}

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

.page-news__featured-card {
  background-color: rgba(0, 0, 0, 0.3); /* Darker transparent background for contrast */
  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-news__featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  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-news__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Download Section */
.page-news__cta-download-section {
  padding: 80px 0;
  background-color: #C30808; /* Register/Login button color as background */
  text-align: center;
  color: #ffffff;
}

.page-news__cta-download-section .page-news__hero-cta-buttons {
  margin-top: 40px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #121212; /* Match body background */
  color: #ffffff;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFFF00; /* Highlight question text */
  transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
}

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

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - visual */
}

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  color: inherit;
}

/* Image Responsive Styles (Global for page-news) */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no filter is used on images */
}

/* Video Responsive Styles */
.page-news video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }

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

  .page-news__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is correct */
  }

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

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

  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 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__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__promotions-section,
  .page-news__cta-download-section,
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__news-grid,
  .page-news__featured-grid,
  .page-news__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Mobile specific image and video rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-news__hero-video-wrapper {
    left: 0 !important; /* Ensure video wrapper is full width */
  }

  /* Content area image CSS size lower bound check */
  .page-news__news-card img,
  .page-news__featured-card img,
  .page-news__promotion-card img {
    min-width: 200px;
    min-
  }
}