/* ==========================================================================
   目标站版式适配层 v2（sdzhuangfa 视觉 1:1 + 舸匠内容）
   原则：版式/配色尽量交还给 app.css / main.css 基础层（与目标站同源），
   本层只处理三类事情：
     1. 舸匠自有素材与目标站的差异补偿（图上无烧字 → 文字浮层/水印）
     2. 品牌色（舸匠蓝 #0561AA 替换目标站金棕/宝蓝点缀）
     3. 语言切换等舸匠特有元素
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 头部：透明悬浮式（基础层已是 rgba(0,0,0,.2) + absolute，这里只调细节）
   -------------------------------------------------------------------------- */
.x-header {
    background: rgba(0, 0, 0, .22);
}

.x-logo {
    width: 15%;
    padding-top: 4px;
}

.x-logo img {
    display: block;
    max-width: 100%;
    max-height: 56px;
    width: auto;
    /* 舸匠蓝 logo 在深色头部上不可见，整体转白（目标站即白色 logo） */
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

.top-brand {
    font-size: 15px;
    line-height: 1.7;
    padding: 4px 0 0 18px;
    opacity: .92;
}

.top-brand p {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2px;
}

.x-header-right {
    width: 54%;
    padding-top: 8px;
}

.x-header-right .hotline {
    font-size: 18px;
    line-height: 22px;
    padding-left: 34px;
    padding-right: 18px;
    color: #fff;
}

.x-menu {
    margin-top: .5vw;
}

.x-menu > li > a {
    font-size: 16px;
    line-height: 2.6;
    color: #fff;
}

.x-menu > li > a:hover,
.x-menu > li.active > a {
    color: #cfe4f7;
}

/* 头部白色图标（搜索/二维码素材为蓝色 PNG，转白） */
.x-header-right .x-search img,
.x-header-right .t-ewm > img {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
    opacity: .92;
}

.x-header-right .x-search:hover img,
.x-header-right .t-ewm:hover > img {
    opacity: 1;
}

/* 语言切换：白色描边小按钮 */
.lang-switch {
    margin-right: 14px;
    padding-top: 0;
    line-height: 24px;
}

.lang-switch a {
    display: inline-block;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    font-size: 13px;
    line-height: 24px;
    letter-spacing: .06em;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.lang-switch a:hover {
    background: #fff;
    border-color: #fff;
    color: #0561AA;
}

/* 下拉二级菜单：白底深字（与目标站一致） */
.x-sub-menu {
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    box-shadow: 0 10px 22px rgba(10, 40, 70, .08);
}

.x-sub-menu li a {
    color: #333;
}

.x-sub-menu li a:hover {
    color: #0561AA;
}

/* 下拉搜索框：白底 */
.searchbox {
    background: #fff;
}

/* 手机端头部：深色底（基础层 #151515），元素转白 */
.xymob-head {
    background: #151515;
}

.xymob-navbtn span,
.xymob-navbtn:before,
.xymob-navbtn:after {
    background: #fff;
}

.xymob-search-btn img {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
    width: 20px;
    height: 21px;
}

.xymob-lang {
    position: absolute;
    right: 58px;
    top: 0;
    bottom: 0;
    line-height: 60px;
    z-index: 9;
}

.xymob-lang a {
    display: inline-block;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
}

/* --------------------------------------------------------------------------
   2. 首页 Banner：整图轮播 + 文字浮层（目标站标题烧在图里，舸匠图无字）
   排版对齐目标站：楷体大字 + 大字距，白色；位置跟随舸匠图片构图（左暗部）
   -------------------------------------------------------------------------- */
.x-banner .owl-carousel .banner-item {
    position: relative;
}

/* 目标站 banner：1920x900 单图等比铺满（实测 1920→900px、1366→640px、768→360px、390→183px）。
   舸匠图为 2048x872，比例略扁，用 object-fit:cover 裁齐到目标站比例 */
.x-banner .owl-carousel .banner-item > img {
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 900;
    object-fit: cover;
}

.x-banner .banner-item:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 58%;
    height: 100%;
    background: linear-gradient(90deg, rgba(3, 24, 46, .55) 0%, rgba(3, 24, 46, .22) 55%, rgba(3, 24, 46, 0) 100%);
    pointer-events: none;
}

.x-banner .banner-text {
    position: absolute;
    z-index: 9;
    left: 8.33333333%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    max-width: 640px;
    color: #fff;
    text-align: left;
}

.x-banner .banner-kicker {
    display: block;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 18px;
}

.x-banner .banner-text h2 {
    color: #fff;
    font-family: "STKaiti", "KaiTi", "STSong", "SimSun", serif;
    font-size: 54px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .14em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.x-banner .banner-text p {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .85);
    margin-top: 16px;
    max-width: 540px;
    letter-spacing: .04em;
}

.x-banner .banner-btn {
    display: inline-block;
    width: auto;
    margin-top: 30px;
    padding: 0 34px;
    border: 1px solid rgba(255, 255, 255, .8);
    color: #fff;
    font-size: 15px;
    line-height: 44px;
    letter-spacing: .08em;
    -webkit-transition: all .4s ease;
    transition: all .4s ease;
}

/* 覆盖基础层 `.banner-item a{font-size:0}` 的图标占位规则 */
.x-banner .owl-carousel .banner-item a.banner-btn {
    display: inline-block;
    width: auto;
    font-size: 15px;
    line-height: 44px;
}

.x-banner .banner-btn i {
    font-style: normal;
    margin-left: 10px;
    -webkit-transition: margin .4s ease;
    transition: margin .4s ease;
}

.x-banner .banner-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #0561AA;
}

