/* 首页布局样式 - zh_ 前缀，参考Figma蓝紫渐变配色 */

/* 基础重置 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f7f9fc;
    color: #2d3748;
}

/* 容器样式 */
.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_main_content {
    min-height: 100vh;
    background: #f7f9fc;
}

/* Hero横幅区域 */
.zh_hero_section {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.zh_hero_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.zh_hero_section:hover .zh_hero_image {
    transform: scale(1.05);
    opacity: 1;
}

.zh_hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_hero_section:hover .zh_hero_overlay {
    opacity: 1;
}

.zh_hero_title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.zh_hero_subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 600px;
}

.zh_hero_btn {
    background: #fff;
    color: #667eea;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.zh_hero_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 特色图标区域 */
.zh_features_section {
    background: #fff;
    padding: 40px;
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.zh_features_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.zh_feature_item {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e2e8f0;
}

.zh_feature_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.zh_feature_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.zh_feature_item:hover .zh_feature_icon {
    transform: scale(1.1) rotate(5deg);
}

.zh_feature_title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.zh_feature_description {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

/* 分类模块样式 */
.zh_category_section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 40px 0;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.zh_category_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* 分类标题样式 */
.zh_category_header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.zh_category_title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.zh_category_subtitle {
    font-size: 14px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

/* 商品网格布局 */
.zh_products_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.zh_product_card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.zh_product_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: left 0.3s ease;
}

.zh_product_card:hover::before {
    left: 0;
}

.zh_product_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.zh_product_link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.zh_product_image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.zh_product_card:hover .zh_product_image {
    transform: scale(1.05);
}

.zh_product_info {
    padding: 20px;
}

.zh_product_title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_product_shop {
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 12px;
}

.zh_product_price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.zh_price_current {
    font-size: 20px;
    font-weight: 700;
    color: #e53e3e;
}

.zh_price_market {
    font-size: 14px;
    color: #cbd5e0;
    text-decoration: line-through;
}

/* CTA横幅 */
.zh_cta_section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 60px 40px;
    margin: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zh_cta_section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.zh_cta_section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.zh_cta_content {
    position: relative;
    z-index: 1;
}

.zh_cta_title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.zh_cta_description {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.zh_cta_btn {
    background: #fff;
    color: #667eea;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.zh_cta_btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* 统计数据区域 */
.zh_stats_section {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.zh_stats_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.zh_stat_item {
    text-align: center;
    padding: 20px;
}

.zh_stat_number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.zh_stat_label {
    font-size: 14px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .zh_hero_section {
        height: 400px;
    }

    .zh_hero_title {
        font-size: 36px;
    }

    .zh_category_title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .zh_hero_section {
        height: 300px;
        border-radius: 12px;
    }

    .zh_hero_title {
        font-size: 28px;
    }

    .zh_hero_subtitle {
        font-size: 14px;
    }

    .zh_category_section {
        padding: 30px 20px;
    }

    .zh_features_section {
        padding: 30px 20px;
    }

    .zh_products_grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .zh_category_title {
        font-size: 24px;
    }

    .zh_cta_section {
        padding: 40px 20px;
    }

    .zh_cta_title {
        font-size: 24px;
    }

    .zh_stats_grid {
        gap: 25px;
    }

    .zh_stat_number {
        font-size: 36px;
    }
}

/* 通用工具类 */
.zh_text_center {
    text-align: center;
}

.zh_mb_30 {
    margin-bottom: 30px;
}

.zh_mt_30 {
    margin-top: 30px;
}

/* 加载动画 */
.zh_loading {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.zh_loading:hover {
    opacity: 1;
}

/* 图片懒加载效果 */
.lazy-loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
