/* ===== 服务产品商城页面专用样式 ===== */

/* ===== 页面标题区 ===== */
.services-hero {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--neutral-200);
}

/* ===== 筛选工具栏 ===== */
.filter-section {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
}

/* 分类栏 */
.category-bar {
    padding: 1rem 0 0;
}

/* 标签页 - PC和移动端通用 */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--neutral-100);
    border: 1.5px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-600);
}

.category-tab i {
    font-size: 1rem;
}

.category-tab:hover {
    background: var(--neutral-200);
    color: var(--primary-900);
}

.category-tab.active {
    background: var(--primary-900);
    border-color: var(--primary-900);
    color: white;
}

/* 搜索+排序栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--neutral-100);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 2.5rem;
    border: 1.5px solid var(--neutral-200);
    border-radius: 50px;
    font-size: 0.9rem;
    background: var(--neutral-50);
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--neutral-200);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neutral-600);
    font-size: 0.65rem;
    transition: all 0.2s;
}

.search-clear:hover {
    background: var(--neutral-300);
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.result-count {
    font-size: 0.85rem;
    color: var(--neutral-500);
    white-space: nowrap;
}

.result-count span {
    font-weight: 700;
    color: var(--primary-900);
}

.sort-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--neutral-100);
    border: 1.5px solid var(--neutral-200);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--neutral-600);
    transition: all 0.2s;
}

.sort-btn i {
    font-size: 0.9rem;
}

.sort-btn:hover {
    border-color: var(--neutral-300);
    background: var(--neutral-200);
}

.sort-btn select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .filter-section {
        top: 56px;
    }

    .category-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .search-box {
        max-width: 100%;
        order: 1;
    }

    .filter-right {
        width: 100%;
        order: 2;
        justify-content: space-between;
    }
}

/* ===== 服务列表区 ===== */
.services-list-section {
    padding: var(--section-gap) 0;
    background: var(--neutral-50);
}

/* ===== 服务卡片扩展样式 ===== */
.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.btn-favorite {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--neutral-400);
    font-size: 1.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-favorite:hover {
    color: var(--accent-500);
    transform: scale(1.1);
}

.btn-favorite.active {
    color: var(--accent-500);
}

.btn-favorite.active i::before {
    content: "\f47a";
    /* bi-heart-fill */
}

.service-card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.service-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-card-stats .stat-item i {
    font-size: 0.85rem;
}

.service-card-stats .stat-item i.bi-star-fill {
    color: #ffc107;
}

.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.service-card-tags .tag {
    background: var(--neutral-100);
    color: var(--neutral-600);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.service-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-100);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-actions {
    display: flex;
    gap: 0.5rem;
}

.service-card-btn.btn-outline {
    background: transparent;
    color: var(--primary-900);
    border: 1px solid var(--primary-900);
}

.service-card-btn.btn-outline:hover {
    background: var(--primary-900);
    color: white;
}

/* ===== 加载状态 ===== */
.loading-state {
    padding: 3rem 0;
}

/* ===== 无结果提示 ===== */
.no-results {
    padding: 3rem 0;
}

/* ===== 中间转化区 ===== */
.mid-cta-section {
    padding: 3rem 0;
    background: white;
}

.mid-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
    border-radius: var(--radius-lg);
    gap: 2rem;
    flex-wrap: wrap;
}

.mid-cta-text h3 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mid-cta-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.mid-cta-btn {
    background: var(--accent-500);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.mid-cta-btn:hover {
    background: var(--accent-400);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* ===== 服务保障区 ===== */
.guarantee-section {
    padding: var(--section-gap) 0;
    background: var(--neutral-100);
}

.guarantee-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
    height: 100%;
}

.guarantee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border-color: var(--accent-300);
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: white;
}

.guarantee-card h4 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-900);
    margin-bottom: 0.5rem;
}

.guarantee-card p {
    color: var(--neutral-600);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== 响应式调整 ===== */
@media (max-width: 991px) {
    .toolbar-section {
        top: 56px;
    }

    .category-tabs {
        gap: 0.75rem;
    }

    .category-tab {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }

    .category-tab i {
        font-size: 1.25rem;
    }

    .category-tab span {
        font-size: 0.75rem;
    }

    .mid-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .mid-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-box {
        max-width: 100%;
    }

    .service-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-actions {
        width: 100%;
    }

    .service-actions .service-card-btn {
        flex: 1;
        text-align: center;
    }

    .service-card-stats {
        flex-wrap: wrap;
    }
}

/* ===== 动画过渡 ===== */
.service-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-item.hidden {
    display: none;
}
