
/* HEMH首页专用样式 */

/* ================================
   英雄区域样式
================================ */
.hero {
    background: url('../images/hero/hero-bg.jpg') center center / cover no-repeat;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.82) 50%, rgba(15, 23, 42, 0.90) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.03) 60px, rgba(255,255,255,0.03) 61px),
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.03) 60px, rgba(255,255,255,0.03) 61px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: slideInFromLeft 1s ease-out;
}

.hero-text .brand-highlight {
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: slideInFromLeft 1s ease-out 0.2s both;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    animation: slideInFromLeft 1s ease-out 0.4s both;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.hero-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 8px;
    border-radius: 50%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    animation: slideInFromLeft 1s ease-out 0.6s both;
}

.hero-visual {
    position: relative;
    animation: slideInFromRight 1s ease-out 0.3s both;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid rgba(220, 38, 38, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border-color: rgba(220, 38, 38, 0.25);
    border-top-color: var(--primary-color);
}

.hero-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 700;
}

.hero-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* ================================
   产品展示区域
================================ */
.products-showcase {
    padding: 80px 0;
    background: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.product-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 28px;
}

.product-content {
    padding: 25px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.product-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.9rem;
    color: #475569;
}

.product-features li::before {
    content: '•';
    color: #dc2626;
    font-weight: bold;
}

.product-action {
    margin-top: 20px;
}

.product-btn {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* ================================
   服务优势区域
================================ */
.advantages {
    padding: 80px 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 16px;
    background: #f8fafc;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.advantage-card:hover {
    border-color: #dc2626;
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.advantage-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.advantage-description {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

/* ================================
   服务流程区域
================================ */
.process {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626 0%, #fbbf24 50%, #10b981 100%);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 120px;
    height: 120px;
    background: white;
    border: 4px solid #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.step-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.step-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.step-features li {
    color: #475569;
    font-size: 0.9rem;
    padding: 3px 0;
}

.step-features li::before {
    content: '→';
    color: #dc2626;
    margin-right: 8px;
    font-weight: bold;
}

/* ================================
   统计数据区域
================================ */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 41px),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 41px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(251, 191, 36, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 10px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: #e5e7eb;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-description {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* ================================
   资质证书展示区域
================================ */
.certificates {
    padding: 80px 0;
    background: #f8fafc;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.certificate-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #dc2626;
}

.certificate-card img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.certificate-card:hover img {
    transform: scale(1.03);
}

.cert-label {
    display: block;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    text-align: center;
    line-height: 1.4;
}

/* 证书灯箱 */
.cert-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cert-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.cert-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cert-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.cert-lightbox-close:hover {
    background: rgba(220, 38, 38, 0.7);
}

/* ================================
   客户案例区域
================================ */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 25px;
    font-size: 4rem;
    color: #dc2626;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info h4 {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-info span {
    color: #64748b;
    font-size: 0.9rem;
}

/* ================================
   新闻动态区域
================================ */
.news {
    padding: 80px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.news-image {
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-summary {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.news-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* ================================
   动画效果
================================ */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ================================
   响应式设计
================================ */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
    }
    
    .products-showcase,
    .advantages,
    .process,
    .stats,
    .certificates,
    .testimonials,
    .news {
        padding: 60px 0;
    }

    .products-grid,
    .advantages-grid,
    .testimonials-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 35px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 100px;
        height: 100px;
        font-size: 1.8rem;
    }
    
    .advantage-card,
    .testimonial-card,
    .news-content {
        padding: 25px;
    }
    
    .hero-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        gap: 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificate-card img {
        max-height: 360px;
    }
}
