        body {
            padding-top: 56px; /* 为固定导航栏留出空间 */
        }
        
        /* 导航栏样式 */
        .navbar-custom {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e0e0e0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .navbar-brand {
            font-size: 1.8rem;
            font-weight: bold;
            color: #333 !important;
        }
        
        .nav-link {
            color: #555 !important;
            transition: color 0.3s;
        }
        
        .nav-link:hover {
            color: #ff6b6b !important;
        }
        
        /* PC端分类菜单栏样式 */
        .category-nav-bar-desktop {
            background-color: #ffffff; 
            border-bottom: 1px solid #e0e0e0; 
            padding: 15px 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.07);
            position: sticky; 
            top: 56px; 
            z-index: 1000; 
        }
        
        .category-nav-bar-desktop .container .flex-wrap {
            gap: 10px; 
        }

        .category-nav-bar-desktop .nav-link.category-item { 
            margin: 0;
            padding: 8px 18px;
            font-size: 0.92rem;
            font-weight: 500;
            border-radius: 25px; 
            color: #555 !important;
            transition: all 0.3s ease-in-out;
            text-decoration: none; 
            background-color: #f8f9fa;
            border: 1px solid transparent;
        }
        
        .category-nav-bar-desktop .nav-link.category-item:hover,
        .category-nav-bar-desktop .nav-link.category-item.active {
            color: #ffffff !important;
            background-color: #ff6b6b;
            font-weight: bold;
            box-shadow: 0 6px 20px rgba(255,107,107,0.3);
            border-color: #ff6b6b;
        }

        /* PC端导航栏内的登录/注册项样式 */
        .navbar-nav.auth-nav-items .nav-item {
            margin-left: 10px; 
        }
        .navbar-nav.auth-nav-items .nav-link {
             padding: 0.5rem 1rem;
             border-radius: 5px;
             transition: background-color 0.3s ease, color 0.3s ease;
        }
        .navbar-nav.auth-nav-items .nav-link:hover {
            background-color: #f8f9fa;
            color: #ff6b6b !important;
        }

        /* 海报展示样式 - 优化 */
        .poster-container {
            padding: 20px 0;
        }
        
 
        
            /* 调整海报卡片间距 */
    .poster-card {
        background-color: #fff;
        border-radius: 8px;
        overflow: hidden; /* 确保子元素不超出圆角 */
        transition: transform 0.3s, box-shadow 0.3s;
        margin-bottom: 5px;
        border: 1px solid #e0e0e0;
        position: relative;
        cursor: pointer; /* 鼠标悬停时显示 pointer，表示可交互 */
        padding: 0; /* 移除默认的padding */
    }


        
        .poster-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* 悬停阴影稍微增强 */
        }
        
        .poster-img {
            width: 100%;
            aspect-ratio: 4/3; /* 保持16:9的宽高比 */
            object-fit: cover; /* 裁剪以填充容器 */
            display: block; /* 移除底部空隙 */
        }
        
        .play-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5); /* 播放遮罩层背景色，稍深 */
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0; /* 默认隐藏 */
            transition: opacity 0.3s ease-in-out; /* 平滑过渡 */
            z-index: 10; /* 确保在图片之上 */
        }
        
        .poster-card:hover .play-overlay {
            opacity: 1; /* 悬停时显示 */
        }
        
        .play-btn {
            width: 60px; /* 播放按钮稍大 */
            height: 60px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ff6b6b; /* 播放按钮图标颜色 */
            font-size: 1.5rem; /* 图标大小 */
            box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* 播放按钮阴影 */
            transition: transform 0.3s ease-in-out; /* 按钮自身过渡 */
        }
        
        .poster-card:hover .play-btn { /* 悬停时放大播放按钮 */
            transform: scale(1.1);
        }
        
        .poster-title {
            padding: 8px 10px;
            font-size: 13px; /* 字体大小调整 */
            line-height: 1.4; /* 行高 */
            color: #333;
            /* 多行文本截断样式 */
            display: -webkit-box; /* 使用WebKit的box-flex模型 */
            -webkit-line-clamp: 2; /* 最多显示2行 */
            -webkit-box-orient: vertical; /* 垂直方向 */
            overflow: hidden; /* 隐藏超出部分 */
            text-overflow: ellipsis; /* 在单行时显示省略号（此处主要用于兼容，虽然多行已显示）*/
            height: 42px; /* 固定高度，确保2行文本完整显示 */
            box-sizing: border-box; /* 包含padding */
        }
        
    /* 分页样式 */
    .pagination {
      display: flex;
      list-style: none;
      padding: 0;
      margin: 0;
      justify-content: center;
      flex-wrap: wrap;
    }
    .pagination li {
      margin: 0.25rem;
    }
    .pagination a,
    .pagination span {
      display: block;
      padding: 0.5rem 0.75rem;
      border-radius: 0.375rem;
      text-decoration: none;
      transition: all 0.2s ease;
      min-width: 2.5rem;
      text-align: center;
    }
    .pagination a {
      background-color: #ffffff;
      border: 1px solid #e5e7eb;
      color: #374151;
    }
    .pagination a:hover {
      background-color: #f3f4f6;
      border-color: #d1d5db;
      color: #1f2937;
    }
    .pagination .active span {
      background-color: #3b82f6;
      border-color: #3b82f6;
      color: white;
    }
    .pagination .disabled span {
      background-color: #f9fafb;
      border: 1px solid #e5e7eb;
      color: #9ca3af;
      cursor: not-allowed;
    }
    .pagination .disabled span:hover {
      background-color: #f9fafb;
    }

        /* 页脚样式 */
        footer {
            background-color: #f8f9fa;
            border-top: 1px solid #e9ecef;
            padding: 20px 0;
            margin-top: 40px;
        }

        /* 返回顶部按钮样式 */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: #ff6b6b;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            font-size: 1.2rem;
            transition: all 0.3s;
        }
        
        .back-to-top:hover {
            background-color: #ff5252;
            transform: translateY(-3px);
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .navbar-brand {
                font-size: 1.4rem;
            }
            
            .category-nav-bar-desktop {
                display: none !important;
            }
            
             .collapse.navbar-collapse ul.navbar-nav .nav-item:not(.auth-nav-item) {
                display: none;
            }

            .navbar-nav.auth-nav-items .nav-item {
                display: block !important; 
            }
            
            .poster-col {
                flex: 0 0 50%;
                max-width: 50%;
            }
        }
        
        @media (max-width: 576px) {
            .poster-col {
                flex: 0 0 100%;
                max-width: 100%;
            }
        }

        /* 侧边抽屉样式 */
        .offcanvas {
            background-color: #ffffff; 
            color: #555;
        }

        .offcanvas-header {
            border-bottom: 1px solid #e0e0e0;
        }

        .offcanvas-title {
            font-weight: bold;
            color: #333;
        }

        .offcanvas-body {
            padding-top: 15px;
        }

        .offcanvas-body .category-item { 
            display: block; 
            margin-bottom: 12px;
            margin-right: 0;
            padding: 12px 15px;
            border-radius: 8px;
            transition: all 0.3s ease-in-out;
            text-decoration: none;
            color: #555;
            background-color: #f8f9fa;
        }

        .offcanvas-body .category-item:hover,
        .offcanvas-body .category-item.active { 
            color: #ffffff !important;
            background-color: #ff6b6b;
            font-weight: bold;
            box-shadow: 0 4px 10px rgba(255,107,107,0.2);
        }

        /* 放置登录/注册链接在抽屉底部 */
        .offcanvas-auth-links {
            padding-top: 20px;
            border-top: 1px solid #e0e0e0;
            margin-top: 20px;
        }
        
        .offcanvas-auth-links .nav-link { 
            padding: 12px 15px;
            border-radius: 8px;
            transition: all 0.3s ease-in-out;
        }
        .offcanvas-auth-links .nav-link:hover {
            background-color: #f8f9fa;
            color: #ff6b6b !important;
            font-weight: bold;
        }

        /* PC端确保导航栏中的登录注册项不会被隐藏 */
        @media (min-width: 768px) {
            .navbar-nav.auth-nav-items .nav-item {
                display: block !important; 
            }
        }
#dplayer {
    background-color: #0f1115;   /* 深色背景 */
    color: #e6e6e6;              /* 浅色文字 */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    font-size: 16px;
}