body {
    background-color: #f5f8f8;
    background-image: url('/images/background/seamless-02.png');
}

nav.pc,
nav.mobile {
    background-color: #402d05;
    background-image: url('/images/background/9_nav.webp');
}

nav.pc .menu:hover {
    color: #fc6;
}

nav.pc .menu>.subs {
    background-image: url('/images/background/9_nav.webp');
    color: #fff;
}

nav.pc .menu>.subs a {
    color: #fff;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0 1rem 0;
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.resource-list > a {
    text-decoration: none;
    color: inherit;
    display: flex;
    box-sizing: border-box;
    height: 100%;
    min-width: 0;
}

.resource-item {
    min-width: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.resource-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resource-item .cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
}

.resource-item.image .cover {
    background-size: contain;
    background-color: #000;
}

.resource-item .info {
    font-weight: bold;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: calc(1rem * 2 + 3em + 0.5rem + 1.5em);
    box-sizing: border-box;
}

.resource-item .actions {
    padding: 0.5rem 1rem;
}

.resource-item .title {
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
    margin: 0;
}

.resource-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
    height: 1.5em;
    flex-shrink: 0;
}

.resource-item .meta .model {
    flex: 1;
}

.resource-item .meta .vol {
    text-align: right;
}

/* 空状态样式 */
.resource-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.resource-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.resource-empty-text {
    font-size: 1.1rem;
    color: #666;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.pagination-btn:hover:not(.disabled) {
    background-color: #402d05;
    color: #fc6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.pagination-page:hover:not(.active) {
    background-color: #402d05;
    color: #fc6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination-page.active {
    background-color: #402d05;
    color: #fc6;
    font-weight: bold;
    cursor: default;
    box-shadow: 0 2px 6px rgba(64, 45, 5, 0.3);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    color: #999;
    font-size: 0.95rem;
}

/* 猜你喜欢样式 */
.recommend-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.resource-list.recommend-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media only screen and (max-width: 768px) {
    .resource-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resource-list.recommend-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pagination {
        gap: 0.25rem;
        margin: 1.5rem 0;
    }
    
    .pagination-btn,
    .pagination-page {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }
    
    .pagination-pages {
        gap: 0.125rem;
    }
}