/* ============================================
   视频中心页面样式
   ============================================ */

/* Banner */
.video-banner {
  position: relative;
  height: 168px;
  background: var(--bg-gray-light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .video-banner {
    height: 280px;
  }
}

.video-banner__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-banner__content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

.video-banner__title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

@media (max-width: 992px) {
  .video-banner__content {
    padding: 0 16px;
  }
}

@media (min-width: 992px) {
  .video-banner__title {
    font-size: 48px;
  }
}

.video-banner__title span:first-child {
  color: var(--text-main);
}

.video-banner__title span:last-child {
  color: var(--primary);
}

.video-banner__desc {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

@media (min-width: 992px) {
  .video-banner__desc {
    font-size: 18px;
  }
}

/* Main Content */
.video-main {
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: -42px;
  position: relative;
  z-index: 10;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .video-main {
    margin-top: -56px;
  }
}

.video-filter {
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .video-filter {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Grid Content */
.video-content {
  padding: 32px 40px;
  min-height: 500px;
}

@media (max-width: 991px) {
  .video-content {
    padding: 32px 16px;
  }
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  min-height: 400px;
  align-items: start;
}

@media (max-width: 991px) {
  .video-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Video Card Item */
.video-card-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.4s ease-out both;
}

.video-card-item:hover {
  border-color: rgba(201, 21, 30, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.video-card-item__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-gray-light);
}

.video-card-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.video-card-item:hover .video-card-item__thumb img {
  transform: scale(1.05);
}

.video-card-item__thumb .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.video-card-item:hover .video-card-item__thumb .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

.video-card-item__thumb .play-btn img {
  width: 50%;
  object-fit: contain;
}

.video-card-item__info {
  padding: 16px;
  min-height: 80px;
}

.video-card-item__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.video-card-item:hover .video-card-item__title {
  color: var(--primary);
}

.video-card-item__date {
  font-size: 13px;
  color: var(--text-light);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.show {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
}

@media (max-width: 991px) {
  .video-modal-content {
    width: 95%;
  }
}

.video-modal-content video {
  width: 100%;
  border-radius: 12px;
  max-height: 80vh;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.2s;
}

.video-modal-close:hover {
  opacity: 0.7;
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}