/* Videos page styles */
.videos-page {
  padding-top: 0;
  background-color: var(--light-color);
}

.videos-page .container {
  padding-bottom: 6rem;
}

/* Banner styles */
.page-banner {
  position: relative;
  height: 400px;
  background: url("../images/videos/1.avif") no-repeat center center;
  background-size: cover;
  margin-bottom: 4rem;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3)
  );
}

.banner-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.banner-content .section-title {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Grid layout */
.videos-grid {
  column-count: 4;
  column-gap: 20px;
  padding: 0 20px;
}

/* Video item styles */
.video-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.video-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-image video {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* 移除自定义视频控件样式，使用浏览器默认控件 */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  cursor: pointer;
  opacity: 1;
}

.video-play-btn i {
  color: white;
  font-size: 24px;
}

.video-image:hover .video-play-btn {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-image.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* Video content styles */
.video-content {
  padding: 15px;
}

.video-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.video-author span {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.video-date {
  font-size: 0.8rem;
  color: var(--gray-color);
}

/* Grid layout */
.videos-grid {
  column-count: 4;
  column-gap: 20px;
  padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .videos-grid {
    column-count: 3;
  }
}

@media (max-width: 992px) {
  .videos-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 300px;
  }

  .banner-content .section-title {
    font-size: 2.5rem;
  }

  .banner-content .section-subtitle {
    font-size: 1rem;
  }

  .videos-grid {
    column-count: 2;
    padding: 0 15px;
  }

  .video-content {
    padding: 12px;
  }

  .share-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .videos-grid {
    column-count: 1;
    padding: 0 10px;
  }

  .page-banner {
    height: 250px;
  }

  .banner-content .section-title {
    font-size: 2rem;
  }
}
