/* 全局与布局 */

:root {
    --primary: #7b5cf6;
    --primary-deep: #6a4ae3;
    --text: #3b3160;
    --muted: #8b86a3;
    --bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: #f9f5ff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}


/* 头部导航 */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #865da4;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 99px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 58px;
}

.main-nav {
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

.nav-list {
    display: flex;
    gap: 111px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-size: 28px;
    color: #b995e1;
    display: flex;
    height: 99px;
    padding: 0 10px;
    align-items: flex-end;
    padding-bottom: 18px;
    transition: all 0.3s ease;
}

.nav-list a.is-active,
.nav-list a:hover {
    background-image: linear-gradient(to top, #b895e15a, #865da4);
    color: #fff;
    border-bottom: 5px solid #b995e1;
    transition: all 0.3s ease;
}


/* 英雄区：整张Banner图 */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
}


/* 通用区块标题（后续模块可复用） */

.section {
    padding: 72px 0;
}

.section-title {
    text-align: center;
    margin: 0 0 28px;
    font-size: 28px;
    color: var(--text);
}

.section-sub {
    text-align: center;
    margin-top: -12px;
    color: var(--muted);
    font-size: 13px;
}


/* 公共标题样式 */

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    position: relative;
    display: inline-block;
    margin: 0;
    font-size: 58px;
    color: #865da4;
    line-height: 1.2;
}

.section-title span {
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: "";
    position: absolute;
    left: -10%;
    right: 0;
    bottom: -4px;
    height: 19px;
    background: #e1bbff;
    border-radius: 6px;
    width: 120%;
    opacity: .6;
}

.section-sub {
    margin: 22px 0 0;
    color: #865da4;
    font-size: 25px;
}


/* 实验室介绍模块 */

.intro-section {
    background: #fff;
}

.intro-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
}

.intro-text {
    font-size: 20px;
    line-height: 42px;
    color: #865da4;
}

.intro-text p {
    text-indent: 42px;
}

.intro-media img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(67, 25, 121, 0.08);
}


/* 技术愿景模块 */

.vision-section {
    background: #fff;
}

.vision-media img {
    width: 832px;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* 首席科学家模块 */

.chief-section {
    background: #fff;
}

.chief-wrap {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 81px;
    align-items: center;
    position: relative;
}

.chief-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
}

.chief-info {
    padding-right: 48px;
}

.chief-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 96px;
    height: auto;
}

.chief-name {
    margin: 0 0 69px;
    font-size: 42px;
    color: #865da4;
}

.chief-name .divider {
    margin: 0 12px;
    color: #b895e1;
}

.chief-link {
    color: #865da4;
    font-size: 28px;
    font-weight: normal;
}

.chief-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
    font-size: 21px;
    color: #865da4;
}

.chief-list li {
    margin-bottom: 20px;
}


/* 核心技术模块 */

.core-section {
    background: #fff;
}

.core-desc {
    text-align: center;
    margin-top: -8px;
    margin-bottom: 24px;
    color: #865da4;
}

.core-desc p {
    margin: 8px 0;
    font-size: 22px;
    margin-bottom: 13px;
}

.core-media img {
    width: 95%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* 场景生态模块 */

.ecosystem-section {
    position: relative;
    padding: 72px 0;
}

.ecosystem-bg {
    position: absolute;
    inset: 0;
    background: url('../img/bg.png') center/cover no-repeat;
    opacity: .9;
}

.ecosystem-section .container {
    position: relative;
    z-index: 1;
}

.ecosystem-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}


/* 卡片 */

.ecosystem-card {
    position: relative;
}

.ecosystem-card .card-inner {
    position: relative;
    z-index: 1;
    padding: 32px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 421px;
    max-width: 323px;
    background: url('../img/a1.png') center/100% 100% no-repeat;
}

.ecosystem-card .card-media {
    width: 100%;
    aspect-ratio: 16/16;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    margin: 8px auto 26px;
    padding: 16px;
}

.ecosystem-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ecosystem-card .card-title {
    margin: 0;
    font-size: 32px;
    color: #fff;
    letter-spacing: 2px;
}


/* 产品模块（重构） */

.product-section {
    background: #fff;
}

.product-frame {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    background: #865da4;
}

.product-media {
    position: relative;
}

.product-video {
    width: 100%;
    display: block;
}

