/* style/news.css */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --background-color: #0D0E12;
  --card-background-color: #17191F;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Body background is dark, so text should be light */
  background-color: var(--background-color);
}

/* 🚨 HERO主图区域样式 */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, var(--card-background-color) 0%, var(--background-color) 100%);
  border-bottom: 2px solid var(--border-color);
}

.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: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.6);
}

.page-news__description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  background: linear-gradient(180deg, var(--glow-color) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-news__section {
  padding: 80px 20px;
  position: relative;
}

.page-news__section.page-news__dark-section {
  background-color: var(--card-background-color);
  color: var(--text-main-color);
}

.page-news__section.page-news__light-bg {
  background-color: #1a1c22; /* Slightly lighter dark for contrast */
  color: var(--text-main-color);
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure full width on desktop */
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.4);
}

.page-news__section-description {
  font-size: 1.05rem;
  color: var(--text-main-color);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

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

.page-news__news-card,
.page-news__update-item,
.page-news__trend-item,
.page-news__promo-card {
  background-color: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover,
.page-news__update-item:hover,
.page-news__trend-item:hover,
.page-news__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-news__news-card img,
.page-news__update-item img,
.page-news__trend-item img,
.page-news__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-news__card-content,
.page-news__item-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__card-title,
.page-news__item-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

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

.page-news__card-title a:hover,
.page-news__item-title a:hover {
  color: var(--primary-color);
}

.page-news__card-date,
.page-news__item-date {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-bottom: 15px;
}

.page-news__card-excerpt,
.page-news__item-excerpt {
  font-size: 1rem;
  color: var(--text-main-color);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--secondary-color);
}

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

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
  font-weight: 600;
  font-size: 1.1rem;
}
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: var(--card-background-color);
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: var(--card-background-color);
  border-radius: 0 0 8px 8px;
  color: var(--text-main-color);
  line-height: 1.6;
  font-size: 1rem;
}

/* 🚨 移动端响应式设计 */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-image {
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  .page-news__hero-image img {
    border-radius: 8px;
  }
  
  .page-news__main-title {
    font-size: 1.8rem;
    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__section {
    padding: 50px 15px;
  }

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

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

  .page-news__news-grid,
  .page-news__update-list,
  .page-news__trends-list,
  .page-news__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card img,
  .page-news__update-item img,
  .page-news__trend-item img,
  .page-news__promo-card img {
    
  }

  .page-news__card-content,
  .page-news__item-content {
    padding: 20px;
  }

  .page-news__card-title,
  .page-news__item-title {
    font-size: 1.1rem;
  }

  .page-news__card-date,
  .page-news__item-date {
    font-size: 0.85rem;
  }

  .page-news__card-excerpt,
  .page-news__item-excerpt {
    font-size: 0.95rem;
  }

  .page-news__view-all-button-container {
    margin-top: 30px;
  }

  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 1rem; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

  /* General image and container responsive styles */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-card,
  .page-news__update-item,
  .page-news__trend-item,
  .page-news__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Button group responsive */
  .page-news__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}