*, *::before, *::after { margin: 0; padding: 0; box-sizing: inherit; }

:root {
  --animate-duration: 1s;
  --animate-delay: 1s;
  --animate-repeat: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 50px, 0);
    transform: translate3d(0, 50px, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.animate__fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

.animate__fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

.animate__animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-duration: var(--animate-duration);
  animation-duration: var(--animate-duration);
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

html {
    box-sizing: border-box;
    background-image: url("../images/backdrop.png");
    background-size: 100% auto;
    background-repeat: repeat-y;
}

body {
    color: #FFFFFF;
    font-family: "FangZhengQingKeBenYueSongJianTi";
}

body > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: .5;
    z-index: 1000;
    pointer-events: none;
}

img { display: block; }

[aspect-ratio] { position: relative; width: 100%; }

[aspect-ratio]::before { content: ""; display: block; padding-bottom: calc(100% / (var(--aspect-ratio))); }

[aspect-ratio-content] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

[aspect-ratio-content] img, [aspect-ratio-content] video { display: block; width: 100%; height: 100%; object-fit: cover; }

[aspect-ratio="16/9"] { --aspect-ratio: 16/9; }

.w-100 {
    width: 100%;
}

.content {
    padding: 2.5vw 15vw 4vw;
}

.content-title,
.content-title-english {
    text-align: center;
    font-size: 1.5vw;
}

.content-intro,
.content-intro-english {
    text-indent: 2em;
    font-size: 1vw;
    margin-top: 1.4vw;
    line-height: 1.57;
}

.exhibition-introduction-english {
    margin-top: 2vw;
}

.content-title-english {
    font-size: 1.1vw;
}

.content-intro-english {
    font-size: .9vw;
    margin-top: 1vw;
    line-height: 1.7;
}

.content-link {
    position: relative;
    margin-top: 5.5vw;
}

.content-link:hover {
    transform: scale(1.1);
}

.content-link  > a > img {
    position: relative;
    left: 50%;
    width: 103.25%;
    transform: translateX(-50%);
}

.content-link-font {
    position: absolute;
    bottom: 2vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.content-link-font span {
    line-height: 1;
    font-weight: bold;
    font-size: 1.875000vw;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, #C29125, #DAC6A1, #C29125);
}

.content-link-font img {
    width: 2.604167vw;
}

.content-video {
    margin-top: 4.8vw;
}

.video-wrap {
    margin-top: 1.5vw;
    border-radius: .65vw;
    overflow: hidden;
}

.tabs-wrapper {
    margin-top: 5.47vw;
}

.tabs-wrap,
.tabs-wrap .tab,
.cultural-relic-inner,
.cultural-relic-name,
.cultural-relic-inner .view-more {
    display: flex;
}

.tabs-wrap {
    position: relative;
    border-radius: .65vw;
    border: 2px solid #675C39;
    overflow: hidden;
}

.tabs-wrap::before,
.tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    z-index: -2;
    transform: translateX(-50%);
    background-color: #675C39;
}

.tabs-wrap::before {
    left: 33.333333%;
}

.tabs-wrap::after {
    left: 66.666666%;
}

.tabs-wrap .tab {
    cursor: pointer;
    flex: 1;
    height: 6.3vw;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tabs-wrap .tab-unit {
    font-size: 1.15vw;
    margin-bottom: .75vw;
}

.tabs-wrap .tab-title {
    font-size: 1.3vw;
}

.tabs-wrap .active-icon {
    position: absolute;
    top: 0;
    width: 33.333333%;
    z-index: -1;
    transition: left .15s;
}

.tabs-wrap.active-0 .active-icon {
    left: 0;
}

.tabs-wrap.active-1 .active-icon {
    left: calc(100% / 3);
}

.tabs-wrap.active-2 .active-icon {
    left: calc((100% / 3) * 2);
}

.tabs-content .tab-content {
    display: none;
    animation: fadeIn .5s forwards ease-in-out;
}

.tabs-content .tab-content.active {
    display: block;
}

.tabs-content .tab-content .tab-content-title {
    display: none;
    text-align: center;
}

.tabs-content .tab-content .tab-content-title .unit {
    font-size: 16px;
}

.tabs-content .tab-content .tab-content-title .title {
    font-size: 18px;
    margin-top: .25em;
}

.cultural-relic-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    margin-top: 4vw;
    row-gap: 4vw;
}

.cultural-relic {
    position: relative;
    width: 72.5%;
    height: 28.1vw;
    border-radius: .65vw;
    border: 1px solid #C5AD67;
    padding: 1.6vw 1.6vw 1.8vw;
}

.cultural-relic .view-more {
    cursor: pointer;
    position: absolute;
    left: 50%;
    bottom: 0;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, 50%);
}

.tabs-wrap .tab,
.cultural-relic .view-more,
.content-link {
    transition: transform .3s;
}