.product-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 0;
    background: radial-gradient(circle at 30% 30%, #bca4e8, #865da4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.product-play::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 24px;
    border-left: 30px solid #fff;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}

.product-caption {
    background: #7f58a9;
    color: #fff;
    text-align: center;
    font-size: 44px;
    letter-spacing: 4px;
    padding: 22px 16px;
}


/* 旧样式兼容清理 */

.product-card,
.product-name,
.play-overlay {
    display: none;
}


/* 合作伙伴 */

.partners-section {
    background: #fff;
}

.partners-hero {
    display: flex;
    justify-content: center;
    margin: 12px 0 94px;
}

.partners-hero img {
    width: 96px;
    height: auto;
    opacity: .9;
}

.logo-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 36px 48px;
    align-items: center;
    justify-items: center;
}

.logo-grid img {
    width: auto;
    height: auto;
    filter: none;
}


/* 合作伙伴：使最后两项居中 */

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 64px;
    padding: 0;
    margin: 0 auto;
}

.logo-grid li {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 28%;
}

.logo-grid li:nth-last-child(1),
.logo-grid li:nth-last-child(2) {
    flex-basis: 28%;
    justify-content: center;
}

@media (max-width:1024px) {
    .logo-grid {
        justify-content: center;
    }
    .logo-grid li {
        flex-basis: 42%;
    }
    .section-title::after {
        width: 100%;
        left: 0;
    }
}


/* 响应式 */

@media (max-width: 1024px) {
    .site-header .container {
        height: 56px;
    }
    .hero-content {
        padding: 72px 0 48px;
    }
    .hero-title {
        font-size: 36px;
    }
    .section-title {
        font-size: 32px;
    }
    .section-sub {
        font-size: 16px;
    }
    .intro-wrap {
        grid-template-columns: 1fr;
    }
    .ecosystem-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ecosystem-card .card-inner {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    /* 移动端导航优化 */
    .site-header {
        position: fixed;
        width: 100%;
    }
    .nav-toggle {
        display: inline-block;
        color: #fff;
        padding: 8px 12px;
        margin-right: -8px;
    }
    .main-nav {
        position: static;
    }
    .nav-list {
        position: fixed;
        background: #fff;
        padding: 20px 24px 40px;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
        display: none;
        gap: 12px;
        overflow: auto;
        bottom: 0;
        left: 0;
        width: 100%;
    }
    .nav-list.show {
        display: block;
        animation: slideDown .25s ease;
    }
    .nav-list a {
        padding: 14px 8px;
        font-size: 22px;
        border-radius: 12px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .nav-list a:hover {
        background: rgba(123, 92, 246, .1);
        color: #6a4ae3;
    }
    /* 遮罩 */
    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        backdrop-filter: blur(2px);
        z-index: 999;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
}

@media (max-width:1024px) {
    .chief-wrap {
        grid-template-columns: 1fr;
    }
    .chief-info {
        padding-right: 0;
    }
    .chief-badge {
        top: -12px;
        right: 8px;
        width: 72px;
    }
    .chief-name {
        font-size: 32px;
    }
    .chief-list {
        font-size: 16px;
    }
}


/* 活动图片模块 */

.gallery-section {
    position: relative;
    padding-top: 48px;
    padding-bottom: 56px;
}

.gallery-bg {
    position: absolute;
    inset: 0;
    background: url('../img/bg.png') center/cover no-repeat;
    opacity: .95;
    z-index: 0;
}

.gallery-section .container {
    position: relative;
    z-index: 1;
}


/* 照片墙无缝滚动（双排） */

.marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: -webkit-linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    margin-bottom: 18px;
}

.track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
    padding: 10px 0 12px;
}

.track.reverse {
    animation-name: scroll-right;
}

.track img {
    height: 220px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}


/* 悬停暂停 */

.marquee:hover .track {
    animation-play-state: paused;
}

@media (max-width:1024px) {
    .track img {
        height: 180px;
    }
}


/* 页脚 */

.footer-banner {
    display: flex;
    justify-content: center;
    padding: 76px 0;
    background: #fff;
}

