.header-btn-container {
    display: flex;
    justify-content: right;
    margin-top: 310px;
}
.full-width-container {
    padding: 20px;
}
.bg-grey {
    background-color: #f7f7f7;
}
.sub-title {
    text-align: center;
    font-size: 38px;
    margin: 1em auto;
}
.sub-title span {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5em;
}
.sub-title span::after {
    content: '';
    position: absolute;
    /* 将left:0改为50%，并添加transform实现水平居中 */
    left: 50%;
    bottom: 0;
    width: 100px;
    height: 5px;
    background-color: #3267ff;
    /* 关键：通过 translateX(-50%) 使元素向左移动自身宽度的一半，实现居中 */
    transform: translateX(-50%);
}

.rs-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.rs-swiper-pg-container {
    position: relative;
    width: 100%;
}
.rs-swiper-card {
    background-color: #ffffff;
    position: relative;
    border: 1px solid #eee;
    padding: 30px 20px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    height: 360px;
}

.rs-card-date {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    padding: 0 20px; /* 移除上下内边距，便于垂直居中 */
    font-weight: bold;
    white-space: nowrap;
    height: 36px; /* 增加高度使三角形更钝 */
    display: flex; /* 使用flex实现文字垂直居中 */
    align-items: center; /* 垂直居中 */
    background: linear-gradient(90deg, #007bff 0%, #00a8ff 100%);
    padding-right: 35px; /* 为更宽的三角形预留空间 */
}

/* 钝角白色三角形，顶点朝左 */
.rs-card-date::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;

    /* 调整边框尺寸使三角形更钝（角度大于90度） */
    border-top: 18px solid transparent; /* 增加上下边框高度 */
    border-bottom: 18px solid transparent;
    border-right: 10px solid white; /* 减少右侧边框宽度，形成钝角 */
}

.rs-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 1em;
    line-height: 1.5em;
    height: 6em;
}

.rs-card-location {
    color: #007bff;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 3em;
}

