/* ============================================
   Usersafe · 分类下载页样式
   ============================================ */

/* ---------- 分类导航 ---------- */
#categories_class {
    margin-bottom: 32px;
}

#categories_class_title h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

#categories_class_subclass ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 0;
}

#categories_class_subclass ul li {
    padding: 6px 20px;
    background: #f1f4f9;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2a44;
    transition: 0.15s;
    cursor: default;
}

#categories_class_subclass ul li:hover {
    background: #0b1a2f;
    color: #fff;
}

#categories_class_subclass ul li.active {
    background: #0b1a2f;
    color: #fff;
}

#categories_class_subclass ul li a {
    color: inherit;
}

#categories_curclass h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

/* ---------- 分类列表 ---------- */
.categories_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.result_item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: 0.15s;
}

.result_item:hover {
    background: #fafcff;
    margin: 0 -8px;
    padding: 14px 8px;
    border-radius: 12px;
    border-bottom-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.result_item:last-child {
    border-bottom: none;
}

.result_item_ico {
    width: 56px;
    height: 56px;
    background: #f1f4f9;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.result_item_ico img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.result_item_info {
    flex: 1;
    min-width: 0;
}

.result_item_info h2 {
    font-size: 16px;
    font-weight: 600;
    color: #0b1a2f;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result_item_info p {
    font-size: 13px;
    color: #5e6f8d;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 分页 ---------- */
#search_list_page {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

#search_list_page span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    background: #f1f4f9;
    font-size: 14px;
    font-weight: 500;
    color: #1f2a44;
    cursor: default;
}

#search_list_page span.active {
    background: #0b1a2f;
    color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .categories_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #categories_class_subclass ul li {
        padding: 4px 14px;
        font-size: 13px;
    }

    #categories_curclass h1 {
        font-size: 17px;
    }
}