* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --banner-primary: #3385ff;
    --banner-primary-dark: #2d75e6;
    --banner-bg: #f5f5f5;
    --banner-surface: #ffffff;
    --banner-border: #e5e7eb;
    --banner-text: #333333;
    --banner-text-secondary: #666666;
    --banner-text-light: #999999;
    --banner-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --banner-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --sidebar-width: 240px;
}

body.banner-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--banner-bg);
    color: var(--banner-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.banner-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边导航 */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--banner-surface);
    border-right: 1px solid var(--banner-border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--banner-border);
}

.sidebar-logo {
    display: block;
    text-decoration: none;
    color: var(--banner-primary);
    font-size: 20px;
    font-weight: 600;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--banner-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(51, 133, 255, 0.05);
    color: var(--banner-primary);
}

.menu-item.active {
    background: rgba(51, 133, 255, 0.1);
    color: var(--banner-primary);
    border-left-color: var(--banner-primary);
    font-weight: 500;
}

.menu-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--banner-surface);
    border: 1px solid var(--banner-border);
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.sidebar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--banner-text);
    border-radius: 2px;
    transition: all 0.2s;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部搜索栏 */
.top-header {
    background: var(--banner-surface);
    border-bottom: 1px solid var(--banner-border);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid var(--banner-border);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.2s;
    max-width: 600px;
    width: 100%;
}

.search-box:focus-within {
    border-color: var(--banner-primary);
    background: var(--banner-surface);
    box-shadow: 0 0 0 2px rgba(51, 133, 255, 0.1);
}

.search-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--banner-text);
}

.search-input::placeholder {
    color: var(--banner-text-light);
}

.search-btn {
    padding: 10px 20px;
    background: var(--banner-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--banner-primary-dark);
}

/* 主内容 */
.banner-main {
    flex: 1;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Banner轮播 */
.banner-section {
    margin-bottom: 40px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--banner-shadow);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: white;
}

.banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px 70px;
    z-index: 2;
}

.banner-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--banner-primary);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.banner-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 25px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: white;
}

.banner-indicator.active {
    background: white;
    width: 20px;
    border-radius: 10px;
    border-color: white;
}

/* 视频网格 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 1rem;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--banner-text);
}

.section-more {
    color: var(--banner-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.section-more:hover {
    color: var(--banner-primary-dark);
    text-decoration: underline;
}

.section-count {
    color: var(--banner-text-secondary);
    font-size: 14px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--banner-surface);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--banner-shadow);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--banner-shadow-hover);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: #f0f0f0;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .card-image img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 2px;
    z-index: 2;
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--banner-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 12px;
    color: var(--banner-text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--banner-text-secondary);
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    background: var(--banner-surface);
    border: 1px solid var(--banner-border);
    border-radius: 4px;
    color: var(--banner-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--banner-primary);
    color: white;
    border-color: var(--banner-primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-page {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--banner-surface);
    border: 1px solid var(--banner-border);
    border-radius: 4px;
    color: var(--banner-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-page:hover {
    background: var(--banner-primary);
    color: white;
    border-color: var(--banner-primary);
}

.pagination-page.active {
    background: var(--banner-primary);
    color: white;
    border-color: var(--banner-primary);
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--banner-text-light);
}

/* 播放器 */
.banner-player {
    background: var(--banner-surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--banner-shadow);
}

.player-screen {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--banner-text);
}

.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.control-btn {
    padding: 6px 16px;
    background: var(--banner-surface);
    border: 1px solid var(--banner-border);
    border-radius: 4px;
    color: var(--banner-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(51, 133, 255, 0.08);
    border-color: var(--banner-primary);
    color: var(--banner-primary);
}

.control-btn.active {
    background: var(--banner-primary);
    border-color: var(--banner-primary);
    color: white;
}

/* 详情页 */
.detail-section {
    background: var(--banner-surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--banner-shadow);
}

.detail-container {
    display: flex;
    gap: 20px;
}

.detail-poster {
    position: relative;
    flex-shrink: 0;
    width: 200px;
}

.detail-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--banner-shadow);
}

.poster-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 2px;
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--banner-text);
    margin-bottom: 16px;
    line-height: 1.4;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-tag {
    padding: 4px 12px;
    background: rgba(51, 133, 255, 0.1);
    color: var(--banner-primary);
    font-size: 12px;
    border-radius: 4px;
}

.detail-meta {
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.meta-label {
    color: var(--banner-text-secondary);
    min-width: 60px;
}

.meta-value {
    color: var(--banner-text);
}

.detail-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 8px 20px;
    background: var(--banner-primary);
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

.action-btn:hover {
    background: var(--banner-primary-dark);
}

.action-btn.secondary {
    background: var(--banner-surface);
    color: var(--banner-text);
    border: 1px solid var(--banner-border);
}

.action-btn.secondary:hover {
    background: #f5f5f5;
    border-color: var(--banner-primary);
    color: var(--banner-primary);
}

.content-section {
    background: var(--banner-surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--banner-shadow);
}

.detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--banner-text);
    white-space: pre-wrap;
}

/* 底部 */
.banner-footer {
    background: var(--banner-surface);
    border-top: 1px solid var(--banner-border);
    padding: 30px 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 12px;
    color: var(--banner-text-light);
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        transform: translateX(-100%);
    }

    body.sidebar-open .sidebar-nav {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .banner-slider {
        height: 250px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-content {
        padding: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .detail-container {
        flex-direction: column;
    }

    .detail-poster {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 200px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-desc {
        font-size: 14px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .section-title {
        font-size: 18px;
    }
}

