/* 页眉只给标识留固定空间，避免后台上传的大图盖住导航和首屏。 */
.header-title .logo {
    top: 0;
    right: auto;
    width: 146px;
    height: 90px;
    margin: 0;
    padding: 0;
}

.header-title .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-title .logo img {
    display: block;
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.yunu-header .logo img {
    max-width: 4.5rem;
    object-fit: contain;
}

.header-nav .nav > ul {
    display: flex;
    justify-content: center;
}

.header-nav .nav > ul > .navroot {
    flex: 1 1 0;
    float: none;
    width: auto;
    margin-right: 0;
}

/* 栏目顶图：通栏全宽 cover，配合 2400x1080 宽屏高清图避免留白与拉伸发糊 */
.yunu-banner {
    width: 100%;
    height: clamp(240px, 28vw, 420px);
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

.sway-hero {
    width: 100%;
    height: clamp(300px, 39vw, 600px);
    overflow: hidden;
    background: #eef4f8;
}

.sway-hero .tempWrap,
.sway-hero .bd li {
    height: 100%;
}

.sway-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-rendering: auto;
}

.sway-hero .hd {
    bottom: 22px;
}

.yunu-swiper.sway-hero {
    width: 100%;
    height: clamp(190px, 48vw, 340px);
}

.sway-home .section-title {
    font-size: clamp(20px, 3vw, 32px);
    color: #17375c;
    font-weight: 700;
}

.sway-grid {
    display: grid;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.sway-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sway-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sway-categories li,
.sway-products li,
.sway-case-list li,
.sway-advantages li,
.sway-feature li {
    background: #fff;
    border: 1px solid #d9e4ed;
    border-radius: 6px;
    overflow: hidden;
}

.sway-grid a {
    color: #205da5;
}

.sway-categories a,
.sway-products a,
.sway-case-list a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
}

.sway-categories a:hover,
.sway-products a:hover,
.sway-case-list a:hover {
    background: #eef5fb;
}

.sway-advantages li,
.sway-feature h3 {
    padding: 16px;
}

.sway-home h3,
.sway-gallery h2 {
    margin: 0 0 8px;
    color: #17375c;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.sway-feature h3 {
    margin: 0;
}

.sway-home p,
.sway-empty {
    font-size: 15px;
    line-height: 1.65;
}

.sway-home .sway-more {
    display: inline-block;
    margin-top: 8px;
    color: #205da5;
    font-size: 15px;
    text-decoration: underline;
}

.sway-feature img,
.sway-about img,
.sway-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.sway-about {
    align-items: center;
}

.sway-about img,
.sway-gallery img {
    border-radius: 6px;
}

.sway-case-list:has(> li) + .sway-empty {
    display: none;
}

.sway-gallery {
    margin: 24px 0;
}

@media (max-width: 767px) {
    .sway-grid {
        gap: 10px;
    }

    .sway-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sway-about {
        grid-template-columns: 1fr;
    }
}

.sway-search {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.sway-search input,
.sway-search button {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d9e4ed;
    border-radius: 4px;
    font-size: 15px;
}

.sway-search input {
    width: min(62%, 270px);
    background: #fff;
}

.sway-search button {
    color: #fff;
    background: #205da5;
}

.header {
    position: sticky;
    top: -90px;
    z-index: 100;
}

.header-nav .nav,
.header-nav .nav > ul > .navroot {
    overflow: visible;
}

.yunu-showcase:not(:has(.view .swiper-slide)) .pc-slide,
.yunu-showcase .yunu-swiper:not(:has(.swiper-slide)) {
    display: none;
}

.yunu-showcase:not(:has(.view .swiper-slide)) .yunu-showcase-info {
    width: 100%;
    margin-left: 0;
}

.sway-home-desktop {
    min-width: 0;
}

.sway-home-desktop .container {
    width: min(100%, 1200px);
}

@media (max-width: 1023px) {
    .sway-home-desktop .header-nav .nav > ul > .navroot > a {
        background-image: none;
        padding: 0 6px;
        text-align: center;
    }

    .sway-home-desktop .header-title-right {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .sway-home-desktop .header-nav .nav > ul {
        flex-wrap: wrap;
    }

    .sway-home-desktop .header-nav .nav > ul > .navroot {
        flex-basis: 25%;
    }

    .sway-home-desktop .header-title li:not(.logo) {
        display: none;
    }
}

.sway-contact-qr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}

.sway-contact-qr figure {
    width: 160px;
    margin: 0;
    padding: 8px;
    border: 1px solid #d9e4ed;
    border-radius: 6px;
    text-align: center;
}

.sway-contact-qr img {
    display: block;
    width: 100%;
    height: 144px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.sway-contact-qr figcaption {
    font-size: 15px;
}

.sway-map-link {
    margin: 16px 0;
    text-align: center;
}

.sway-map-link button {
    border: 0;
    background: transparent;
    color: #205da5;
    font-size: 15px;
    text-decoration: underline;
}

/* 原首页产品/案例/简介卡片配图：统一比例并铺满不留白 */
.yunu-pro .mn li .m {
    height: 195px;
    overflow: hidden;
}

.yunu-pro .mn li .m img,
.in-case .bd dt img,
.in-about dt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
