/* Small bridge between the legacy template and the Blazor host. */
.swiper-container.indexbanner {
    height: 100vh;
    min-height: 680px;
}

.swiper-container.indexbanner .swiper-wrapper,
.swiper-container.indexbanner .swiper-slide,
.swiper-container.indexbanner .page_bannner {
    height: 100%;
}

.swiper-container.indexbanner .swiper-wrapper {
    display: block;
    position: relative;
    height: 100%;
    transform: none !important;
    transition: none;
}

.swiper-container.indexbanner .swiper-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.swiper-container.indexbanner .swiper-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Shared product consultation dialog (same behavior for home/list/detail). */
.ow-consult-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ow-consult-modal.is-open {
    display: flex;
}

/* Keep the hover overlay from swallowing clicks on the actual consultation link. */
.goods .sulc_c .sulc_c_content .plus_c_c {
    pointer-events: none;
}

.goods .sulc_c .sulc_c_content .plus_c_c .talk_btn {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.ow-consult-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.62);
}

.ow-consult-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 30px 32px 26px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.ow-consult-close {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 1px 6px;
    border: 0;
    background: transparent;
    color: #8a96a6;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ow-consult-dialog h2 {
    margin: 0 0 12px;
    color: #1f1142;
    font-size: 22px;
}

.ow-consult-ok {
    padding: 9px 26px;
    border: 0;
    border-radius: 4px;
    background: #d71700;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.ow-consult-ok:hover {
    background: #b01200;
}

.ow-consult-dialog p {
    margin: 0 0 18px;
    color: #5d6878;
    font-size: 14px;
    line-height: 1.8;
}

.ow-consult-phone {
    display: block;
    margin: 0 0 22px;
    color: #d71700;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
}

.ow-consult-phone:hover {
    color: #b01200;
    text-decoration: none;
}

.ow-consult-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ow-consult-actions .custom-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 4px;
}

.ow-consult-cancel {
    padding: 9px 20px;
    border: 1px solid #d5dce6;
    border-radius: 4px;
    background: #fff;
    color: #5d6878;
    cursor: pointer;
}

body.ow-modal-open {
    overflow: hidden;
}

