/* 轮播公共基础样式：所有轮播的slide、图片、箭头基础样式，只写一次 */
.swiper {
    position: relative;
    overflow: hidden;
}

.swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.125rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border: none;
    outline: none;
}

.swiper-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.swiper-pagination {
    bottom: 0.9375rem !important;
}

/* banner轮播 -- start */
.swiper-banner {
    width: 100%;
    /* max-width: 1200px; */
    height: auto;
    overflow: hidden;
    margin: 0 auto 0px;
}

/* 轮播1的专属箭头 */
.swiper-banner .swiper-btn-prev {
    left: 1.25rem;
}

.swiper-banner .swiper-btn-next {
    right: 1.25rem;
}

/* banner轮播的专属分页器 */
.swiper-banner .swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background: #96b5e3;
    opacity: 0.6;
}

.swiper-banner .swiper-pagination-bullet-active {
    opacity: 1;
    background: #4078cd;
}

.swiper-video {
    position: relative;
    width: 100%;
    height: auto;
    /* 16:9 是视频最常用比例，计算方式：9/16=56.25% */
    max-height: calc(100vh - 8.4375rem);
    object-fit: cover;
    width: 100vw;
    aspect-ratio: 16 / 9;
}

.swiper-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 填满占位容器 */
    object-fit: cover;
    background-color: #000;
}

/* banner轮播 -- end */

/* 基地介绍 -- start */
.base-container {
    position: relative;
    width: 100%;
}

.base-img {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.base-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.base-content {
    max-width: 75rem;
    min-height: 49.375rem;
    margin: auto;
    position: relative;
    z-index: 2;
    padding: 3.75rem 0 3.125rem;
}

.base-content .title,
.theme-content .theme-title {
    font-size: 2.5rem;
    color: #000;
    line-height: 3.0625rem;
    font-weight: 500;
}

.base-content .title-en,
.theme-content .theme-title-en {
    font-size: 2.5rem;
    color: #D8D8D8;
    line-height: 3.0625rem;
}

.title-line {
    width: 10.375rem;
    height: 0.125rem;
    margin-top: 1rem;
    background-color: #00329F;
}

.introduction {
    margin-top: 4.75rem;
    max-width: 62.5rem;
}

.introduction p {
    font-size: 1.5625rem;
    color: #000;
    line-height: 2.875rem;
    text-indent: 2em;
}

.introduction p span {
    color: #00329F;
}

.distinction {
    display: flex;
    flex-wrap: wrap;
    gap: 1.625rem;
    margin-top: 1.5rem;
}

.distinction-item {
    min-width: 11.375rem;
    background: #EEF2F9;
    border-radius: 0.5rem;
    padding: 1rem 1.375rem;
}

.item-count {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    align-items: baseline;
    border-bottom: 0.0625rem solid #E5E5E5;
}

.item-number {
    font-family: 'DIN-Bold', sans-serif;
    font-size: 3rem;
    color: #00329F;
}

.item-unit {
    font-size: 1rem;
    color: #7B7B7B;
}

.item-name {
    font-size: 0.875rem;
    color: #7B7B7B;
    text-align: center;
    margin-top: 0.625rem;
}

/* 防止页面一开始闪烁，所有动画元素默认隐藏 */
.base-img,
.base-content .title,
.base-content .title-en,
.base-content .title-line,
.introduction p,
.distinction-item {
    opacity: 0;
}

/* 数字默认隐藏，滚动时再显示 */
.item-number {
    opacity: 1;
}

.animate-slideInUp-light {
    opacity: 0;
    transform: translateY(1.25rem);
    animation: slideInUpLight 0.7s ease forwards;
}

@keyframes slideInUpLight {
    0% {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 基地介绍 -- end */

/* 主题展区 -- start */
.theme-container {
    background: #F0F1F5;
    padding: 5rem 0;
}

.theme-content {
    max-width: 75rem;
    margin: 0 auto;
}

.theme-content .theme-title,
.theme-content .theme-title-en {
    text-align: center;
}

.theme-content .title-line {
    margin: 1rem auto 0;
}

.exhibition-card {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 1.875rem;
    background: #FFFFFF;
    box-shadow: 0px 0.4375rem 0.75rem 0.0625rem rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
}

.exhibition-img {
    width: 50%;
    height: 18.125rem;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.exhibition-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exhibition-info {
    padding: 0.75rem 1.5rem 1.25rem;
    min-width: 0;
}

.exhibition-info .title {
    font-size: 1.75rem;
    color: #000000;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.exhibition-info .title-en {
    font-size: 1rem;
    color: #B2B2B2;
    line-height: 1.375rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.exhibition-desc {
    font-size: 1.1875rem;
    color: #515151;
    line-height: 1.5rem;
    /* height: 74px; */
    /* -webkit-line-clamp: 3; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.exhibition-desc span {
    color: #00329F;
}

.contact-info {
    background: #F5FAFF;
    border-radius: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.625rem;
    padding: 1.375rem;
    margin-top: 1.5rem;
}

.location,
.traffic,
.phone,
.time {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
}

.location,
.phone {
    width: 45%;
}

.traffic,
.time {
    width: calc(62% - 1.625rem);
}

.location span,
.phone span {
    word-break: break-all;
}

.exhibition-card:hover {
    box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.08);
}

.hover-container img {
    transition: transform 0.4s ease;
}

.hover-container:hover img {
    transform: scale(1.06);
}

.exhibition-card,
.theme-title,
.theme-title-en,
.theme-content .title-line {
    opacity: 0;

}

/* 主题展区 -- end */


/* 屏幕宽度<1200px时生效 */
@media screen and (max-width: 1201px) {

    .base-content,
    .theme-content {
        padding: 1.5rem;
    }
}

/* 屏幕宽度<768px时生效 */
@media screen and (max-width: 820px) {
    .theme-container {
        padding: 1.25rem 0;
    }
    .exhibition-card {
        flex-wrap: wrap;
    }

    .exhibition-img,
    .exhibition-info,
    .location,
    .phone,
    .traffic,
    .time {
        width: 100%;
    }

}


/* 屏幕宽度<600px时生效 */
@media screen and (max-width: 601px) {
    .distinction {
        gap: 0.875rem;
        justify-content: center;
    }

    .distinction-item {
        width: calc(25% - 2rem);
    }
}