/* 
 * 首页专用样式
 * 全屏视差多元素动态布局
 */

/* Hero Section - 全屏 Banner */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* 核心优势板块 */
.features-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bright-red), var(--bright-yellow));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bright-blue), var(--bright-red), var(--bright-yellow));
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--bright-blue), #667eea);
    color: var(--white);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--bright-red), #ff6b81);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--bright-yellow), #ffa502);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 16px;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.8;
}

/* 服务板块 */
.services-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-item {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bright-blue);
    opacity: 0.3;
    line-height: 1;
}

.service-content h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--gray);
    line-height: 1.8;
}

/* 案例展示 */
.cases-section {
    padding: 120px 0;
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.case-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-image {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.case-card:hover .case-overlay {
    transform: translateY(0);
    opacity: 1;
}

.case-category {
    font-size: 0.85rem;
    color: var(--bright-yellow);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 资讯列表 */
.news-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.news-tab {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-blue);
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-tab.active,
.news-tab:hover {
    background: var(--bright-blue);
    color: var(--white);
}

.news-grid-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--bright-red);
}

/* CTA 板块 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bright-blue) 0%, #667eea 100%);
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .features-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .news-tabs {
        flex-wrap: wrap;
    }
}
