/* 文件描述：品牌动态列表卡片样式（三列资讯卡 / 活动横卡 / 视频卡 + 分页） */

/* ── 资讯三列卡 ── */
.nws-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.nws-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.05);
  color: var(--on-surface, #181c21);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.nws-card--cover {
  padding-top: 0;
}

.nws-card-cover {
  margin: 0 -24px 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100, #f1f5f9);
}

.nws-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nws-card:hover .nws-card-cover img {
  transform: scale(1.04);
}

.nws-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 83, 145, 0.14);
  border-color: rgba(17, 83, 145, 0.28);
}

.nws-card:hover .nws-card-title {
  color: var(--primary);
}

.nws-card:hover .nws-more {
  gap: 9px;
}

.nws-card:hover .nws-more::after {
  transform: translateX(4px);
}

.nws-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.nws-chip {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 10px;
  border-radius: 10px;
  background: var(--blue-bg);
  color: var(--primary);
}

.nws-chip--product {
  background: rgba(0, 137, 123, 0.09);
  color: #00796b;
}

.nws-chip--blog {
  background: rgba(103, 58, 183, 0.08);
  color: #5e35b1;
}

.nws-chip--tag {
  background: rgba(103, 58, 183, 0.06);
  color: #6a5acd;
  font-weight: 500;
}

.nws-sub-tag {
  font-size: 12px;
  color: var(--slate-400);
  position: relative;
  padding-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.nws-sub-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--slate-400);
  opacity: 0.5;
}

.nws-card-date {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--slate-400);
}

.nws-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--slate-200);
}

.nws-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--on-surface, #181c21);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
}

.nws-card-sum {
  margin: 0;
  font-size: 13.5px;
  color: var(--on-surface-variant, #414752);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nws-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
  margin-left: auto;
}

.nws-more::after {
  content: '→';
  display: inline-block;
  transition: transform 0.25s ease;
}

/* ── 线下活动横卡 ── */
.nws-e-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nws-e-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 26px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nws-e-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17, 83, 145, 0.14);
  border-color: rgba(17, 83, 145, 0.28);
}

.nws-e-card:hover .nws-e-title {
  color: var(--primary);
}

.nws-e-date {
  text-align: center;
  border-right: 1px solid var(--slate-200);
  padding-right: 26px;
}

.nws-e-date-year {
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.nws-e-date-day {
  font-size: 12.5px;
  color: var(--slate-400);
  letter-spacing: 0.06em;
}

.nws-e-title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nws-e-meta {
  font-size: 13px;
  color: var(--slate-400);
  line-height: 1.5;
}

.nws-e-cta {
  flex-shrink: 0;
}

.nws-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 12px;
}

.nws-pill--open {
  background: rgba(46, 164, 79, 0.1);
  color: #1a7f37;
  border: 1px solid rgba(46, 164, 79, 0.3);
}

.nws-pill--done {
  background: var(--slate-50);
  color: var(--slate-400);
  border: 1px solid var(--slate-200);
}

/* ── 直播回放视频卡 ── */
.nws-v-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.nws-v-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nws-v-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 83, 145, 0.14);
}

.nws-v-card:hover .nws-v-play {
  background: var(--primary);
  transform: scale(1.08);
}

.nws-v-card:hover .nws-v-title {
  color: var(--primary);
}

.nws-v-thumb {
  position: relative;
  aspect-ratio: 16 / 8.4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a4d8c, #012645);
  background-size: cover;
  background-position: center;
}

.nws-v-play {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nws-v-play svg {
  margin-left: 3px;
}

.nws-v-body {
  padding: 18px 20px;
}

.nws-v-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}

.nws-v-meta {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--slate-400);
}

/* 标签筛选栏 */
.nws-v-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.nws-v-tag {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nws-v-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nws-v-tag.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 产业动态分类筛选头（复用标签条样式，链接本身无下划线） */
.nws-industry-tags a.nws-v-tag {
  text-decoration: none;
}

/* 产业动态卡片：封面 hover 缩放 + 下载按钮动效 */
.nws-industry-card .bps-card-cover {
  overflow: hidden;
}

.nws-industry-card .bps-card-cover img {
  transition: transform 0.35s ease;
  will-change: transform;
}

.nws-industry-card:hover .bps-card-cover img {
  transform: scale(1.08);
}

.nws-industry-card a.bps-card-btn {
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

.nws-industry-card a.bps-card-btn svg {
  transition: transform 0.25s ease;
}

.nws-industry-card a.bps-card-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 87, 156, 0.22);
}

.nws-industry-card a.bps-card-btn:hover svg {
  transform: translateY(2px);
}

.nws-industry-card a.bps-card-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 角标 */
.nws-v-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nws-v-date {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--slate-400);
}

.nws-v-sum {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 分页 ── */
.nws-pager {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nws-pager a,
.nws-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--on-surface-variant);
  background: #fff;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.nws-pager li {
  list-style: none;
}

.nws-pager a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nws-pager .active a,
.nws-pager span.active,
.nws-pager .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.nws-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--slate-400);
  font-size: var(--fs-14);
}

@media (max-width: 1080px) {
  .nws-grid,
  .nws-v-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nws-e-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nws-e-date {
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
    padding: 0 0 10px;
    display: flex;
    gap: 10px;
    align-items: baseline;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .nws-grid,
  .nws-v-grid {
    grid-template-columns: 1fr;
  }

  .nws-v-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-right: -4px;
  }

  .nws-v-tag {
    flex-shrink: 0;
  }
}
