/* 
 * 创域科博建站 - 首页专用样式
 */

/* ========== Hero Section ========== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: #c41e3a;
}

.hero-subtitle {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ========== Services Section ========== */
.services {
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 4px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #c41e3a;
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ========== Features Section ========== */
.features {
    background: #0a0a0a;
    color: #fff;
}

.features .section-title {
    color: #fff;
}

.features .section-subtitle {
    color: #999;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-number {
    font-size: 48px;
    font-weight: 700;
    color: #c41e3a;
    line-height: 1;
}

.feature-text h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-text p {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}

/* ========== About Preview Section ========== */
.about-preview {
    background: #f5f5f5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
}

.about-text h3 {
    font-size: 36px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 16px;
    color: #666;
    line-height: 2;
    margin-bottom: 30px;
}

/* ========== News Section ========== */
.news {
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: #c41e3a;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-link {
    font-size: 14px;
    color: #c41e3a;
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

/* ========== CTA Section ========== */
.cta {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }
}
