/* 医路有你列表页面 */
.video-list-page {
  min-height: 100vh;
  background-color: #f8f9fa;
}



/* 页面标题 */
.page-title {
  font-size: 2.5rem;
  color: #1a5a8a;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-top: 20px;
}

.page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #1a5a8a, #2c7fb8);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* 视频网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* 视频卡片 */
.video-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 视频缩略图 */
.video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: linear-gradient(135deg, #1a5a8a 0%, #2c7fb8 50%, #3a9ad9 100%);
  border-radius: 8px;
  cursor: pointer;
}

.video-thumb:hover .play-overlay {
  opacity: 1;
}

.video-thumb video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-thumb video::-webkit-media-controls {
  display: flex !important;
}

.video-thumb video::-webkit-media-controls-play-button,
.video-thumb video::-webkit-media-controls-current-time-display,
.video-thumb video::-webkit-media-controls-time-remaining-display,
.video-thumb video::-webkit-media-controls-mute-button,
.video-thumb video::-webkit-media-controls-volume-slider,
.video-thumb video::-webkit-media-controls-toggle-closed-captions-button,
.video-thumb video::-webkit-media-controls-overflow-button {
  display: none !important;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumb .play-overlay.is-playing,
.video-thumb:hover .play-overlay.is-playing {
  opacity: 0 !important;
  pointer-events: none !important;
}

.video-thumb:hover .play-overlay:not(.is-playing) {
  opacity: 1;
}

.play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(26, 90, 138, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon i {
  font-size: 24px;
  color: white;
  margin-left: 4px;
}

/* 视频信息 */
.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 1rem;
  margin-bottom: 0;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 加载状态 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #1a5a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 错误状态 */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #fff5f5;
  border-radius: 10px;
  margin: 20px 0;
}

.error-icon {
  font-size: 3rem;
  color: #dc3545;
  margin-bottom: 20px;
}

.error-state p {
  color: #dc3545;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background-color: #1a5a8a;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background-color: #2c7fb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(44, 127, 184, 0.3);
}

/* 无数据状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ccc;
}

.empty-state p {
  font-size: 1.1rem;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 50px;
  padding-bottom: 40px;
}

.page-btn {
  padding: 10px 25px;
  background-color: #1a5a8a;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
  background-color: #2c7fb8;
  transform: translateY(-2px);
}

.page-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-number {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-number:hover:not(:disabled):not(.active) {
  background-color: #f0f0f0;
}

.page-number.active {
  background-color: #1a5a8a;
  color: white;
  border-color: #1a5a8a;
}

.page-number:disabled {
  cursor: default;
}

.page-number.ellipsis {
  border: none;
  background: none;
  cursor: default;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .page-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pagination {
    gap: 10px;
    flex-wrap: wrap;
  }

  .page-btn {
    padding: 8px 20px;
  }

  .page-number {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}
