/* 首页英雄区域 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* 添加背景图层 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/banner.ea9fa93a.gif');
    background-size: 50% auto;
    background-position: 90% center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
}

/* 添加渐变遮罩层 */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(30, 60, 114, 0.98) 0%,
        rgba(30, 60, 114, 0.90) 35%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
}

.hero-content {
    width: 100%;
    text-align: left;
    color: var(--light-text);
    position: relative;
    z-index: 3;
    padding: 0 10%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    max-width: 600px;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    letter-spacing: 1px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-top: 3rem;
}

.btn {
    padding: 1rem 3rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--primary-gradient);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 简介部分 */
.intro-section {
    padding: 8rem 0;
    background: #fff;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.intro-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 0 5%;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 服务内容部分 */
.services-section {
    padding: 12rem 0;
    background: linear-gradient(135deg, 
        rgba(20, 40, 80, 0.98) 0%,
        rgba(42, 82, 152, 0.90) 35%,
        rgba(50, 100, 180, 0.85) 50%,
        rgba(42, 82, 152, 0.90) 65%,
        rgba(20, 40, 80, 0.98) 100%
    );
    position: relative;
    overflow: hidden;
}

.services-section h2 {
    color: var(--light-text);
    text-align: center;
    margin-bottom: 8rem;
    font-size: 2.5rem;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 0 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    display: block;
    clear: both;
    background: #fff;
    padding: 4rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.service-icon {
    min-width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-icon .icon {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon .icon {
    transform: rotate(10deg);
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--dark-bg);
}

.service-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover .service-content {
    transform: translateY(-2px);
}

/* 第2和第4个卡片内容右对齐 */
.service-card:nth-child(2) .service-content,
.service-card:nth-child(4) .service-content {
    text-align: right;
}

/* 网站系统开发、微信小程序开发、SAP系统开发的图标靠左 */
.service-card:nth-child(1) .service-icon,
.service-card:nth-child(3) .service-icon,
.service-card:nth-child(5) .service-icon {
    float: left;
    margin-right: 4rem;
}

/* 其他服务卡片的图标靠右 */
.service-card:nth-child(2) .service-icon,
.service-card:nth-child(4) .service-icon {
    float: right;
    margin-left: 4rem;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 3%;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        text-align: center;
        align-items: center;
        padding: 0 5%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-section::before {
        background-size: 80% auto;
        background-position: center;
    }

    .hero-section::after {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }

    .service-card {
        text-align: center;
        padding: 2rem;
    }

    .service-icon {
        float: none !important;
        margin: 0 auto 2rem !important;
    }

    .service-content {
        text-align: center !important;
    }
}

/* 代码雨背景 */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.1;
    mix-blend-mode: overlay;
    pointer-events: none;
} 