.footer-banner img {
    width: 1100px;
    max-width: 92%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.footer-main {
    background: #865da4;
    color: #fff;
    padding: 42px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand .brand-logo {
    height: 44px;
}

.footer-title {
    margin: 0 0 29px;
    font-size: 20px;
    letter-spacing: 1px;
}

.qrcards {
    display: flex;
    gap: 24px;
}

.qr {
    text-align: center;
}

.qr img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.qr p {
    margin: 8px 0 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: .95;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* 语言按钮与返回顶部图标 */

.btn-lang {
    position: relative;
    padding: 0 56px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #fff;
    border-radius: 999px;
    height: 43px;
    background-color: #865da4;
    color: #fff;
    font-size: 25px;
    margin-top: 40px;
    width: 168px;
}

.btn-lang::before {
    content: "";
    position: absolute;
    left: 12px;
    width: 32px;
    height: 32px;
    background: url('../img/a15.png') center/contain no-repeat;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}


/* 页脚分隔线 + 回到顶部 */

.footer-divider {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 24px 0 18px;
}

.footer-divider .line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .7);
    display: block;
}

.back-top-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.back-top {
    width: 82px;
    height: 82px;
    background: url('../img/a16.png') center/100% no-repeat;
    border-radius: 50%;
    cursor: pointer;
}

.back-top-label {
    color: #fff;
    opacity: .9;
    font-size: 14px;
}

.footer-sep {
    height: 1px;
    margin: 32px 0;
}

.copyright {
    margin: 0;
    opacity: .9;
    font-size: 16px;
    color: #bfbfbf;
}

@media (max-width:1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .logo img {
        height: 30px;
    }
    .product-caption {
        font-size: 20px;
    }
    .ecosystem-card {
        display: flex;
        justify-content: center;
    }
    .chief-photo img {
        width: 80%;
        margin: 0 auto;
    }
    .chief-wrap {
        padding-top: 20px;
    }
    .intro-text p {
        font-size: 16px;
        line-height: 30px;
    }
    .core-desc p {
        font-size: 16px;
    }
    .chief-list li {
        margin-bottom: 5px;
    }
    .chief-name {
        margin-bottom: 20px;
    }
    .chief-wrap {
        gap: 20px;
    }
    .section {
        padding: 50px 0;
    }
}


/* UnyBan 轮播 */

.unyban-hero {
    background: #f7f2ff;
}

.carousel {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.carousel .slides {
    display: flex;
    transition: transform .4s ease;
}

.carousel .slide {
    min-width: 100%;
}

.carousel img {
    width: 100%;
    display: block;
}

.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .35);
    border: 0;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.car-btn.prev {
    left: 12px;
}

.car-btn.next {
    right: 12px;
}

.car-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.car-dots button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 0;
    background: #ddd;
    cursor: pointer;
}

.car-dots button.active {
    background: #7b5cf6;
}


/* UnyBan 图文 + 视频弹窗 */

.ub-intro {
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.intro-left img {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.intro-right {
    position: relative;
}

.intro-badge {
    position: absolute;
    right: 0;
    top: -8px;
    width: 96px;
}

.intro-title {
    margin: 0 0 52px;
    font-size: 48px;
    color: #865da4;
    line-height: 1.3;
}

.intro-text {
    font-size: 22px;
    color: #543f79;
    line-height: 1.7;
    text-indent: 50px;
    text-align: justify;
}

.intro-video-thumb {
    position: relative;
    width: 420px;
    max-width: 100%;
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.intro-video-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #bca4e8, #865da4);
}

.play-icon::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 22px;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}


/* 弹窗 */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
}

.modal-body {
    position: relative;
    width: min(900px, 92vw);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.modal-body video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-close {
    position: absolute;
    right: 8px;
    top: 4px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    z-index: 11;
}

@media (max-width:1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .intro-badge {
        top: -12px;
        right: 8px;
        width: 72px;
    }
    .intro-title {
        font-size: 32px;
    }
}


/* UnyBan 大图 + 小图拼贴画廊 */

.ub-gallery {
    background: #fff;
}

.ub-hero-img {
    margin-bottom: 105px;
}

.ub-hero-img img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.ub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ub-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

@media (max-width:1024px) {
    .ub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .ub-grid {
        grid-template-columns: 1fr;
    }
}


/* UnyBan 核心优势：标题 + 图 + 文 + 四图 */

.ub-feature {
    background: #fff;
    padding-top: 0;
}

.ub-center-img {
    display: flex;
    justify-content: center;
    margin: 8px 0 12px;
}

.ub-center-img img {
    width: 280px;
    height: auto;
}

.ub-feature-text {
    max-width: 880px;
    margin: 80px auto;
    color: #5a4630;
    line-height: 2;
    text-align: left;
    font-size: 26px;
}

.imglist {
    margin-top: 171px;
}

.ub-icons {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ub-icon {
    display: flex;
    justify-content: center;
}

.ub-icon img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

@media (max-width:1024px) {
    .ub-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .ub-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    .imglist {
        margin-top: 50px;
        overflow-x: hidden;
    }
    .imglist img {
        max-width: 120%;
        width: 120%;
        height: auto;
        position: relative;
        left: -10%;
    }
}


/* UnyBan 核心优势自定义标题 */

.ub-feature-title {
    text-align: center;
    margin-bottom: 16px;
}

.ub-feature-title h2 {
    margin: 0 0 8px;
    font-size: 64px;
    color: #6b4826;
    letter-spacing: 2px;
}

.ub-feature-title img {
    height: 64px;
    width: auto;
    margin: 0 auto;
}

@media (max-width:1024px) {
    .ub-feature-title h2 {
        font-size: 40px;
    }
    .ub-feature-title img {
        height: 44px;
    }
}


/* UnyBan 左文右三卡（品质） */

.ub-quality {
    position: relative;
    padding: 56px 0;
}

.ub-quality-bg {
    position: absolute;
    inset: 0;
    background: url('../img/bg2.png') center/cover no-repeat;
    opacity: .95;
    z-index: 0;
}

.quality-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: start;
}

.quality-left {
    padding: 16px 0;
    display: flex;
    gap: 43px;
    justify-content: center;
}

.quality-title {
    margin: 0 0 8px;
    font-size: 67px;
    background: linear-gradient(7deg, #9a3df0 0%, #d265ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 10px;
}

.quality-sub {
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 33px;
    color: #945fba;
    padding-top: 300px;
    letter-spacing: 18px;
}

.quality-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}

.qcard {
    position: relative;
    height: 247px;
    border-radius: 18px;
    overflow: hidden;
}

.qcard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--skin) center/100% no-repeat;
    opacity: 1;
}

