/* style/news.css */
/* 页面内容区域样式 */
.page-news {
  background-color: #0a0a0a; /* Body background is dark */
  color: #f0f0f0; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* 🚨 固定导航栏间距（桌面端） */
.page-news__intro-section {
  padding-top: 120px; /* Adjust based on header height */
  padding-bottom: 40px;
  background-color: #1a1a1a; /* Slightly lighter dark background for this section */
  text-align: center;
  color: #ffffff;
}

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

.page-news__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--primary-color); /* Deep blue or golden for emphasis */
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__subtitle {
  font-size: 20px;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color); /* Golden color for section titles */
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Latest Articles Grid */
.page-news__latest-articles {
  background-color: #0a0a0a;
}

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

.page-news__article-card {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards 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;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-news__article-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color); /* Golden color for article titles */
}

.page-news__article-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-link:hover {
  color: #ffd700; /* Lighter golden on hover */
  text-decoration: underline;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color); /* Deep blue button */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start; /* Align button to start */
}

.page-news__read-more-btn:hover {
  background: var(--secondary-color); /* Golden on hover */
  transform: translateY(-2px);
}

/* CTA Banner within Latest Articles */
.page-news__cta-banner {
  background: linear-gradient(135deg, var(--primary-color), #0A2463); /* Deep blue gradient */
  padding: 50px 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  margin-top: 50px;
}

.page-news__cta-banner .page-news__cta-title {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-news__cta-banner .page-news__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-news__cta-banner .page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color); /* Golden button */
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-news__cta-banner .page-news__cta-button:hover {
  background: #ffd700; /* Lighter golden on hover */
  color: #0A2463;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Deep Dive Section */
.page-news__deep-dive {
  background-color: #1a1a1a; /* Dark background */
  color: #f0f0f0; /* Light text */
}

.page-news__deep-dive .page-news__container {
  background: rgba(255, 255, 255, 0.05); /* Light background for the card within dark section */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__deep-dive .page-news__section-title {
  color: var(--secondary-color); /* Golden title */
  margin-bottom: 40px;
}

.page-news__text-block h3 {
  font-size: 26px;
  font-weight: bold;
  color: var(--secondary-color); /* Golden for subheadings */
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-news__text-block p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #cccccc;
}

.page-news__text-block strong {
  color: #ffffff; /* White for strong text */
}

.page-news__text-block ul {
  list-style-type: disc;
  margin-left: 30px;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-news__text-block li {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-news__deep-dive .page-news__cta-section {
  background: linear-gradient(135deg, #FFD700, #FFA500); /* Golden gradient for CTA */
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__deep-dive .page-news__cta-section .page-news__cta-title {
  color: var(--primary-color); /* Deep blue text on golden background */
  font-size: 28px;
  margin-bottom: 10px;
}

.page-news__deep-dive .page-news__cta-section .page-news__cta-description {
  color: #333333; /* Dark text on golden background */
  font-size: 17px;
  margin-bottom: 25px;
}

.page-news__deep-dive .page-news__cta-section .page-news__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.page-news__deep-dive .page-news__cta-button--primary {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.page-news__deep-dive .page-news__cta-button--primary:hover {
  background: #061a47; /* Darker primary */
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.page-news__deep-dive .page-news__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.page-news__deep-dive .page-news__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #0a0a0a;
  color: #f0f0f0;
}

.page-news__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.05); /* Light background for FAQ items */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.02); /* Slightly darker than question background */
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for question */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: rgba(255, 255, 255, 0.12); /* Lighter on hover */
}

.page-news__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for questions */
  pointer-events: none; /* Allow click on parent div */
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Golden for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Allow click on parent div */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate to form an 'X' or just a dash */
}

.page-news__faq-answer p {
  color: #cccccc; /* Lighter text for answer */
  font-size: 16px;
  line-height: 1.7;
}

.page-news__faq-answer a {
  color: var(--secondary-color); /* Golden links in answers */
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #ffd700;
}

/* Variables for colors */
:root {
  --primary-color: #0A2463; /* Deep Blue */
  --secondary-color: #FFD700; /* Golden */
  --dark-background: #0a0a0a;
  --light-text: #ffffff;
  --dark-text: #333333;
}

/* 🚨 移动端响应式设计 */
@media (max-width: 768px) {
  /* 🚨 移动端必须重新设置padding-top，覆盖桌面端样式 */
  .page-news__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on header height */
    padding-bottom: 30px;
  }

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

  .page-news__subtitle {
    font-size: 16px;
    padding: 0 15px;
  }

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

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 40px;
    padding: 0 15px;
  }

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

  .page-news__article-card {
    height: auto;
  }

  .page-news__article-image {
    height: 180px;
  }

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

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

  .page-news__article-excerpt {
    font-size: 15px;
  }

  .page-news__read-more-btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-news__cta-banner {
    padding: 30px 15px;
    margin: 0 15px 30px 15px; /* Add horizontal margin for mobile */
  }

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

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

  .page-news__cta-banner .page-news__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-news__deep-dive .page-news__container {
    padding: 30px 20px;
    margin: 0 15px; /* Add horizontal margin for mobile */
  }

  .page-news__deep-dive .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-news__text-block h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 12px;
  }

  .page-news__text-block p,
  .page-news__text-block li {
    font-size: 15px;
  }

  .page-news__text-block ul {
    margin-left: 20px;
  }

  .page-news__deep-dive .page-news__cta-section {
    padding: 30px 20px;
    margin-top: 30px;
    display: flex; /* Use flex for buttons */
    flex-direction: column; /* Stack buttons */
    gap: 15px; /* Space between buttons */
  }

  .page-news__deep-dive .page-news__cta-section .page-news__cta-title {
    font-size: 24px;
  }

  .page-news__deep-dive .page-news__cta-section .page-news__cta-description {
    font-size: 15px;
  }

  .page-news__deep-dive .page-news__cta-button {
    width: 100%; /* Full width buttons */
    margin: 0; /* Remove horizontal margin */
  }

  .page-news__faq-container {
    padding: 0 15px;
  }

  .page-news__faq-item {
    margin-bottom: 10px;
  }

  .page-news__faq-question {
    padding: 15px 20px;
  }

  .page-news__faq-question h3 {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }

  .page-news__faq-answer p {
    font-size: 15px;
  }
  
  /* 🚨 移动端图片强制适配 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by specific sections/containers */
  }
}

/* Color Contrast Fixes */
.page-news__dark-section {
  background: var(--primary-color);
  color: var(--light-text);
}

.page-news__light-bg {
  background: rgba(255, 255, 255, 0.05); /* Lighter background for text blocks on dark overall theme */
  color: #f0f0f0; /* Light text */
}

.page-news__light-bg h2, .page-news__light-bg h3 {
  color: var(--secondary-color);
}

.page-news__light-bg p, .page-news__light-bg li {
  color: #cccccc;
}

.page-news__light-bg strong {
  color: #ffffff;
}

.page-news__light-cta {
  background: linear-gradient(135deg, var(--secondary-color), #FFC107); /* Golden gradient */
  color: var(--dark-text); /* Dark text on golden background */
}

.page-news__light-cta .page-news__cta-title {
  color: var(--primary-color);
}

.page-news__light-cta .page-news__cta-description {
  color: var(--dark-text);
}

.page-news__light-cta .page-news__cta-button--primary {
  background: var(--primary-color);
  color: var(--light-text);
}