.tabs-wrap .tab:hover {
    transform: scale(1.1);
}

.cultural-relic .view-more:hover {
    transform: translate(-50%, 50%) scale(1.1);
}

.cultural-relic .view-more img {
    width: 98%;
    pointer-events: none;
}

.cultural-relic .view-more span {
    position: absolute;
    font-size: 1vw;
}

.cultural-relic-inner {
    height: 100%;
    justify-content: space-between;
}

.cultural-relic-inner .thumbnail {
    width: 69.5%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    pointer-events: none;
}

.cultural-relic-name {
    width: fit-content;
    color: #C5AD67;
    flex-shrink: 0;
}

.cultural-relic-name .name,
.cultural-relic-name .origin-place {
    writing-mode: vertical-lr;
}

.cultural-relic-name .name {
    font-size: 1.3vw;
}

.cultural-relic-name .origin-place {
    font-size: 1.025vw;
    margin-left: 0.6em;
}

.moments {
    margin-top: 7.4vw;
}

.moments-flicking-wrapper {
    position: relative;
}

#moments-flicking {
    margin-top: 2vw;
}

#moments-flicking .panel {
    width: calc(100% / 3);
    border-radius: .65vw;
    overflow: hidden;
}

.moments-flicking-prev,
.moments-flicking-next {
    width: 3.35vw;
    height: 3.35vw;
    border-radius: 50%;
    background-color: #FFFFFF;
}

.moments-flicking-prev {
    left: 0;
    transform: translate(-120%, -50%);
}

.moments-flicking-next {
    right: 0;
    transform: translate(120%, -50%);
}

.moments-flicking-prev::before,
.moments-flicking-prev::after,
.moments-flicking-next::before,
.moments-flicking-next::after {
    background-color: #000000;
}

.moments-flicking-prev.is-thin::before,
.moments-flicking-prev.is-thin::after,
.moments-flicking-next.is-thin::before,
.moments-flicking-next.is-thin::after {
    width: 1.26vw;
    height: .158vw;
}

.moments-flicking-prev.is-thin::before,
.moments-flicking-prev.is-thin::after {
    left: 1.151vw;
}

.moments-flicking-next.is-thin::before,
.moments-flicking-next.is-thin::after {
    right: 1.151vw;
}

.moments-flicking-prev.is-thin::after,
.moments-flicking-next.is-thin::after {
    top: calc(50% - .125vw);
}

.conclusion {
    margin-top: 6vw;
}

.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2025;
    pointer-events: none;
    padding: 5vw 15vw;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    animation: fadeIn 1s forwards ease-in-out;
}

.modal-wrapper .modal-title .name {
    font-size: 1.4vw;
}

.modal-wrapper .modal-title .origin-place {
    font-size: 1.1vw;
    margin-top: .5em;
}

.modal-wrapper .modal-desc {
    font-size: 1vw;
    line-height: 1.5;
}

.viewer-backdrop {
    background-color: rgba(0, 0, 0, .75);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.viewer-footer {
    bottom: 22%;
}

.viewer-toolbar .viewer-zoom-in,
.viewer-toolbar .viewer-zoom-out {
    width: 3vw;
    height: 3vw;
    border-radius: 0;
    outline: none;
    box-shadow: none !important;
}

.viewer-toolbar .viewer-zoom-in::before,
.viewer-toolbar .viewer-zoom-out::before {
    margin: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-image: url("../images/24.png");
    background-position: 0 0;
}

.viewer-toolbar .viewer-zoom-out {
    margin-left: 2vw;
}

.viewer-toolbar .viewer-zoom-out::before {
    background-image: url("../images/25.png");
}

.back-to-top {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 3.5vw;
    bottom: 3.5vw;
    width: 3vw;
    height: 3vw;
    border-radius: 50%;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: background .3s;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .3));
    animation: fadeIn .5s forwards ease-in-out;
}

.back-to-top.show {
    display: flex;
}

.back-to-top svg {
    display: block;
    width: 45%;
    height: 45%;
    fill: #000000;
    transition: fill .3s;
}

.back-to-top:hover {
    background-color: #000000;
}

.back-to-top:hover svg {
    fill: #FFFFFF;
}

