/* style/news.css */

:root {
  --page-news-primary-color: #113B7A;
  --page-news-secondary-color: #1D5FD1;
  --page-news-text-main: #F3F8FF;
  --page-news-text-secondary: #AFC4E8;
  --page-news-card-bg: #10233F;
  --page-news-border-color: #244D84;
  --page-news-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --page-news-deep-navy: #08162B;
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--page-news-text-main); /* Light text on dark body background */
  background-color: var(--page-news-deep-navy);
  line-height: 1.6;
}

.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Fixed small top padding */
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__hero-title {
  color: var(--page-news-text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-news__hero-description {
  color: var(--page-news-text-secondary);
  font-size: 1.15em;
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  background: var(--page-news-button-gradient);
  color: var(--page-news-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__latest-section,
.page-news__importance-section,
.page-news__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  color: var(--page-news-text-main);
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.page-news__section-description {
  color: var(--page-news-text-secondary);
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__news-card {
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-news-border-color);
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__card-date {
  color: var(--page-news-text-secondary);
  font-size: 0.9em;
  margin-bottom: 10px;
  display: block;
}

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: var(--page-news-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--page-news-secondary-color);
}

.page-news__card-excerpt {
  color: var(--page-news-text-secondary);
  font-size: 1em;
  margin-bottom: 20px;
}

.page-news__card-link {
  display: inline-block;
  color: var(--page-news-secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: var(--page-news-text-main);
}

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

.page-news__view-all-button {
  display: inline-block;
  background: var(--page-news-button-gradient);
  color: var(--page-news-text-main);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.page-news__importance-section p {
  color: var(--page-news-text-secondary);
  margin-bottom: 20px;
  font-size: 1.05em;
  text-align: justify;
}

.page-news__importance-section .page-news__sub-title {
  color: var(--page-news-text-main);
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  text-align: center;
}

.page-news__importance-section .page-news__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__cta-section.page-news__dark-section {
  background-color: var(--page-news-primary-color);
  color: var(--page-news-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__cta-content {
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__cta-title {
  color: var(--page-news-text-main);
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-news__cta-description {
  color: var(--page-news-text-secondary);
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-news__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__hero-image {
    margin-top: 30px;
  }

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

  /* 按钮与按钮容器 */
  .page-news__cta-button,
  .page-news__view-all-button,
  .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;
    margin-bottom: 10px; /* Add spacing between stacked 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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex properties are applied for wrapping */
    flex-direction: column; /* Stack buttons vertically */
  }

  /* 其他内容模块 */
  .page-news__latest-section,
  .page-news__importance-section,
  .page-news__cta-section {
    padding: 40px 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__card-excerpt {
    font-size: 0.9em;
  }

  .page-news__importance-section .page-news__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .page-news__importance-section p {
    font-size: 1em;
  }

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

  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
}