@import url('./normalize.css');
@import url('./reset.css');
@import url('./common.css');


.swiper-container {
    width: 100%;
    max-height: 800px;
    overflow: hidden;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
}

.swiper-slide img {
    display: block;
    width: 100%;
}

.swiper-pagination-bullet {
    opacity: 0.6 !important;
    width: 10px !important;
    height: 10px !important;
    background: #ffffff !important;
    border-radius: 5px !important;
    transition: width 0.5s ease-in-out !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 50px !important;
    background: #fff !important;
    transition: width 0.5s ease-in-out !important;
}
.swiper-container {
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease-in-out;
    transform: scale(1);
}

.swiper-slide-active img {
    transform: scale(1.2);
}

.weather {
    background: url(../images/weather-bg.jpg) no-repeat center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

/* 当屏幕宽度小于等于 767px 时（通常是手机设备），应用以下样式 */
@media only screen and (max-width: 767px) {
    .swiper-container {
        height: 220px !important;
    }
    .section {
        padding: 0 10px !important;
        margin-top: 30px !important;
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .parent-module {
        height: 300px !important;
        padding: 0 !important;
    }
    .fixed-module {
        display: none;
    }
    .introduction,
    .scenic-spot-info,
    .footer-helper .nav {
        display: none;
    }
    .footer {
        margin-top: 50px;
    }
    .footer-helper .contact,
    .coryright {
        flex-direction: column;
        gap: 10px;
    }
}
/* 针对平板电脑的样式 */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-item {
    border: 1px solid rgba(226, 226, 226, 0.42);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.grid-item img {
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform 1s ease-in-out;
    /* 添加过渡效果 */
    ;
}

.grid-item .info {
    padding: 20px;
    background: #fff;
    position: relative;
    z-index: 10px;
}

.grid-item h2 {
    font-size: 24px;
    font-weight: 500;
    white-space: nowrap;
    color: rgb(33, 37, 41);
    ;
}

.grid-item .desc {
    margin-top: 20px;
    color: #666666;
    font-size: 18px;
    line-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.grid-item:hover img {
    transform: scale(1.2);
}

.grid-item:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.grid-item:hover h2,
.grid-item:hover .desc {
    color: #004a38;
}

p {
    margin-top: 5px;
}

/* 让第二项在第二列且占两行 */
/* .grid-container :nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
} */

.parent-module {
    height: 950px;
    background: url(../images/module-bg.jpg) no-repeat center;
    background-size: cover;
    display: flex;
    /* 使用flex布局，方便控制子元素宽度分配 */
    /* 父模块设置固定宽度 */
}

.fixed-module {
    width: 540px;
    min-width: 540px;
    height: 100%;
    background-image: url(../images/fixed-module-1.jpg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 100%;
    border-right: #ffffff7e 1px solid;
    background-color: #aa8051;
    position: relative;
}

.fixed-module .content {
    width: 260px;
    height: 590px;
    margin-top: 109px;
    padding: 44px 32px 32px 32px;
    border: #ffffff 1px solid;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%);
    display: flex;
    justify-content: space-between;
}

.fixed-module .content .title {
    width: 60px;
    font-size: 56px;
    font-weight: 500;
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 6px;
    writing-mode: vertical-rl;
    writing-mode: tb-rl;
}

.fixed-module .content .desc {
    width: auto;
    color: #fef6ee;
    line-height: 26px;
    letter-spacing: 5px;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    -webkit-writing-mode: tb-rl;
    writing-mode: tb-rl;
}

.module {
    flex: 1;
    /* 子模块初始按等比例分配空间 */
    height: 950px;
    border-right: 1px solid #FFFFFF;
    font-size: 24px;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: 6px;
    writing-mode: tb-rl;
    transition: flex-grow 1s ease-in-out;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.module .circle {
    width: 10px;
    height: 10px;
    margin: 70px 0 15px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.module .title {
    text-align: center;
    font-size: 24px;
    color: #fff;
    letter-spacing: 6px;
    writing-mode: vertical-rl;
    writing-mode: tb-rl;
}

.module:hover {
    flex-grow: 2;
    /* 鼠标滑入时，该模块flex - grow变为2，占据更多空间 */
}


.picture .grid-container .grid-item {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.picture .grid-container :nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
} 




.introduction {
    padding: 70px;
    height: 100%;
    background: url(../images/introduction-bg.jpg) no-repeat center;
    background-size: 100%;
    color: #fff;
}

.introduction .container {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.introduction .title {
    font-size: 24px;
    color: #ffffff;
}

.introduction .desc {
    margin: 36px 0 32px;
    font-size: 14px;
    color: #ffffff;
    line-height: 30px;
    text-align: center;
}

.introduction .more {
    position: relative;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 38px;
    line-height: 38px;
    border: 1px solid #fff;
    font-size: 14px;
    color: #fff;
    background-color: transparent;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s;
    z-index: 0;
    text-align: center;
    margin: 0px auto 30px;
    width: 158px;
    border-radius: 40px;
}

.introduction .more::before {
    background: #fff;
    border-radius: 40px;
}

.introduction .more::before,
.introduction .more::after {
    position: absolute;
    content: '';
    z-index: -1;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

.introduction .more::after {
    background: #083c35;
    -webkit-transition: all .3s;
    border-radius: 40px;
    -moz-transition: all .3s;
    transition: all .3s;
}

.introduction .more:hover {
    color: #083c35;
}

.introduction .more:hover:after {
    height: 0;
    left: 50%;
    top: 50%;
    width: 0;
}
