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

html {
  overflow-x: hidden;
  width: 100%;
}

/* 全局变量 - 黑底白字风格（参考stupidvideos.com） */
:root {
  --main-color: #ffd700; /* 金色强调色 */
  --text-color: #ffffff; /* 白色文字 */
  --bg-color: #000000;   /* 黑色背景 */
  --card-bg: #1a1a1a;   /* 深灰色卡片背景 */
  --header-bg: #1a1a1a; /* 深灰色头部 */
  --header-text: #ffffff; /* 白色头部文字 */
  --sidebar-bg: #000000; /* 黑色侧边栏 */
  --footer-bg: #1a1a1a; /* 深灰色底部 */
  --footer-text: #cccccc; /* 浅灰色底部文字 */
  --border-color: #333333; /* 深灰色边框 */
  --hover-color: #ffd700; /* 金色 hover */
  --category-hover: #2a2a2a; /* 分类hover背景 */
  --accent-color: #ff6600; /* 橙色强调色 */
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-left: 0;
  overflow-x: hidden;
  width: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(255, 102, 0, 0.03) 0%, transparent 50%);
}

/* PC端左侧栏布局 */
@media (min-width: 769px) {
  body {
    padding-left: 240px;
  }
}


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

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

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

/* 左侧分类导航栏 */
.nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background-color: var(--sidebar-bg);
  border-right: 2px solid var(--border-color);
  overflow-y: auto;
  z-index: 100;
  padding-top: 70px;
  display: none;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
  .nav-sidebar {
    display: block;
  }
}

.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  margin: 0;
}

.sidebar-categories a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-color);
  font-size: 15px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-categories a:hover {
  background-color: var(--category-hover);
  color: var(--main-color);
  border-left-color: var(--main-color);
  transform: translateX(3px);
}

.sidebar-category-icon {
  width: 22px;
  height: 22px;
  margin-right: 14px;
  opacity: 0.75;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-categories a:hover .sidebar-category-icon {
  opacity: 1;
  transform: scale(1.1);
  color: var(--main-color);
}

/* 移动端侧边栏切换 */
@media (max-width: 768px) {
  .nav-sidebar {
    display: block !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding-top: 70px;
    z-index: 100;
    opacity: 1;
  }
  
  .nav-sidebar.active {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    touch-action: manipulation;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  /* 确保菜单按钮在移动端始终可见且可点击 */
  .menu-toggle-mobile {
    z-index: 102 !important;
    position: relative;
    display: flex !important;
  }
}

/* 头部导航 */
.page-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 98;
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
}

@media (min-width: 769px) {
  .page-header {
    padding-left: 0;
  }
}

.page-header .content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

.logo-container {
  font-size: 22px;
  font-weight: bold;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--main-color);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.logo-link:hover {
  opacity: 0.9;
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--main-color);
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
}

/* 搜索栏样式 */
.header-search-container {
  flex: 1;
  max-width: 600px;
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #999999;
  pointer-events: none;
  z-index: 1;
}

.header-search-input {
  width: 100%;
  padding: 10px 15px 10px 45px;
  font-size: 15px;
  background-color: #1a1a1a;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-color);
  transition: all 0.2s ease;
  outline: none;
}

.header-search-input:focus {
  background-color: #2a2a2a;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.header-search-input::placeholder {
  color: #999999;
}

/* 头部右侧图标 */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.header-icon-btn:hover {
  background-color: var(--category-hover);
  color: var(--main-color);
}

.header-icon-btn:active {
  transform: scale(0.95);
}

/* 移动端菜单按钮（在header中） */
.menu-toggle-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.2s ease;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .menu-toggle-mobile {
    display: flex;
  }
}

.menu-toggle-mobile:hover,
.menu-toggle-mobile:active {
  background-color: var(--category-hover);
  color: var(--main-color);
}

.menu-toggle-mobile.active {
  background-color: transparent;
  color: var(--main-color);
}

.menu-toggle-mobile svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

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

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

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

.search-form input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-color);
}

.search-form input:focus {
  outline: none;
  border-color: var(--main-color);
  background-color: var(--category-hover);
}

.search-form input::placeholder {
  color: var(--footer-text);
}

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

/* 主内容区 */
.page-main {
  padding: 30px 0;
}

@media (min-width: 769px) {
  .page-main {
    padding-left: 0;
  }
}

/* ==================== 视频卡片布局 ==================== */
/* 容器基础设置 */
.content-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* PC端容器宽度 */
@media (min-width: 769px) {
  .content-wrapper {
    max-width: 1200px;
  }
}

/* 视频卡片网格布局 */
.media-grid {
  display: grid;
  gap: 15px;
  margin: 30px 0;
  width: 100%;
  box-sizing: border-box;
}

