/* 医路有你 样式 */
.stories {
  padding: 40px 0;
  background-color: #f8f9fa;
}

.stories h2 {
  font-size: 2.5rem;
  color: #1a5a8a;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

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

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

/* 视频卡片 */
.stories .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;
}

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

/* 视频缩略图 */
.stories .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;
}

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

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

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

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

.stories .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;
}

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

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

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

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

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

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

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

.stories .loading-state i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1a5a8a;
}

/* 错误状态 */
.stories .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;
}

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

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

.stories .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;
}

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

/* 更多按钮容器 */
.stories .more-container_2 {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

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

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

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

@media (max-width: 768px) {
  .stories {
    padding: 30px 0;
  }

  .stories h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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