* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

body {
    background-image: url(../images/bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    display: flex;
    justify-content: center;
}

header img {
    width: 100%;
    height: auto;
    max-width: 1300px;
}

nav {
    margin: 3vw 0;
}

nav ul {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    flex-wrap: wrap;
}

nav ul li {
    padding: 5px 40px;
    font-size: 2rem;
    background-image: url(../images/nav-bg.png);
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 4vw;
    padding: 3.5vw;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
}

.section-title {
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 20px;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 10px;
}

.content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

@media (max-width: 1024px) {
    .section-intro .content-row {
        flex-direction: column;
    }
}

.text-content {
    flex: 1;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.text-content p {
    text-indent: 2em;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-content img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.items {
    width: 100%;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    /* 隐藏溢出内容 */
    position: relative;
    height: 28vw;
    /* 根据实际图片高度调整 */
}

.items-wrapper {
    width: 100%;
    justify-content: space-between;
    display: flex;
    /* animation: scroll 25s linear infinite; */
    /* 15秒完成一次滚动 */
}

.items-wrapper img {
    width: 20vw;
    /* 3张图片占满一行 */
    flex-shrink: 0;
    /* 防止图片被压缩 */
    height: 100%;
    object-fit: cover;
    /* 保持图片比例并覆盖容器 */
    margin: 0 1vw;
    border: 1px solid #000;
}

/* 定义滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* 滚动到一半位置（因为复制了图片） */
    }
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 54px;
    margin-top: 20px;
}

.gallery-image {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.gallery-image img {
    width: 40%;
    height: auto;
    
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.img1 img{
    width: 20%;
}

.img2 img{
    width: 12%;
}


@media (max-width: 1024px) {
    .image-gallery {
        flex-direction: column;
    }

    .gallery-image {
        width: 100%;
    }

    .section-column .items {
        width: 100%;
        height: 30vw;
    }

    .section-column .items-wrapper img {
        width: 40vw;
        margin: 0 1vw;
    }
}
footer {
    text-align: right;
    font-size: 14px;
    padding: 0 20px;
}
