/* ==========================================================================
   News Page Styles (新闻列表页面专属样式)
   Header / Footer / 通用布局样式继承自 common.css
   配色沿用全站金色系：深金 #dca32c / #b8860b，亮金 #f5cb66
   ========================================================================== */

:root {
  --news-gold: #d4952c;
  --news-gold-deep: #b8860b;
  --news-gold-bright: #f5cb66;
  --news-ink: #221d13;
  --news-gray: #6e6759;
  --news-cream: #faf6ec;
  --news-line: #e9dfc8;
}

.news-page main {
  background: #ffffff;
  color: var(--news-ink);
}

/* -------------------------------------------------------------
   Shared: Reveal Animation & Capsule Button (与全站一致)
------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1), transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.btn-primary-capsule {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 32px;
  border: 1.5px solid #dca32c;
  border-radius: 22px;
  background: #ffffff;
  color: #dca32c;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.45s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.btn-primary-capsule::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #dca32c, #f5cb66);
  transform: translateX(-101%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.btn-primary-capsule:hover::before {
  transform: translateX(0);
}

.btn-primary-capsule:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 163, 44, 0.35);
}

.btn-primary-capsule span,
.btn-primary-capsule i {
  position: relative;
  z-index: 2;
}

/* 导航右侧 CTA 按钮 (与详情页 header 保持一致) */
.nav-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--news-gold), var(--news-gold-deep));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(212, 149, 44, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 149, 44, 0.45);
}

/* -------------------------------------------------------------
   1. News Hero Banner (厂区实景背景)
------------------------------------------------------------- */
.news-hero {
  position: relative;
  min-height: clamp(300px, 34vw, 480px);
  display: flex;
  align-items: center;
  background: url("../images/buer_building.jpg") center center / cover no-repeat, #f7f0dd;
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 246, 236, 0.92) 0%, rgba(250, 246, 236, 0.55) 42%, rgba(250, 246, 236, 0) 78%);
  pointer-events: none;
}

.news-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.news-hero__title {
  margin: 0 0 14px;
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--news-gold-deep);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.65);
}

.news-hero__sub {
  margin: 0;
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--news-ink);
}

/* -------------------------------------------------------------
   2. 新闻列表 (纵向卡片 + 细分隔线)
------------------------------------------------------------- */
.news-main {
  padding: clamp(44px, 5vw, 72px) 0 clamp(56px, 6vw, 88px);
}

.news-main__shell {
  /* max-width: 1080px; */
}

.news-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(22px, 2.6vw, 36px);
  padding: clamp(24px, 2.8vw, 36px) 0;
  border-bottom: 1px solid var(--news-line);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item__media {
  display: block;
  aspect-ratio: 16 / 10.5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--news-cream);
}

.news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-item:hover .news-item__media img {
  transform: scale(1.06);
}

.news-item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.news-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--news-gray);
}

.news-item__meta i {
  color: var(--news-gold);
}

.news-item__title {
  margin: 10px 0 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.4;
}

.news-item__title a {
  color: var(--news-ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item:hover .news-item__title a {
  color: var(--news-gold-deep);
}

.news-item__excerpt {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--news-gray);
}

.news-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--news-gold);
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
}

.news-item__link i {
  font-size: 12px;
}

.news-item__link:hover {
  color: var(--news-gold-deep);
  gap: 12px;
}

/* -------------------------------------------------------------
   3. 分页
------------------------------------------------------------- */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(40px, 4.4vw, 56px);
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--news-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-btn i {
  font-size: 12px;
}

.page-btn:hover {
  color: var(--news-gold-deep);
  border-color: var(--news-gold);
  transform: translateY(-2px);
}

.page-btn.is-active {
  background: linear-gradient(135deg, var(--news-gold), var(--news-gold-deep));
  border-color: var(--news-gold);
  color: #ffffff;
}

.page-ellipsis {
  color: var(--news-gray);
  letter-spacing: 2px;
}

/* -------------------------------------------------------------
   Responsive (响应式适配)
------------------------------------------------------------- */
@media (max-width: 900px) {
  .news-item {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
  }

  .page-btn {
    min-width: 38px;
    height: 38px;
  }
}

@media (max-width: 1200px) {
  .nav-cta-btn {
    display: none;
  }
}