/* PC端：固定4列布局 */
@media (min-width: 769px) {
  .page-main .media-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

/* 中等屏幕：3列布局 */
@media (max-width: 992px) and (min-width: 769px) {
  .page-main .media-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

/* 移动端：2列布局 */
@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* 相关视频区域：PC端固定4列（仅在post页面） */
.similar-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.similar-content .media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

@media (max-width: 1200px) {
  .similar-content .media-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

@media (max-width: 992px) {
  .similar-content .media-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .similar-content .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* 单个卡片样式 */
.media-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  border-color: var(--main-color);
}

/* 卡片缩略图容器 */
.media-thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 比例 */
  overflow: hidden;
  background-color: #000000;
  display: block;
}

/* 卡片图片 */
.media-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.media-card:hover .media-thumb img {
  transform: scale(1.05);
}

/* 卡片标题 */
.media-title {
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  min-height: 65px;
  height: auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-color);
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
}

.media-title a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  word-break: break-word;
  white-space: normal;
}

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

/* 老电视机样式播放器框架 */
.tv-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.tv-frame {
  position: relative;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border-radius: 15px;
  padding: 30px 25px 60px 25px;
  box-shadow: 
    0 0 0 3px #000000,
    0 0 0 6px #333333,
    0 0 0 9px #1a1a1a,
    0 10px 40px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #444444;
}

.tv-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  background: linear-gradient(90deg, #000000 0%, #333333 50%, #000000 100%);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.tv-frame::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 12px;
  background: linear-gradient(90deg, #000000 0%, #ffd700 30%, #ffd700 70%, #000000 100%);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.tv-screen {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 
    inset 0 0 50px rgba(0, 0, 0, 0.9),
    inset 0 0 100px rgba(255, 215, 0, 0.05);
  border: 3px solid #000000;
}

.tv-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
  z-index: 1;
}

.tv-screen video,
.tv-screen .video-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

@media (max-width: 768px) {
  .tv-frame-wrapper {
    padding: 10px;
  }
  
  .tv-frame {
    padding: 20px 15px 50px 15px;
  }
  
  .tv-frame::before {
    width: 30px;
    height: 6px;
  }
  
  .tv-frame::after {
    width: 50px;
    height: 10px;
  }
}

/* 首页布局：顶部分类导航，中间播放器，右侧文章列表 */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-top: 20px;
}

.home-main {
  display: flex;
  flex-direction: column;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  
  /* 中等屏幕：视频在上面，相关视频在下面 */
  .home-main {
    order: 1;
  }
  
  .home-sidebar {
    order: 2;
  }
}

/* 移动端：视频播放器应该在相关视频上面 */
@media (max-width: 768px) {
  .home-layout {
    display: flex;
    flex-direction: column;
  }
  
  .home-main {
    order: 1;
  }
  
  .home-sidebar {
    order: 2;
  }
}

/* 右侧文章列表样式 */
.sidebar-videos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-video-item a:hover {
  background: var(--category-hover) !important;
  border-color: var(--main-color) !important;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

@media (max-width: 992px) {
  .sidebar-videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
  }
  
  .sidebar-video-item a {
    flex-direction: column !important;
  }
  
  .sidebar-video-item a > div:first-child {
    width: 100% !important;
    height: 180px !important;
  }
}

