/**
 * CIIP Hero 视频卡 — 智能工业 / 城市数建 / 国际供需 / 智能文化 / 元宇宙 / 智能空间
 * 结构：.hero-video-stack > .hero-video-card > (.hero-video-media + .hero-video-body)
 *
 * 选择器必须高于各页 `main.page-* * { padding:0 }` 通用重置（0,1,1），
 * 故统一写成 main .hero-video-stack …（0,2,1+）。
 */
main .hero-video-stack {
  flex: 0 1 560px;
  width: 100%;
  min-width: 0;
  max-width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

main .hero-video-stack .hero-video-card {
  background: #163A91;
  border: 1px solid rgba(140, 180, 255, 0.35);
  border-radius: 20px;
  overflow: hidden;
  padding: 16px 18px 16px;
  box-shadow:
    0 12px 40px rgba(10, 40, 120, 0.45),
    0 0 28px rgba(30, 80, 200, 0.28),
    0 0 0 1px rgba(120, 170, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

main .hero-video-stack .hero-video-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 48px rgba(10, 40, 120, 0.55),
    0 0 36px rgba(40, 100, 220, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.4);
}

main .hero-video-stack .hero-video-media {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #0a224e;
  overflow: hidden;
  border-radius: 14px;
}

main .hero-video-stack .hero-video-media video,
main .hero-video-stack .hero-video-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 14px;
}

main .hero-video-stack .hero-video-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 30, 90, 0.65);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(30, 80, 200, 0.35), 0 4px 12px rgba(0, 20, 60, 0.25);
}

main .hero-video-stack .hero-video-tag-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: ciipHeroVideoPulse 2s infinite;
}

@keyframes ciipHeroVideoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* 下方说明：左右留白需压过各页 main.page-* * { padding:0 }；比视频区再内缩一截 */
main .hero-video-stack .hero-video-body {
  padding: 22px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main .hero-video-stack .hero-video-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

main .hero-video-stack .hero-video-title {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

main .hero-video-stack .hero-video-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(234, 243, 255, 0.5);
  margin: 7px 0 0;
  line-height: 1.55;
}

main .hero-video-stack .hero-video-stat {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(234, 243, 255, 0.42);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}

main .hero-video-stack .hero-video-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

main .hero-video-stack .hero-video-pills a,
main .hero-video-stack .hero-video-pills span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

main .hero-video-stack .hero-video-pills a:hover {
  background: rgba(22, 93, 255, 0.35);
  border-color: rgba(96, 165, 250, 0.5);
  color: #fff;
}

@media (max-width: 900px) {
  main .hero-video-stack {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (min-width: 1280px) {
  main .hero-video-stack {
    max-width: min(600px, 100%);
    flex-basis: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main .hero-video-stack .hero-video-tag-dot {
    animation: none !important;
  }
}
