/* 服务商列表页面样式 */

/* ===================
   基础样式重置
=================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================
   容器和布局
=================== */
.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_fws_container {
    background: #FFFFFF;
    min-height: 100vh;
}

/* ===================
   页面头部区域
=================== */
.zh_fws_header {
    background: linear-gradient(135deg, #D32F2F 0%, #F44336 100%);
    color: #FFFFFF;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.zh_fws_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1556761175-4b46a572b786?w=1200&h=400&fit=crop') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.zh_fws_header .zh_container {
    position: relative;
    z-index: 2;
}

.zh_breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.zh_breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_breadcrumb a:hover {
    color: #FFFFFF;
}

.zh_separator {
    margin: 0 10px;
    opacity: 0.7;
}

.zh_current {
    color: #F9A825;
    font-weight: 500;
}

.zh_page_title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.zh_page_desc {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 30px 0;
    max-width: 600px;
}

/* 统计数据栏 */
.zh_stats_bar {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.zh_stat_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.zh_stat_item i {
    font-size: 24px;
    color: #F9A825;
    margin-bottom: 8px;
}

.zh_stat_num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.zh_stat_label {
    font-size: 14px;
    opacity: 0.8;
}

/* ===================
   筛选工具栏
=================== */
.zh_filter_toolbar {
    background: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.zh_toolbar_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.zh_filter_left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zh_filter_right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.zh_filter_group,
.zh_sort_group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_filter_label,
.zh_sort_label {
    font-size: 14px;
    color: #616161;
    font-weight: 500;
}

.zh_filter_select,
.zh_sort_select {
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    color: #212121;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zh_filter_select:hover,
.zh_sort_select:hover {
    border-color: #D32F2F;
}

.zh_filter_select:focus,
.zh_sort_select:focus {
    outline: none;
    border-color: #D32F2F;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
}

.zh_view_toggle {
    display: flex;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
}

.zh_view_btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #757575;
    transition: all 0.3s ease;
}

.zh_view_btn:hover {
    background: #F5F5F5;
}

.zh_view_btn.active {
    background: #D32F2F;
    color: #FFFFFF;
}

/* ===================
   内容区域
=================== */
.zh_content_area {
    padding: 40px 0 60px;
    background: #F5F5F5;
}

/* ===================
   服务商网格布局
=================== */
.zh_fws_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.zh_fws_grid.zh_list_view {
    grid-template-columns: 1fr;
}

.zh_fws_grid.zh_list_view .zh_fws_card {
    display: flex;
    flex-direction: row;
    max-width: none;
}

.zh_fws_grid.zh_list_view .zh_fws_header_card {
    flex: 0 0 300px;
}

.zh_fws_grid.zh_list_view .zh_fws_content {
    flex: 1;
    padding: 20px;
}

.zh_fws_grid.zh_list_view .zh_fws_works {
    display: none;
}

/* ===================
   服务商卡片样式
=================== */
.zh_fws_card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: zh_fadeInUp 0.8s ease-out;
}

.zh_fws_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* 卡片头部 */
.zh_fws_header_card {
    padding: 25px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.zh_fws_avatar {
    position: relative;
    flex-shrink: 0;
}

.zh_avatar_img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F5F5F5;
}

.zh_verify_badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #4CAF50;
    color: #FFFFFF;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #FFFFFF;
}

.zh_fws_basic_info {
    flex: 1;
}

.zh_fws_name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.zh_fws_name a {
    color: #212121;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_fws_name a:hover {
    color: #D32F2F;
}

.zh_fws_tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.zh_tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.zh_tag_primary {
    background: rgba(211, 47, 47, 0.1);
    color: #D32F2F;
}

.zh_tag_secondary {
    background: rgba(249, 168, 37, 0.1);
    color: #F9A825;
}

.zh_fws_rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_stars {
    display: flex;
    gap: 2px;
}

.zh_stars i {
    color: #FFD700;
    font-size: 14px;
}

.zh_rating_score {
    font-weight: 600;
    color: #212121;
}

.zh_rating_count {
    font-size: 12px;
    color: #757575;
}

.zh_fws_actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zh_btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    text-decoration: none;
}

.zh_btn_primary {
    background: #D32F2F;
    color: #FFFFFF;
}

.zh_btn_primary:hover {
    background: #B71C1C;
    transform: translateY(-1px);
}

.zh_btn_outline {
    background: transparent;
    border: 1px solid #E0E0E0;
    color: #757575;
}

.zh_btn_outline:hover {
    border-color: #D32F2F;
    color: #D32F2F;
}

.zh_btn_outline.zh_favorited {
    background: rgba(211, 47, 47, 0.1);
    border-color: #D32F2F;
    color: #D32F2F;
}

/* ===================
   卡片内容区域
=================== */
.zh_fws_content {
    padding: 25px;
}

.zh_fws_description {
    margin-bottom: 20px;
}

.zh_fws_description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #616161;
}

.zh_fws_info_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.zh_info_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.zh_info_item i {
    color: #D32F2F;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.zh_info_label {
    color: #757575;
    font-weight: 500;
}