/* 顶部分类导航栏 */
.top-categories-nav {
  background: var(--header-bg);
  border-bottom: 2px solid var(--border-color);
  padding: 15px 0;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.top-categories-nav::-webkit-scrollbar {
  height: 4px;
}

.top-categories-nav::-webkit-scrollbar-track {
  background: var(--bg-color);
}

.top-categories-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.top-categories-nav::-webkit-scrollbar-thumb:hover {
  background: var(--main-color);
}

.top-categories-list {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  list-style: none;
  margin: 0;
}

.top-category-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.top-category-item:hover {
  background: var(--category-hover);
  border-color: var(--main-color);
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.top-category-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.top-category-item:hover .top-category-icon {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .top-categories-list {
    padding: 0 15px;
  }
  
  .top-category-item {
    padding: 6px 12px;
    font-size: 13px;
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-js {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
}

.video-js .vjs-control-bar {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 0 0 6px 6px;
}

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

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

.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;
    background-color: rgba(237, 20, 91, 0.9);
  }
}

.portrait-mode .video-container {
  padding-bottom: 177.78%; /* 9:16比例，适合竖屏视频 */
  background-color: #000;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.portrait-mode .video-wrapper {
  width: 65%;
  margin: 0 auto;
  max-width: 500px;
}

@media (min-width: 769px) {
  .portrait-video .video-container {
    padding-bottom: 0 !important;
    background-color: #000;
    overflow: visible;
    margin: 0 auto;
    transition: height 0.3s ease, width 0.3s ease;
  }
  
  .portrait-video .video-js {
    position: relative !important;
    object-fit: contain;
    transition: all 0.3s ease;
  }
  
  .portrait-video .video-js .vjs-control-bar {
    position: absolute !important;
    bottom: 0 !important;
    width: 100% !important;
  }
  
  .video-container {
    transition: padding-bottom 0.3s ease, height 0.3s ease, width 0.3s ease;
  }
  
  .video-js,
  .video-js video {
    transition: width 0.3s ease, height 0.3s ease, object-fit 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) and (min-width: 769px) {
  .portrait-video .video-container {
    max-width: 70vw;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .portrait-video .video-container {
    max-width: 75vw;
  }
}

@media (max-width: 768px) {
  .portrait-mode .video-wrapper {
    width: 80%;
  }
  .portrait-mode .video-js .vjs-control-bar {
    height: 5em !important;
  }
}

@media (max-width: 576px) {
  .portrait-mode .video-wrapper {
    width: 85%;
  }
}

@media (max-width: 480px) {
  .portrait-mode .video-wrapper {
    width: 98%;
    max-width: none;
  }
  .portrait-mode .video-js .vjs-control-bar {
    height: 5.5em !important;
  }
}

.video-player-container {
  margin: 20px 0 30px;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

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

.video-info {
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: none;
}

.video-title {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-color);
}

.video-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: #666666;
  font-size: 14px;
  margin-bottom: 10px;
}

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

.video-meta a {
  color: #666666;
}

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

.video-notes {
  padding: 10px;
  background-color: #f9f9f9;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  margin-top: 10px;
  font-size: 14px;
}

/* 相关视频 */
.related-videos {
  margin: 30px 0;
}

.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  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: 40px;
  height: 40px;
  margin: 0 5px 10px;
  padding: 0 10px;
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: 5px;
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.page-numbers.current {
  background-color: var(--main-color);
  color: #000000;
  border-color: var(--main-color);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.page-numbers:hover:not(.current) {
  background-color: var(--category-hover);
  color: var(--main-color);
  border-color: var(--main-color);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.page-numbers.dots {
  background: none;
  box-shadow: none;
  color: var(--text-color);
  border: none;
}

/* 页脚 */
.page-footer {
  background-color: var(--footer-bg);
  padding: 30px 0;
  margin-top: 50px;
  color: var(--footer-text);
  text-align: center;
  border-top: 2px solid var(--border-color);
  background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
}

@media (min-width: 769px) {
  .page-footer {
    padding-left: 0;
  }
}

.page-footer .content-wrapper {
  max-width: 800px;
}

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

.site-info p {
  margin-bottom: 5px;
  color: var(--footer-text);
}

/* 无结果 */
.no-results {
  text-align: center;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

/* ==================== 响应式布局优化 ==================== */
@media (max-width: 992px) {
  .video-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  body.has-sidebar {
    padding-left: 0;
  }
  
  .page-header {
    padding-left: 0;
  }
  
  .page-main {
    padding-left: 0;
  }
  
  .page-footer {
    padding-left: 0;
  }
  
  .page-header .content-wrapper {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .header-left {
    flex: 1 1 100%;
    order: 1;
    gap: 10px;
  }
  
  .logo-container {
    margin-right: 0;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .header-search-container {
    flex: 1;
    max-width: none;
  }
  
  .header-right {
    order: 2;
    gap: 8px;
  }
  
  .header-icon-btn {
    width: 36px;
    height: 36px;
  }
  
  .header-icon-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .menu-toggle-mobile {
    order: 3;
    flex-shrink: 0;
    z-index: 9999 !important;
    position: relative;
    display: flex !important;
  }
  
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .media-title {
    height: 53px;
    font-size: 14px;
  }
  
  .video-title {
    font-size: 20px;
  }
  
  .refresh-btn {
    padding: 6px 10px;
    font-size: 14px;
    margin-left: 6px;
  }
}

@media (max-width: 576px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ct-pagination .ct-hidden-sm {
    display: none;
  }
}

/* 卡片分类标签 */
.card-category {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 215, 0, 0.9);
  color: #000000;
  padding: 3px 8px;
  font-size: 12px;
  z-index: 5;
  border-top-right-radius: 4px;
  font-weight: bold;
  text-shadow: none;
}


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

.category-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.category-item:hover {
  background-color: var(--category-hover);
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.category-count {
  margin-left: 10px;
  font-size: 0.9em;
  color: #888888;
  opacity: 0.9;
}

.category-item:hover .category-count {
  color: var(--main-color);
}

@media (max-width: 768px) {
  .categories-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .category-item {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .category-count {
    margin-left: 8px;
  }
}

.refresh-btn {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background-color: var(--category-hover);
  border-color: var(--main-color);
  color: var(--main-color);
}

.refresh-btn svg {
  display: block;
}
