.about-header {
    position: relative;
    background-image: url('../img/about.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;
}

.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.about-header .container {
    position: relative;
    z-index: 1;
    color: white;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    /* 设置垂直排列 */
    align-items: center;
}

.about-header p {
    margin-top: 10px;
    /* 添加段落间距 */
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.about-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;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 60px;
    padding-top: 80px;
    /* 添加顶部内边距，确保标题不被导航栏遮挡 */
    margin-top: -80px;
    /* 补偿padding-top，使section之间的间距保持不变 */
}

/* 为contact部分设置特定的底部边距 */
section#contact {
    margin-bottom: 40px;
}

main .about-title {
    font-size: 26px;
    color: #005baa;
    margin-bottom: 16px;
    text-align: center;
}

main p,
main li {
    font-size: 16px;
    line-height: 1.8;
}

main ul {
    padding-left: 20px;
}

main a.button {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background-color: #005baa;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

main a.button:hover {
    background-color: #004080;
}

@media (max-width: 768px) {
    main .about-title {
        font-size: 2rem;
    }

    main .about-content {
        flex-direction: column;
    }

    main .about-header {
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
        /* 适配移动端边距 */
    }
}