/* 产品分类切换锚点：避开顶图，停在列表区域 */
#sway-product-main {
    scroll-margin-top: 12px;
}

/* 页头：Logo 标识 + 双公司名 在「一站式」左侧 */
.header-title ul {
    display: flex;
    align-items: center;
    overflow: visible;
}

.header-title .logo,
.header-title .sway-brand {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: auto;
    max-width: 50%;
    height: 90px;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    float: none;
}

.header-title .logo a,
.header-title .sway-brand a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.header-title .sway-brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.header-title .sway-brand-names {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    line-height: 1.25;
}

.header-title .sway-brand-names strong,
.header-title .sway-brand-names span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
    font-weight: 700;
    color: var(--sway-primary, #0969aa);
}

.header-title .sway-brand-names strong {
    font-size: 14px;
}

.header-title .sway-brand-names span {
    font-size: 12px;
    font-weight: 600;
    color: #17375c;
}

/* 英文站公司名较长：允许换行完整显示 */
html[lang="en"] .header-title .sway-brand,
.header-title .sway-brand:has(.sway-brand-names strong:lang(en)) {
    max-width: 54%;
}

html[lang="en"] .header-title .sway-brand-names strong,
html[lang="en"] .header-title .sway-brand-names span {
    white-space: normal;
    line-height: 1.25;
    font-size: 12px;
}

html[lang="en"] .header-title .sway-brand-names strong {
    font-size: 13px;
}

.header-title .sway-tagline,
.header-title li:nth-child(2) {
    flex: 1 1 auto;
    float: none;
    width: auto;
    padding-left: 18px;
    min-width: 0;
}

.header-title .header-title-right {
    float: none;
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--sway-primary, #0969aa);
}

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

.header-nav .nav > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
}

.header-nav .nav > ul > .navroot {
    position: relative;
    flex: 1 1 0;
    float: none;
    width: auto;
    margin: 0 !important;
    display: flex;
    align-items: stretch;
}

.header-nav .nav > ul > .navroot > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    line-height: 1.2;
    box-sizing: border-box;
}

/* 栏目顶图：通栏全宽 cover，配合 2400x1080 宽屏高清图避免留白与拉伸发糊 */
.yunu-banner {
    width: 100%;
    /* 与首页轮播 .sway-hero 同高 */
    height: clamp(320px, 31.25vw, 600px);
    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-qr-zoom,
.sway-contact-qr img,
.yunu-footer-ewm img,
.kefu-weixin-pic img {
    cursor: zoom-in;
}

.sway-qr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    box-sizing: border-box;
}

.sway-qr-lightbox[hidden] {
    display: none !important;
}

.sway-qr-lightbox__img {
    display: block;
    max-width: min(92vw, 520px);
    max-height: 86vh;
    width: auto;
    height: auto;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    object-fit: contain;
}

.sway-qr-lightbox__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.sway-qr-lightbox-open {
    overflow: hidden;
}

.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-footer-ewm li .img-center {
    width: 100px;
    height: 100px;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

.yunu-footer-ewm li .img-center img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
}

.yunu-footer-ewm li .text {
    margin-top: 8px;
}

/* 订购/服务热线：窄栏（240–260px）内号码强制单行 */
.yunu-pro .sd .tel {
    padding: 72px 8px 24px;
    box-sizing: border-box;
}

/* 绿色「全国服务热线」块：收紧左右内边距，给号码留宽 */
.yunu-contact-z2 {
    padding: 18px 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.yunu-pro .sd .tel strong,
.yunu-contact-z2 span,
.in-tel p strong,
.header-title .header-title-right,
.yunu-showcase-info .tel,
.panel-sd .tel {
    white-space: nowrap !important;
    word-break: keep-all;
    overflow-wrap: normal;
}

.yunu-pro .sd .tel strong {
    display: block;
    margin-top: 6px;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: 0;
}

/* 原 28px 在 240px 侧栏必然折行，改为可单行放下的字号 */
.yunu-contact-z2 span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0;
    margin-top: 10px;
}

.yunu-contact-z1 span {
    white-space: nowrap !important;
    font-size: 15px;
    letter-spacing: 0;
}

.yunu-showcase-info .tel {
    font-size: 16px;
    letter-spacing: 0;
}

.in-tel p strong {
    font-size: clamp(16px, 2vw, 26px);
    line-height: 1.2;
}

.header-title .header-title-right {
    font-size: 18px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 原首页产品/案例/简介卡片配图：统一比例并铺满不留白 */
.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;
}

