/* ==========================================================================
   优尔品牌适配层
   1) 桌面：仅调整品牌标识宽度与导航字距，不改动原站布局骨架
   2) 移动：原模板 body 固定 min-width:1250px（源站手机端另走一套页面），
      此处补一层响应式覆盖，使复刻页在手机端可用
   ========================================================================== */

/* ---------------------------------------------------------------- 移动端 */
@media (max-width: 1249px) {

    html,
    body {
        min-width: 0;
        overflow-x: hidden;
    }

    .view {
        width: 92% !important;
        max-width: 92% !important;
    }

    /* 首屏 */
    .nybanner,
    .nybanner.nybanner2 {
        height: auto;
        min-height: 0;
        padding: 7.2rem 0 2rem;
        position: relative;
        overflow: hidden;
    }

    .nybanner .bannerbg {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
    }

    .nybanner .bannerbg::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .42) 55%, rgba(0, 0, 0, .62) 100%);
    }

    .nybanner .maview {
        width: 92%;
    }

    .banner_txt {
        position: static;
        transform: none;
        height: auto;
        text-align: left;
    }

    .banner_txt img {
        width: 72% !important;
        height: auto;
    }

    .banner_txt h2 {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }

    .banner_txt h3 {
        font-size: .8rem !important;
        margin-top: .6rem;
        line-height: 1.5;
    }

    .banner_txt h4 {
        font-size: .78rem !important;
        margin-top: .5rem;
        line-height: 1.6;
    }

    /* 服务页：四段图文上下堆叠 */
    .service-page .service-s2 .item {
        padding: 1.4rem 0;
    }

    .service-page .service-s2 .box.flex {
        display: block;
    }

    .service-page .service-s2 .en,
    .service-page .service-s2 .Shu {
        position: static !important;
        transform: none !important;
        font-size: 1.1rem !important;
        opacity: .18;
        margin-bottom: .4rem;
        line-height: 1.1;
        white-space: normal;
    }

    .service-page .service-s2 .txt-box,
    .service-page .service-s2 .img-box {
        width: 100% !important;
        float: none;
        margin: 0 !important;
    }

    .service-page .service-s2 .img-box img {
        width: 100%;
        margin-top: .8rem;
    }

    .service-page .service-s2 .txt-box h3 {
        font-size: 1.05rem;
    }

    .service-page .service-s2 .btn,
    .service-page .service-s2 .consult,
    .fix-customer {
        display: inline-block;
        width: auto !important;
        min-width: 5.2rem;
        padding: .3rem .6rem;
        white-space: nowrap;
        text-align: center;
        line-height: 1.6;
        font-size: .6rem;
    }

    /* 正文里的「立即咨询」按钮：实心红胶囊 */
    .service-page .service-s2 .btn,
    .service-page .service-s2 .consult {
        height: auto !important;
        min-width: 6.6rem;
        padding: .34rem 1.15rem !important;
        font-size: .74rem !important;
        line-height: 1.7 !important;
        border: 0 !important;
        background: #e62129 !important;
        color: #fff !important;
        border-radius: 2rem;
        margin-top: .5rem;
        letter-spacing: .04em;
    }

    /* 浮动客服按钮保持白底描边 */
    .fix-customer {
        background: #fff !important;
        color: #e62129 !important;
        border: 1px solid #e62129 !important;
        border-radius: 2rem;
    }

    .service-page .service-s2 .link a {
        display: block;
        font-size: .7rem;
        line-height: 1.75;
        padding: .22rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
        color: #666;
    }

    .service-page .service-s2 .link a:last-child {
        border-bottom: 0;
    }

    /* 流程条：横向滑动 */
    .designProcess .designProcessUl {
        display: flex;
        overflow-x: auto;
        gap: .3rem;
        padding-bottom: .5rem;
        -webkit-overflow-scrolling: touch;
    }

    .designProcess .designProcessUl li {
        flex: 0 0 62%;
        margin: 0 !important;
    }

    .designProcess .designProcessUl li .box span,
    .designProcess .designProcessUl li .txt1 span {
        font-size: 1.5rem !important;
    }

    .designProcess .designProcessUl li .box h6,
    .designProcess .designProcessUl li .txt1 h6 {
        font-size: .86rem !important;
        margin-bottom: .3rem !important;
        white-space: normal !important;
    }

    .designProcess .designProcessUl li .box p {
        font-size: .7rem !important;
        line-height: 1.7;
    }

    .designProcess .designProcessUl li .box,
    .designProcess .designProcessUl li .txt1 {
        padding: 1rem .8rem !important;
    }

    /* 案例网格 */
    .in_Ca .grid,
    .Blogul {
        grid-template-columns: 1fr !important;
        display: grid !important;
        grid-gap: 1rem !important;
    }

    .in_Ca .Ca_T li .text {
        padding: .7rem .8rem !important;
    }

    .in_Ca .Ca_T li .text h3 {
        font-size: .9rem !important;
    }

    .in_Ca .Ca_T li .text h4 {
        font-size: .7rem !important;
        line-height: 1.8 !important;
        margin-top: .3rem !important;
    }

    .in_Ca .Ca_T li .text p {
        font-size: .7rem !important;
        line-height: 1.75 !important;
        color: #8a8a8a !important;
        margin-top: .18rem;
        font-family: inherit !important;
    }

    .in_Ca .Ca_T li .text .bottom {
        font-size: .68rem !important;
        padding-top: .5rem !important;
        margin-top: .55rem !important;
    }

    /* 方法论：三卡 + 特性区 */
    .Apple1 ul li {
        width: 100% !important;
        float: none;
        margin: 0 0 1rem !important;
    }

    .Apple1 ul li .text {
        padding: .5rem .9rem 1rem !important;
    }

    .Apple1 ul li .text h3 {
        font-size: .96rem !important;
        letter-spacing: .02em;
    }

    .Apple1 ul li .text p {
        font-size: .72rem !important;
        line-height: 1.85 !important;
        margin: .4rem auto !important;
    }

    /* 方法论：三段深色特性区（原为整屏视差，移动端改为图上叠字） */
    .uedBox2 .uedboxText {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }

    .uedBox2 .uedboxText .bg {
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100% !important;
        height: 100% !important;
        line-height: 0;
    }

    .uedBox2 .uedboxText .bg img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* 窄屏也直铺原图，不叠黑蒙版（1204 按需求去掉） */
    .uedBox2 .uedboxText .bg::after {
        content: none;
    }

    .uedBox2 .uedboxText .box {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        transform: none !important;
        -webkit-transform: none !important;
        padding: 2.1rem 0 !important;
    }

    .uedBox2 .uedboxText .maview {
        width: 100% !important;
        padding: 0 1rem !important;
        box-sizing: border-box;
    }

    .uedBox2 .uedboxText .text {
        width: 100% !important;
        padding: 0 !important;
        float: none;
    }

    .uedBox2 .uedboxText .text .xb {
        display: block !important;
    }

    .uedBox2 .uedboxText .text h3 {
        font-size: 1.02rem !important;
    }

    .uedBox2 .uedboxText .text .xb p {
        font-size: .7rem !important;
        color: #d8d8d8;
        margin-top: .25rem;
    }

    .uedBox2 .uedboxText .text i.xian {
        margin: .7rem 0 !important;
    }

    .uedBox2 .uedboxText .text .bt {
        font-size: .7rem !important;
        color: #d8d8d8 !important;
        margin: 0 0 .4rem !important;
    }

    .uedBox2 .uedboxText .text p {
        font-size: .72rem !important;
        line-height: 1.9 !important;
        color: #ececec;
    }

    .uedBox2 .uedboxText .text ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: .4rem;
        margin-top: .8rem !important;
        /* 三项那组（品牌层）排成两行后最后一行会贴死块底边，留出余量 */
        margin-bottom: .9rem !important;
    }

    /* .clearfix 的伪元素在 grid 里会占一格，必须去掉 */
    .uedBox2 .uedboxText .text ul::after,
    .uedBox2 .uedboxText .text ul::before {
        display: none !important;
        content: none !important;
    }

    .uedBox2 .uedboxText .text ul li {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: .5rem .2rem;
    }

    .uedBox2 .uedboxText .text ul li p {
        font-size: .66rem !important;
        line-height: 1.5 !important;
        margin-top: .2rem;
    }

    .uedBox2 .uedboxText .text ul li .icon img {
        max-width: 1.4rem;
    }

    .uedBox3box {
        display: block !important;
    }

    .uedBox3box .left,
    .uedBox3box .right {
        width: 100% !important;
        float: none;
        margin: 0 0 1rem;
    }

    .uedBox3box .left .bg {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 .4rem;
        box-sizing: border-box;
    }

    .uedBox3box .left .bg .img img {
        width: 100% !important;
        height: auto !important;
    }

    .uedBox3box .left .icon {
        display: none !important;
    }

    .uedBox3box .left .icon span {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    .uedBox3box .left .icon span img {
        height: 100% !important;
    }

    .uedBox3box .left .icon span.span1 {
        margin-left: -.75rem !important;
    }

    .uedBox3box .left .icon span.span2,
    .uedBox3box .left .icon span.span3 {
        bottom: -.2rem !important;
    }

    .uedBox3box .right ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-gap: .4rem;
    }

    .uedBox3box .right ul li {
        width: 100% !important;
        margin: 0 !important;
        height: auto !important;
        line-height: 1.9 !important;
        padding: .35rem 0;
        font-size: .7rem !important;
        border-radius: 4px;
    }

    .in_news_list {
        display: block !important;
    }

    .in_news_list .left,
    .in_news_list .right {
        width: 100% !important;
        float: none;
    }

    .in_news_list .left {
        display: block !important;
        border: 0 !important;
    }

    .in_news_list .left .item {
        width: 100% !important;
        padding: .9rem 0 !important;
        border-left: 0 !important;
        border-bottom: 1px solid #ececec !important;
    }

    .in_news_list .left .item:last-child {
        border-bottom: 0 !important;
    }

    .in_news_list .left .title {
        font-size: .84rem !important;
        font-weight: bold;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.55;
        margin-bottom: .4rem !important;
    }

    .in_news_list .left p {
        font-size: .72rem !important;
        line-height: 1.85 !important;
        -webkit-line-clamp: 2;
    }

    .in_news_list .left span {
        font-size: .66rem !important;
        color: #999 !important;
        margin-top: .5rem !important;
    }

    /* 课程页：简介与数字、价值卡、承诺 */
    .birefBox .flex-between-center,
    .birefBox .flex-between {
        display: block !important;
    }

    .birefLeft,
    .bireRight {
        width: 100% !important;
        float: none;
    }

    .bireRight {
        margin-top: 1rem;
    }

    .birefValues {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-gap: .6rem;
    }

    .birefValues li {
        width: 100% !important;
        float: none;
        padding: .9rem 1rem;
    }

    .birefBox .desc p,
    .birefBox .desc {
        font-size: .72rem !important;
        line-height: 1.95 !important;
    }

    .birefBox .title {
        font-size: 1.15rem !important;
    }

    .birefBox .subTit {
        font-size: .74rem !important;
        line-height: 1.6;
    }

    .bireRight li {
        width: 50% !important;
        box-sizing: border-box;
        float: none;
        padding: .8rem 0 !important;
        font-size: .68rem !important;
    }

    .bireRight li .sz {
        margin-bottom: .3rem;
        align-items: baseline;
    }

    .bireRight li .year,
    .bireRight li .counter {
        font-size: 1.55rem !important;
        line-height: 1;
    }

    .bireRight li .sz span {
        font-size: .72rem !important;
        padding-bottom: 0;
    }

    .bireRight li p,
    .bireRight li p a {
        font-size: .66rem !important;
        line-height: 1.6;
        color: #666;
    }

    .birefValues li .tit {
        font-size: 1.02rem !important;
    }

    .birefValues li .subTit {
        font-size: 1.6rem !important;
        opacity: .08;
        margin: .15rem 0 .35rem !important;
        line-height: 1;
    }

    .birefLogo {
        display: none;
    }

    .webabout-honor .swiper-container {
        overflow: hidden;
    }

    .webhezuo-list {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
    }

    .webhezuo-list li {
        padding: .32rem .18rem !important;
    }

    .n_fgcn ul {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-gap: .8rem;
    }

    .n_fgcn li {
        gap: .7rem !important;
        align-items: flex-start !important;
    }

    .n_fgcn li svg {
        width: 1.9rem !important;
        height: 1.9rem !important;
        margin-top: .2rem;
    }

    .n_fgcn li h2 {
        font-size: .92rem !important;
        margin-bottom: .25rem !important;
        line-height: 1.4;
    }

    .n_fgcn li p {
        font-size: .7rem !important;
        line-height: 1.75 !important;
    }

    .Footer-marquee .cont .text {
        font-size: .8rem;
    }

    /* 侧边客服缩小 */
    .consult-container {
        transform: scale(.82);
        transform-origin: right bottom;
    }
}