.x-banner .banner-btn:hover i {
    margin-left: 18px;
}

/* --------------------------------------------------------------------------
   3. 区块大标题：文字标题 + 浅灰英文水印背景（对齐目标站标题图观感）
   -------------------------------------------------------------------------- */
.x-product h2,
.x-case h2,
.service h2 {
    position: relative;
    z-index: 0;
    color: #010101;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
}

.x-product h2:before,
.x-case h2:before,
.service h2:before {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 64px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    color: rgba(0, 0, 0, .055);
    pointer-events: none;
}

.x-product h2:before {
    content: "PRODUCT CENTER";
}

.x-case h2:before {
    content: "INDUSTRY APPLICATION";
}

.service h2:before {
    content: "THE COOPERATIVE ENTERPRISE";
}

.x-product,
.x-case {
    text-align: center;
}

/* 资讯中心标题：目标站为左对齐常规大标题，交还基础层 */

.case-cate a:hover {
    color: #0561AA;
}

/* --------------------------------------------------------------------------
   4. 产品分类圆形导航（8 类圆形图标，选中舸匠蓝）
   -------------------------------------------------------------------------- */
.pro-cate {
    flex-wrap: wrap;
}

.pro-cate li .img {
    height: 46px;
}

.pro-cate li .img img {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.pro-cate li.on img {
    -webkit-transform: translateY(-46px);
    transform: translateY(-46px);
}

.pro-cate li a {
    padding-top: 8px;
}

.pro-cate li.on a,
.pro-cate li:nth-child(n).on a {
    background: #0561AA;
    border: 1px solid #0561AA;
}

.pro-cate li h3 {
    font-size: 14px;
    line-height: 1.35;
    margin-top: 4px;
}

/* 选中态：白字收进蓝色圆内（舸匠类目名较长，缩字号防溢出） */
.pro-cate li.on h3 {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -.02em;
}

/* 英文类目名更长，进一步缩小 */
html[lang="en"] .pro-cate li.on h3 {
    font-size: 10px;
    letter-spacing: 0;
}

.pro-cate li.on a {
    padding-top: 0;
}

.pro-cate li.on .img {
    height: 52px;
}

.pro-cate li.on .img img {
    margin-top: 6px;
    -webkit-transform: translateY(-52px);
    transform: translateY(-52px);
}

/* --------------------------------------------------------------------------
   5. 产品列表 / 案例图 / 新闻图比例（对齐目标站节奏）
   目标站：产品 600x600 方图；案例横图；新闻 410x410 方图
   -------------------------------------------------------------------------- */
.pro-list li img,
.news-list li .img img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.x-case-item .img img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.xypg-product-list li .img img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.xypg-case-list li .img img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. 关于我们四宫格（p2）：舸匠图无烧字压暗，补渐变遮罩保证白字可读
   -------------------------------------------------------------------------- */
.p2a,
.p2a .img {
    position: relative;
}

.p2a .img:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(0, 14, 28, .72) 0%, rgba(0, 14, 28, .34) 46%, rgba(0, 14, 28, 0) 72%),
        linear-gradient(180deg, rgba(0, 14, 28, .4) 0%, rgba(0, 14, 28, .26) 55%, rgba(0, 14, 28, .5) 100%);
    pointer-events: none;
}

