body {
    background-image: url('../images/homeBg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-title {
    text-align: center;
    padding: 40px 0;
    background-color: #f5f5f5;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 36px;
    color: #003366;
    margin: 0;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.qualification-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 15px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.qualification-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    background:rgba(0, 28, 64, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 370px;
    max-height: 648px;
}

.qualification-item:hover {
    transform: translateY(-5px);
}

.qualification-img {
    width: 100%;
    /* height: 250px; */
    object-fit: initial;
}

.qualification-info {
    padding: 15px;
    /* background-color: rgba(0, 28, 64, 0.7); */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.qualification-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    /* color: #003366; */
}

.qualification-info p {
    margin: 0;
    /* color: #666; */
    font-size: 14px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    background-color: #003366;
    margin: 0 5px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #004c99;
}

.pagination a.active {
    background-color: #ff4d4d;
}

/* 图片预览模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    }

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}


.fields-title{ width: 60%; margin: 40px auto;}
.fields-title h2{ text-align: center;}
.fields-title p{ line-height: 30px;}
.close:hover {
    color: #bbb;
}

@media (max-width: 992px) {
    .qualification-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .qualification-grid {
        grid-template-columns: 1fr;
    }
}