.rs-card-content {
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.rs-card-icon-local {
    width: 1.2em;
}

.recent-exhibitions-swiper {
    /* 让slide尽可能利用空间 */
    .swiper-slide {
        width: auto !important; /* 取消固定宽度限制 */
        max-width: 300px; /* 可选：设置最大宽度避免过宽 */
    }
}

/* 确保swiper容器占满宽度 */
.recent-exhibitions-swiper {
    width: 100%;
    max-width: 1920px; /* 限制最大宽度 */
    margin: 2em auto; /* 居中显示 */
}


:root {
    /* 这组是为了重点场馆轮播能正常显示 */
    --kv-swiper-width: 20%;
    --kv-swiper-height: 300px;
    /* 这组数据是设置给的图片尺寸 */
    --kv-bg-img-width: 960px;
    --kv-bg-img-height: 500px;

    --ka-height: 481px;
}

/* Key Venues */
.kv-swiper-container {
    overflow: hidden;
    margin: 2em auto 0;
    width: 1200px;
}

.kv-swiper-container .swiper-wrapper {
    padding: 8.33% 0;
    align-items: center;
}

.kv-swiper-container .swiper-wrapper .swiper-slide {
    width: var(--kv-swiper-width) !important;
    aspect-ratio: 4 / 5; /* 原始比例 240:300 简化为 4:5 */
    height: auto; !important;
    opacity: 0.5;
    background-size: 100% 100%;
}
.kv-swiper-container .swiper-slide-active,
.kv-swiper-container .swiper-slide-duplicate-active {
    /* 这个比例刚好可以把图片恢复到正常尺寸 */
    transform: scale(4, calc(5/3)) !important;
    z-index: 3;
    transition: transform 0.5s ease;
    opacity: 1 !important;
    position: static;
}

.kv-swiper-container .swiper-slide-prev,
.kv-swiper-container .swiper-slide-next {
    /* 这个比例只是看着舒服而已 */
    transform: scale(2.55, 1.3) !important;
    z-index: 2;
    transition: transform 0.5s ease;
    opacity: 0.75 !important;
}

.kv-swiper-container img {
    width: var(--kv-swiper-width);
    aspect-ratio: 4 / 5; /* 原始比例 240:300 简化为 4:5 */
    height: auto; !important;
}
.kv-swiper-container .swiper-slide {
    cursor: pointer;
}
.kv-swiper-btn-container {
    position: relative;
}
.kv-swiper-btn-container {
    .swiper-button-next, .swiper-button-prev {
        top: -228px;
    }
    .swiper-button-next {
        right: 260px;
    }
    .swiper-button-prev {
        left: 260px;
    }
}
.kv-container {
    display: flex;
}
.kv-content-container {
    display: none;
}
.swiper-slide-active .kv-content-container {
    padding: 1em;
    transform-origin: 100% 0; /* 等同于 right top */
    transform: scale(calc(1 / 4), calc(3 / 5));
    width: 470px;
    color: #fff;
    display: block;
    position: relative;
    right: 240px;
    top: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    text-align: justify;
}
.kv-content-title {
    font-size: 22px;
}
.kv-content-abstract {
    margin-top: 1em;
    font-size: 14px;
    line-height: 24px;
}
.kv-container {
    .ka-item-container {
        position: relative;
        font-size: 14px;
        line-height: 24px;
        color: #ffffff;
        width: 12.5%;
        height: var(--ka-height);
        background-size: auto 100%;
        background-position: center;
        transition: width 0.3s ease; /* 添加过渡动画 */
    }
    .ka-item-container.active {
        width: 62.5%;
        padding: 3em 3em;
    }
    /* 在激活状态下添加半透明遮罩 */
    .ka-item-container.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #00000055; /* 灰色半透明遮罩 */
        z-index: 1;
    }
    /* 默认子元素都不显示 */
    .ka-item-container * {
        display: none;
    }
    .ka-item-container.active .--not-active {
        display: none !important;
    }

    /* 默认子元素都不显示 */
    .ka-item-container .ka-item-name.--not-active {
        font-size: 18px;
        display: block;
        opacity: 1;
        /* 旋转90度 */
        transform: rotate(90deg);
        /* 调整旋转基点到左下角，使旋转后文本靠右对齐 */
        transform-origin: top left;
        /* 定位到右侧 */
        position: absolute;
        right: calc(var(--ka-height) * -1 + 0.5em);
        top: 0.5em;
        /* 去除默认边距 */
        margin: 0;
        width: var(--ka-height);
    }

    /* 激活后所有子元素都显示 */
    .ka-item-container.content-visible * {
        position: relative;
        display: block;
        z-index: 2;
        opacity: 1;
    }
    .ka-item-container+.ka-item-container {
        margin-left: 5px;
    }
    .ka-item-name {
        font-size: 24px;
        margin-top: 1em;
    }
    .ka-item-description {
        margin-top: 2em;
        text-align: justify;
        font-size: 16px;
        text-shadow:
                -1px -1px 0 #222, /* 左上 */
                1px -1px 0 #222, /* 右上 */
                -1px  1px 0 #222, /* 左下 */
                1px  1px 0 #222; /* 右下 */
    }
    .ka-item-date {
        margin-top: 1em;
    }
    .ka-item-container.active.content-visible .btn {
        margin-top: 2em;
        border-radius: 1em;
    }
}

/* */
.es-item-container {
    display: flex;
    justify-content: space-between;
}
.es-item {
    width: 31%;
    background-color: #f4f4f4;
    padding-bottom: 1.5em;
}
.es-item-head {
    width: 100%;
    background-size: 100% 100%;
    color: #ffffff;
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    font-size: 18px;
    line-height: 22px;
}
.div-step-container {
    height: 220px;
    padding: 0 1em;
}
.div-step-container.first .div-step>div{
    color: #ffffff;
    background-color: #3366ff;
}
.div-step-container.first .div-step>.step-content{
    cursor: pointer;
    padding: 0.5em;
}
.div-step-container.first .div-step:hover>div{
    background-color: #ffae02;
}
/* 圆点样式 */
.div-step-container.first .step-dot {
    margin-top: 8px;
}

