﻿
.hstack-search-custom {
    width: 6.88rem;
    height: 4.38rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*折叠卡*/
.track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

    .track::-webkit-scrollbar {
        display: none;
    }

.project-card {
    position: relative;
    flex: 0 0 18.64%;
    height: 50.29rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

    .project-card[active] {
        transform: translateY(-100px);
        box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    }

.project-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card__bg {
    transform: scale(1.06);
}

.project-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
/*    justify-content: center;*/
    align-items: center;
    gap: 0.7rem;
    padding: 0;
    background:rgba(var(--bs-page-link-bg-base), 0.9);
    z-index: 2;
}

    .project-card__content .content-box {
        flex-direction:column;
        padding:15.33% 0;
        height:100%;
        justify-content: space-between;
    }
.content-box .content-title-box {
    flex-direction: column;
    flex-wrap:nowrap;
    width:100%;
    min-height:0;
}

.titleIcon {
    aspect-ratio: 40/34;
    width: 15.33%;
    background: url('/imgs/remains/antiquity/title-icon.png') center / 100% 100%;
}
.project-card__title {
    color: var(--bs-saietpublid);
    font-weight: 700;
    writing-mode: vertical-rl;
    letter-spacing: 5px;
}
.project-content-img{
    width:100%
}
.img-float{
    left:15.33%
}
/*底部折叠卡*/
/*古建筑*/
.architecture-main {
    justify-content: center;
    align-items: stretch;
    min-height: 0;
    max-width: 1763px;
}
.architecture-left-box {
    flex: 0 0 auto;
}
.left-more-icon {
    width: 60.65%;
}
.left-item {
    z-index:1;
    background: #F3EEDE;
    width: 155px;
    padding: 100px 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    transition: all 400ms ease;
}
.active-img {
    z-index: -1;
    position: absolute;
    width: 67.7%;
    bottom: 50px;
    right: 0;
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    will-change: transform, opacity;
    transition: all 400ms ease;
}
    .left-item[active] {
        background: #EAE0BE;
    }
    .left-item[active] .active-img {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

.architecture-title {
    color: var(--bs-saietpublid);
    writing-mode: vertical-rl;
    letter-spacing: 5px;
}
.right-box {
    max-width: 56%;
    width: 56%;
}
.swiper-card {
    aspect-ratio: 3/2;
}
/*古柏*/
.cypress-box{
    margin-bottom:40px;
}
.cypress-item {
    width: 31.22%;
    background: #BB8340;
    aspect-ratio: 437/292;
    border-radius: 12px;
}
.cypress-item-title {
    color: #F3EEDE;
    letter-spacing: 0.2em;
    font-size: 24px;
    text-shadow: 5px 0px 6px #512C04;
}
/*古碑*/
.stele-main {
    max-width: 1713px;
    box-sizing:border-box;
}
.stele-left-box {
    margin-left: 3.5%;
    flex:1;
    min-width:0;
/*    background:red;*/
}
.stele-right-box {
    width: 28.664%;
    margin-left: 7%;
    display: flex;
    flex-direction: column;
    color: var(--bs-page-link-bg);
}
.stele-right-title,
.stele-right-items .bi-arrow-up-right {
    transition: all 0.3s ease-in-out;
}
.stele-right-items {
    border-bottom: 1px solid #A87D4E;
    cursor: pointer;
    color: var(--bs-selete-title-color);
}
    .stele-right-items:hover {
        color: var(--bs-page-link-bg);
    }
    .stele-right-items:hover .bi-arrow-up-right {
        transform: rotate(45deg);
    }
.stele-right-title{
    min-width:0;
    flex:1;
}
.stele-right-items .bi-arrow-up-right {
    font-size: 1.5rem;
    color: #986A36;
    margin-left:1rem;
}


.tile-gallery {
    --scroll-speed: 40s;
    --reveal-speed: 2s;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1042/1082;
/*    mask-image: linear-gradient( to bottom, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0) );*/
}

    .tile-gallery img {
        width: 100%;
        object-fit: contain;
        transition: all 0.3s ease;
        display: flex;
        border-radius: 1rem;
    }

    .tile-gallery .tile__inner {
        overflow: hidden;
        cursor: pointer;
        border-radius: 1rem;
        transition: all 0.4s cubic-bezier(0.6, 1, 0.45, 1);
    }

        .tile-gallery .tile__inner:hover {
            transform: scale(1.04);
        }

.tile-gallery__inner {
    display: flex;
    gap: 5.76%;
    transition: -webkit-transform 3s cubic-bezier(0.19, 1, 0.22, 1);
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1);
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1), -webkit-transform 3s cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    align-items: flex-start;
}