/* ================================================================
   统一页头（ub-head）在中等屏幕下的收口
   站内模板在 1536px 及以下会让右侧电话被挤出视口，这里按 1440/1366 的
   实际宽度收紧左右留白与导航间距，结构、顺序、配色与全站保持一致。
   ================================================================ */
@media (max-width: 1536px) {
    .ub-head,
    .ub-head.bg {
        padding-left: clamp(36px, 5.4vw, 135px);
        padding-right: clamp(36px, 5.4vw, 135px);
    }
    .ub-nav li {
        margin-left: 1.9vw;
    }
    .ub-head.bg .ub-nav li {
        margin-left: 1.6vw;
    }
}


/* ---------- 2026-12-01 · 三页首屏大字：对齐参考站 hfsxw 的字高与字重 ----------
   原 btext 位图字高 122–158px，是参考站（75px）的 1.6–2 倍，且为近黑体；
   重做为 Arial 细体（描边 +6，墨迹密度对齐参考站 0.407）字高 75px。
   三页统一按高度缩放，宽度随字长自适应，不再用百分比宽度。 */
.mt-banner .banner_txt img,
.st-banner .banner_txt img,
.gd-banner .banner_txt img,
.cs-banner .banner_txt img{
  width:auto!important;
  height:clamp(74px,9.45vw,136px)!important;
  max-width:100%;
  display:block;
}
@media (max-width:767.98px){
  .mt-banner .banner_txt img,
  .st-banner .banner_txt img,
  .gd-banner .banner_txt img,
  .cs-banner .banner_txt img{
    width:auto!important;
    height:clamp(58px,15.5vw,88px)!important;
  }
}