/* 中英文桌面端和手机端共用配色，蓝色用于操作，青色用于内容强调。 */
:root {
    --sway-ink: #182b3d;
    --sway-text-muted: #506276;
    --sway-primary: #0969aa;
    --sway-primary-hover: #075487;
    --sway-accent: #087e73;
    --sway-surface: #fff;
    --sway-surface-muted: #edf4fa;
    --sway-line: #d6e3ed;
    --sway-navy: #142633;
    --sway-on-dark: #dbe7ef;
}

body {
    color: var(--sway-ink);
    background-color: var(--sway-surface);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--sway-primary);
    outline-offset: 3px;
}

.header-title li h2 strong {
    color: var(--sway-primary);
}

.header-title li p {
    color: var(--sway-text-muted);
}

.header-title .header-title-right {
    color: var(--sway-primary);
}

.header-nav {
    background: var(--sway-surface);
    box-shadow: 0 1px 0 var(--sway-line), 0 3px 12px rgb(24 43 61 / 7%);
}

.header-nav .nav > ul > li.navroot > a {
    padding: 0 8px;
    color: var(--sway-ink);
    background-image: none !important;
    background-color: transparent;
    font-weight: 600;
    text-align: center;
}

.header-nav .nav > ul > li.navroot > a:hover,
.header-nav .nav > ul > li.navroot > a:focus-visible {
    color: var(--sway-primary);
    background-color: var(--sway-surface-muted);
}

.header-nav .nav > ul > .navroot.active > a {
    color: var(--sway-surface);
    background-color: var(--sway-primary);
}

.nav .navsub {
    width: 220px;
    border: 1px solid var(--sway-line);
    border-top: 2px solid var(--sway-primary);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgb(24 43 61 / 13%);
}

.nav .navsub li a:hover,
.nav .navsub li a:focus-visible {
    color: var(--sway-primary) !important;
    background-color: var(--sway-surface-muted) !important;
}

.yunu-header {
    border-bottom: 1px solid var(--sway-line);
}

.yunu-header li a {
    color: var(--sway-ink);
}

.yunu-menu-box {
    background: var(--sway-navy);
}

.yunu-menu-box li .sub {
    background-color: rgb(255 255 255 / 8%);
}

.yunu-sou,
.yunu-sou-inner,
.section.bg1,
.section.bg2,
.sway-section-muted {
    color: var(--sway-ink);
    background: var(--sway-surface-muted);
}

.yunu-sou .hot a,
.sway-map-link button,
.sway-grid a {
    color: var(--sway-primary);
}

.section-title,
.section-title strong,
.sway-home .section-title {
    color: var(--sway-ink);
    line-height: 1.35;
}

.section-title strong {
    display: inline-block;
}

.section-title p {
    margin-top: 18px;
    line-height: 1.6;
}

.section-title span {
    color: var(--sway-text-muted);
    font-size: clamp(13px, 1.3vw, 16px);
    line-height: 1.6;
}

.section-title span::before,
.section-title span::after {
    display: none;
}

.section-title p::after {
    display: block;
    width: 32px;
    height: 2px;
    margin: 16px auto 0;
    background: var(--sway-primary);
    content: "";
}

.sway-hero .hd li,
.sway-hero .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border: 1px solid rgb(20 38 51 / 45%);
    border-radius: 50%;
    background: rgb(255 255 255 / 85%);
    opacity: 1;
}

.sway-hero .hd li.on,
.sway-hero .swiper-pagination-bullet-active {
    background: var(--sway-primary);
    border-color: var(--sway-surface);
}

.in-yin li a,
.yunu-pro .mn li a,
.in-prd-list li a,
.list-2 li a,
.list-5 li a,
.yunu-news .bd li a,
.in-news-con li a,
.contact-2 li .wrap {
    overflow: hidden;
    background-color: var(--sway-surface);
    border: 1px solid var(--sway-line);
    border-radius: 8px;
}

.in-yin li .tit {
    background-color: var(--sway-primary);
}

.in-yin li .tit i,
.in-yin li .wrap i,
.in-yin li .text i {
    background-color: var(--sway-accent);
}

.in-yin li .text {
    background-color: var(--sway-surface-muted);
}

.in-yin li .text:has(.wrap) {
    background-color: rgb(20 38 51 / 90%);
}

.yunu-pro .sd h4,
.panel-sd-hd,
.yunu-contact-z2 {
    color: var(--sway-surface);
    background-color: var(--sway-primary);
}

