/* 搜索和筛选UI优化样式 */

/* 分类容器：居中 + 自动换行 + 间距 */
.category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;              /* 按钮之间的间隙 */
    margin: 14px auto 18px; /* 放在标题下更舒服 */
    max-width: 980px;
    padding: 0 16px;
}

/* 分类按���：更大更圆润 */
.category-pill {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 40px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    white-space: nowrap;
}

/* hover/active 效果（更精致） */
.category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    border-color: rgba(31,94,255,.25);
}

.category-pill.active {
    background: rgba(31,94,255,.10);
    border-color: rgba(31,94,255,.35);
    color: #1f5eff;
    font-weight: 700;
}

/* 搜索框容器 */
.search-wrap {
    position: relative;
    max-width: 980px;
    margin: 0 auto 10px;
    padding: 0 16px;
}

.search-input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 44px 0 16px; /* 右侧留出图标空间 */
    outline: none;
    background: #fff;
    font-size: 14px;
}

.search-input:focus {
    border-color: rgba(31,94,255,.45);
    box-shadow: 0 0 0 4px rgba(31,94,255,.10);
}

.search-icon-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(31,94,255,.10);
    color: #1f5eff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-icon-btn:hover {
    background: rgba(31,94,255,.16);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-pills {
        gap: 8px;
        margin: 10px auto 14px;
        padding: 0 12px;
    }

    .category-pill {
        height: 36px;
        padding: 0 14px;
        font-size: 13px;
        line-height: 36px;
    }

    .search-wrap {
        padding: 0 12px;
    }

    .search-input {
        height: 40px;
        font-size: 13px;
    }

    .search-icon-btn {
        width: 32px;
        height: 32px;
        right: 16px;
    }
}