.zh_info_value {
    color: #212121;
    font-weight: 600;
}

/* ===================
   作品展示区域
=================== */
.zh_fws_works {
    border-top: 1px solid #F0F0F0;
    padding-top: 20px;
}

.zh_works_title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #212121;
}

.zh_works_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.zh_work_item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.zh_work_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zh_work_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_work_item:hover .zh_work_overlay {
    opacity: 1;
}

.zh_work_item:hover .zh_work_img {
    transform: scale(1.05);
}

.zh_work_link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* ===================
   卡片底部
=================== */
.zh_fws_footer {
    padding: 20px 25px;
    border-top: 1px solid #F0F0F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAFAFA;
}

.zh_fws_stats {
    display: flex;
    gap: 20px;
}

.zh_stat_mini {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #757575;
}

.zh_stat_mini i {
    color: #D32F2F;
}

.zh_fws_join_time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #757575;
}

.zh_fws_join_time i {
    color: #757575;
}

/* ===================
   分页区域
=================== */
.zh_pagination_area {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    color: #616161;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #D32F2F;
    background: #D32F2F;
    color: #FFFFFF;
}

.pagination a.cur {
    background: #D32F2F;
    border-color: #D32F2F;
    color: #FFFFFF;
}

.pagination a.cur:hover {
    background: #B71C1C;
    border-color: #B71C1C;
}

.pagination a:first-child,
.pagination a:last-child {
    width: auto;
    padding: 0 16px;
}

.pagination a:first-child:hover,
.pagination a:last-child:hover {
    background: #F5F5F5;
    color: #D32F2F;
}

/* ===================
   响应式设计
=================== */
@media (max-width: 1024px) {
    .zh_container {
        padding: 0 15px;
    }
    
    .zh_fws_grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
    
    .zh_stats_bar {
        gap: 30px;
    }
    
    .zh_page_title {
        font-size: 36px;
    }
    
    .zh_toolbar_content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .zh_filter_left {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .zh_fws_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_fws_grid.zh_list_view .zh_fws_card {
        flex-direction: column;
    }
    
    .zh_fws_grid.zh_list_view .zh_fws_header_card {
        flex: none;
    }
    
    .zh_fws_header {
        padding: 40px 0 30px;
    }
    
    .zh_page_title {
        font-size: 28px;
    }
    
    .zh_page_desc {
        font-size: 16px;
    }
    
    .zh_stats_bar {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .zh_filter_left {
        width: 100%;
        justify-content: center;
    }
    
    .zh_filter_right {
        width: 100%;
        justify-content: center;
    }
    
    .zh_fws_header_card {
        padding: 20px;
    }
    
    .zh_fws_content {
        padding: 20px;
    }
    
    .zh_fws_info_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_fws_actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .zh_btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .zh_container {
        padding: 0 10px;
    }
    
    .zh_page_title {
        font-size: 24px;
    }
    
    .zh_page_desc {
        font-size: 14px;
    }
    
    .zh_fws_header_card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .zh_fws_basic_info {
        flex: none;
    }
    
    .zh_fws_actions {
        flex-direction: row;
        width: 100%;
    }
    
    .zh_works_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zh_content_area {
        padding: 20px 0 40px;
    }
    
    .zh_filter_group,
    .zh_sort_group {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .zh_filter_select,
    .zh_sort_select {
        width: 100%;
    }
    
    .zh_stats_bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .zh_pagination_area {
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .pagination {
        min-width: max-content;
    }
    
    .pagination::-webkit-scrollbar {
        height: 4px;
    }
    
    .pagination::-webkit-scrollbar-track {
        background: #F5F5F5;
    }
    
    .pagination::-webkit-scrollbar-thumb {
        background: #D32F2F;
        border-radius: 2px;
    }
    
    .pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .pagination a:first-child,
    .pagination a:last-child {
        padding: 0 12px;
    }
}

/* ===================
   动画效果
=================== */
@keyframes zh_fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zh_fws_card:nth-child(1) { animation-delay: 0.1s; }
.zh_fws_card:nth-child(2) { animation-delay: 0.2s; }
.zh_fws_card:nth-child(3) { animation-delay: 0.3s; }
.zh_fws_card:nth-child(4) { animation-delay: 0.4s; }
.zh_fws_card:nth-child(5) { animation-delay: 0.5s; }
.zh_fws_card:nth-child(6) { animation-delay: 0.6s; }
.zh_fws_card:nth-child(7) { animation-delay: 0.7s; }
.zh_fws_card:nth-child(8) { animation-delay: 0.8s; }
.zh_fws_card:nth-child(9) { animation-delay: 0.9s; }

/* ===================
   辅助样式
=================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: #D32F2F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B71C1C;
}

/* 加载状态 */
.zh_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    font-size: 14px;
    color: #757575;
}

/* 空状态 */
.zh_empty_state {
    text-align: center;
    padding: 60px 20px;
    color: #757575;
}

.zh_empty_state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #BDBDBD;
}

.zh_empty_state h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #616161;
}

.zh_empty_state p {
    font-size: 14px;
    margin: 0;
}
