/* 家政服务信息列表页面样式 */
/* 使用清新蓝#00BCD4作为主色调，现代便民风格设计 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-3, .col-lg-9, .col-md-4, .col-md-8 {
    padding: 0 15px;
}

.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-9 { flex: 0 0 75%; max-width: 75%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }

/* 面包屑导航 */
.zh_breadcrumb {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    padding: 15px 0;
    margin-bottom: 30px;
}

.zh_breadcrumb .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.zh_breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.zh_breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

.zh_breadcrumb .breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zh_breadcrumb .breadcrumb-item a:hover {
    color: #B2EBF2;
}

.zh_breadcrumb .breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

/* 主要内容区域 */
.zh_main_content {
    padding: 0 0 60px 0;
}

/* 左侧筛选栏 */
.zh_filter_sidebar {
    margin-bottom: 30px;
}

.zh_filter_card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 188, 212, 0.08);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.zh_filter_title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E0F7FA;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_filter_title i {
    color: #00BCD4;
    font-size: 16px;
}

.zh_filter_group {
    margin-bottom: 25px;
}

.zh_filter_group h5 {
    color: #555;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* 服务分类列表 */
.zh_category_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zh_category_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.zh_category_item:hover {
    background: #E0F7FA;
    border-color: #00BCD4;
    color: #00BCD4;
    text-decoration: none;
}

.zh_category_item.active {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: white;
    border-color: #00BCD4;
}

.zh_category_item i {
    font-size: 14px;
    width: 16px;
}

/* 搜索区域 */
.zh_search_section {
    margin-bottom: 25px;
}

.zh_search_card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 188, 212, 0.08);
    padding: 20px;
}

.zh_search_box {
    display: flex;
    gap: 12px;
}

.zh_search_input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #E0F7FA;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.zh_search_input:focus {
    border-color: #00BCD4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.zh_search_btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.zh_search_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

/* 工具栏 */
.zh_toolbar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 188, 212, 0.08);
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.zh_sort_tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.zh_sort_tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #E0F7FA;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zh_sort_tab:hover {
    background: #E0F7FA;
    border-color: #00BCD4;
    color: #00BCD4;
}

.zh_sort_tab.active {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: white;
    border-color: #00BCD4;
}

.zh_view_mode {
    display: flex;
    gap: 4px;
}

.zh_view_btn {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #E0F7FA;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_view_btn:hover {
    background: #E0F7FA;
    border-color: #00BCD4;
    color: #00BCD4;
}

.zh_view_btn.active {
    background: #00BCD4;
    color: white;
    border-color: #00BCD4;
}

/* 内容区域 */
.zh_content_area {
    position: relative;
}

.zh_sort_content {
    display: none;
}

.zh_sort_content.active {
    display: block;
}

/* 服务列表 */
.zh_service_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zh_service_list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.zh_service_item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zh_service_card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 188, 212, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.zh_service_list.grid-view .zh_service_card {
    flex-direction: column;
    padding: 0;
}

.zh_service_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.15);
}

.zh_service_image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.zh_service_list.grid-view .zh_service_image {
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
}

.zh_service_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.zh_service_card:hover .zh_service_image img {
    transform: scale(1.05);
}

.zh_service_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: #00BCD4;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.zh_service_badge.new {
    background: #00BCD4;
}

.zh_service_badge.hot {
    background: #FF5722;
}

.zh_service_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zh_service_list.grid-view .zh_service_content {
    padding: 20px;
}

.zh_service_title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.zh_service_title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_service_title a:hover {
    color: #00BCD4;
}

.zh_service_meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.zh_service_type,
.zh_service_area {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.zh_service_type i,
.zh_service_area i {
    color: #00BCD4;
    font-size: 12px;
}

.zh_service_desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_service_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.zh_service_price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.zh_price_label {
    font-size: 13px;
    color: #666;
}

.zh_price_value {
    font-size: 16px;
    font-weight: 600;
    color: #FF5722;
}

.zh_service_rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_stars {
    display: flex;
    gap: 2px;
}

.zh_stars i {
    color: #FFB300;
    font-size: 12px;
}

.zh_rating_text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.zh_service_contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.zh_service_contact_info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zh_service_phone,
.zh_service_time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.zh_service_phone i,
.zh_service_time i {
    color: #00BCD4;
    font-size: 12px;
}

.zh_service_actions {
    display: flex;
    gap: 10px;
}

.zh_contact_btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zh_contact_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 112, 67, 0.3);
}

.zh_collect_btn {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #E0F7FA;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_collect_btn:hover {
    background: #E0F7FA;
    border-color: #00BCD4;
    color: #00BCD4;
}

/* 分页 */
.zh_pagination_wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.zh_pagination {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 188, 212, 0.08);
    padding: 20px;
}

/* YZN CMS分页样式 - 针对实际HTML结构 */
.zh_pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.zh_pagination .pagination a {
    display: inline-block;
    padding: 8px 12px;
    min-width: 40px;
    height: 40px;
    line-height: 24px;
    text-align: center;
    color: #666;
    text-decoration: none;
    background: #f8f9fa;
    border: 1px solid #E0F7FA;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

.zh_pagination .pagination a:hover {
    background: #E0F7FA;
    border-color: #00BCD4;
    color: #00BCD4;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

/* 当前页样式 - YZN CMS使用class="cur" */
.zh_pagination .pagination a.cur {
    background: #00BCD4;
    border-color: #00BCD4;
    color: white;
    cursor: default;
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.3);
}

.zh_pagination .pagination a.cur:hover {
    background: #00BCD4;
    border-color: #00BCD4;
    color: white;
    transform: none;
}



/* 信任提示区域 */
.zh_trust_section {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    padding: 50px 0;
    margin-top: 60px;
}

.zh_trust_content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.zh_trust_item {
    text-align: center;
    color: white;
}

.zh_trust_item i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.zh_trust_item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.zh_trust_item p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .col-lg-3, .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .zh_filter_sidebar {
        order: 2;
        margin-top: 30px;
    }
    
    .zh_filter_card {
        position: static;
    }
}

@media (max-width: 768px) {
    .col-md-4, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .zh_service_card {
        flex-direction: column;
        padding: 15px;
    }
    
    .zh_service_image {
        width: 100%;
        height: 200px;
    }
    
    .zh_toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zh_sort_tabs {
        justify-content: center;
    }
    
    .zh_view_mode {
        justify-content: center;
    }
    
    .zh_search_box {
        flex-direction: column;
    }
    
    .zh_service_contact {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .zh_service_actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .zh_main_content {
        padding: 0 0 40px 0;
    }
    
    .zh_filter_card,
    .zh_search_card,
    .zh_toolbar {
        padding: 15px;
    }
    
    .zh_service_card {
        padding: 12px;
    }
    
    .zh_sort_tabs {
        gap: 5px;
    }
    
    .zh_sort_tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .zh_trust_content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .zh_trust_item i {
        font-size: 36px;
    }
}

/* 加载动画 */
.zh_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.zh_loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00BCD4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
