/* 家政服务平台首页样式 - 广州企晟科技有限公司 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 首页横幅区域 */
.zh_hero_section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('/ce94db87fd3c27bbaa059ef2b4482b2c.jpg') center/cover;
    background-attachment: fixed;
    overflow: hidden;
    padding: 120px 0 80px;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.zh_hero_bg_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    will-change: auto;
    backface-visibility: hidden;
}

.zh_hero_content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.zh_hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

.zh_hero_badge i {
    color: #00BCD4;
}

.zh_hero_title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zh_highlight {
    color: #00BCD4;
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

.zh_hero_subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 搜索容器 */
.zh_search_container {
    margin-bottom: 50px;
}

.zh_search_box {
    max-width: 600px;
    margin: 0 auto 20px;
}

.zh_search_input_group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.zh_search_input_group:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 188, 212, 0.3);
}

.zh_search_icon {
    padding: 0 20px;
    color: #00BCD4;
    font-size: 16px;
}

.zh_search_input {
    flex: 1;
    padding: 18px 0;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #333;
}

.zh_search_input::placeholder {
    color: #999;
}

.zh_search_btn {
    background: #00BCD4;
    border: none;
    color: white;
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    margin: 3px;
}

.zh_search_btn:hover {
    background: #00ACC1;
    transform: scale(1.05);
}

/* 热门搜索标签 */
.zh_hot_tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.zh_hot_label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-right: 5px;
}

.zh_hot_tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zh_hot_tag:hover {
    background: rgba(0, 188, 212, 0.8);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* 服务特色 */
.zh_hero_features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.zh_feature_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 120px;
}

.zh_feature_item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.zh_feature_item i {
    font-size: 1.5rem;
    color: #00BCD4;
    margin-bottom: 5px;
}

.zh_feature_item span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 背景装饰 */
.zh_hero_decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    will-change: auto;
}

.zh_decoration_circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.zh_circle_1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation: floatAnimation 6s ease-in-out infinite;
}

.zh_circle_2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: floatAnimation 8s ease-in-out infinite reverse;
}

.zh_circle_3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation: floatAnimation 5s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -20px, 0);
    }
}

/* 区域标题样式 */
.zh_section_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.zh_section_subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

/* 服务分类区域 */
.zh_categories_section {
    padding: 80px 0;
    background: white;
}

.zh_category_tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.zh_category_tab {
    background: #f8f9fa;
    color: #666;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.zh_category_tab:hover,
.zh_category_tab.active {
    background: #00BCD4;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,188,212,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(320px, 1fr));
    gap: 30px;
}

.zh_category_item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.zh_category_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.zh_category_item_image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-image: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=400&h=200&fit=crop');
    background-size: cover;
    background-position: center;
}

.zh_category_item_content {
    padding: 20px;
}

.zh_category_item_title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

.zh_category_item_title:hover {
    color: #00BCD4;
    text-decoration: none;
}

.zh_category_item_desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.zh_category_item_provider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.zh_category_item_provider img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-image: url('https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=60&h=60&fit=crop&crop=face');
    background-size: cover;
    background-position: center;
}

.zh_category_item_provider a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.zh_category_item_provider a:hover {
    color: #00BCD4;
    text-decoration: none;
}

.zh_category_item_action {
    padding: 0 20px 20px;
}

.zh_category_item_btn {
    display: inline-block;
    background: #00BCD4;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.zh_category_item_btn:hover {
    background: #00ACC1;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* 优质服务商区域 */
.zh_providers_section {
    padding: 80px 0;
    background: #f8f9fa;
}

.zh_sort_tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.zh_sort_tab {
    background: white;
    color: #666;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #eee;
}

.zh_sort_tab:hover,
.zh_sort_tab.active {
    background: #00BCD4;
    color: white;
    text-decoration: none;
    border-color: #00BCD4;
}

.zh_providers_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.zh_provider_card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.zh_provider_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.zh_provider_header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.zh_provider_avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00BCD4;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-image: url('https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=120&h=120&fit=crop&crop=face');
    background-size: cover;
    background-position: center;
}

.zh_provider_info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.zh_provider_count {
    color: #666;
    font-size: 14px;
}

.zh_provider_works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.zh_work_item {
    text-align: center;
}

.zh_work_thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-image: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=150&h=100&fit=crop');
    background-size: cover;
    background-position: center;
}

.zh_work_title {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    display: block;
    line-height: 1.4;
}

.zh_work_title:hover {
    color: #00BCD4;
    text-decoration: none;
}

/* 行动号召区域 */
.zh_cta_section {
    padding: 80px 0;
    background: linear-gradient(135deg, #00BCD4 0%, #00ACC1 100%);
    color: white;
    text-align: center;
}

.zh_cta_title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.zh_cta_text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.zh_cta_buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.zh_cta_btn {
    background: white;
    color: #00BCD4;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid white;
}

.zh_cta_btn:hover {
    background: transparent;
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.zh_cta_btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.zh_cta_btn.secondary:hover {
    background: white;
    color: #00BCD4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zh_hero_section {
        height: 80vh;
        padding: 100px 0 60px;
        background-attachment: scroll;
    }
    
    .zh_hero_title {
        font-size: 2.5rem;
    }
    
    .zh_hero_subtitle {
        font-size: 1.1rem;
        margin-bottom: 35px;
    }
    
    .zh_search_input_group {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .zh_search_input {
        padding: 15px 20px;
        text-align: center;
    }
    
    .zh_search_btn {
        border-radius: 0 0 20px 20px;
        justify-content: center;
        margin: 0;
    }
    
    .zh_hero_features {
        gap: 20px;
    }
    
    .zh_feature_item {
        min-width: 100px;
        padding: 15px;
    }
    
    .zh_hot_tags {
        justify-content: center;
    }
    
    .zh_section_title {
        font-size: 2rem;
    }
    
    .zh_category_tabs {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .zh_category_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_providers_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_cta_buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .zh_cta_btn {
        width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .zh_container {
        padding: 0 15px;
    }
    
    .zh_hero_section {
        height: 70vh;
        padding: 80px 0 50px;
        background-attachment: scroll;
    }
    
    .zh_hero_title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .zh_hero_subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .zh_hero_badge {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .zh_search_input_group {
        margin: 0 10px;
    }
    
    .zh_hero_features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        display: grid;
    }
    
    .zh_feature_item {
        padding: 15px 10px;
        min-width: auto;
    }
    
    .zh_feature_item i {
        font-size: 1.2rem;
    }
    
    .zh_feature_item span {
        font-size: 12px;
    }
    
    .zh_hot_tags {
        margin: 0 15px;
    }
    
    .zh_hot_tag {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .zh_decoration_circle {
        display: none;
    }
    
    .zh_category_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* iOS Safari 优化 */
@supports (-webkit-touch-callout: none) {
    .zh_hero_section {
        background-attachment: scroll !important;
        transform: translate3d(0, 0, 0);
    }
}

/* 减少动画以提高性能 */
@media (prefers-reduced-motion: reduce) {
    .zh_decoration_circle {
        animation: none;
    }
    
    .zh_hero_section {
        background-attachment: scroll;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
