/* ================= 实时动态 news.html 专用样式 ================= */

/*---------- 首屏轮播文字增强 ----------*/
#hero .swiper-item::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 62%);
  pointer-events: none;
}
#hero .swiper-text { z-index: 2; }
#hero .swiper-text h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
#hero .swiper-text p { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.3); }

/*---------- 抽屉菜单第8个导航项 ----------*/
.drawer.open .nav-list a:nth-child(8) {
  transition-delay: 0.66s;
  opacity: 1;
  transform: translateX(0);
  padding-left: 20px;
}

/*---------- 通用分区 ----------*/
.page-container {
  width: 85%;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width:767px) { .page-container { width: 90%; } }
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: 32px; margin-bottom: 12px; }
@media (min-width:768px) { .section-head h2 { font-size: 40px; } }
.section-head p { color: var(--muted-foreground); }

/*---------- 分类筛选 ----------*/
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted-foreground);
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}
.filter-btn:hover { border-color: #b9b9b9; color: var(--foreground); }
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/*---------- 新闻列表 ----------*/
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width:768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform var(--transition-long), box-shadow var(--transition-long);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.news-card.filtered-out { display: none; }
.news-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 210px;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-cat {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 999px;
}
.news-body {
  padding: 24px;
}
.news-date {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-date::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #999;
}
.news-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--foreground);
  text-decoration: none;
  display: block;
}
.news-title:hover { color: #111; }
.news-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--transition-base);
}
.news-more:hover { color: var(--foreground); }

/*---------- 分类筛选空内容提示 ----------*/
.news-empty {
  text-align: center;
  color: var(--muted-foreground);
  padding: 56px 0 24px;
  font-size: 15px;
  letter-spacing: 1px;
}

/*---------- 分页 ----------*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted-foreground);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-base);
  font-family: inherit;
}
.page-btn:hover { border-color: #b9b9b9; color: var(--foreground); }
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-btn.disabled { opacity: .4; pointer-events: none; }

/*---------- 结尾横幅 ----------*/
.closing {
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 92px 24px;
}
.closing h2 {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 3px;
  font-weight: 600;
}
.closing p {
  margin-top: 16px;
  color: rgba(255,255,255,.6);
  font-size: 15px;
  letter-spacing: 2px;
}
.closing .closing-phone {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 44px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  transition: background var(--transition-base), color var(--transition-base);
}
.closing .closing-phone:hover { background: #fff; color: #000; }

/*---------- 滚动显现 ----------*/
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