.swiper-container.indexbanner .page_bannner {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* The legacy header is white-on-photo; add a little shadow for legibility. */
.ny_pc_main_nav .nav_container > ul > li > a {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Keep the mobile hamburger visible on the white mobile header. */
.ny_mobile_main_nav .menu_btn .btnline span,
.ny_mobile_main_nav .menu_btn .btnline span:before,
.ny_mobile_main_nav .menu_btn .btnline span:after {
    background-color: #1f1142;
}

/* About page: history cards (the original uses Swiper; show cards in a row). */
.company_times .times_container_list .swiper-wrapper {
    display: flex;
    overflow-x: auto;
}

.company_times .times_container_list .swiper-slide {
    flex: 0 0 25%;
    max-width: 25%;
}

.map_container_c iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.map_container_c img {
    display: block;
    width: 100%;
    height: auto;
}

.solution_reverse .solution_intro_c > .row {
    display: flex;
    flex-direction: row-reverse;
}

/* Contact page info cards (legacy page uses three white cards). */
.ow-contact-cards {
    display: flex;
    gap: 30px;
}

.ow-contact-card {
    flex: 1;
    padding: 35px 35px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #fff;
    color: rgba(31, 17, 66, 0.5);
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 5px;
    box-shadow: 1px 1px 15px 0 rgba(0, 0, 0, 0.025);
    transition: transform 0.5s ease;
}

.ow-contact-card:hover {
    transform: translateY(-6px);
}

.ow-contact-card .iconfont {
    font-size: 30px;
    color: #d71700;
}

.pages3 a {
    margin: 0 4px;
}

.ow-detail {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 36px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 58, 93, 0.06);
}

.ow-detail-image {
    flex: 0 0 42%;
}

.ow-detail-image img {
    display: block;
    width: 100%;
    height: auto;
}

.ow-detail-content {
    flex: 1;
    min-width: 0;
    color: rgba(31, 17, 66, 0.8);
}

.ow-detail-content .show_text {
    margin-top: 20px;
    line-height: 30px;
}

.ow-detail-content img {
    max-width: 100%;
    height: auto;
}

.ow-detail-meta {
    color: #8b93a7;
    font-size: 14px;
    margin-top: 20px;
}

@media (max-width: 991px) {
    .ow-detail {
        flex-direction: column;
        padding: 24px;
        gap: 24px;
    }

    .ow-detail-image {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .ow-contact-cards {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .company_times .times_container_list .swiper-slide {
        flex-basis: 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .company_times .times_container_list .swiper-slide {
        flex-basis: 100%;
        max-width: 100%;
    }

    .map_container_c iframe {
        height: 300px;
    }
}

.ow-public-page {
    overflow: hidden;
}

/* Legacy inner-page banners use height:50%, which collapses outside the old JS layout. */
.inner_page_banner {
    height: 50vh;
    min-height: 340px;
    max-height: 600px;
    padding-top: 74px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .swiper-container.indexbanner {
        height: 72vh;
        min-height: 480px;
        max-height: 620px;
    }

    .inner_page_banner {
        height: 250px;
        min-height: 220px;
        padding-top: 56px;
        margin-top: 0;
    }
}

/* History timeline: four cards desktop, three tablet, one mobile. */
.company_times.times_list_c .times_container_list {
    overflow: hidden;
}

.company_times.times_list_c .times_container_list .rewrite-swiper-wrapper {
    display: flex;
    width: 100%;
    height: auto;
    overflow: visible;
    transition: transform 0.8s ease;
    will-change: transform;
}

.company_times.times_list_c .times_container_list .swiper-slide {
    flex: 0 0 calc(25% - 7.5px);
    width: calc(25% - 7.5px);
    height: auto;
    margin-right: 10px;
}

@media (max-width: 1275px) {
    .company_times.times_list_c .times_container_list .swiper-slide {
        flex-basis: calc(33.3333% - 6.6667px);
        width: calc(33.3333% - 6.6667px);
    }
}

@media (max-width: 767px) {
    .company_times.times_list_c .times_container_list .swiper-slide {
        flex-basis: 100%;
        width: 100%;
        margin-right: 0;
    }
}

.company_times.times_list_c .times_container_list {
    cursor: grab;
    touch-action: pan-y;
}

.company_times.times_list_c .times_container_list:active {
    cursor: grabbing;
}

.company_times.times_list_c .times_container_list .rewrite-swiper-wrapper {
    align-items: flex-start;
}

.company_times.times_list_c .times_container_list .swiper-slide,
.company_times.times_list_c .itemc_content {
    height: auto;
}

/* AMap fills the existing bordered map frame instead of nesting another frame. */
.map_container_c {
    overflow: hidden;
}

.ow-amap {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* Match the online .jogger pagination controls. */
.pages3 a {
    display: inline-block;
    padding: 6px 10px;
    margin: 2px;
    color: #fff;
    background-color: #818384;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.pages3 a:hover {
    color: #6d643c;
    background-color: #ccc;
    text-decoration: none;
}

.pages3 a.current {
    color: #6d643c;
    background-color: #ccc;
}

.pages3 .pages-total {
    margin-left: 8px;
    color: #818384;
    font-size: 14px;
}

/* Online news cards put the date pill above the image link. */
.newsc .newslist dl dt .timec {
    z-index: 2;
    pointer-events: none;
}

/* Match the online timeline card height. */
.company_times.times_list_c .times_container_list .rewrite-swiper-wrapper {
    align-items: stretch;
}

.company_times.times_list_c .itemc_content {
    height: 100%;
    min-height: 210px;
}

.ow-amap {
    background: #eef1f5;
}

.ow-amap {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 25px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .ow-amap {
        height: 400px;
        margin-top: 8px;
    }
}

/* Keep the AMap close button anchored to the info window. */
.ow-amap .amap-info-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 200;
}

.ow-amap .amap-info-content {
    overflow: visible;
}

.ow-amap .amap-container,
.ow-amap .amap-maps {
    border: 0 !important;
    box-shadow: none !important;
}

/* The popup overlay must not add a second visible frame around the map. */
.ow-amap .amap-info {
    box-shadow: none;
}

/* Case card title: keep the original h1 typography even though the card is a link. */
.claselistc .items_lit_c .cpic .overlayer .subcc .h1text a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
}

/* News-detail related cards use .newsrel instead of .newsc; the date pill
   must stay above the image link there too. */
.newsrel .newslist dl dt .timec {
    z-index: 2;
    pointer-events: none;
}

/* The global index.css sets 70% width on .re_show_txt; the original
   solution page does not load index.css, so restore full text width. */
.solution_c .solution_intro_ctext .show_text.re_show_txt {
    width: auto;
    text-align: left;
}

.goods .show_text.re_show_txt.top_main_title {
    width: auto;
    text-align: center;
}