.p2a .cont {
    z-index: 2;
    width: 52%;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.p2a .cont h3 {
    font-size: 44px;
    line-height: 1.2;
    padding-bottom: 22px;
    margin-bottom: 20px;
}

.p2c li a .cont {
    padding: 16px 10px;
}

.p2c li a .cont img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 48px;
    margin: 0 auto;
    padding-right: 0;
}

.p2c li a .cont h3 {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. 内页 Banner：整宽原图 + 标题/副题浮层（目标站字烧图里，舸匠补浮层）
   -------------------------------------------------------------------------- */
.page-banner {
    position: relative;
    background: #0a2b4d;
}

.page-banner > img,
.page-banner picture img {
    display: block;
    width: 100%;
}

.page-banner:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 24, 46, .32);
    pointer-events: none;
}

.page-banner .nybt {
    z-index: 999;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.page-banner .nybt h3 {
    display: block;
    color: #fff;
    font-family: "STKaiti", "KaiTi", "STSong", "SimSun", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .18em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

.page-banner .nybt h3:after {
    content: "";
    display: block;
    width: 56px;
    height: 1px;
    margin: 16px auto 0;
    background: rgba(255, 255, 255, .8);
}

.page-banner .nybt .nybt-sub {
    margin-top: 14px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    letter-spacing: .08em;
}

.page-banner .nybt .nybt-desc {
    display: none;
}

/* --------------------------------------------------------------------------
   8. 品牌色点缀（页脚在线咨询 / 侧栏标题）
   -------------------------------------------------------------------------- */
.online {
    background-color: #0561AA;
}

.online:hover {
    background-color: #044E8A;
}

.xypg-left-title {
    background: #0561AA;
}

/* 合作企业卡片：固定等高，杜绝浮动错位（目标站卡片高度一致） */
.ser-list li {
    height: 252px;
    min-height: 0;
    padding: 40px 30px 0 3.7%;
    overflow: hidden;
}

/* 简介统一两行截断，保证卡片等高（目标站即两行简介） */
.ser-list li .intro {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .ser-list li {
        height: auto;
        padding: 4vh 0 4vh 3.7%;
        overflow: visible;
    }

    .ser-list li .intro {
        display: block;
        overflow: visible;
    }
}

/* --------------------------------------------------------------------------
   9. 页脚：交还基础层（#181819 + #111），logo 转白，二维码浮现
   -------------------------------------------------------------------------- */
.x-layout {
    padding: 4vh 0;
}

.foot-left {
    width: 34%;
    text-align: center;
}

.x-layout-logo img {
    max-height: 64px;
    width: auto;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
    opacity: .92;
}

.x-layout-desc {
    padding: 0 22px;
    font-size: 14px;
}

.x-footer .jszc {
    display: inline-block;
    margin-left: 10px;
}

/* --------------------------------------------------------------------------
   10. 移动端
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    .x-banner .banner-text h2 {
        font-size: 46px;
    }
}

@media (max-width: 1199px) {
    .x-logo {
        width: 18%;
    }

    .x-header-right {
        width: 50%;
    }

    .x-banner .banner-text {
        max-width: 520px;
    }

    .x-banner .banner-text h2 {
        font-size: 38px;
    }

    .x-banner .banner-text p {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .x-product h2,
    .x-case h2,
    .service h2 {
        font-size: 40px;
    }

    .x-product h2:before,
    .x-case h2:before,
    .service h2:before {
        font-size: 46px;
    }

    .page-banner .nybt h3 {
        font-size: 30px;
        letter-spacing: .1em;
    }
}

@media (max-width: 767px) {
    .x-banner .banner-item:after {
        width: 100%;
        background: linear-gradient(180deg, rgba(3, 24, 46, .08) 0%, rgba(3, 24, 46, .55) 100%);
    }

    /* 页脚标语：窄屏去胶囊形态，避免断词换行 */
    .x-layout-desc {
        max-width: 88%;
        margin: 0 auto;
        background: rgba(255, 255, 255, .08);
        color: #D8E6F3;
        font-size: 13px;
        line-height: 1.8;
        padding: 8px 14px;
        border-radius: 6px;
        white-space: normal;
        word-break: keep-all;
    }

    .x-banner .banner-text {
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 44px;
        max-width: none;
        -webkit-transform: none;
        transform: none;
    }

    .x-banner .banner-kicker {
        font-size: 10px;
        letter-spacing: .22em;
        margin-bottom: 6px;
    }

    .x-banner .banner-text h2 {
        font-size: 22px;
        line-height: 1.3;
        letter-spacing: .06em;
    }

    .x-banner .banner-text p {
        display: none;
    }

    .x-banner .banner-btn {
        margin-top: 10px;
        padding: 0 20px;
        font-size: 13px;
        line-height: 32px;
    }

    .x-product h2,
    .x-case h2,
    .service h2 {
        font-size: 26px;
    }

    .x-product h2:before,
    .x-case h2:before,
    .service h2:before {
        font-size: 30px;
    }

    .page-banner .nybt h3 {
        font-size: 22px;
        letter-spacing: .08em;
    }

    .page-banner .nybt h3:after {
        margin-top: 10px;
        width: 44px;
    }

    .page-banner .nybt .nybt-sub {
        font-size: 13px;
        margin-top: 8px;
    }

    .pro-cate li .img {
        height: 40px;
    }

    .pro-cate li .img img {
        width: 40px;
        height: 40px;
    }

    .pro-cate li.on img {
        -webkit-transform: translateY(-40px);
        transform: translateY(-40px);
    }

    .pro-cate li {
        margin-bottom: 16px;
    }

    .pro-cate li a {
        padding-top: 6px;
    }

    .pro-cate li h3 {
        font-size: 13px;
        line-height: 1.3;
        margin-top: 2px;
    }

    /* 关于四宫格：移动端回落为图文上下结构 */
    .p2a .img:after {
        display: none;
    }

    .p2a .cont {
        position: initial;
        width: 100%;
        max-width: none;
        padding: 16px 15px 20px;
        color: #333;
        font-size: 14px;
        line-height: 1.85;
        text-shadow: none;
    }

    .p2a .cont h3 {
        margin: 0 0 10px;
        padding-bottom: 10px;
        color: #010101;
        font-size: 22px;
        line-height: 1.3;
    }

    .x-layout-logo img {
        max-height: 48px;
    }
}

@media (max-width: 414px) {
    .pro-cate li .img,
    .pro-cate li .img img {
        width: 36px;
        height: 36px;
    }

    .pro-cate li.on img {
        -webkit-transform: translateY(-36px);
        transform: translateY(-36px);
    }
}