/* 1204：方法论三层背景图是三张带透明斜切的 PNG（上/下边各斜 78px，1、3 向右下，
   2 镜像，接缝互补成 Z 字咬合）。暗场改为直接合成进图片像素，不再用 .bg::after：
   矩形渐变的伪元素会把斜切透明区一起填黑，斜边就没了。
   图片重建脚本见 _tools/rebuild_mt_bg.py，左暗 0.80 → 右 0 与旧规则同参。 */
.uedBox2 .uedboxText .bg{position:relative;}
/* picture 是 inline 元素，不给它撑满会把 img 的 height:100% 撑塌 */
.uedBox2 .uedboxText .bg picture{display:block;width:100%;height:100%;}

/* 1204：方法论三层背景的压暗。
   method-6steps.html 只引本文件、不引 ub-tweaks.css，规则必须写在这里才生效。
   系数按渲染后亮部（85 分位）定，目标 ≤110 保证白字可读：
     生意层 A13 亮部 219 -> .64 = 140
     增长层 B21 亮部 227 -> .69 = 157
     品牌层 b46 最亮 105，不压 */
.ub-light-hero .uedBox2 .uedboxText .bg img{filter:none}
.ub-light-hero .uedBox2 .uedboxText2 .bg img{filter:none}   /* 文字压在纯黑区（85分位 9），不压 */
.ub-light-hero .uedBox2 .uedboxText3 .bg img{filter:none}

/* 1204：窄屏三块已换成矩形图（-m.png），不再靠负边距做斜切咬合。
   但原样式在窄屏仍给第二、三块 margin-top:-32px，第三块会盖住第二块最后一行图标文字
   （实测「符号系统」被整行切掉）。这里在矩形图生效的断点里把负边距归零。 */
@media (max-width: 768px){
  .uedBox2 .uedboxText2,
  .uedBox2 .uedboxText3{margin-top:0 !important;}
}
