/* Base Styles & Typography */
.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #1F2D3D);
  background-color: var(--background-color, #F4F7FB);
  line-height: 1.6;
}

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

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: 18px;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

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

.page-news__description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

/* CTA Button General */
.page-news__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
}

.page-news__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-news__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
}

/* Latest Articles Section */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

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

.page-news__article-excerpt {
  font-size: 16px;
  color: var(--text-main, #1F2D3D);
  line-height: 1.6;
}

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

/* About News Section */
.page-news__dark-section {
  background: #2F6BFF;
  color: #ffffff;
}

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__article-body p,
.page-news__dark-section .page-news__article-body figcaption {
  color: #ffffff;
}

.page-news__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
}

.page-news__article-body p {
  margin-bottom: 20px;
}

.page-news__article-figure {
  margin: 40px 0;
  text-align: center;
}

.page-news__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.page-news__article-figure figcaption {
  margin-top: 15px;
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #D6E2FF);
  overflow: hidden;
  background: var(--card-bg, #FFFFFF);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #f5f5f5;
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #1F2D3D);
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main, #1F2D3D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

details.page-news__faq-item .page-news__faq-answer p {
  color: var(--text-main, #1F2D3D);
  font-size: 16px;
}

/* CTA Banner Section */
.page-news__cta-banner {
  background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  text-align: center;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.3);
  padding: 60px 30px;
}

.page-news__cta-banner .page-news__cta-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding: 30px 15px;
  }

  .page-news__main-title {
    font-size: clamp(30px, 4vw, 48px);
  }

  .page-news__description {
    font-size: clamp(15px, 1.8vw, 18px);
  }

  .page-news__section-title {
    font-size: 32px;
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__cta-banner .page-news__cta-title {
    font-size: 32px;
  }

  .page-news__cta-banner .page-news__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    min-height: 350px;
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-news__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: auto !important;
  }
  .page-news__hero-content {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-news__description {
    font-size: clamp(14px, 4vw, 16px);
  }
  
  /* General Section Padding & Container */
  .page-news__section-padding {
    padding: 40px 0;
  }
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Decorative Title + Long SEO text */
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__article-body {
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-news__article-figure {
    margin: 30px 0;
  }
  .page-news__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Latest Articles Grid */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-news__article-image-wrapper {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 15px;
  }

  /* Generic Image Responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Buttons & Button Containers */
  .page-news__cta-button, 
  .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;
    font-size: 16px;
  }
  .page-news__cta-buttons-wrapper,
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

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

  /* CTA Banner */
  .page-news__cta-banner {
    margin: 40px 15px;
    padding: 40px 20px;
  }
  .page-news__cta-banner .page-news__cta-title {
    font-size: 28px;
  }
  .page-news__cta-banner .page-news__cta-description {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 24px;
  }
  .page-news__hero-content {
    padding: 15px 10px;
  }
  .page-news__main-title {
    font-size: 28px;
  }
  .page-news__description {
    font-size: 14px;
  }
  .page-news__cta-banner .page-news__cta-title {
    font-size: 24px;
  }
  .page-news__cta-banner .page-news__cta-description {
    font-size: 15px;
  }
}