/* 首页专用样式文件 - 所有自定义类和ID使用zh_前缀 */

/* 全局CSS变量 */
:root {
    --zh-primary-color: #3366cc;
    --zh-primary-dark: #2a56a9;
    --zh-secondary-color: #f8f9fa;
    --zh-text-color: #333333;
    --zh-light-text: #767676;
    --zh-white: #ffffff;
    --zh-border-color: #e9ecef;
    --zh-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --zh-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
    --zh-shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.15);
    --zh-radius-small: 8px;
    --zh-radius-medium: 12px;
    --zh-radius-large: 20px;
    --zh-transition-fast: all 0.2s ease;
    --zh-transition: all 0.3s ease;
    --zh-transition-slow: all 0.5s ease;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--zh-text-color);
    line-height: 1.6;
    font-size: 16px;
}

/* 首页英雄区域 */
.zh-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.zh-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.zh-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.zh-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--zh-white);
    max-width: 800px;
    padding: 0 20px;
}

.zh-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    animation: zh-fadeInUp 1s ease 0.3s both;
}

.zh-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    animation: zh-fadeInUp 1s ease 0.6s both;
}

.zh-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: zh-fadeInUp 1s ease 0.9s both;
}

.zh-hero-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--zh-radius-large);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--zh-transition);
    position: relative;
    overflow: hidden;
}

.zh-hero-btn-primary {
    background: var(--zh-primary-color);
    color: var(--zh-white);
    border: 2px solid var(--zh-primary-color);
}

.zh-hero-btn-secondary {
    background: transparent;
    color: var(--zh-white);
    border: 2px solid var(--zh-white);
}

.zh-hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.zh-hero-btn:hover::before {
    left: 100%;
}

.zh-hero-btn-primary:hover {
    background: var(--zh-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 102, 204, 0.3);
}

.zh-hero-btn-secondary:hover {
    background: var(--zh-white);
    color: var(--zh-primary-color);
    transform: translateY(-2px);
}

/* 动画定义 */
@keyframes zh-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zh-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zh-slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 通用区块样式 */
.zh-section {
    padding: 100px 0;
}

.zh-section-gray {
    background-color: var(--zh-secondary-color);
}

.zh-section-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--zh-white);
}

.zh-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.zh-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.zh-section-title {
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.zh-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--zh-primary-color), #3498db);
    border-radius: 2px;
}

.zh-section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--zh-light-text);
    line-height: 1.8;
}

/* 特色服务区域 */
.zh-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.zh-feature-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: var(--zh-radius-medium);
    background: var(--zh-white);
    box-shadow: var(--zh-shadow-light);
    transition: var(--zh-transition);
    position: relative;
    overflow: hidden;
}

.zh-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--zh-primary-color), #3498db);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.zh-feature-card:hover::before {
    transform: scaleX(1);
}

.zh-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--zh-shadow-heavy);
}

.zh-feature-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--zh-primary-color);
    display: block;
}

.zh-feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--zh-text-color);
}

.zh-feature-desc {
    color: var(--zh-light-text);
    line-height: 1.8;
    font-size: 1rem;
}

/* 内容卡片网格 */
.zh-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.zh-content-card {
    border-radius: var(--zh-radius-medium);
    overflow: hidden;
    box-shadow: var(--zh-shadow-light);
    background: var(--zh-white);
    transition: var(--zh-transition);
    position: relative;
}

.zh-content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--zh-shadow-heavy);
}

.zh-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.zh-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.zh-content-card:hover .zh-card-image img {
    transform: scale(1.1);
}

.zh-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--zh-primary-color), #3498db);
    color: var(--zh-white);
    padding: 6px 16px;
    border-radius: var(--zh-radius-large);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.zh-card-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--zh-white);
    padding: 6px 12px;
    border-radius: var(--zh-radius-large);
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.zh-card-content {
    padding: 30px;
}

.zh-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--zh-text-color);
    transition: var(--zh-transition);
    line-height: 1.4;
}

.zh-content-card:hover .zh-card-title {
    color: var(--zh-primary-color);
}

.zh-card-desc {
    color: var(--zh-light-text);
    margin-bottom: 25px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 76px;
}

.zh-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--zh-primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--zh-transition);
    font-size: 1rem;
}

.zh-card-link::after {
    content: '→';
    margin-left: 8px;
    transition: var(--zh-transition);
}

.zh-card-link:hover {
    color: var(--zh-primary-dark);
}

.zh-card-link:hover::after {
    transform: translateX(5px);
}

.zh-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.zh-card-price-label {
    color: var(--zh-text-color);
    font-size: 0.95rem;
}

.zh-card-price-label strong {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 数据统计区域 */
.zh-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    margin: 60px 0;
}

.zh-stat-item {
    padding: 30px 20px;
}

.zh-stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--zh-primary-color);
    margin-bottom: 15px;
    display: block;
}

.zh-stat-label {
    font-size: 1.2rem;
    color: var(--zh-light-text);
    font-weight: 500;
}

.zh-section-dark .zh-stat-number {
    color: var(--zh-white);
}

.zh-section-dark .zh-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* 行动召唤区域 */
.zh-cta {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--zh-primary-color) 0%, var(--zh-primary-dark) 100%);
    border-radius: var(--zh-radius-medium);
    color: var(--zh-white);
    margin: 60px 0;
}

.zh-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.zh-cta-desc {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.zh-cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--zh-white);
    color: var(--zh-primary-color);
    border-radius: var(--zh-radius-large);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--zh-transition);
}

.zh-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .zh-hero-title {
        font-size: 3rem;
    }
    
    .zh-section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .zh-hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .zh-hero-title {
        font-size: 2.5rem;
    }
    
    .zh-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .zh-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .zh-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .zh-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .zh-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zh-section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .zh-hero {
        height: 50vh;
        min-height: 450px;
    }
    
    .zh-hero-title {
        font-size: 2rem;
    }
    
    .zh-hero-subtitle {
        font-size: 1rem;
    }
    
    .zh-section {
        padding: 60px 0;
    }
    
    .zh-section-title {
        font-size: 2rem;
    }
    
    .zh-section-header {
        margin-bottom: 60px;
    }
    
    .zh-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .zh-content-grid {
        grid-template-columns: 1fr;
    }
    
    .zh-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .zh-stat-number {
        font-size: 3rem;
    }
    
    .zh-cta {
        padding: 60px 25px;
    }
    
    .zh-cta-title {
        font-size: 2rem;
    }
    
    .zh-cta-desc {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .zh-container {
        width: 95%;
        padding: 0 10px;
    }
    
    .zh-hero-content {
        padding: 0 15px;
    }
    
    .zh-feature-card {
        padding: 30px 20px;
    }
    
    .zh-card-content {
        padding: 25px;
    }
    
    .zh-section-title {
        font-size: 1.8rem;
    }
    
    .zh-hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .zh-card-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .zh-card-price {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .zh-card-price-label {
        font-size: 0.9rem;
    }
    
    .zh-card-price-label strong {
        font-size: 1rem;
    }
}
