/* ========================================
   首页样式 - 所有自定义类使用 zh_ 前缀
   ======================================== */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}

.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Hero Section - 首屏区域
   ======================================== */
.zh_hero_section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #d41011 0%, #8b0000 100%);
    background-image: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.zh_hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 16, 17, 0.85);
    z-index: 1;
}

.zh_hero_content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
}

.zh_hero_badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.zh_hero_title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.zh_hero_subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.zh_hero_actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.zh_btn_primary,
.zh_btn_secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.zh_btn_primary {
    background: #fff;
    color: #d41011;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.zh_btn_primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.zh_btn_secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.zh_btn_secondary:hover {
    background: #fff;
    color: #d41011;
    transform: translateY(-3px);
}

.zh_hero_stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.zh_stat_item {
    text-align: center;
}

.zh_stat_number {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.zh_stat_label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Features Section - 特色服务区域
   ======================================== */
.zh_features_section {
    padding: 80px 0;
    background: #fff;
}

.zh_features_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.zh_feature_card {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.zh_feature_card:hover {
    border-color: #d41011;
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(212, 16, 17, 0.15);
}

.zh_feature_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #d41011 0%, #8b0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    box-shadow: 0 5px 20px rgba(212, 16, 17, 0.3);
}

.zh_feature_title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.zh_feature_desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* ========================================
   Products Section - 商品展示区域
   ======================================== */
.zh_products_section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.zh_category_block {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.zh_category_header_main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
    position: relative;
}

.zh_category_title_wrap {
    flex: 1;
}

.zh_category_title_main {
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.zh_category_subtitle_main {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.zh_category_accent {
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, #d41011 0%, #8b0000 100%);
    border-radius: 3px;
}

.zh_products_showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.zh_product_item {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.zh_product_item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #d41011;
}

.zh_product_wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.zh_product_image_wrap {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.zh_product_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.zh_product_item:hover .zh_product_img {
    transform: scale(1.08);
}

.zh_product_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 16, 17, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_product_item:hover .zh_product_overlay {
    opacity: 1;
}

.zh_view_btn {
    padding: 12px 28px;
    background: #fff;
    color: #d41011;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zh_product_details {
    padding: 25px;
}

.zh_product_name {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_product_pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.zh_current_price {
    font-size: 26px;
    font-weight: 800;
    color: #d41011;
}

.zh_original_price {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
}

.zh_discount_tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #d41011 0%, #8b0000 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(212, 16, 17, 0.4);
    z-index: 10;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .zh_hero_title {
        font-size: 44px;
    }

    .zh_category_block {
        padding: 40px 30px;
    }

    .zh_products_showcase {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .zh_hero_section {
        min-height: 500px;
    }

    .zh_hero_title {
        font-size: 36px;
    }

    .zh_hero_subtitle {
        font-size: 18px;
    }

    .zh_hero_stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .zh_stat_number {
        font-size: 32px;
    }

    .zh_features_section {
        padding: 60px 0;
    }

    .zh_features_grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .zh_category_block {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .zh_category_title_main {
        font-size: 28px;
    }

    .zh_products_showcase {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .zh_product_image_wrap {
        height: 200px;
    }

    .zh_product_details {
        padding: 15px;
    }

    .zh_product_name {
        font-size: 15px;
        min-height: auto;
    }

    .zh_current_price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .zh_hero_title {
        font-size: 28px;
    }

    .zh_hero_subtitle {
        font-size: 16px;
    }

    .zh_hero_actions {
        flex-direction: column;
        gap: 15px;
    }

    .zh_btn_primary,
    .zh_btn_secondary {
        width: 100%;
        justify-content: center;
    }

    .zh_category_header_main {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .zh_products_showcase {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes zh_fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zh_pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.zh_feature_icon {
    animation: zh_pulse 2s ease-in-out infinite;
}

.zh_feature_card:hover .zh_feature_icon {
    animation: none;
    transform: scale(1.1);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d41011;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
}
