/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container-mc {
    width: 78%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 分类导航 - 响应式调整 */
.category-nav {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    display: none; /* 小屏幕隐藏标题 */
}

.category-items {
    display: flex;
    gap: 10px;
}

.category-item {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.category-item:hover {
    background: #f0f7ff;
    color: #007bff;
}

.category-item.active {
    background: #e6f2ff;
    color: #007bff;
    font-weight: 500;
}

.category-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 数据列表 */
.data-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    flex-grow: 1;
}

.list-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.list-title {
    font-size: 20px;
    font-weight: 600;
}

.sort-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-option {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.sort-option.active {
    background: #e6f2ff;
    color: #007bff;
}

.data-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.data-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.data-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.item-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .container-mc {
        flex-direction: row;
    }

    .category-nav {
        width: 250px;
        flex-direction: column;
        overflow-x: visible;
        white-space: normal;
    }

    .category-title {
        display: block;
    }

    .category-items {
        flex-direction: column;
        gap: 0;
    }

    .category-item {
        margin: 8px 0;
        padding: 12px 15px;
    }

    .list-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .sort-options {
        gap: 15px;
    }

    .sort-option {
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .data-items {
        grid-template-columns: 1fr;
    }

    .page-btn {
        padding: 6px 12px;
    }
}