/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局变量 - 黑底白字风格 */
:root {
  --main-color: #ff0000; /* 保持主色不变 */
  --text-color: #ffffff; /* 修改为白色文字 */
  --bg-color: #121212; /* 修改为黑色背景 */
  --card-bg: #1e1e1e; /* 修改为深灰色卡片背景 */
  --header-bg: #0a0a0a; /* 修改为黑色头部 */
  --header-text: #ffffff; /* 修改为白色文字 */
  --footer-bg: #0a0a0a; /* 修改为黑色底部 */
  --footer-text: #b0b0b0; /* 修改为浅灰色文字 */
  --border-color: #333333; /* 修改为深灰色边框 */
  --hover-color: #cc0000; /* 保持悬停红色不变 */
  --secondary-text: #b0b0b0; /* 修改为浅灰色次要文本 */
  --sidebar-width: 200px; /* 定义侧边栏宽度，调整为更合适的宽度 */
}

body {
  font-family: 'Roboto', 'Arial', sans-serif; /* 保持字体不变 */
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 94%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.1s ease;
}

a:hover {
  color: var(--main-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 视频播放器适配样式 */
.video-wrapper {
  width: 100%;
  margin: 0 auto 15px auto;
  display: block;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 0; /* YouTube没有圆角 */
  overflow: hidden;
  box-shadow: none !important; /* 完全去掉阴影 */
  border: none !important; /* 完全去掉边框 */
  outline: none !important; /* 去掉轮廓 */
}

.video-js {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  border: none !important; /* 去掉播放器边框 */
  outline: none !important; /* 去掉聚焦轮廓 */
  box-shadow: none !important; /* 去掉阴影 */
}

/* 完全移除视频播放器边框高亮效果 */
.video-container:focus-within {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.video-container:focus {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.video-js:focus {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

/* 增强播放控制体验 */
.video-js .vjs-control-bar {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0; /* YouTube无圆角 */
  border: none !important; /* 去掉控制条边框 */
}

.video-js .vjs-play-progress {
  background-color: var(--main-color);
}

.video-js .vjs-slider-bar {
  background-color: rgba(255, 255, 255, 0.3);
}

.video-js .vjs-load-progress div {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 触碰设备的特殊增强 */
@media (hover: none) and (pointer: coarse) {
  .video-js .vjs-big-play-button {
    font-size: 3em;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    line-height: 2em;
    border: none !important;
    background-color: rgba(255, 0, 0, 0.8); /* Youtube红色 */
    outline: none !important;
  }
}

/* 竖屏视频特殊样式 */
.portrait-mode .video-container {
  padding-bottom: 0 !important; /* 移除16:9的宽高比限制 */
  height: auto !important;
  background-color: #000;
  border: none !important; /* 无边框 */
  box-shadow: none !important; /* 无阴影 */
  outline: none !important; /* 无轮廓 */
  overflow: visible !important;
  transition: padding-bottom 0.3s ease; /* 添加平滑过渡效果 */
}

.portrait-mode .video-wrapper {
  width: 65%; /* PC端调整为更合适的宽度 */
  margin: 0 auto;
  max-width: 500px; /* 限制最大宽度 */
  transition: width 0.3s ease, max-width 0.3s ease; /* 添加平滑过渡效果 */
}

/* 直接针对有 portrait-video class 的播放器本体 */
.video-wrapper.portrait-video .video-js {
  position: relative !important;
  height: auto !important;
  min-height: 450px !important;
  max-height: 80vh !important;
  width: 100% !important;
  transition: min-height 0.3s ease, height 0.3s ease; /* 添加平滑过渡效果 */
}

.video-wrapper.portrait-video .video-container {
  height: auto !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
  transition: padding-bottom 0.3s ease; /* 添加平滑过渡效果 */
}

.video-wrapper.portrait-video .video-js video {
  width: 100% !important;
  height: auto !important;
  transition: width 0.3s ease, height 0.3s ease; /* 添加平滑过渡效果 */
}

/* 通用竖屏视频样式，适用于所有设备 */
.video-container.portrait {
  height: auto !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
  transition: padding-bottom 0.3s ease; /* 添加平滑过渡效果 */
}

.video-container.portrait .video-js {
  position: relative !important;
  height: auto !important;
  min-height: 450px !important;
  max-height: 80vh !important;
  width: 100% !important;
  transition: min-height 0.3s ease, height 0.3s ease; /* 添加平滑过渡效果 */
}

.video-container.portrait .video-js video {
  width: 100% !important;
  height: auto !important;
  transition: width 0.3s ease, height 0.3s ease; /* 添加平滑过渡效果 */
}

/* 增强竖屏视频控制体验 */
.portrait-mode .video-js .vjs-big-play-button {
  transform: scale(1.2);
}

.portrait-mode .video-js .vjs-control-bar {
  height: 4em !important;
  padding: 0 8px;
}

.portrait-mode .video-js .vjs-button > .vjs-icon-placeholder:before {
  font-size: 2em;
  line-height: 2;
}

.portrait-mode .video-js .vjs-big-play-button {
  top: 45%; /* 中心稍上位置 */
}

/* 竖屏视频进度条增强 */
.portrait-mode .video-js .vjs-progress-control {
  min-width: 6em;
}

.portrait-mode .video-js .vjs-progress-holder {
  height: 0.5em;
}

.portrait-mode .video-js .vjs-progress-control:hover .vjs-progress-holder {
  font-size: 2em;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .portrait-mode .video-wrapper {
    width: 70%;
  }
  
  .video-wrapper.portrait-video {
    width: 40% !important;
  }
}

@media (max-width: 992px) {
  .portrait-mode .video-wrapper {
    width: 75%;
  }
  
  .video-wrapper.portrait-video {
    width: 50% !important;
  }
  
  .video-container.portrait .video-js {
    min-height: 350px !important;
  }
}

@media (max-width: 768px) {
  .portrait-mode .video-wrapper {
    width: 80%;
  }
  .portrait-mode .video-js .vjs-control-bar {
    height: 5em !important; /* 更大的控制条更易于触摸操作 */
  }
  
  /* 移动端视频播放器立即全屏宽度 */
  .video-wrapper {
    width: 100% !important;
    margin: 0 auto 15px auto;
    max-width: none !important;
  }
  
  .video-container {
    width: 100% !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  
  .video-js {
    border: none !important;
    outline: none !important;
  }
  
  /* 竖屏视频移动端样式 */
  .portrait-mode .video-wrapper,
  .video-wrapper.portrait-video {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto;
  }
  
  .portrait-mode .video-container,
  .video-container.portrait {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  
  .video-container.portrait .video-js {
    min-height: 300px !important;
  }
}

@media (max-width: 576px) {
  .entry-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .ct-pagination .ct-hidden-sm {
    display: none;
  }
  
  /* 小屏幕移动端视频播放器全屏宽度 */
  .video-wrapper {
    width: 100% !important;
    margin: 0 auto 15px auto;
    max-width: none !important;
  }
  
  .video-container {
    width: 100% !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  
  .video-js {
    border: none !important;
    outline: none !important;
  }
  
  /* 竖屏视频小屏幕样式 */
  .portrait-mode .video-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto;
  }
  
  .portrait-mode .video-container {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  
  /* 分类列表小屏幕样式 */
  .categories-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-item {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .portrait-mode .video-wrapper {
    width: 100% !important;
    max-width: none !important; /* 移动端取消最大宽度限制 */
  }
  .portrait-mode .video-js .vjs-control-bar {
    height: 5.5em !important;
  }
  
  /* 超小屏幕移动端视频播放器全屏宽度 */
  .video-wrapper {
    width: 100% !important;
    margin: 0 auto 15px auto;
    max-width: none !important;
  }
  
  .video-container {
    width: 100% !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  
  .video-js {
    border: none !important;
    outline: none !important;
  }
  
  .portrait-mode .video-container {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
}

/* 头部导航 - YouTube风格 */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 54px; /* YouTube标准高度 */
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-container {
  font-size: 18px;
  font-weight: 700;
  margin-right: 25px;
}

.logo-container a {
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.header-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 640px; /* YouTube搜索框最大宽度 */
  margin-left: auto; /* 将搜索框推到右边 */
  margin-right: 15px; /* 增加右边距 */
}

.main-navigation {
  /* 在PC端通过JS控制显示/隐藏或移到侧边 */
  /* 默认移动端隐藏，PC端显示 */
  display: none; /* 默认隐藏，在PC端的media query中显示 */
  flex: none; /* 移除 flex-grow */
  margin-left: 0;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  max-height: 56px; /* 限制为一行 */
  overflow: hidden;
}

.main-navigation li {
  margin: 0 12px 0 0;
}

.main-navigation a {
  color: var(--text-color);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 18px; /* 圆角按钮 */
  white-space: nowrap;
  font-weight: 500;
}

.main-navigation a.more-categories {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
  font-weight: 500;
}

.main-navigation a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.search-btn {
  background: #f8f8f8;
  border: 1px solid #d3d3d3;
  color: #606060;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 0 2px 2px 0;
  white-space: nowrap;
  transition: all 0.2s ease;
  height: 40px;
}

.search-btn:hover {
  background: #f0f0f0;
  color: #111;
}

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  margin-right: 20px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 搜索模态框 */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.search-modal.active {
  display: flex;
}

.search-form {
  width: 100%;
  max-width: 650px;
  padding: 20px;
}

.search-form input {
  width: 100%;
  padding: 10px 16px;
  font-size: 16px;
  background-color: #1e1e1e;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  height: 40px;
}

.search-form input:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
}

/* 主内容区 */
.site-main {
  padding: 0; /* 移除顶部 padding */
  margin-top: 24px; /* 添加顶部 margin */
}

.site-main .container {
  display: flex; /* 使用Flexbox布局 */
  flex-direction: row; /* 水平排列 */
  gap: 24px; /* 添加间距 */
}

/* PC端侧边栏导航 */
@media (min-width: 993px) {
  /* 隐藏头部导航中的主导航 */
  .site-header .main-navigation {
    display: none; /* 隐藏头部的主导航 */
  }

  /* 显示在主内容区域左侧的导航 */
  .site-main .main-navigation {
    display: block; /* PC端显示 */
    width: var(--sidebar-width); /* 设置侧边栏宽度 */
    flex-shrink: 0; /* 不缩小 */
    padding-top: 0; /* 移除顶部内边距 */
    padding-right: 16px; /* 右侧添加一点内边距 */
    border-right: 1px solid var(--border-color); /* 添加右侧边框分隔 */
    max-height: none; /* 移除高度限制 */
  }
  
  .site-main .main-navigation ul {
    flex-direction: column; /* 垂直排列 */
    max-height: none; /* 取消高度限制 */
    overflow: visible; /* 允许内容溢出 */
  }
  
  .site-main .main-navigation li {
    margin: 0 0 8px 0; /* 调整垂直间距 */
    width: 100%; /* 占满宽度 */
  }
  
  .site-main .main-navigation a {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 0; /* 移除圆角 */
    font-weight: 400; /* 调整字体粗细 */
  }
  
  .site-main .main-navigation a.more-categories {
    background-color: transparent;
    font-weight: 400;
  }
  
  .site-main .main-navigation a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  .site-main .container {
    align-items: flex-start; /* 顶部对齐 */
  }
  
  .site-main .content-area { /* 主内容区域 */
    flex-grow: 1; /* 占据剩余空间 */
    margin-left: 0; /* 移除左边距，因为已经使用了 flex 布局 */
    padding-left: 16px; /* 添加一点左内边距 */
  }

  /* 视频卡片样式 - 修改为每行4个 */
  .entry-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端修改为4列 */
    gap: 16px; /* 保持间距不变 */
    margin: 20px 0; /* 保持外边距不变 */
  }

  /* 相关视频专用：修改为每行4个 */
  .related-videos .entry-cards {
    grid-template-columns: repeat(4, 1fr); /* 相关视频也改为4列 */
  }

  /* PC端文章页面专用样式 */
  .content-area h1.section-title {
    text-align: left;
    margin-top: 0;
  }
  
  .content-area .video-wrapper {
    width: 100% !important;
  }
  
  .content-area .related-videos {
    width: 100%;
    margin-left: 0;
    padding: 0;
  }
  
  .content-area .related-videos .entry-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* 强制限制竖屏视频在PC端的高度 */
  .video-wrapper.portrait-video {
    max-width: 360px !important;
    margin: 0 auto 15px auto;
  }
}

/* 视频卡片样式 - 默认样式 */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 默认3列 */
  gap: 16px; /* YouTube间距 */
  margin: 20px 0;
}

.entry-card {
  background-color: var(--card-bg);
  border-radius: 0;
  overflow: hidden;
  border: none;
  transition: all 0.2s ease;
  margin-bottom: 8px; /* 增加卡片下方间距 */
}

.entry-card:hover {
  transform: none;
  box-shadow: 0 1px 6px rgba(255, 255, 255, 0.1);
}

.entry-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 比例 */
  background-color: #171717;
  overflow: hidden;
}

.entry-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.entry-card:hover .entry-thumb img {
  transform: none;
}

.entry-title {
  padding: 12px 0 8px 0; /* 增加上下内边距 */
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  height: 55px; /* 调整高度，精确显示2行 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-color);
}

.entry-title a {
  color: var(--text-color);
}

.entry-title a:hover {
  color: var(--text-color);
}

/* 视频播放器 */
.video-player-container {
  margin: 20px 0 24px;
  background-color: var(--card-bg);
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.video-player {
  width: 100%;
  aspect-ratio: 16/9;
}

.video-info {
  padding: 20px 0;
}

.video-title {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.video-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: var(--secondary-text);
  font-size: 14px;
  margin-bottom: 16px;
}

.video-meta .category {
  margin-right: 15px;
}

.video-meta a {
  color: var(--secondary-text);
}

.video-meta a:hover {
  color: var(--main-color);
}

.video-notes {
  padding: 12px;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  margin-top: 16px;
  font-size: 14px;
  color: var(--secondary-text);
}

/* 相关视频 */
.related-videos {
  width: 100%;
  background: #0e0e0e;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin-top: 18px;
  padding: 20px 0;
}

.section-title {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 500;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--text-color);
}

/* 分页导航 */
.ct-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0 4px 8px;
  padding: 0 8px;
  background-color: #1e1e1e;
  color: var(--text-color);
  border: none;
  border-radius: 2px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.page-numbers.current {
  background-color: var(--main-color);
  color: white;
}

.page-numbers:hover:not(.current) {
  background-color: #333333;
}

.page-numbers.dots {
  background: none;
  box-shadow: none;
}

/* 页脚 */
.site-footer {
  background-color: var(--footer-bg);
  padding: 24px 0;
  margin-top: 40px;
  color: var(--footer-text);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.site-footer .container {
  max-width: 1000px;
}

.site-info {
  font-size: 13px;
  line-height: 1.7;
}

.site-info p {
  margin-bottom: 5px;
}

/* 无结果 */
.no-results {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--card-bg);
  border: none;
  font-size: 15px;
  color: var(--secondary-text);
}

/* 响应式设计 */
@media (max-width: 992px) {
  /* 992px 及以下，侧边导航隐藏，主内容区恢复 */
  .main-navigation {
    display: none; /* 隐藏PC侧边栏 */
  }
  
  /* 隐藏主内容区域的导航 */
  .site-main .main-navigation {
    display: none; /* 确保在移动端彻底隐藏 */
  }
  
  .site-main .container {
    display: block; /* 恢复正常流布局 */
  }
  
  .site-main .content-area {
    margin-left: 0; /* 移除左侧空间 */
    padding-left: 0; /* 移除左侧间距 */
  }

  .entry-cards {
    grid-template-columns: repeat(2, 1fr); /* 平板2列 */
    gap: 12px;
  }
  
  .related-videos .entry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .video-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: row;
    align-items: center;
  }
  
  .header-left {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-container {
    margin-right: 0;
  }
  
  /* 移动端汉堡菜单控制的导航 */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -240px; /* 调整宽度 */
    width: 240px; /* 调整宽度 */
    height: 100vh;
    background-color: var(--card-bg);
    padding: 60px 20px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 9;
    overflow-y: auto;
    margin-left: 0;
    display: block; /* 移动端通过JS控制显示/隐藏 */
  }
  
  .main-navigation.active {
    right: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    max-height: none;
  }
  
  .main-navigation li {
    margin: 5px 0;
    width: 100%;
  }
  
  .main-navigation a {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 0;
  }
  
  .main-navigation a.more-categories {
    background-color: transparent;
    margin-bottom: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-search {
    margin-right: 15px;
    flex: none;
  }
  
  .search-btn {
    padding: 6px 12px;
    height: 36px;
  }
  
  .entry-cards {
    grid-template-columns: repeat(2, 1fr); /* 手机2列 */
  }
  
  .entry-title {
    height: 48px; /* 调整移动端标题高度 */
    font-size: 13px;
    padding: 10px 0 6px 0; /* 调整移动端内边距 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .video-title {
    font-size: 16px;
  }
  
  .refresh-btn {
    padding: 6px 10px;
    font-size: 14px;
    margin-left: 6px;
  }
}

@media (max-width: 576px) {
  .entry-cards {
    grid-template-columns: repeat(1, 1fr); /* 移动端1列 */
    gap: 16px;
  }
  
  .ct-pagination .ct-hidden-sm {
    display: none;
  }
}

/* 卡片分类标签 */
.card-category {
  position: absolute;
  bottom: 0;
  right: 0; /* YouTube风格右下角 */
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px 6px;
  font-size: 12px;
  z-index: 5;
}

/* 移动端导航背景遮罩 */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 8;
}

.mobile-menu-overlay.active {
  display: block;
}

/* 分类列表 */
.categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid var(--border-color);
}

.category-item:hover {
  background-color: #f0f0f0;
}

.category-count {
  color: var(--secondary-text);
  font-size: 12px;
}

.refresh-btn {
  background: #f8f8f8;
  border: 1px solid #d3d3d3;
  color: #606060;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 2px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: #f0f0f0;
  color: #111;
}

.refresh-btn svg {
  display: block;
}

/* PC端文章页特定样式 */
@media (min-width: 993px) {
  .video-player-container {
    margin-top: 0; /* 移除顶部间距 */
  }
  
  .video-title {
    margin-top: 16px; /* 添加标题与视频播放器的间距 */
  }
  
  /* 相关视频在PC端始终显示4列 */
  .related-videos .entry-cards {
    grid-template-columns: repeat(4, 1fr); /* 固定4列 */
    gap: 16px; /* 保持原有间距 */
  }
  
  /* 文章页面主体内容区域 */
  .site-main .content-area {
    flex-grow: 1; /* 占据剩余空间 */
    margin-left: 0; /* 移除左边距 */
    padding-left: 16px; /* 添加左内边距 */
  }
  
  /* 文章页面的视频播放器样式 */
  .content-area .video-wrapper {
    width: 100%; /* 调整宽度 */
    max-width: 100%;
    margin: 0 0 15px 0; /* 调整间距 */
  }
}

/* 添加视频容器和播放器通用过渡效果 */
.video-container,
.video-js,
.video-js video,
.video-wrapper {
  transition: all 0.3s ease !important;
}

/* 修改视频信息栏样式 */
.video-info-bar {
  background-color: #1e1e1e;
  border: 1px solid var(--border-color);
}

.source-tab {
  background-color: #333333;
  color: var(--text-color);
  border: 1px solid #444444;
}

.source-tab:hover {
  background-color: #444444;
}

.source-tab.active {
  background-color: var(--main-color);
  color: white;
}

.video-warning-bar {
  background: #1e1e1e;
  border: 1px solid #333333;
  color: var(--text-color);
}

/* 修改卡片样式 */
.entry-card {
  background-color: var(--card-bg);
  border: none;
  transition: all 0.2s ease;
}

.entry-card:hover {
  transform: none;
  box-shadow: 0 1px 6px rgba(255, 255, 255, 0.1);
}

.entry-thumb {
  background-color: #171717;
}

/* 修改分页导航 */
.page-numbers {
  background-color: #1e1e1e;
  color: var(--text-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-numbers:hover:not(.current) {
  background-color: #333333;
}

/* 修改相关视频区域 */
.related-videos {
  background: #0e0e0e;
}

/* 修改移动端布局 - 每行1个 */
@media (max-width: 768px) {
  .entry-cards {
    grid-template-columns: repeat(2, 1fr); /* 平板端2列 */
    gap: 12px;
  }
  
  /* 其他移动端样式保持不变 */
}

@media (max-width: 576px) {
  .entry-cards {
    grid-template-columns: repeat(1, 1fr); /* 移动端1列 */
    gap: 16px;
  }
  
  /* 其他小屏幕样式保持不变 */
} 
