/* ====== News Center Page (pages/news/index.html) ====== */

/* Hero banner specific for news (darker overlay, breadcrumb, badge, larger height) */
.news-hero {
  position: relative;
  width: 100%;
  height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 120px;
  color: #fff;
  text-align: center;
  gap: 16px;
  overflow: hidden;
}
.news-hero::before {
  content:''; position:absolute; inset:0;
  background: url('../../assets/ss.media.yidingyi.com.cn/site_res/223/20240625094624_Gdy6FOvc.jpg') center/cover;
  z-index: 0;
}
.news-hero::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(12, 23, 41, 0.85) 0%, rgba(12, 23, 41, 0.78) 100%);
  z-index: 1;
}
.news-hero > * { position: relative; z-index: 2; }
.news-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.news-hero .breadcrumb .current { color: #fff; font-weight: 600; }
.news-hero .breadcrumb i { width: 14px; height: 14px; stroke: rgba(255,255,255,0.7); }
.news-hero .news-badge {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  background: rgba(204, 0, 0, 0.19);
  border: 1px solid rgba(204, 0, 0, 0.5);
  border-radius: 20px;
  color: #FF9FA6; font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
}
.news-hero h1 { font-size: 48px; font-weight: 800; color: #fff; }
.news-hero .hero-sub { color: rgba(255,255,255,0.87); font-size: 18px; }

/* Main section */
.news-main { padding: 72px 120px; background: #FAFAFB; }
.news-main-inner { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

/* Section header */
.section-header-block {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.section-header-block .kicker-pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  background: rgba(204, 0, 0, 0.08);
  border-radius: 20px;
  color: #CC0000; font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
}
.section-header-block h2 {
  color: #1A1A2E; font-size: 36px; font-weight: 700;
}
.section-header-block .sub {
  color: #666; font-size: 16px;
}

/* Filter tabs */
.filter-tabs {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px;
}
.filter-tab {
  padding: 10px 26px; border-radius: 100px;
  background: #fff; color: #555;
  border: 1.5px solid #DDD;
  font-size: 14px; cursor: pointer;
  transition: all .25s;
}
.filter-tab:hover { border-color: #CC0000; color: #CC0000; }
.filter-tab.active {
  background: #CC0000; color: #fff; border-color: #CC0000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.24);
}

/* Featured cards */
.featured-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.featured-card {
  background: #fff; border: 1px solid #E8E8E8; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.featured-card .img-wrap {
  position: relative; height: 280px;
  background-size: cover; background-position: center;
}
.featured-card .date-badge {
  position: absolute; top: 20px; left: 20px;
  padding: 10px 14px; border-radius: 8px;
  background: #CC0000; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 60px;
}
.featured-card .date-badge .day { font-size: 24px; font-weight: 800; line-height: 1; }
.featured-card .date-badge .ym { font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,0.87); }
.featured-card .body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.featured-card .chip-row { display: inline-flex; align-items: center; gap: 8px; }
.featured-card h3 {
  font-size: 20px; font-weight: 700; color: #1A1A2E;
  line-height: 1.4;
}
.featured-card p { color: #666; font-size: 14px; line-height: 1.6; }
.featured-card .read-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #CC0000; font-size: 13px; font-weight: 600;
  margin-top: 4px;
}
.featured-card .read-link i { width: 14px; height: 14px; transition: transform .2s; }
.featured-card:hover .read-link i { transform: translateX(3px); }
.featured-card .reco-note { color: #999; font-size: 12px; }

/* Category chips */
.chip { padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.chip-company { background: #E8F4FD; color: #1A6FA8; }
.chip-industry { background: #EDF7EE; color: #2A7A3B; }
.chip-tech { background: #FFF3E0; color: #B85C00; }
.chip-honor { background: #FEF6E4; color: #9A6C00; }
.chip-media { background: #F3EEFF; color: #6741B0; }

/* List */
.list-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px;
}
.list-head .left { display: flex; align-items: center; gap: 12px; }
.list-head .left .bar { width: 4px; height: 22px; border-radius: 2px; background: #CC0000; }
.list-head .left h3 { color: #1A1A2E; font-size: 20px; font-weight: 700; }
.list-head .left .count { color: #999; font-size: 13px; }
.list-head .right {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: #fff;
  border: 1px solid #E0E0E0; border-radius: 6px;
  color: #666; font-size: 13px; cursor: pointer;
}
.list-head .right i { width: 14px; height: 14px; }

.news-list-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.news-card {
  background: #fff; border: 1px solid #E8E8E8; border-radius: 10px;
  padding: 24px;
  display: flex; align-items: flex-start; gap: 20px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.news-card:hover {
  border-color: #CC0000;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.news-card .date-box {
  flex: 0 0 80px;
  background: #FAF6F6; border: 1px solid #F0E0E0; border-radius: 8px;
  padding: 12px 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.news-card .date-box .day { color: #CC0000; font-size: 30px; font-weight: 800; line-height: 1; }
.news-card .date-box .ym { color: #999; font-size: 11px; }
.news-card .body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.news-card .title {
  color: #1A1A2E; font-size: 15px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card:hover .title { color: #CC0000; }
.news-card { text-decoration: none; }
.news-card .title-link-hint {
  display: inline-flex; align-items: center; gap: 4px;
  color: #CC0000; font-size: 12px; font-weight: 700; align-self: flex-start;
  letter-spacing: 0.3px; opacity: 0.85;
}
.news-card .title-link-hint i { width: 14px; height: 14px; transition: transform .2s; }
.news-card:hover .title-link-hint i { transform: translate(2px,-2px); }
.news-card .title-link-hint.nodetail {
  color: #9CA3AF; background: #F4F6FA;
  padding: 3px 9px; border-radius: 999px;
  font-weight: 600;
}

/* Cards without a detail URL: muted, non-clickable */
.news-card.no-detail {
  cursor: default;
}
.news-card.no-detail:hover {
  border-color: #E8E8E8;
  transform: none;
  box-shadow: none;
}
.news-card.no-detail:hover .title { color: #1A1A2E; }
.news-card.no-detail .date-box { background: #F4F6FA; border-color: #E8E8E8; }
.news-card.no-detail .date-box .day { color: #6B7280; }

.featured-card.no-detail .read-link {
  color: #9CA3AF; cursor: default;
}
.featured-card.no-detail .read-link i { color: #9CA3AF; }
.featured-card.no-detail:hover .read-link i { transform: none; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  padding: 20px 0;
}
.page-btn {
  width: 40px; height: 40px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #555; border: 1px solid #E0E0E0;
  font-size: 14px; cursor: pointer; transition: all .2s;
}
.page-btn:hover { border-color: #CC0000; color: #CC0000; }
.page-btn.active {
  background: #CC0000; color: #fff; border-color: #CC0000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.2);
}
.page-btn.disabled { background: #F5F5F5; color: #AAA; cursor: not-allowed; }
.page-btn.disabled:hover { border-color: #E0E0E0; color: #AAA; }
.page-btn i { width: 16px; height: 16px; }

/* Empty state */
.news-empty {
  text-align: center; padding: 80px 20px; color: #999;
  background: #fff; border-radius: 10px; border: 1px dashed #E0E0E0;
}
.news-empty i { width: 48px; height: 48px; stroke: #CCC; margin: 0 auto 12px; display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .news-main { padding: 48px 24px; }
  .news-hero { padding: 0 24px; }
  .news-hero h1 { font-size: 32px; }
  .news-hero .hero-sub { font-size: 14px; }
  .featured-grid, .news-list-grid { grid-template-columns: 1fr; }
  .featured-card .img-wrap { height: 220px; }
  .section-header-block h2 { font-size: 28px; }
}
@media (max-width: 640px) {
  .news-hero { height: 240px; }
  .news-card { padding: 18px; gap: 14px; }
  .news-card .date-box { flex-basis: 64px; padding: 10px 0; }
  .news-card .date-box .day { font-size: 24px; }
  .filter-tab { padding: 8px 18px; font-size: 13px; }
  .list-head { flex-direction: column; gap: 12px; align-items: flex-start; }
}
