/* style/news.css */

/* Custom Colors */
:root {
  --page-news-bg-color: #08160F;
  --page-news-card-bg: #11271B;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-news-border-color: #2E7A4E;
  --page-news-glow-color: #57E38D;
  --page-news-gold-color: #F2C14E;
  --page-news-divider-color: #1E3A2A;
  --page-news-deep-green-color: #0A4B2C;
}

.page-news {
  background-color: var(--page-news-bg-color);
  color: var(--page-news-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  color: var(--page-news-text-main);
  padding: 40px 20px;
}

.page-news__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-news__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--page-news-text-secondary);
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: var(--page-news-btn-gradient);
  color: var(--page-news-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--page-news-glow-color);
  border: 2px solid var(--page-news-glow-color);
  margin-left: 20px;
}

.page-news__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: var(--page-news-text-main);
  transform: translateY(-2px);
}

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-news-gold-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: var(--page-news-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-news__news-card {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-news__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image {
  transform: scale(1.05);
}

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

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

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

.page-news__card-title a:hover {
  color: var(--page-news-glow-color);
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1rem;
  color: var(--page-news-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: var(--page-news-glow-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more:hover {
  text-decoration: underline;
  color: var(--page-news-gold-color);
}

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

.page-news__promo-section {
  background-color: var(--page-news-deep-green-color);
  padding: 80px 0;
  text-align: center;
}

.page-news__promo-section .page-news__section-title {
  color: var(--page-news-text-main);
}

.page-news__promo-section .page-news__section-description {
  color: var(--page-news-text-secondary);
}

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

.page-news__archive-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-news__category-card {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--page-news-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: var(--page-news-deep-green-color);
}

.page-news__category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(87, 227, 141, 0.5));
}

.page-news__category-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.page-news__faq-section {
  background-color: var(--page-news-deep-green-color);
}

.page-news__faq-section .page-news__section-title {
  color: var(--page-news-text-main);
}

.page-news__faq-section .page-news__section-description {
  color: var(--page-news-text-secondary);
}

.page-news__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  background-color: var(--page-news-card-bg);
  border: 1px solid var(--page-news-border-color);
  border-radius: 8px;
  overflow: hidden;
  color: var(--page-news-text-main);
}

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

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

.page-news__faq-question:hover {
  background-color: rgba(var(--page-news-glow-color), 0.1);
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-news-glow-color);
  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 25px;
  font-size: 1rem;
  color: var(--page-news-text-secondary);
  line-height: 1.7;
}

/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .page-news__section-title {
    font-size: 2rem;
  }

  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

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

  .page-news__hero-section {
    padding-bottom: 40px;
  }

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

  .page-news__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    margin: 0;
  }

  .page-news__btn-secondary {
    margin-top: 15px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__card-title {
    font-size: 1.25rem;
  }

  .page-news__card-image-wrapper {
    height: 180px;
  }

  .page-news__category-card {
    padding: 20px 15px;
  }

  .page-news__category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .page-news__category-name {
    font-size: 1rem;
  }

  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Force responsive images and containers */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-card,
  .page-news__category-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-news__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__video-section { /* Added for safety, though no video on this page */
    padding-top: 10px !important;
  }

  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure images in content area are not too small */
.page-news__card-image, 
.page-news__category-icon {
    min-width: 80px; /* Smallest acceptable for icon-like, but overall images must be >= 200px */
    min-height: 80px;
}

/* All content images must be >= 200px. Overriding for specific elements if needed. */
.page-news__news-card img {
    min-width: 200px;
    min-height: 200px;
}

/* The category icons are small, but they are 'icons' by nature, handled by the specific override for 'small icons' */
/* If category icons are meant to be 'content images', they should be larger. 
   Given the prompt says '禁止所有小图标' and '最小尺寸必须至少为 200x200 像素' for *all* images, 
   I must enforce this. Re-evaluating category icons. They should be content images too. */

/* Correcting category icons to meet 200x200 min size */
.page-news__category-icon {
  width: 200px; 
  height: 200px; 
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(87, 227, 141, 0.5));
}

@media (max-width: 768px) {
  .page-news__category-icon {
    width: 150px !important; /* Allow slightly smaller on mobile to fit, but still above 200px if possible */
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
  }
}

/* Re-evaluating the 200x200 min size. The prompt says '任何宽度或高度小于200像素的图片' are forbidden. 
   This means category icons cannot be 100x100. I have updated the CSS to reflect this, making them 200x200. 
   For mobile, I will allow 150x150, still above the 100x100 forbidden range, but this might conflict with 'minimum 200x200'. 
   Given '任何宽度或高度小于200像素的图片' is forbidden, I must make them 200x200 even on mobile. */

@media (max-width: 768px) {
  .page-news__category-icon {
    width: 200px !important; 
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-news__category-card {
    padding: 20px 0;
  }
}