.yunu-pro .sd .tit,
.yunu-pro .sd .tel,
.yunu-column h3,
.yunu-column li a,
.in-prd-menu {
    background-color: var(--sway-surface-muted);
    border-color: var(--sway-line);
}

.yunu-pro .mn li p,
.bg1 .in-prd-list li a {
    color: var(--sway-ink);
    background-color: var(--sway-surface);
}

.in-prd-list li p {
    margin: 0;
    padding: 8px;
}

.in-prd-menu li a::before,
.in-ys dd h4::after {
    background: var(--sway-accent);
    border-color: var(--sway-accent);
}

.in-ys dt {
    border-color: var(--sway-line);
}

.in-ys .swiper-slide dl,
.yunu-link h4 {
    color: var(--sway-primary);
}

.yunu-title-1 {
    color: var(--sway-ink);
    background: var(--sway-surface-muted);
    border-color: var(--sway-line);
}

.in-ys .swiper-slide dd p {
    color: var(--sway-text-muted);
    opacity: 1;
}

/* 子分类选中用蓝色字 */
.yunu-product-column li a[aria-current="true"] {
    color: var(--sway-primary);
}

/* 一级分类选中/悬停是蓝底：链接必须白字（覆盖 aria-current 蓝字） */
.yunu-column h3.on,
.yunu-column h3:hover {
    background-image: none;
    background-color: var(--sway-primary);
}

.yunu-column h3.on > a,
.yunu-column h3:hover > a,
.yunu-product-column h3.on > a,
.yunu-product-column h3:hover > a,
.yunu-product-column h3.on > a[aria-current="true"],
.yunu-product-column h3:hover > a[aria-current="true"] {
    color: #fff !important;
}

.yunu-product-column h3.on .product-category-toggle,
.yunu-product-column h3:hover .product-category-toggle {
    color: #fff !important;
}

/* 长分类名多行显示，避免固定行高把字拆得很怪 */
.yunu-product-column h3 {
    padding: 0 8px 0 14px;
}

.yunu-product-column h3 a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 36px 12px 0;
    line-height: 1.4;
    font-size: 15px;
}

.yunu-product-column .product-category-toggle {
    top: 0;
    bottom: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yunu-product-column li {
    line-height: normal;
}

.yunu-product-column li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.4;
}

.list-2 li a:hover,
.list-2 li a:focus,
.list-2 li a:active,
.list-2 li a:hover h4,
.list-2 li a:focus h4,
.list-2 li a:active h4 {
    border-color: var(--sway-primary);
    color: var(--sway-primary);
}

.yunu-pro .mn li a:hover p,
.yunu-column h3.on,
.yunu-column h3:hover,
.yunu-news .hd li.on a,
.in-news-menu li.active a,
.in-case .hd li.on a,
.in-case .hd a:hover,
.yunu-page a,
.more-big,
.sway-search button {
    color: var(--sway-surface);
    background-color: var(--sway-primary);
    border-color: var(--sway-primary);
}

.section.bg3 {
    /* 暗色遮罩保证横幅背景上的热线和咨询入口清晰。 */
    color: var(--sway-surface);
    background: linear-gradient(90deg, var(--sway-navy), rgb(20 38 51 / 72%)),
        url(../images/sway-banners/05-lab-research.webp) center / cover;
}

.in-tel .btn,
.in-about dd .more,
.in-case .bd dd .more {
    color: var(--sway-surface);
    background: var(--sway-primary);
    border-color: var(--sway-primary);
    border-radius: 999px;
}

.in-tel .btn {
    padding: 0 12px;
}

.in-tel .btn:hover,
.in-about dd .more:hover,
.in-case .bd dd .more:hover,
.more-big:hover {
    color: var(--sway-surface);
    background: var(--sway-primary-hover);
    animation: none;
}

.yunu-footer,
.yunu-footer-fix,
.kefu .kefu-main,
.kefu .kefu-tel-main {
    color: var(--sway-on-dark);
    background: var(--sway-navy);
}

.yunu-footer a {
    color: var(--sway-on-dark);
}

.yunu-footer a:hover,
.yunu-footer a:focus-visible {
    color: #9ed8fb;
}

.sway-mobile-call,
.kefu li:hover .kefu-main,
.kefu li:hover .kefu-tel-main {
    background: var(--sway-primary);
}

.yunu-footer-nav ul,
.yunu-footer-nav p,
.yunu-footer-info,
.yunu-footer-ewm {
    background-image: none;
    border-top: 1px solid rgb(219 231 239 / 20%);
}
