/* 首页样式 - 定制商品信息发布平台 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主要内容区域 */
.zh_main {
    min-height: calc(100vh - 200px);
}

/* 新的轮播图区域 - 简约风格 */
.zh_hero_section {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 50%, #8D1E1E 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 80px;
}

.zh_hero_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1200&h=500&fit=crop') center/cover;
    opacity: 0.15;
    z-index: 1;
}

.zh_hero_content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_hero_title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.zh_hero_subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.zh_hero_description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.zh_hero_buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.zh_btn_primary {
    display: inline-block;
    background: #FBC02D;
    color: #333333;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #FBC02D;
}

.zh_btn_primary:hover {
    background: #F9A825;
    border-color: #F9A825;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 192, 45, 0.4);
}

.zh_btn_secondary {
    display: inline-block;
    background: transparent;
    color: #FFFFFF;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #FFFFFF;
}

.zh_btn_secondary:hover {
    background: #FFFFFF;
    color: #D32F2F;
    transform: translateY(-2px);
}

/* 服务分类区域 - 不规则布局 */
.zh_services_section {
    padding: 80px 0;
    background: #F5F5F5;
}

.zh_section_title {
    text-align: center;
    font-size: 36px;
    color: #333333;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.zh_section_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #D32F2F, #FBC02D);
    border-radius: 2px;
}

.zh_section_title i {
    color: #D32F2F;
    margin-right: 10px;
}

.zh_services_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 服务卡片样式 */
.zh_service_card {
    border-radius: 16px;
    padding: 25px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.zh_service_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_service_card:hover::before {
    opacity: 1;
}

.zh_service_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 定制办公用品 - 主卡片 */
.zh_service_office {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    animation: zh_card_appear 0.6s ease-out 0.1s both;
}

/* 活动纪念品 */
.zh_service_memorial {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    animation: zh_card_appear 0.6s ease-out 0.2s both;
}

/* 创意好物 */
.zh_service_creative {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    animation: zh_card_appear 0.6s ease-out 0.3s both;
}

/* 热门推荐 */
.zh_service_hot {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    animation: zh_card_appear 0.6s ease-out 0.4s both;
}

/* 最新上架 */
.zh_service_new {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    animation: zh_card_appear 0.6s ease-out 0.5s both;
}

/* 服务商入驻 */
.zh_service_join {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
    background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
    animation: zh_card_appear 0.6s ease-out 0.6s both;
}

/* 卡片出现动画 */
@keyframes zh_card_appear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* 特殊布局 - 大卡片 */
.zh_service_featured {
    grid-column: 1 / 7;
    grid-row: 5 / 7;
    background: linear-gradient(135deg, #795548 0%, #5D4037 100%);
}

.zh_service_icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.zh_service_title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.zh_service_desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.zh_service_card:hover .zh_service_icon {
    opacity: 1;
    transform: scale(1.05);
}

.zh_service_card:hover .zh_service_title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.zh_service_card:hover .zh_service_desc {
    opacity: 1;
}

.zh_service_large .zh_service_icon {
    font-size: 64px;
    margin-bottom: 25px;
}

.zh_service_large .zh_service_title {
    font-size: 32px;
    margin-bottom: 15px;
}

.zh_service_large .zh_service_desc {
    font-size: 16px;
}

.zh_service_large:hover .zh_service_icon {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.zh_service_large:hover .zh_service_title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zh_service_large:hover .zh_service_desc {
    opacity: 1;
}

/* 商品展示区域 */
.zh_products_section {
    padding: 80px 0;
    background: #FFFFFF;
}

.zh_products_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* 商品卡片 */
.zh_product_card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.zh_product_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.zh_product_image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.zh_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zh_product_card:hover .zh_product_image img {
    transform: scale(1.05);
}

.zh_product_badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #D32F2F;
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.zh_new_badge {
    background: #FBC02D;
    color: #333333;
}

.zh_product_content {
    padding: 20px;
}

.zh_product_title {
    margin-bottom: 12px;
}

.zh_product_title a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_product_title a:hover {
    color: #D32F2F;
}

.zh_product_price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_current_price {
    color: #D32F2F;
    font-size: 20px;
    font-weight: bold;
}

.zh_market_price {
    color: #999999;
    font-size: 14px;
    text-decoration: line-through;
}

.zh_view_detail_btn {
    display: inline-block;
    background: #F5F5F5;
    color: #333333;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #E0E0E0;
}

.zh_view_detail_btn:hover {
    background: #D32F2F;
    color: #FFFFFF;
    border-color: #D32F2F;
}

.zh_view_detail_btn i {
    margin-right: 5px;
}

/* 服务优势区域 */
.zh_advantages_section {
    padding: 80px 0;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: #FFFFFF;
}

.zh_advantages_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.zh_advantage_item {
    text-align: center;
    padding: 30px 20px;
}

.zh_advantage_icon {
    font-size: 48px;
    color: #FBC02D;
    margin-bottom: 20px;
}

.zh_advantage_title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.zh_advantage_desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .zh_container {
        padding: 0 15px;
    }
    
    .zh_hero_title {
        font-size: 36px;
    }
    
    .zh_hero_subtitle {
        font-size: 18px;
    }
    
    .zh_section_title {
        font-size: 30px;
    }
    
    .zh_services_grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 180px);
        gap: 15px;
    }
    
    .zh_service_office {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .zh_service_memorial {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .zh_service_creative {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .zh_service_hot {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .zh_service_new {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .zh_service_join {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
    }
}

@media (max-width: 768px) {
    .zh_hero_section {
        height: 350px;
    }
    
    .zh_hero_title {
        font-size: 28px;
    }
    
    .zh_hero_subtitle {
        font-size: 16px;
    }
    
    .zh_hero_description {
        font-size: 14px;
    }
    
    .zh_hero_buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .zh_section_title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .zh_services_grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 160px);
        gap: 15px;
    }
    
    .zh_service_card {
        grid-column: 1 !important;
        grid-row: auto !important;
        padding: 20px;
    }
    
    .zh_service_icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .zh_service_title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .zh_service_desc {
        font-size: 13px;
    }
    
    .zh_service_large .zh_service_icon {
        font-size: 42px;
    }
    
    .zh_service_large .zh_service_title {
        font-size: 24px;
    }
    
    .zh_service_large .zh_service_desc {
        font-size: 14px;
    }
    
    .zh_products_grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .zh_advantages_grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .zh_hero_section {
        height: 300px;
    }
    
    .zh_hero_title {
        font-size: 22px;
    }
    
    .zh_hero_subtitle {
        font-size: 14px;
    }
    
    .zh_btn_primary,
    .zh_btn_secondary {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .zh_products_grid {
        grid-template-columns: 1fr;
    }
}
