/* ==========================================================================
   宇勤集团 · 企业视频
   ========================================================================== */

.video-page {
  background: var(--paper);
}

.video-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 76px) 0 76px;
  background: var(--navy);
  color: var(--white);
}

.video-hero__bg {
  position: absolute;
  inset: 0;
  background: url("/assets/img/videos/hero.jpg") center 42% / cover no-repeat;
  opacity: 0.26;
  filter: grayscale(0.35) contrast(1.05);
  transform: scale(1.03);
}

.video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 23, 38, 0.98) 0%, rgba(6, 23, 38, 0.82) 45%, rgba(6, 23, 38, 0.5) 100%),
    linear-gradient(180deg, rgba(6, 23, 38, 0.1) 0%, rgba(6, 23, 38, 0.72) 100%);
}

.video-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.video-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--copper-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.video-hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--copper);
}

.video-hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.video-hero h1 em {
  color: var(--copper-light);
  font-style: normal;
}

.video-hero__lead {
  max-width: 620px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.9;
}

.video-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.video-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-hero__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
}

.video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.video-hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.video-hero .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--navy);
  color: var(--white);
  text-align: left;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}

.video-frame:hover img {
  transform: scale(1.025);
  opacity: 0.82;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 23, 38, 0.04) 35%, rgba(6, 23, 38, 0.72) 100%);
}

.video-frame__badge {
  position: absolute;
  white-space: nowrap;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  background: var(--copper);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.video-frame__caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.video-frame__caption strong {
  display: block;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.video-frame__caption span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}

.video-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(6, 23, 38, 0.34);
  color: var(--white);
  transform: translate(-50%, -50%);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  backdrop-filter: blur(6px);
}

.video-play:hover {
  background: var(--blue);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-play svg {
  width: 25px;
  height: 25px;
  margin-left: 4px;
}

.video-feature__copy .eyebrow {
  color: var(--copper-ink);
}

.video-feature__copy h2 {
  margin-top: 18px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.video-feature__copy > p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}

.video-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.video-facts div {
  padding: 16px 14px;
  border-right: 1px solid var(--line);
}

.video-facts div:last-child {
  border-right: 0;
}

.video-facts dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.video-facts dd {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.video-feature__actions .btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.video-feature__actions .btn--ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.video-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.video-filter {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: all 0.2s var(--ease);
}

.video-filter:hover,
.video-filter.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
}

.video-card {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.video-card[hidden] {
  display: none;
}

.video-card__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
}

.video-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.3s var(--ease);
}

.video-card:hover .video-card__poster img {
  transform: scale(1.035);
  opacity: 0.84;
}

.video-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 23, 38, 0.55) 100%);
}

.video-card__play {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(6, 23, 38, 0.4);
  color: var(--white);
}

.video-card__play svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

.video-card__status {
  position: absolute;
  white-space: nowrap;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: rgba(6, 23, 38, 0.74);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}

.video-card__body {
  padding: 18px 2px 0;
}

.video-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--copper-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.video-card__meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--muted-light);
}

.video-card__title {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.video-card__desc {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.video-note {
  margin-top: 40px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.video-cta {
  background: var(--navy);
  color: var(--white);
}

.video-cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.video-cta h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.video-cta p {
  max-width: 520px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.9;
}

.video-cta .btn--ghost {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.video-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 13, 22, 0.88);
  backdrop-filter: blur(6px);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__panel {
  position: relative;
  width: min(960px, 100%);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.video-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(6, 23, 38, 0.65);
  color: var(--white);
}

.video-modal__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.video-modal__stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-modal__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--white);
  text-align: center;
}

.video-modal__placeholder p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.9;
}

.video-modal__copy {
  padding: 22px 26px 26px;
}

.video-modal__copy .eyebrow {
  color: var(--copper-ink);
}

.video-modal__copy h2 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.3;
}

.video-modal__copy p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .video-feature {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .video-hero {
    padding: calc(var(--header-h) + 52px) 0 56px;
  }

  .video-hero__lead {
    font-size: 14px;
  }

  .video-hero__actions .btn {
    width: 100%;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-facts {
    grid-template-columns: 1fr 1fr;
  }

  .video-facts div:nth-child(2) {
    border-right: 0;
  }

  .video-facts div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .video-modal {
    padding: 10px;
  }

  .video-modal__copy {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-frame img,
  .video-card__poster img,
  .video-play,
  .video-card__play {
    transition: none;
  }

  .video-frame:hover img,
  .video-card:hover .video-card__poster img,
  .video-play:hover {
    transform: none;
  }
}
