/* 服务商列表页面样式 - 农业助农风格 */

/* 基础变量定义 */
:root {
    --zh-primary-green: #4CAF50;
    --zh-dark-green: #388E3C;
    --zh-light-green: #C8E6C9;
    --zh-accent-green: #66BB6A;
    --zh-earth-brown: #8D6E63;
    --zh-light-earth: #F5F5DC;
    --zh-text-dark: #2E2E2E;
    --zh-text-gray: #666666;
    --zh-border-light: #E8F5E8;
    --zh-shadow-light: rgba(76, 175, 80, 0.1);
    --zh-shadow-medium: rgba(76, 175, 80, 0.2);
    --zh-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

.zh_main-container {
    background-color: #FAFAFA;
    min-height: 100vh;
}

.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.zh_breadcrumb-section {
    background: linear-gradient(135deg, var(--zh-primary-green), var(--zh-accent-green));
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--zh-shadow-light);
}

.zh_breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: white;
}

.zh_breadcrumb a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--zh-transition);
    padding: 5px 10px;
    border-radius: 20px;
}

.zh_breadcrumb a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.zh_separator {
    margin: 0 10px;
    font-weight: bold;
}

.zh_current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 页面标题区域 */
.zh_page-header {
    background: linear-gradient(135deg, var(--zh-light-earth), white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zh_page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" x="0" y="0" width="4" height="4" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.5" fill="%23C8E6C9" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.zh_header-content {
    position: relative;
    z-index: 1;
}

.zh_page-title {
    font-size: 2.5rem;
    color: var(--zh-text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
}

.zh_page-title i {
    color: var(--zh-primary-green);
    font-size: 2.2rem;
}

.zh_page-subtitle {
    font-size: 1.1rem;
    color: var(--zh-text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 搜索筛选区域 */
.zh_filter-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--zh-border-light);
}

.zh_filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: space-between;
}

.zh_search-wrapper {
    display: flex;
    min-width: 320px;
    position: relative;
    flex: 1;
    max-width: 450px;
}

.zh_search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--zh-border-light);
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: var(--zh-transition);
    background: #FAFAFA;
}

.zh_search-input:focus {
    border-color: var(--zh-primary-green);
    background: white;
    box-shadow: 0 4px 12px var(--zh-shadow-light);
}

.zh_search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    background: var(--zh-primary-green);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_search-btn:hover {
    background: var(--zh-dark-green);
    transform: translateY(-50%) scale(1.05);
}

.zh_filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.zh_filter-btn {
    padding: 12px 20px;
    border: 2px solid var(--zh-border-light);
    background: white;
    color: var(--zh-text-gray);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.zh_filter-btn:hover,
.zh_filter-btn.zh_active {
    background: var(--zh-primary-green);
    color: white;
    border-color: var(--zh-primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--zh-shadow-medium);
}

/* 服务商列表区域 */
.zh_providers-section {
    padding: 50px 0;
    background: #FAFAFA;
}

.zh_providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.zh_provider-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--zh-transition);
    border: 1px solid var(--zh-border-light);
}

.zh_provider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--zh-shadow-medium);
}

.zh_card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.zh_provider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--zh-light-earth);
    transition: var(--zh-transition);
}

.zh_provider-card:hover .zh_provider-image {
    transform: scale(1.05);
}

.zh_verified-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--zh-primary-green);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px var(--zh-shadow-medium);
}

.zh_card-content {
    padding: 25px;
}

.zh_provider-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--zh-text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.zh_provider-info {
    margin-bottom: 20px;
}

.zh_info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--zh-text-gray);
}

.zh_info-item i {
    color: var(--zh-primary-green);
    width: 16px;
    flex-shrink: 0;
}

.zh_rating {
    color: var(--zh-primary-green);
    font-weight: 600;
}

.zh_reviews {
    color: var(--zh-text-gray);
    font-size: 13px;
}

.zh_service-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zh_tag {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.zh_tag-repair {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
}

.zh_tag-rental {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
}

.zh_tag-service {
    background: linear-gradient(45deg, var(--zh-primary-green), var(--zh-accent-green));
}

.zh_provider-services {
    border-top: 1px solid var(--zh-border-light);
    padding-top: 20px;
}

.zh_services-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--zh-text-dark);
    margin-bottom: 12px;
}

.zh_services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zh_services-list li {
    margin-bottom: 8px;
}

