/* 首页样式 - 新能源信息发布平台 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Hero Banner 区域 */
.zh_hero {
    background: linear-gradient(135deg, #248160, #2a9d6e);
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.zh_hero_content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.zh_hero_left {
    text-align: left;
}

.zh_hero_right {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.zh_hero_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_hero_title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.zh_hero_subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.zh_hero_buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.zh_btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.zh_btn_primary {
    background: #a8e6cf;
    color: #248160;
}

.zh_btn_primary:hover {
    background: #90d7b5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(168, 230, 207, 0.3);
}

.zh_btn_outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.zh_btn_outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* 统计数据区域 */
.zh_stats {
    background: white;
    padding: 60px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.zh_stats_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_stats_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.zh_stat_item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s;
}

.zh_stat_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(36, 129, 96, 0.1);
}

.zh_stat_icon {
    font-size: 3rem;
    color: #248160;
    margin-bottom: 15px;
}

.zh_stat_number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #248160;
    margin-bottom: 10px;
}

.zh_stat_label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

/* 服务展示区域 */
.zh_services {
    padding: 80px 0;
    background: #f8f9fa;
}

.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_section_header {
    text-align: center;
    margin-bottom: 60px;
}

.zh_section_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #248160;
    margin-bottom: 15px;
}

.zh_section_subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.zh_services_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.zh_service_card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.zh_service_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #248160, #a8e6cf);
}

.zh_service_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(36, 129, 96, 0.2);
}

.zh_service_icon {
    font-size: 3.5rem;
    color: #248160;
    margin-bottom: 20px;
}

.zh_service_title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.zh_service_desc {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.8;
}

.zh_service_link {
    color: #248160;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.zh_service_link:hover {
    color: #1a6b4f;
    transform: translateX(5px);
}

/* 排序选项 */
.zh_sort_tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.zh_sort_tab {
    padding: 12px 25px;
    border: 2px solid #248160;
    background: transparent;
    color: #248160;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.zh_sort_tab.active,
.zh_sort_tab:hover {
    background: #248160;
    color: white;
    transform: translateY(-2px);
}

/* 内容展示区域 */
.zh_content_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.zh_content_item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.zh_content_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.zh_content_image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.zh_content_item:hover .zh_content_image {
    transform: scale(1.05);
}

.zh_content_body {
    padding: 20px;
}

.zh_content_title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.zh_content_meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.zh_provider_thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* 服务商展示区域 */
.zh_providers {
    padding: 80px 0;
    background: white;
}

.zh_provider_card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.zh_provider_card:hover {
    transform: translateY(-5px);
    border-color: #248160;
    background: white;
    box-shadow: 0 15px 30px rgba(36, 129, 96, 0.1);
}

.zh_provider_avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #248160;
}

.zh_provider_name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.zh_provider_count {
    color: #248160;
    font-weight: 600;
    margin-bottom: 20px;
}

.zh_provider_works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.zh_provider_work {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.zh_provider_work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.zh_provider_work:hover img {
    transform: scale(1.1);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zh_fade_in {
    animation: fadeInUp 0.6s ease-out;
}

/* 分类展示区域 */
.zh_category_section {
    padding: 80px 0;
    background: #f8f9fa;
}

.zh_category_tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.zh_category_tab {
    padding: 15px 30px;
    background: white;
    border: 2px solid #248160;
    border-radius: 30px;
    color: #248160;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_category_tab.active,
.zh_category_tab:hover {
    background: #248160;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(36, 129, 96, 0.3);
}

.zh_category_content {
    display: none;
}

.zh_category_content.active {
    display: block;
}

.zh_category_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.zh_category_item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.zh_category_item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(36, 129, 96, 0.2);
}

.zh_category_image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.zh_category_body {
    padding: 25px;
}

.zh_category_title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.zh_category_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.zh_category_provider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 0.9rem;
}

.zh_category_provider img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.zh_category_price {
    color: #248160;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zh_hero_content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .zh_hero_left {
        text-align: center;
    }
    
    .zh_hero_title {
        font-size: 2.5rem;
    }
    
    .zh_hero_subtitle {
        font-size: 1.1rem;
    }
    
    .zh_hero_buttons {
        gap: 15px;
        justify-content: center;
    }
    
    .zh_btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .zh_section_title {
        font-size: 2rem;
    }
    
    .zh_sort_tabs {
        gap: 10px;
    }
    
    .zh_sort_tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .zh_stats_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .zh_services_grid,
    .zh_content_grid,
    .zh_category_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_category_tabs {
        gap: 15px;
    }
    
    .zh_category_tab {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .zh_stats_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_hero_buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .zh_sort_tabs {
        flex-direction: column;
        align-items: center;
    }
}
