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

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  overflow: hidden;
  background-color: #1a1a2e; /* Dark background from shared.css body */
  color: #ffffff;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Subtle background image */
}

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

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-news__btn-primary:hover {
  background-color: #1e87c0; /* Slightly darker on hover */
}

/* Section Titles and Intro Text */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-news__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Light Background Section */
.page-news__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-news__light-bg .page-news__section-title {
  color: #26A9E0;
}

.page-news__light-bg .page-news__intro-text {
  color: #555555;
}

/* Dark Background Section */
.page-news__dark-bg {
  background-color: #1a1a2e; /* Using body background color */
  color: #ffffff;
  padding: 60px 0;
}

.page-news__dark-bg .page-news__section-title {
  color: #26A9E0;
}

.page-news__dark-bg .page-news__intro-text {
  color: #f0f0f0;
}

/* Article Grid */
.page-news__article-grid,
.page-news__update-grid,
.page-news__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__article-card,
.page-news__update-item,
.page-news__guide-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible 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;
  color: #ffffff; /* Default for cards on dark bg */
}

/* Card on light background */
.page-news__light-bg .page-news__article-card,
.page-news__light-bg .page-news__update-item,
.page-news__light-bg .page-news__guide-card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__article-card:hover,
.page-news__update-item:hover,
.page-news__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news__article-content,
.page-news__guide-content {
  padding: 25px;
}

.page-news__article-title,
.page-news__update-title,
.page-news__guide-title {
  font-size: 1.4em;
  margin-bottom: 15px;
}

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

.page-news__article-title a:hover,
.page-news__update-title a:hover,
.page-news__guide-title a:hover {
  color: #1e87c0;
  text-decoration: underline;
}