/* 安装培训视频 — /service/videos/ */

.svc-video-page {
  padding: 0 0 72px;
}

.svc-video-intro {
  margin: 40px 0 32px;
}

.svc-video-intro__lead {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.85;
  color: #495057;
}

.svc-video-intro__links {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-family: var(--site-ui-font, 'Segoe UI', system-ui, -apple-system, 'Microsoft YaHei', 'PingFang SC', sans-serif);
}

.svc-video-intro__links a {
  font-weight: 500;
  color: var(--menu-sub-brand, #1d5198);
  text-decoration: none;
}

.svc-video-section-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  padding-left: 14px;
  border-left: 4px solid #1d5198;
}

.svc-video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.svc-video-filter {
  padding: 8px 18px;
  border: 1px solid #c5d4ea;
  border-radius: 5px;
  background: #fff;
  color: #1d5198;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.svc-video-filter:hover {
  background: #ebf3ff;
  border-color: #1d5198;
}

.svc-video-filter.is-active {
  background: #1d5198;
  border-color: #1d5198;
  color: #fff;
}

.svc-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-video-card {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.svc-video-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.svc-video-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #1d5198 0%, #295692 55%, #3a7bc8 100%);
  background-size: cover;
  background-position: center;
  color: inherit;
  text-align: left;
}

.svc-video-card__thumb--integrated {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d5198 100%);
}

.svc-video-card__thumb--split {
  background: linear-gradient(135deg, #295692 0%, #4a7ab8 100%);
}

.svc-video-card__thumb--hybrid {
  background: linear-gradient(135deg, #1d5198 0%, #2d6a9f 100%);
}

.svc-video-card__thumb--wiring {
  background: linear-gradient(135deg, #16324f 0%, #1d5198 100%);
}

.svc-video-card__thumb--cases {
  background: linear-gradient(135deg, #234a7a 0%, #3a7bc8 100%);
}

.svc-video-card__thumb--has-poster {
  background-color: #16324f;
}

.svc-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-video-card__play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1d5198;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.svc-video-card__thumb:hover .svc-video-card__play i {
  transform: scale(1.08);
}

.svc-video-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.svc-video-card__coming-soon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(12, 20, 36, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  pointer-events: none;
}

.svc-video-card__body {
  padding: 16px 18px 18px;
}

.svc-video-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 5px;
  background: #ebf3ff;
  color: #1d5198;
  font-size: 12px;
  font-weight: 600;
}

.svc-video-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
}

.svc-video-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #6c757d;
}

.svc-video-card.is-hidden {
  display: none;
}

.svc-video-empty {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: #6c757d;
  font-size: 15px;
  border: 1px dashed #c5d4ea;
  border-radius: 5px;
  background: #f8f9fb;
}

.svc-video-empty.is-visible {
  display: block;
}

.svc-video-cta {
  margin-top: 48px;
  padding: 32px 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f7faff 0%, #ebf3ff 100%);
  border: 1px solid #dbe6f5;
  text-align: center;
}

.svc-video-cta h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1e3a5f;
}

.svc-video-cta p {
  margin: 0 0 20px;
  font-size: 15px;
  color: #555;
}

.svc-video-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.svc-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.svc-video-btn--primary {
  background: #1d5198;
  color: #fff;
  border: 1px solid #1d5198;
}

.svc-video-btn--primary:hover {
  background: #163d72;
  border-color: #163d72;
  color: #fff;
}

.svc-video-btn--outline {
  background: #fff;
  color: #1d5198;
  border: 1px solid #1d5198;
}

.svc-video-btn--outline:hover {
  background: #ebf3ff;
}

.svc-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.svc-video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.svc-video-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  background: #000;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.svc-video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.svc-video-modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.svc-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.svc-video-modal__frame iframe,
.svc-video-modal__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.svc-video-modal__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.svc-video-modal__placeholder i {
  font-size: 48px;
  color: #6ea8fe;
}

.svc-video-modal__placeholder p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1100px) {
  .svc-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .svc-video-grid {
    grid-template-columns: 1fr;
  }

  .svc-video-filters {
    gap: 8px;
  }

  .svc-video-filter {
    padding: 7px 14px;
    font-size: 13px;
  }
}