.tile__wrapper {
    flex: 0 1 50%;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
/*    animation: move-tiles var(--scroll-speed, 45s) linear infinite;*/
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.tile__wrapper-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: all var(--reveal-speed, 2s) ease;
}

.tile__wrapper.is-paused,
.tile-gallery.is-paused .tile__wrapper,
.tile__wrapper.is-paused .tile__wrapper,
.tile__wrapper.is-paused,
.tile__wrapper.is-paused > .tile__wrapper-inner > .tile__inner {
    -webkit-animation-play-state: paused !important;
    animation-play-state: paused !important;
}

.tg-vertical {
    animation-name: move-tiles-vertical;
    animation-duration: var(--scroll-speed, 45s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

.tg-horizontal{
    animation-name: move-tiles-horizontal;
    animation-duration: var(--scroll-speed, 45s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

.tg-reverse{
    animation-direction: reverse;
}

@keyframes move-tiles-vertical {
    0% {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes move-tiles-horizontal {
    0% {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
/*古碑*/
/*诗词*/
.poetry-left-box {
    width: 47.55%;
    aspect-ratio: 913/721;
    background-image: url('/imgs/remains/poetry/left-bg.png');
    background-size: 100% 100%;
}
.poetry-right-container {
    width: 77.67%;
    gap:2rem;
}
.poetry-right-item {
    cursor: pointer;
}
.poetry-right-title {
    flex: 1;
    min-width: 0;
    color: var(--bs-saietpublid);
}
/*诗词*/
.active-slide {
    transform:scale(1) !important;
}
.fy-box {
    position: relative;
    transform: scale(0.8);
    transition: all 600ms ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
    .fy-box img {
        width: 100%;
        aspect-ratio: 481/455;
        border-radius: 1rem;
        -webkit-user-drag: none;
    }
.fy-title {
    color: var(--bs-text-color-gray);
    text-align: center;
}
.list {
    width: 420px;
    border-radius: 12px;
    position: relative;
    margin: 10px 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 8px 20px -6px rgba(0, 0, 0, .15);
    color: var(--bs-remains-cards-text-color-introduct);
    height: 533px;
    background: var(--bs-foot-color);
    display:flex;
    flex-direction:column;
}
.top-img-box {
    background: url('/imgs/remains/top-img-main-bg.png') no-repeat;
    background-size: 100% 100%;
    width: 94.4%;
    aspect-ratio:522/500;
}

.list_1 {
    background: url('/imgs/remains/background-1.png') no-repeat;
    width: 420px;
    height: 225px;
    background-size: 420px 225px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #F9F4E7;
    position: relative;
    z-index: 2;
}

.list_2 {
    background: url('/imgs/remains/background-2.png') no-repeat;
    width: 420px;
    height: 225px;
    background-size: 420px 225px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #F9F4E7;
}

.list_3 {
    background: url('/imgs/remains/background-3.png') no-repeat;
    width: 420px;
    height: 225px;
    background-size: 420px 225px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #F9F4E7;
}

#pills-tab::-webkit-scrollbar {
    display: none;
}

.all_ {
    background: url('/imgs/public/ruinsnav.png');
    width: 100%;
    /*    height: 60px;*/
    background-size: cover;
    display: flex;
    align-items: center;
}

.bg-primary {
    background-color: var(--bg-primary) !important;
}

.saient-ellipsis-multiline {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.active {
    display: block;
}

.tab-selected {
    font-weight: bold;
    color: var(--bs-color-events_);
    border-bottom: 3px solid var(--bs-color-events_);
    line-height: 60px;
    height: 60px
}

.tab-link {
    color: var(--bs-color-events_);
}



#tabs {
    justify-content: space-between;
}

.tab_2 {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--bs-color-events_7);
}

    .tab_2:hover {
        background-color: var(--bs-color-events_7);
    }

.list_ {
    background-color: var(--bs-whites);
    padding: 15px;
    border-radius: 5px;
}


.rows_list div {
    /*    margin-left: 58px;*/
}

.color_g {
    text-align: center;
    font-weight: bold;
    color: var(--bs-remains-cards-text-redcolor);
}

#tabHeaders {
    display: flex;
    justify-content: space-between;
}

.tabHeader {
    cursor: pointer;
    padding: 10px;
    background-color: var(--bs-color-events_s);
    margin-right: 5px;
    flex-grow: 1;
    text-align: center;
}

    .tabHeader.active {
        background-color: var(--bs-color-events);
    }

@media (min-width: 768px) {
    .own-col-md-7 {
        flex: 0 0 auto;
        width: 60.5%;
    }

}
@media (max-width: 767px){
    .track {
        flex-direction: column;
        scroll-snap-type: y mandatory;
        gap: 0.8rem;
        padding-bottom: 20px;
    }

    .project-card {
        height: auto;
        min-height: 100px;
        flex: 0 0 auto;
        width: 100%;
        scroll-snap-align: start;
    }

        .project-card[active] {
            transform: none;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }
        .project-card[onlyShow] {
            display: none;
        }

        .project-card__bg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

    .project-card:hover .project-card__bg {
        transform: scale(1.06);
    }

    .project-card__content {
        flex-direction: row;
        padding: 1rem;
        align-items: center;
        gap: 1rem;
    }
        .project-card__content .content-box {
            flex-direction: row;
            justify-content: center;
            padding: 0;
        }
    .content-box .content-title-box {
        flex-direction: row;
        flex: 1;
        min-width: 0;
    }
    .content-box .img-float {
        left: 0;
    }



    .project-card__title {
        writing-mode: horizontal-tb;
        transform: none;
    }
    .project-content-img {
        width: auto;
        height: 100px;
    }
    .titleIcon {
        width:auto;
        height: 25px;
    }

    /*    古碑*/
    .stele-main {
        flex-wrap:wrap;
    }
    .stele-left-box {
        width: 100%;
        margin:0;
    }

    .stele-right-box {
        width: 100%;
        margin:20px;
    }

    .stele-right-items .bi-arrow-up-right {
        font-size: 1rem;
    }
    /*诗词*/
    .poetry-left-box {
        width: 100%;
    }

    .poetry-right-container {
        width: 90%;
        gap: 2rem;
    }
    /*诗词*/
}
@media (max-width: 1400px) {
    /*古建筑*/
    .architecture-main {
        flex-direction:column-reverse;
        justify-content:flex-start;
        align-items:center;
    }

    .architecture-left-box {
        flex-direction:column;
        width:100%;

    }
    .left-more-icon{
        width:auto;
        height:90%
    }

    .left-item {
        width: 100%;
        padding: 0 20px !important;
        height: 100px;
        flex-direction: row;
        align-items: center;
    }

    .active-img {
        bottom: 0;
        top: 0;
        width: auto;
        height: 100%;
        transition:none;
    }

    .architecture-title {
        writing-mode: horizontal-tb;
        transform: none;
    }
    .right-box {
        max-width: 100%;
        width: 100%;
    }

/*    .swiper-card {
        aspect-ratio: 988/935;
    }*/
}
