/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #FFF3E6); /* Default text color for dark background */
  background-color: var(--background-color, #0D0E12);
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-news__hero-content {
  position: relative; /* Changed from absolute to relative to respect '上图下文' */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-news__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF3E6;
  margin-bottom: 15px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-news__description {
  font-size: 1.1rem;
  color: rgba(255, 243, 230, 0.8);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 132, 26, 0.4);
}

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

.page-news__cta-button--secondary {
  background: #17191F;
  border: 2px solid #A84F0C;
  color: #FFF3E6;
  margin-left: 15px;
  box-shadow: none;
}

.page-news__cta-button--secondary:hover {
  background: #2a2d36;
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(168, 79, 12, 0.5);
}

.page-news__content-area, .page-news__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-news__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFA53A, #D96800);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-news__section-title--light {
  color: #FFF3E6;
}

.page-news__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 243, 230, 0.7);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-news__text-block--light {
  color: #FFF3E6;
}

.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-color: var(--card-bg-color, #17191F);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color, #FFB04D);
}

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

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

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

.page-news__article-title a {
  color: #FFB04D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFA53A;
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: rgba(255, 243, 230, 0.6);
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: rgba(255, 243, 230, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-news__read-more {
  color: #FF8C1A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
}

.page-news__read-more::after {
  content: '»';
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.page-news__read-more:hover {
  color: #FFA53A;
}

.page-news__read-more:hover::after {
  margin-left: 10px;
}

.page-news__read-more--light {
  color: #FFF3E6;
}

.page-news__read-more--light:hover {
  color: #FFB04D;
}

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

.page-news__dark-section {
  background-color: var(--deep-orange-color, #D96800);
  color: #FFF3E6;
  padding: 80px 20px;
}

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

.page-news__analysis-item {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 243, 230, 0.2);
}

.page-news__analysis-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFB04D;
  margin-bottom: 15px;
}

.page-news__analysis-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 243, 230, 0.9);
  margin-bottom: 20px;
}

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

.page-news__guide-item {
  background-color: var(--card-bg-color, #17191F);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  text-align: center;
  padding-bottom: 25px;
}

.page-news__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__guide-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  padding: 0 20px;
}

.page-news__guide-title a {
  color: #FFB04D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
  color: #FFA53A;
}

.page-news__guide-text {
  font-size: 1rem;
  color: rgba(255, 243, 230, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-news__faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: var(--card-bg-color, #17191F);
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-news__faq-item[open] {
  background-color: rgba(255, 140, 26, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFB04D;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-question:hover {
  color: #FFA53A;
}

.page-news__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #FF8C1A;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 243, 230, 0.8);
}

.page-news__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--deep-orange-color, #D96800);
}

.page-news__cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 243, 230, 0.9);
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-news__description {
    font-size: 1rem;
  }
  .page-news__section-title {
    font-size: 2rem;
  }
  .page-news__article-title {
    font-size: 1.3rem;
  }
  .page-news__analysis-title {
    font-size: 1.4rem;
  }
  .page-news__guide-title {
    font-size: 1.3rem;
  }
  .page-news__faq-question {
    font-size: 1.1rem;
  }
  .page-news__cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-content {
    margin-top: 20px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

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

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin-left for secondary button */
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__content-area, .page-news__section, .page-news__faq-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-news__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-news__articles-grid, .page-news__analysis-grid, .page-news__guides-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-card, .page-news__analysis-item, .page-news__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__article-image, .page-news__guide-image, .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__cta-section {
    padding: 50px 15px;
  }

  .page-news__cta-title {
    font-size: 1.8rem;
  }

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

  /* Ensure content area images maintain min-size or larger, but adapt */
  .page-news__article-image, .page-news__guide-image {
    min-width: 200px;
    min-height: 150px;
  }
  .page-news__article-image[width="400"][height="225"], .page-news__guide-image[width="300"][height="200"] {
      width: 100%;
      height: auto;
      max-width: 100%;
  }
}