/* 隐藏HTML和body默认滚动条 */
html, body {
    overflow: hidden;
    -ms-overflow-style: none;  /* IE 和 Edge */
    scrollbar-width: none;     /* Firefox */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari 和 Opera */
}

.fields-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
}

main {
    min-height: calc(100vh - 200px); /* 减去头部和底部的高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fields-title {
    text-align: center;
    margin-bottom: 40px;
}

.fields-title h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.fields-title p {
    font-size: 16px;
}

.image-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.slider-item {
    min-width: 330px;
    height: 200px;
    margin: 0 15px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-item:hover img {
    transform: scale(1.05);
}

.slider-item .field-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,63,136,0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.slider-control {
    background: #003f88;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-control:hover {
    background: #00529e;
}

/* 图片预览模态框 */
.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 {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: white;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 10%;
}

@media (max-width: 768px) {
    .slider-item {
        min-width: 280px;
    }
    
    .modal-content {
        max-width: 95%;
    }
}