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

/* General page styling */
.page-news {
  color: #FFF6D6; /* Text Main */
  background-color: var(--bg-color); /* Inherit from shared, assuming dark */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

/* HERO Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* Rely on body padding for header offset, this is just a decorative top padding */
  padding-top: 10px; 
  overflow: hidden; /* Ensure no image overflow */
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #FFD36B; /* Glow color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast on bright button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.page-news__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Articles Section */
.page-news__articles-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background color for the section */
}

.page-news__section-title {
  font-size: 2.5rem;
  color: #FFD36B; /* Glow color for section title */
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.page-news__article-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  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 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: #FFF6D6; /* Text Main */
}

.page-news__article-title {
  font-size: 1.5rem;
  color: #FFD36B; /* Glow color for article title */
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: #F2C14E; /* Main color for meta info */
  margin-bottom: 10px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #F2C14E; /* Main color for read more */
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FFD36B; /* Glow color on hover */
}

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

.page-news__view-all-button {
  margin-top: 0; /* Override default margin-top from .page-news__cta-button */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-news {
    font-size: 15px;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-news__hero-image {
    margin-bottom: 20px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust clamp for mobile */
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__articles-section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card {
    border-radius: 8px;
  }

  .page-news__article-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-news__article-content {
    padding: 20px;
  }

  .page-news__article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-news__article-excerpt {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .page-news__read-more {
    font-size: 0.95rem;
  }

  /* Image and container responsive rules for mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__articles-section,
  .page-news__articles-grid,
  .page-news__article-card,
  .page-news__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__view-all-button-container {
    padding: 0 15px; /* Add padding to align with other content */
  }
}