/* ============================================================
   Hero 视频区 · 双片随机 + SCP 风格边框
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-video { min-width: 0; }

/* 外框：深绿渐变 + 呼吸光 */
.hv-frame {
  position: relative;
  border-radius: 4px;              /* 直角更硬朗，配 SCP 终端风 */
  overflow: hidden;
  background: #0b1206;
  padding: 10px;                    /* 内嵌留白，形成"相框" */
  border: 1px solid #2f5220;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .65),
    0 0 44px rgba(140, 226, 42, .13),
    0 0 0 1px rgba(140, 226, 42, .10) inset;
  background-image:
    linear-gradient(160deg, rgba(140, 226, 42, .10), rgba(11, 18, 6, .96) 45%),
    radial-gradient(80% 60% at 100% 0%, rgba(47, 126, 230, .10), transparent 70%);
  aspect-ratio: 8 / 5;
}
/* 内侧细线 */
.hv-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(140, 226, 42, .22);
  pointer-events: none;
  z-index: 3;
}

.hv-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  position: relative;
  z-index: 1;
}

/* 四角括号（和商店卡片同一套语言） */
.hv-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 4;
  pointer-events: none;
  border-color: #8ce22a;
  opacity: .8;
  filter: drop-shadow(0 0 6px rgba(140, 226, 42, .55));
}
.hv-corner.tl { top: 2px; left: 2px; border-top: 2px solid; border-left: 2px solid; }
.hv-corner.tr { top: 2px; right: 2px; border-top: 2px solid; border-right: 2px solid; }
.hv-corner.bl { bottom: 2px; left: 2px; border-bottom: 2px solid; border-left: 2px solid; }
.hv-corner.br { bottom: 2px; right: 2px; border-bottom: 2px solid; border-right: 2px solid; }

/* 扫描线 */
.hv-scan {
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, .16) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
  opacity: .55;
}
/* 缓慢移动的光带 */
.hv-edge {
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(140, 226, 42, .07) 45%, transparent 60%);
  background-size: 100% 220%;
  animation: hvEdge 7s linear infinite;
}
@keyframes hvEdge {
  0% { background-position: 0 -120%; }
  100% { background-position: 0 220%; }
}

.hv-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 3px;
  background: rgba(10, 14, 7, .78);
  border: 1px solid rgba(140, 226, 42, .38);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 700;
  color: #c9f08c;
  letter-spacing: .06em;
}
.hv-badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 8px #ff5a5a;
  animation: recBlink 1.6s ease-in-out infinite;
}
@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-video { order: 2; }
  .hv-frame { aspect-ratio: 16 / 10; padding: 8px; }
  .hv-corner { width: 15px; height: 15px; }
  .hv-badge { left: 16px; bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-badge i, .hv-edge { animation: none; }
}
