/* 影片分享页面专用样式 */

/* 影片页面主横幅调整 */
.video-hero {
  min-height: 60vh;
  padding: 120px 0 60px;
}

.video-hero .hero-content {
  display: block;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background-image: url("../images/cq.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-attachment: local;
  padding: 40px 20px;
}

.video-hero .hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 1),
    0 0 15px rgba(255, 255, 255, 0.9), -2px -2px 6px rgba(255, 255, 255, 0.8);
}

.video-hero .hero-text p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: #2c3e50;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, 0.8), -1px -1px 4px rgba(255, 255, 255, 0.7);
}

/* 影片展示区样式 */
.video-gallery {
  padding: 80px 0;
  background: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: stretch;
}

.video-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
  position: relative;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-item:hover .video-wrapper video {
  transform: scale(1.05);
}

.video-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-comment {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.9rem;
  flex: 1;
}

.traveler-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.traveler-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff6b6b;
}

.traveler-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .video-hero .hero-text h1 {
    font-size: 2.5rem;
  }

  .video-hero .hero-text p {
    font-size: 1rem;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .video-wrapper video {
    height: 180px;
  }

  .video-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .video-hero {
    padding: 100px 0 40px;
  }

  .video-hero .hero-text h1 {
    font-size: 2rem;
  }

  .video-gallery {
    padding: 60px 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-wrapper video {
    height: 200px;
  }

  .video-content {
    padding: 20px;
  }

  .video-comment {
    font-size: 0.95rem;
  }
}

/* 卡片加载动画 */
.video-item {
  opacity: 0;
  animation: fadeInCard 0.6s ease forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 为不同的卡片添加延迟动画 */
.video-item:nth-child(1) {
  animation-delay: 0.1s;
}
.video-item:nth-child(2) {
  animation-delay: 0.2s;
}
.video-item:nth-child(3) {
  animation-delay: 0.3s;
}
.video-item:nth-child(4) {
  animation-delay: 0.4s;
}
.video-item:nth-child(5) {
  animation-delay: 0.5s;
}
.video-item:nth-child(6) {
  animation-delay: 0.6s;
}
.video-item:nth-child(7) {
  animation-delay: 0.7s;
}
.video-item:nth-child(8) {
  animation-delay: 0.8s;
}

/* 头像悬停效果 */
.traveler-avatar {
  transition: all 0.3s ease;
}

.video-item:hover .traveler-avatar {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}
