.video-duration/* 基础样式 */
body {
  background-color: #f5f7fa;
  color: #2d3436;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  
  /* 修复文本大小调整警告 */
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%; /* Safari/Chrome */
  -ms-text-size-adjust: 100%; /* IE */
}

/* 表格标题修复 */
th {
  text-align: inherit; /* 标准属性 */
  text-align: -webkit-match-parent; /* WebKit/Blink 支持 */
}

/* 导航栏样式 */
.navbar {
  background-color: #161b22;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand i {
  color: #38bdf8;
}

.nav-link {
  position: relative;
  margin: 0 8px;
  transition: color 0.2s ease;
  font-size: 1.3rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #38bdf8;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 轮播图样式 */
.hero-carousel {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  margin-top: 1rem;
}

.carousel-item {
  height: 500px;
  position: relative;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
  /*filter: brightness(0.7);*/
}

.carousel-caption {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.carousel-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-description {
  font-size: 1rem;
  max-width: 700px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.carousel-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.carousel-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 分类导航 */
.categories {
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.categories::-webkit-scrollbar {
  height: 6px;
}

.categories::-webkit-scrollbar-thumb {
  background-color: #38bdf8;
  border-radius: 3px;
}

.category-list {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-item {
  white-space: nowrap;
}

.category-link {
  display: block;
  background-color: white;
  color: #161b22;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.category-link:hover,
.category-link.active {
  background-color: #38bdf8;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* 内容区块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #161b22;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #38bdf8;
  display: inline-block;
}

.section-more {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.section-more:hover {
  color: #0ea5e9;
  transform: translateX(3px);
}

/* 搜索区域样式 */
.search-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.search-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #161b22;
  margin-bottom: 0.5rem;
}

.search-query {
  color: #6e7681;
  font-size: 1rem;
}

/* 搜索结果样式 */
.results-container {
  margin-bottom: 1.5rem;
}

.results-stats {
  color: #6e7681;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* 视频网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 3rem;
}

.video-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.video-thumbnail-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-duration {
	position: absolute;
	top: 8px;
    right: 8px;
    background-color: rgb(0 0 0 / 92%);
    color: #fff;
    font-size: 1.2rem;
    padding: 2px 6px;
    border-radius: 8px;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background-color: #dc3545e3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-card:hover .video-play-icon {
  opacity: 1;
}

.video-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #161b22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.video-card-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.channel-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.channel-name-small {
  font-size: 0.9rem;
  color: #6e7681;
}

.video-card-stats {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: #6e7681;
}

.video-card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 特色内容区域 */
.featured-section {
  background-color: #161b22;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  color: white;
}

.featured-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.featured-text {
  flex: 1;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.featured-description {
  font-size: 1rem;
  color: #c9d1d9;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.featured-button {
  background-color: #38bdf8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.featured-button:hover {
  background-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  color: white;
}

.featured-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 标签样式 */
.video-tags {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #e6f7ff;
  color: #165dff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: #165dff;
  color: white;
}

/* 视频信息和操作区 */
.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.video-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #161b22;
}

.video-stats {
  color: #6e7681;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.channel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.channel-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.channel-subscribers {
  font-size: 0.85rem;
  color: #6e7681;
}

.subscribe-btn {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: auto;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscribe-btn:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.video-actions {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.like-btn {
  background-color: #38bdf8;
  color: white;
  border: none;
}

.like-btn:hover {
  background-color: #0ea5e9;
}

.dislike-btn, .share-btn, .save-btn {
  background-color: #f0f0f0;
  color: #161b22;
  border: none;
}

.dislike-btn:hover, .share-btn:hover, .save-btn:hover {
  background-color: #e0e0e0;
}

/* 评论区样式 */
.comments-section {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.comments-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 10px;
}

.comments-count {
  font-weight: 600;
  font-size: 1.2rem;
}

.sort-by {
  color: #6e7681;
  font-size: 0.9rem;
}

.comment-form {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e7681;
  font-weight: 600;
}

.comment-input {
  flex: 1;
}

.comment-input textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 16px;
  resize: none;
  min-height: 100px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.comment-input textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.post-comment {
  background-color: #38bdf8;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.post-comment:hover {
  background-color: #0ea5e9;
}

.comment {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
  border-bottom: none;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.comment-text {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 8px;
}

.comment-time {
  font-size: 0.8rem;
  color: #6e7681;
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.comment-action {
  color: #6e7681;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.comment-action:hover {
  color: #38bdf8;
}

/* 页脚样式 */
footer {
  background-color: #161b22;
  color: #c9d1d9;
  padding: 1.5rem 0;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.footer-logo i {
  color: #38bdf8;
}

.footer-description {
  color: #8b949e;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #21262d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9d1d9;
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: #38bdf8;
  color: white;
}

.footer-title {
  font-weight: 600;
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #8b949e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  background-color: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 12px;
  color: white;
}

.newsletter-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.newsletter-btn {
  background-color: #38bdf8;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
  background-color: #0ea5e9;
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #8b949e;
}

    /* 播放器控制和诊断样式 */
    .player-controls {
      margin-bottom: 1rem;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    
    .player-control-btn {
      background-color: #f0f0f0;
      border: none;
      padding: 6px 12px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .player-control-btn:hover {
      background-color: #e0e0e0;
    }
    
    .diagnostic-container {
      margin-top: 1rem;
      padding: 12px;
      background-color: #f9fafb;
      border-radius: 8px;
      border: 1px solid #eaecef;
    }
    
    .diagnostic-title {
      font-weight: 600;
      margin-bottom: 8px;
      color: #161b22;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    .diagnostic-info {
      font-size: 0.9rem;
      color: #6e7681;
      margin-top: 0.5rem;
      padding: 8px 12px;
      background-color: #f9fafb;
      border-radius: 4px;
    }
    
    .environment-info {
      font-size: 0.85rem;
      color: #374151;
      line-height: 1.6;
      white-space: pre-wrap;
      background-color: #f0f6fc;
      padding: 10px;
      border-radius: 6px;
      border-left: 3px solid #38bdf8;
      max-height: 200px;
      overflow-y: auto;
    }

/* 分页导航 */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item {
  display: flex;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-color: white;
  color: #161b22;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.page-link:hover {
  background-color: #f0f6fc;
  color: #38bdf8;
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background-color: #38bdf8;
  color: white;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 回到顶部按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0d6efd;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #0a58ca;
  transform: translateY(-3px);
}


/* 相关推荐容器 */
.related-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* 区域标题 */
.rel-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #161b22;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #38bdf8;
  display: inline-block;
}


.video-info{margin: 15px 0 0 0;}


.video-description{
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #38bdf8;
    margin: 20px 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}


    /* 面包屑导航美化 */
    .breadcrumb {
	padding: 0.6rem 0 0.4rem 0;
    background: transparent;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid #90919138;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
      content: "/";
      color: #6c757d;
      padding: 0 0.5rem;
    }
    
    .breadcrumb-item a {
      color: #6c757d;
      text-decoration: none;
      transition: color 0.3s ease;
      font-size: 1.2rem;
    }
    
    .breadcrumb-item a:hover {
      color: #0d6efd;
      text-decoration: underline;
    }
    
    .breadcrumb-item.active {
      color: #212529;
      font-weight: 500;
    }


    /* 视频信息区域优化 */
    h1.video-title  {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    border-bottom: 1px solid #90919138;
    padding: 0 0 5px 0;
    text-align: center;
    margin: 0 0 1rem 0;
    }
    

    #saypl{
    padding: 0 0 0 2.5rem;
    }
    
    .video-meta {
      color: #6c757d;
      margin-bottom: 1.2rem;
      font-size: 0.9rem;
    }
    
    .video-meta span {
      margin-right: 1.5rem;
    }
    
    /* 标签区域优化 - 提升关键词关联性 */
    .video-tags {
      margin: 1.5rem 0 2rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
    }
    
    .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background-color: #dee3e7c9;
    border-radius: 20px;
    font-size: 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    }
    
    .tag i {
      margin-right: 0.4rem;
      font-size: 0.8rem;
    }
    
    .tag:hover {
      background-color: #e9ecef;
      color: #212529;
      transform: translateY(-2px);
    }
    
    /* 评论区优化 */
    .comments-section {
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid #e9ecef;
    }
    
    .comments-header {
      margin-bottom: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .comments-count {
      font-weight: 600;
      font-size: 1.1rem;
    }
    
    /* 播放器容器优化 */
    .video-container {
      position: relative;
      width: 100%;
      padding-top: 56.25%; /* 16:9宽高比 */
      background-color: #000;
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 1rem;
    }

    #hls-player {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    #hls-player video {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .player-status {
    position: absolute;
    top: 92%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.1rem;
    border-radius: 4px;
    z-index: 10;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    }

    
    /* 栏目标题区域美化 */
    .category-header {
      margin-bottom: 2.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid #e9ecef;
      position: relative;
    }
    
    .category-header::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -1px;
      width: 100%;
      height: 2px;
      background-color: #0d6efd;
    }
    
    .category-title {
      font-size: 2rem;
      font-weight: 700;
      color: #212529;
      margin-bottom: 1rem;
      line-height: 1.3;
    }


    /* 视频卡片链接样式修正 */
    .video-card a {
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    
    .back-to-top {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background-color: #0d6efd;
      color: white;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 1000;
    }
    
    .back-to-top:hover {
      background-color: #0a58ca;
      transform: scale(1.1);
    }
    
    /* 新增：屏幕阅读器专用类 */
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    
    /* 焦点状态 */
    a:focus, button:focus, input:focus, select:focus, textarea:focus {
      outline: 2px solid #38bdf8;
      outline-offset: 2px;
    }
    
    #full-content p{
	text-indent: 0.5em;
	margin: 0.5em 0;
    }

	.copyright p{
	margin-bottom: 0.2rem;
	}


.gap-3{
margin: 23px 0px 10px 0;
}

.breadcrumb{
    line-height: 2rem;
}




.top-banner {
  width: 100%;
  height: 90px;
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  overflow: hidden;
  position: relative;
}

.top-banner .banner-container {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

.top-banner a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.top-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
}


.shadow-sm{
object-fit: cover;
    max-width: 100%;
    padding: 1rem;
}

.article-nav {
  transition: all 0.2s ease;
}

.nav-item {
  transition: transform 0.2s ease;
}

.nav-item:hover {
  transform: translateX(4px);
}

/* 链接样式 */
.nav-link-custom {
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.nav-link-custom:hover {
  color: #165dff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 图标样式 */
.nav-icon {
  flex-shrink: 0; /* 防止图标被压缩 */
  transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
  background-color: #165dff;
  color: white;
}


/* 修复点击区域问题 - 在原有样式前添加 */
.gallery-item {
    position: relative; /* 确保容器正确计算高度 */
}

/* 调整图片容器，解决点击区域不全问题 */
.gallery-img-container {
    padding-top: 75%; /* 保持4:3比例 */
    height: auto; /* 改为auto而不是0，允许限制点击区域 */
    position: relative;
    display: block; /* 确保容器为块级块级元素 */
}

/* 确保标题图片定位，确保填充容器 */
.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例填充容器 */
}


/* 图片展示区样式 */
.episode-gallery {
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 横向向滚动容器优化 */
.gallery-scroll-container {
  -webkit-overflow-scrolling: touch; /* 移动端平滑滚动 */
  scrollbar-width: thin; /* 细滚动滚动条 */
  scrollbar-color: #ccc transparent;
}

.gallery-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.gallery-img-container {
  position: relative;
  padding-top: 75%; /* 4:3 比例 */
  cursor: pointer;
  overflow: hidden; /* 隐藏放大大溢出部分 */
  transition: box-shadow 0.3s ease;
}

.gallery-img-container:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gallery-img-container img {
  position: absolute;
  top: 0;
  left: 0;
}

/* 美化化化文字显示 - 添加背景色和圆角 */
.gallery-caption {
  position: absolute;
  bottom: 8px;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.caption-text {
  display: inline-block;
  background-color: rgba(0,0,0,0.7); /* 半透明背景色 */
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px; /* 圆角 */
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

/* 悬停时文字效果 */
.group:hover .caption-text {
  background-color: rgba(0,0,0,0.9);
  transform: translateY(-3px);
  padding: 5px 12px;
  font-size: 13px;
}

/* 图片预览弹窗 */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-modal img {
  max-width: 90%;
  max-height: 80vh;
  object-contain: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.gallery-modal.active img {
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gallery-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.gallery-modal .close-btn:hover {
  background: rgba(0,0,0,0.5);
  transform: rotate(90deg);
}


/* 修复图片查看器样式问题 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* 提高层级确保显示在最上层 */
    padding: 20px;
    box-sizing: border-box;
}

.image-viewer.active {
    display: flex;
}

.viewer-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-viewer {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}



.mb-rebo{
        margin: 1.5rem 0 0 0;
}

.video-duration-1{
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgb(0 0 0 / 50%);
    color: #e7fbff;
    padding: 2px 5px;
    border-radius: 10px;
    font-size: 1rem;
    
}




    @media (max-width: 768px) {
      .video-title {
        font-size: 1.4rem;
      }
      
      
      .video-play-icon {
  width: 88px;
  height: 88px;
}
      
      
      .player-status {
        top: auto;
        bottom: 25px;
        transform: translate(-50%, 0);
        max-width: 80%;
        box-sizing: border-box;
      }      
               
        #saypl{
		padding: 0;
	  }
      
          .close-viewer {
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
    
    .viewer-content {
        max-height: 85vh;
    }
      
      
        .top-banner {
        height: 60px;
  }
  .top-banner img {
    object-position: 50% 50%;
  }
    }
    

@media (max-width: 576px) {
  .article-nav {
    padding: 1.5rem 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .nav-link-custom {
    font-size: 0.9rem;
  }
}    