* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.sidebar-menu {
    padding: 10px 0;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    color: #666;
}

.menu-item:hover {
    background: #f8f8f8;
    color: #333;
}

.menu-item.active {
    background: #f0f0f0;
    border-left-color: #333;
    color: #333;
    font-weight: 500;
}

.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 30px;
}

.banner-section {
    margin-bottom: 30px;
}

.banner-carousel {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #ddd;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.banner-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.banner-info p {
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.banner-dot:hover,
.banner-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

.category-section {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.filter-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 0.9rem;
    color: #666;
    min-width: 50px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #333;
    color: #333;
}

.filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.view-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-btn:hover,
.view-btn.active {
    border-color: #333;
    color: #333;
}

.content-grid {
    display: grid;
    gap: 15px;
}

.content-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.content-grid.list-view {
    grid-template-columns: 1fr;
}

.media-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.media-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.media-item.list-view {
    display: flex;
    gap: 15px;
}

.media-item.list-view:hover {
    transform: none;
}

.media-poster {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #ddd;
}

.media-item.list-view .media-poster {
    width: 120px;
    padding-top: 180%;
    flex-shrink: 0;
}

.media-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-info {
    padding: 10px;
    flex: 1;
}

.media-item.list-view .media-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.media-item.list-view .media-title {
    flex: 1;
    margin-bottom: 0;
}

.media-item.list-view .media-meta {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
}

.media-meta {
    font-size: 0.85rem;
    color: #999;
}

.media-meta .divider {
    color: #ddd;
}

.media-meta span {
    margin-right: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: #333;
    color: #333;
}

.page-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .sidebar-header h1 {
        display: none;
    }

    .sidebar-header {
        display: flex;
        justify-content: center;
        padding: 15px;
    }

    .menu-item {
        padding: 15px;
        text-align: center;
    }

    .main-content {
        margin-left: 60px;
        padding: 20px 15px;
    }

    .banner-carousel {
        height: 250px;
    }

    .banner-info {
        padding: 20px;
    }

    .banner-info h2 {
        font-size: 1.2rem;
    }

    .filter-row {
        gap: 15px;
    }

    .filter-label {
        min-width: auto;
    }

    .content-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .media-item.list-view {
        flex-direction: column;
    }

    .media-item.list-view .media-poster {
        width: 100%;
        padding-top: 150%;
    }
}
