/* 首页特有样式 */

/* 产品展示区域 */
.products {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    text-align: center;
}

.products h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    color: white;
}

.product-label {
    font-size: 1.2rem;
    font-weight: 600;
}

.product-price-tag {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    align-self: flex-start;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
}

.unit {
    font-size: 0.9rem;
    opacity: 0.8;
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-features i {
    color: var(--primary-color);
}

.product-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.product-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 特性展示区域 */
.features {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    text-align: center;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

/* 使用场景区域 */
.use-cases {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    text-align: center;
}

.use-cases h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.use-case-card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-top: 200px;
}

.use-case-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px auto 1rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--box-shadow);
}

.use-case-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.use-case-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    padding: 0 1.5rem;
}

.use-case-card p {
    color: var(--text-color);
    opacity: 0.8;
    padding: 0 1.5rem 1.5rem;
}

/* CTA区域 */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: var(--white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .product-grid,
    .feature-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card,
    .feature-card,
    .use-case-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* 英雄区域响应式优化 */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 116px);
        padding: 4rem 1rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    #contactModal{
        display:none; position: fixed; z-index: 9999;left: -1rem; top: 0rem; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5);
    }

    .hero::before {
        opacity: 0.7;
    }
}

/* 优化背景图片在移动端的显示 */
@media (max-width: 768px) {
    .hero::before {
        background-position: center;
        background-size: cover;
    }
} 