/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(26, 26, 26, 0.95);
    z-index: 100;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    width: 120px;
    margin-right: 30px;
}

.search {
    position: relative;
    width: 300px;
}

.search input {
    width: 100%;
    height: 36px;
    background-color: #2b2b2b;
    border: none;
    border-radius: 4px;
    padding: 0 40px 0 15px;
    color: #fff;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.login-btn {
    padding: 6px 20px;
    border-radius: 4px;
    background-color: #ff6022;
}

/* 侧边导航 */
.side-nav {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 200px;
    background-color: #1a1a1a;
    padding-top: 20px;
}

.side-nav li {
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
}

.side-nav li.active {
    background-color: #2b2b2b;
}

.side-nav i {
    margin-right: 10px;
    font-size: 20px;
}

/* 主内容区 */
.container {
    padding-top: 60px;
    margin-left: 200px;
}

/* 轮播图样式 */
.banner {
    height: 600px;
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.banner.hidden {
    height: 0;
    opacity: 0;
    visibility: hidden;
}

.banner-list {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateX(100%); /* 初始状态在右侧 */
}

.banner-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0); /* 显示状态 */
    z-index: 2;
}

.banner-item:not(.active) {
    transform: translateX(-100%); /* 非活动状态在左侧 */
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 3;
}

.banner-content {
    position: absolute;
    left: 50px;
    bottom: 50px;
    z-index: 4;
}

/* 轮播控制按钮 */
.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}

.banner-arrow {
    position: absolute;
    width: 40px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    pointer-events: auto;
}

.banner-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.banner-arrow.prev {
    left: 0;
}

.banner-arrow.next {
    right: 0;
}

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
}

.banner .title {
    font-size: 48px;
    margin-bottom: 15px;
}

.banner .desc {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.play-btn {
    padding: 12px 30px;
    background-color: #ff6022;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* 推荐内容 */
.recommend {
    padding: 30px;
}

.recommend-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.recommend-item {
    flex: 0 0 200px;
}

.recommend-item img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.recommend-item h3 {
    font-size: 14px;
}

/* 视��网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.video-card {
    position: relative;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-cover {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.update-tag, .vip-tag {
    position: absolute;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.update-tag {
    right: 8px;
    bottom: 8px;
    background-color: rgba(0, 0, 0, 0.6);
}

.vip-tag {
    left: 8px;
    top: 8px;
    background-color: #ff6022;
}

.video-card h3 {
    margin: 8px 0 4px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-card p {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tab切换样式 */
.content-tabs {
    padding: 20px;
}

.tab-header {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #2b2b2b;
    padding-bottom: 10px;
}

.tab-item {
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.tab-item:hover {
    color: #fff;
}

.tab-item.active {
    color: #fff;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 2px;
    background-color: #ff6022;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

/* 添加页面切换样式 */
.page-content {
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: none;
}

.page-content.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.page-header {
    padding: 20px;
    border-bottom: 1px solid #2b2b2b;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 24px;
    color: #fff;
}

/* 添加筛选栏样式 */
.filter-bar {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.filter-item {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.filter-item:hover {
    color: #fff;
}

.filter-item.active {
    color: #ff6022;
}

/* 调整页面头部样式 */
.page-header {
    padding: 20px;
    border-bottom: 1px solid #2b2b2b;
    margin-bottom: 20px;
}

/* 调整视频网格在页面中的间距 */
.page-content .video-grid {
    padding: 0 20px;
}

/* 页面标题样式 */
.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 20px;
} 