/* 服务页面样式 */

/* 服务分类导航 */
.category-nav {
    background-color: #fff;
    padding: 10px 0;
    margin-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow);
}

.category-scroll {
    padding: 0 10px;
}

.category-nav-item {
    display: inline-block;
    padding: 5px 12px;
    margin-right: 8px;
    border-radius: 15px;
    color: var(--dark-color);
    font-size: 14px;
    text-decoration: none;
    background-color: #f5f7fa;
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* 筛选区域 */
.filter-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.filter-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-option {
    flex: 1;
    padding: 0 5px;
}

.filter-option select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
}

.filter-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 0;
    height: 42px;
}

.filter-bar {
    display: flex;
    background-color: #fff;
    padding: 10px 15px;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow);
}

.filter-item {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: var(--dark-color);
    position: relative;
    padding: 5px 0;
}

.filter-item.active {
    color: var(--primary-color);
}

.filter-item::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

/* 服务列表 */
.service-list {
    padding: 15px;
}

/* 服务项目样式 */
.service-item {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--dark-color);
}

.service-image {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    float: left;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-category {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0 0 8px 0;
}

.service-content {
    overflow: hidden;
}

.service-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.service-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
}

.service-tag {
    background: #f5f7fa;
    color: var(--primary-color);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
    margin-bottom: 5px;
}

.service-price {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: 600;
}

.service-price small {
    font-size: 12px;
    font-weight: normal;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 加载更多和暂无内容 */
.no-more {
    text-align: center;
    color: var(--gray-color);
    padding: 20px 0;
    font-size: 14px;
}

.load-more {
    display: block;
    width: 80%;
    margin: 15px auto;
    padding: 10px 0;
    text-align: center;
    background-color: #f5f5f5;
    color: var(--gray-color);
    border-radius: 4px;
    font-size: 14px;
} 