/* 竖线：通过伪元素 ::before 绘制 */
.div-step-container.first .div-step:not(:last-child):before {
    top: 20px;
    bottom: -50px; /* 竖线底部位置（与当前步骤圆点对齐） */
}

/* 单个步骤：横向排列（圆点 + 内容） */
.div-step {
    display: flex;
    align-items: flex-start; /* 顶部对齐 */
    position: relative; /* 为伪元素（竖线）提供定位参考 */
    margin-top: 2em;
}

/* 圆点样式 */
.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%; /* 圆形 */
    background-color: #3366ff;
    margin-top: 1px;
    margin-right: 15px; /* 与右侧内容的间距 */
    position: relative;
    top: 4px; /* 垂直居中微调 */
    z-index: 2; /* 确保圆点在竖线之上 */
}

/* 步骤内容：卡片样式 */
.step-content {
    border-radius: 4px;
    flex: 1;
    font-size: 14px;
    line-height: 20px;
}

/* 竖线：通过伪元素 ::before 绘制 */
.div-step:not(:last-child):before {
    content: "";
    position: absolute;
    left: 5px; /* 竖线与圆点的水平对齐 */
    top: 1em;
    bottom: -3em; /* 竖线底部位置（与当前步骤圆点对齐） */
    width: 2px;
    background-color: #d3d3d3;
    z-index: 1; /* 确保竖线在圆点之下 */
}
.es-btn {
    background-color: #3366ff;
    border-radius: 1em;
}
.sp-container {
    display: flex;
    justify-content: space-between;
    filter: drop-shadow(1px 1px 3px #4C4A4455);
}
.sp-item-container {
    position: relative;
    width: 23.5%;
}
.sp-item-border {
    width: 100%;
    height: 400px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 5% 100%, 0% 95%);
    background-color: #dadbec;
    padding: 1px;
}
.sp-item {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 5% 100%, 0% 95%);
    position: relative;
    padding: 8em 18px 0.5em 18px;
    font-size: 14px;
    line-height: 26px;
}
.sp-item::before {
    content: '';
    background-size: 100% 100%;
    width: 24px;
    height: 24px;
    position: absolute;
    top: 90px;
    left: 6px;
    font-size: 4rem;
    color: #ccc;
    font-family: serif;
    line-height: 1;
    transform: rotate(180deg);
}
.sp-item::after {
    content: '';
    background-size: 100% 100%;
    width: 24px;
    height: 24px;
    position: absolute;
    bottom: 12px;
    right: 6px;
    font-size: 4rem;
    color: #ccc;
    font-family: serif;
    line-height: 1;
}
.sp-item .sk-p-blue {
    border-bottom: solid thin #e3e3e3;
    color: #3a66f5;
    padding-bottom: 1em;
    margin-bottom: 1em;
}
.sp-item .sk-p-grey {
    color: #5a5a5a;
}
.sp-flag {
    color: #ffffff;
    width: 97%;
    height: 4.5em;
    left: 1em;
    position: absolute;
    padding: 0.5em 0.5em 0.5em 1em;
    top: 1em;
    z-index: 10;
    border-radius: 0 0 0 1em;
    background: linear-gradient(to right, #3a68fb, #74aefd); /* 从左到右的渐变 */
    display: flex;
    align-items: center;
}

.is-container {
    height: 560px;
    background-size: auto 100%;
    background-position: center;
}
.is-item {
    width: 420px;
    height: 72px;
    background-size: 100% 100%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    font-size: 20px;
    cursor: pointer;
}
