/* 服务商详情页样式 - 助农产业风格 */

/* 页面布局重置 - 解决边缘留白问题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* 服务商详情页容器 */
.zh_service_detail_container {
    background-color: #f8f9fa;
    min-height: 100vh;
    width: 100%;
}

.zh_service_detail_container * {
    box-sizing: border-box;
}

/* 服务商详情页专用容器样式 */
.zh_service_detail_container .zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 面包屑导航 */
.zh_breadcrumb {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zh_breadcrumb_content {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
}

.zh_breadcrumb_content a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.zh_breadcrumb_content a:hover {
    opacity: 0.8;
}

.zh_separator {
    margin: 0 10px;
    opacity: 0.7;
}

.zh_current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 服务商头部信息卡片 */
.zh_service_header {
    padding: 30px 0;
    background: white;
}

.zh_service_info_card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #4CAF50;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.zh_service_image {
    flex-shrink: 0;
}

.zh_service_logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: contain;
    border: 3px solid #e8f5e8;
}

.zh_service_content {
    flex: 1;
}

.zh_service_title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.zh_service_meta {
    margin-bottom: 20px;
}

.zh_meta_item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
}

.zh_meta_item i {
    color: #4CAF50;
    width: 20px;
    margin-right: 10px;
}

.zh_meta_label {
    font-weight: 600;
    color: #555;
    margin-right: 8px;
}

.zh_meta_value {
    color: #333;
}

.zh_login_link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 12px;
    border: 1px solid #4CAF50;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.zh_login_link:hover {
    background: #4CAF50;
    color: white;
}

.zh_service_tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.zh_tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.zh_tag_verified {
    background: #e8f5e8;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.zh_tag_professional {
    background: #fff3e0;
    color: #ff9800;
    border: 1px solid #ff9800;
}

/* 通用卡片样式 */
.zh_section_card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border-top: 3px solid #4CAF50;
}

.zh_section_header {
    margin-bottom: 25px;
    text-align: center;
}

.zh_section_title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zh_section_title i {
    color: #4CAF50;
}

.zh_section_subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 服务商介绍 */
.zh_service_introduction {
    padding: 0 0 30px 0;
}

.zh_service_description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin: 0;
}

/* 服务案例展示 */
.zh_service_cases {
    padding: 0 0 30px 0;
}

.zh_cases_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.zh_case_item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.zh_case_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.zh_case_image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.zh_case_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.zh_case_item:hover .zh_case_image img {
    transform: scale(1.05);
}

.zh_case_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 175, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_case_item:hover .zh_case_overlay {
    opacity: 1;
}

.zh_case_link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.zh_case_link:hover {
    background: white;
    color: #4CAF50;
}

.zh_case_content {
    padding: 20px;
}

.zh_case_title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* 联系服务商卡片 */
.zh_contact_section {
    padding: 30px 0;
}

.zh_contact_card {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
}

.zh_contact_content {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: center;
    min-height: 300px;
}

.zh_contact_service_info {
    padding: 40px;
    color: white;
}

.zh_contact_title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.zh_contact_subtitle {
    font-size: 16px;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.zh_contact_methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zh_contact_method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.zh_contact_method i {
    font-size: 24px;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.zh_method_content {
    display: flex;
    flex-direction: column;
}

.zh_method_label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.zh_method_value {
    font-size: 18px;
    font-weight: 600;
}

.zh_login_btn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid white;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.zh_login_btn:hover {
    background: white;
    color: #4CAF50;
}

.zh_contact_image {
    height: 300px;
    overflow: hidden;
}

.zh_contact_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 推荐区域 */
.zh_recommendations {
    padding: 30px 0;
}

.zh_recommendations_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.zh_recommendation_item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.zh_recommendation_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.zh_rec_image {
    height: 180px;
    overflow: hidden;
}

.zh_rec_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.zh_recommendation_item:hover .zh_rec_image img {
    transform: scale(1.05);
}

.zh_rec_content {
    padding: 20px;
}

.zh_rec_title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.zh_rec_link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.zh_rec_link:hover {
    color: #45a049;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zh_service_detail_container .zh_container {
        padding: 0 10px;
    }
    
    .zh_service_info_card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .zh_service_logo {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .zh_service_title {
        font-size: 24px;
    }
    
    .zh_section_card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .zh_section_title {
        font-size: 20px;
        flex-direction: column;
        gap: 5px;
    }
    
    .zh_cases_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zh_contact_content {
        grid-template-columns: 1fr;
    }
    
    .zh_contact_image {
        height: 200px;
    }
    
    .zh_contact_service_info {
        padding: 30px 20px;
    }
    
    .zh_contact_title {
        font-size: 22px;
    }
    
    .zh_recommendations_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .zh_breadcrumb_content {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .zh_separator {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .zh_service_title {
        font-size: 20px;
    }
    
    .zh_section_title {
        font-size: 18px;
    }
    
    .zh_service_info_card {
        padding: 15px;
    }
    
    .zh_section_card {
        padding: 15px;
    }
    
    .zh_contact_service_info {
        padding: 20px 15px;
    }
    
    .zh_contact_title {
        font-size: 20px;
    }
    
    .zh_meta_item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .zh_service_tags {
        justify-content: center;
    }
}

/* 动画增强 - 仅针对服务商详情页 */
.zh_service_detail_container .zh_case_item,
.zh_service_detail_container .zh_recommendation_item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态优化 - 仅针对服务商详情页 */
.zh_service_detail_container img {
    transition: opacity 0.3s ease;
}

.zh_service_detail_container img:not([src]) {
    opacity: 0;
}

/* 打印样式 - 仅针对服务商详情页 */
@media print {
    .zh_service_detail_container .zh_contact_section,
    .zh_service_detail_container .zh_recommendations {
        display: none;
    }
    
    .zh_service_detail_container {
        background: white;
    }
    
    .zh_service_detail_container .zh_section_card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