.qcard-text {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 36%;
    color: #6b4cc6;
}

.qline1 {
    font-size: 36px;
    color: #945fba;
    margin-bottom: 19px;
}

.qline2 {
    font-size: 24px;
    color: #4f405a;
}

@media (max-width:1024px) {
    .quality-grid {
        grid-template-columns: 1fr;
    }
    .quality-title,
    .quality-sub {
        writing-mode: horizontal-tb;
    }
    .quality-title {
        font-size: 36px;
    }
    .unyban-hero {
        padding: 0 10px;
        padding-top: 70px;
        width: 100%;
    }
    .intro-left img {
        width: 90%;
        margin: 0 auto;
    }
    .container {
        box-sizing: border-box;
    }
    .intro-grid {
        padding: 0 0px;
        box-sizing: border-box;
        width: 100%;
    }
    .intro-right {
        width: 90%;
        margin: 0 auto;
    }
    .ub-gallery .container {
        padding: 0 5px;
    }
    .ub-gallery {
        padding-bottom: 0;
    }
    .ub-feature-text {
        margin: 30px auto;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    /* ub-quality 移动端适配 */
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .quality-left {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 0;
    }
    .quality-title,
    .quality-sub {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        letter-spacing: 4px;
    }
    .quality-title {
        font-size: 28px;
        margin: 0;
        background: linear-gradient(7deg, #9a3df0 0%, #d265ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .quality-sub {
        font-size: 14px;
        padding-top: 0;
        color: #945fba;
    }
    .quality-cards {
        gap: 12px;
    }
    .qcard {
        height: 180px;
        border-radius: 14px;
    }
    .qcard-text {
        padding: 12px 16px !important;
        text-align: left !important;
    }
    .qcard-text2 {
        padding: 12px 16px !important;
        text-align: right !important;
    }
    .qline1 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .qline2 {
        font-size: 13px;
    }
}


/* UnyBan 自动向左轮播（尺寸与中心放大） */

.ub-auto-carousel {
    background: #fff;
    padding-bottom: 0;
}

.auto-carousel {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.ac-track {
    display: flex;
    gap: 36px;
    will-change: transform;
    align-items: center;
    height: 500px;
}

.ac-track img {
    width: 258px;
    height: 364px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    transition: transform .3s ease;
}

.ac-track img.center {
    transform: scale(1.14);
    transform-origin: bottom;
    z-index: 1;
}

@media (max-width: 768px) {
    /* auto-carousel 移动端适配 */
    .ac-track {
        gap: 16px;
        height: 380px;
    }
    .ac-track img {
        width: 200px;
        height: 280px;
        border-radius: 14px;
    }
    .ac-track img.center {
        transform: scale(1.12);
    }
}


/* 联系我们 */

.contact-section {
    background: #fff;
    padding-bottom: 0;
}

.contact-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
    text-align: center;
}

.contact-card {
    padding: 24px 16px 28px;
}

.contact-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.contact-title {
    margin: 6px 0 4px;
    font-size: 42px;
    color: #865da4;
}

.contact-text {
    margin: 0;
    color: #865da4;
    line-height: 1.9;
    font-size: 25px;
}

@media (max-width:1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-section {
        padding-top: 56px;
        width: 100%;
    }
    .logo-grid li {
        display: flex;
        justify-content: center;
        flex: auto;
    }
    .logo-grid li:nth-last-child(1),
    .logo-grid li:nth-last-child(2) {
        flex-basis: 100%;
    }
    .logo-grid li:nth-last-child(2) img {
        height: 100px;
    }
    .logo-grid img {
        width: auto;
        height: 50px;
        max-width: 1000%;
    }
    .intro-text {
        font-size: 16px;
    }
}