body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f9fc;
    color: #333;
}

.service-header {
    position: relative;
    background-image: url('../img/service.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 200px;
    max-height: 200px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.service-header .container {
    position: relative;
    z-index: 1;
    color: white;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    /* 设置垂直排列 */
    align-items: center;
}

.service-header p {
    margin-top: 10px;
    /* 添加段落间距 */
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.service-header h1 {
    font-size: 6rem;
    margin: auto;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    max-width: 1200px;
    word-break: break-word;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

/* 添加section-title样式 */
.section-title {
    grid-column: 1 / -1;
    /* 让标题横跨所有列 */
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    /* 进一步增大标题字体大小 */
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
    font-weight: bold;
    /* 增加字体粗细 */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* 解决方案标题下划线颜色 */
#solutions-section .section-title::after {
    background-color: #3498db;
}

/* 服务支持标题下划线颜色 */
#support-section .section-title::after {
    background-color: #2ecc71;
}

/* 为服务支持部分设置3列网格布局，减小整体宽度并进一步减小间隙 */
#support-section.services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    /* 进一步减小卡片之间的间隙 */
    max-width: 830px;
    /* 减小整个section的最大宽度 */
}

/* 调整服务支持卡片大小，使它们在网格中更紧密排列 */
#support-section .service-card {
    max-width: 250px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    /* 增加内边距 */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1;
    /* 确保卡片是正方形 */
    display: flex;
    /* 使用flex布局 */
    flex-direction: column;
    /* 垂直排列内容 */
    justify-content: space-between;
    /* 均匀分布内容 */
}

/* 解决方案部分的卡片样式 */
#solutions-section .service-card {
    justify-content: center;
    /* 垂直居中内容 */
}

/* 解决方案部分的图标样式 */
#solutions-section .service-icon {
    margin-bottom: 1.5rem;
    /* 增加图标与标题的间距 */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 5rem;
    /* 增大图标大小 */
    color: #0096c7;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 2.2rem;
    /* 进一步增大卡片标题字体大小 */
    margin-bottom: 0.5rem;
    font-weight: bold;
    /* 增加字体粗细 */
}

.service-card p {
    font-size: 1.5rem;
    /* 进一步增大卡片内容字体大小 */
    line-height: 1.8;
    /* 增加行高提高可读性 */
    color: #333;
    /* 加深文本颜色提高对比度 */
}

/* 添加媒体查询，优化手机显示 */
@media (max-width: 768px) {
    .service-header h1 {
        font-size: 4rem;
    }

    .service-header p {
        font-size: 2rem;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 1rem;
        max-width: 100%;
    }

    .service-icon {
        font-size: 3rem;
    }

    .service-card h3 {
        font-size: 1.8rem;
    }

    .service-card p {
        font-size: 1.2rem;
    }
}