@media screen and (max-width: 1440px) {
    .content {
        padding: 35px 12vw 100px;
    }

    .modal-wrapper {
        padding: 50px 12vw;
    }

    .viewer-toolbar .viewer-zoom-in, .viewer-toolbar .viewer-zoom-out {
        width: 45px;
        height: 45px;
    }

    .content-title, .content-title-english, .modal-wrapper .modal-title .name {
        font-size: 20px;
    }

    .content-intro, .content-intro-english, .cultural-relic-name .origin-place, .cultural-relic .view-more span, .modal-wrapper .modal-title .origin-place, .modal-wrapper .modal-desc {
        font-size: 14px;
        margin-top: 1em;
    }

    .exhibition-introduction-english {
        margin-top: 20px;
    }

    .content-video, .content-link {
        margin-top: 50px;
    }

    .video-wrap, #moments-flicking {
        margin-top: 20px;
    }

    .tabs-wrapper, .conclusion {
        margin-top: 70px;
    }

    .tabs-wrap .tab {
        height: 80px;
    }

    .tabs-wrap .tab-unit {
        font-size: 16px;
        margin-bottom: .3em;
    }

    .tabs-wrap .tab-title {
        font-size: 18px;
    }

    .tabs-wrap .active-icon {
        height: 100%;
    }

    .cultural-relic-list {
        margin-top: 50px;
    }

    .cultural-relic {
        width: 325px;
        height: 375px;
    }

    .cultural-relic-name .name {
        font-size: 18px;
    }

    .cultural-relic-name .origin-place,
    .cultural-relic .view-more span {
        margin-top: 0;
    }

    .cultural-relic .view-more img {
        width: 175px;
    }

    .moments {
        margin-top: 85px;
    }

    #moments-flicking .panel {
        width: calc(100% / 2.5);
    }

    .modal-wrapper .modal-desc {
        margin-top: 0;
    }

    .moments-flicking-prev.is-thin::after,
    .moments-flicking-next.is-thin::after {
        top: calc(50% - .08vw);
    }

    .back-to-top {
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 1280px) {
    .content {
        padding: 35px 10vw 80px;
    }

    .content-link-font {
        bottom: 2.5vw;
    }

    .content-link-font span {
        font-size: 16px;
    }

    .modal-wrapper {
        padding: 40px 10vw;
    }

    .viewer-toolbar .viewer-zoom-in, .viewer-toolbar .viewer-zoom-out {
        width: 35px;
        height: 35px;
    }

    .content-video, .content-link {
        margin-top: 40px;
    }

    .tabs-wrapper, .conclusion {
        margin-top: 55px;
    }

    .moments {
        margin-top: 70px;
    }

    .moments-flicking-prev.is-thin::after,
    .moments-flicking-next.is-thin::after {
        top: calc(50% - 1px);
    }
}

@media screen and (max-width: 992px) {
    .content {
        padding: 30px 6vw 80px;
    }

    .modal-wrapper {
        padding: 40px 6vw;
    }

    .tabs-wrapper, .conclusion {
        margin-top: 40px;
    }

    .cultural-relic-list {
        margin-top: 40px;
    }

    .cultural-relic {
        width: 290px;
        height: 340px;
        padding: 15px;
    }

    .moments {
        margin-top: 60px;
    }

    #moments-flicking .panel {
        width: calc(100% / 2);
    }

    .moments-flicking-prev, .moments-flicking-next {
        width: 35px;
        height: 35px;
    }

    .moments-flicking-prev.is-thin::before, .moments-flicking-prev.is-thin::after, .moments-flicking-next.is-thin::before, .moments-flicking-next.is-thin::after {
        width: 12px;
        height: 2px;
    }

    .moments-flicking-next.is-thin::before, .moments-flicking-next.is-thin::after {
        right: 12px;
    }

    .moments-flicking-prev.is-thin::before, .moments-flicking-prev.is-thin::after {
        left: 12px;
    }

    .moments-flicking-prev {
        left: 10px;
        transform: translate(0%, -50%);
    }

    .moments-flicking-next {
        right: 10px;
        transform: translate(0%, -50%);
    }

    .back-to-top {
        right: 5%;
        bottom: 5%;
    }
}

@media screen and (max-width: 768px) {
    .content {
        padding: 30px 20px 80px;
    }

    .modal-wrapper {
        padding: 30px 20px;
    }

    .tabs-wrap {
        display: none;
    }

    .tabs-content .tab-content,
    .tabs-content .tab-content .tab-content-title {
        display: block;
    }

    .tabs-content .tab-content + .tab-content {
        margin-top: 60px;
    }

    .cultural-relic-list {
        gap: 35px 15px;
        margin-top: 20px;
    }

    .cultural-relic {
        width: 100%;
        height: 320px;
    }

    .cultural-relic-name .name {
        font-size: 16px;
    }

    .cultural-relic-name .origin-place {
        font-size: 12px;
    }

    #moments-flicking .panel {
        width: calc(100% / 1.25);
    }
}

@media screen and (max-width: 576px) {
    .cultural-relic-list {
        grid-template-columns: 1fr;
    }

    .cultural-relic {
        height: auto;
    }

    .cultural-relic-inner .thumbnail {
        width: 225px;
        height: 315px;
    }

    .cultural-relic-name .name {
        font-size: 18px;
    }

    .cultural-relic-name .origin-place {
        font-size: 14px;
    }

    #moments-flicking .panel {
        width: 100%;
    }
}