.zh_services-list a {
    color: var(--zh-text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.zh_services-list a:hover {
    color: var(--zh-primary-green);
    padding-left: 10px;
}

.zh_services-list a::before {
    content: '•';
    color: var(--zh-primary-green);
    margin-right: 8px;
    font-weight: bold;
}

.zh_card-footer {
    background: var(--zh-light-earth);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--zh-border-light);
}

.zh_view-details-btn {
    background: linear-gradient(45deg, var(--zh-primary-green), var(--zh-accent-green));
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px var(--zh-shadow-light);
    width: 100%;
    justify-content: center;
}

.zh_view-details-btn:hover {
    background: linear-gradient(45deg, var(--zh-dark-green), var(--zh-primary-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--zh-shadow-medium);
}

/* 加载更多按钮 */
.zh_load-more-section {
    text-align: center;
    margin-bottom: 40px;
}

.zh_load-more-btn {
    background: linear-gradient(45deg, var(--zh-primary-green), var(--zh-accent-green));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--zh-transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--zh-shadow-medium);
}

.zh_load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--zh-shadow-medium);
}

/* 分页区域 */
.zh_pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--zh-border-light);
}

.zh_pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.zh_page-btn {
    padding: 10px 15px;
    border: 1px solid var(--zh-border-light);
    background: white;
    color: var(--zh-text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--zh-transition);
    min-width: 45px;
    text-align: center;
    font-weight: 500;
}

.zh_page-btn:hover:not(.zh_disabled) {
    background: var(--zh-primary-green);
    color: white;
    border-color: var(--zh-primary-green);
}

.zh_page-btn.zh_active {
    background: var(--zh-primary-green);
    color: white;
    border-color: var(--zh-primary-green);
}

.zh_page-btn.zh_disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zh_page-ellipsis {
    color: var(--zh-text-gray);
    padding: 0 5px;
}

.zh_page-info {
    color: var(--zh-text-gray);
    font-size: 14px;
}

.zh_page-info strong {
    color: var(--zh-primary-green);
    font-weight: 700;
}

/* 推荐服务区域 */
.zh_recommendation-section {
    background: white;
    padding: 60px 0;
    border-top: 3px solid var(--zh-primary-green);
}

.zh_section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--zh-text-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
}

.zh_section-title i {
    color: var(--zh-primary-green);
}

.zh_recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.zh_recommendation-card {
    background: white;
    border: 2px solid var(--zh-border-light);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--zh-transition);
    position: relative;
    display: block;
}

.zh_recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s;
}

.zh_recommendation-card:hover::before {
    left: 100%;
}

.zh_recommendation-card:hover {
    transform: translateY(-8px);
    border-color: var(--zh-primary-green);
    box-shadow: 0 15px 35px var(--zh-shadow-medium);
}

.zh_rec-thumb {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.zh_rec-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--zh-transition);
}

.zh_recommendation-card:hover .zh_rec-image {
    transform: scale(1.05);
}

.zh_rec-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.zh_rec-content h3 {
    color: var(--zh-text-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.zh_rec-content p {
    color: var(--zh-text-gray);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* 分页样式调整 */
.zh_pagination-wrapper {
    text-align: center;
}

.zh_pagination-wrapper .pagination {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.zh_pagination-wrapper .pagination a,
.zh_pagination-wrapper .pagination span {
    padding: 10px 15px;
    border: 1px solid var(--zh-border-light);
    background: white;
    color: var(--zh-text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--zh-transition);
    min-width: 45px;
    text-align: center;
    font-weight: 500;
}

.zh_pagination-wrapper .pagination a:hover {
    background: var(--zh-primary-green);
    color: white;
    border-color: var(--zh-primary-green);
}

.zh_pagination-wrapper .pagination .current {
    background: var(--zh-primary-green);
    color: white;
    border-color: var(--zh-primary-green);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zh_container {
        padding: 0 15px;
    }
    
    .zh_page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .zh_filter-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zh_search-wrapper {
        min-width: auto;
        max-width: none;
    }
    
    .zh_filter-tabs {
        justify-content: center;
    }
    
    .zh_providers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zh_pagination-section {
        flex-direction: column;
        text-align: center;
    }
    
    .zh_recommendation-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .zh_card-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .zh_page-header {
        padding: 40px 0;
    }
    
    .zh_page-title {
        font-size: 1.8rem;
    }
    
    .zh_provider-card {
        margin: 0 -10px;
    }
    
    .zh_filter-tabs {
        gap: 10px;
    }
    
    .zh_filter-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .zh_recommendation-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画增强 */
@keyframes zh_slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zh_provider-card {
    animation: zh_slideInUp 0.6s ease-out forwards;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--zh-light-earth);
}

::-webkit-scrollbar-thumb {
    background: var(--zh-primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zh-dark-green);
}

/* 加载动画 */
.zh_loading {
    opacity: 0.7;
    pointer-events: none;
}

.zh_loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid var(--zh-light-green);
    border-top: 3px solid var(--zh-primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
