/* ==========================================================================
   responsive.css —— 全站移动端适配 + 视觉微调
   依赖：base.css / style.css / news.css 在之前引入
   设计基准：PC 1200px，断点 1240 / 992 / 768 / 480
   主色：#167cba
   ========================================================================== */

/* ==========================================================================
   一、视觉微调（PC 端，轻量）
   ========================================================================== */

/* 字体栈优化：中文优先系统黑体，比宋体更现代，且不会失去衬线感 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "微软雅黑", "Noto Sans CJK SC", "Noto Sans SC",
                 "Source Han Sans SC", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #555;
    text-decoration: none;
    transition: color .25s ease;
}

a:hover {
    color: #167cba;
}

/* 全局滚动条美化（WebKit） */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #c9d3dc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #167cba;
}

::-webkit-scrollbar-track {
    background: #f5f7f9;
}

/* 选中文案 */
::selection {
    color: #fff;
    background: #167cba;
}

/* 图片不再有默认下边距缝隙 */
img {
    max-width: 100%;
}

/* ---------- 首页轮播：文字贴底 + 渐变遮罩（全端统一） ---------- */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-container .layui-carousel {
    overflow: hidden;
}

.carousel-container .layui-carousel img.d-block {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 手机端图片靠右裁切，保证右侧图形完整可见 */
@media screen and (max-width: 992px) {
    .carousel-container .layui-carousel img.d-block {
        object-position: right center;
    }
}

.carousel-text {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 24px;
    font-size: 36px;
    text-align: left;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 10;
}

.carousel-text h2 {
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.carousel-text h4 {
    font-size: 18px;
    font-weight: 400;
    margin-top: 10px;
    opacity: .94;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .45);
}

/* ---------- 首页滚动区性能优化 ---------- */
.news-content {
    will-change: transform;
    backface-visibility: hidden;
}

.case-scroll-wrapper {
    will-change: transform;
    backface-visibility: hidden;
}

/* 应用领域卡片在横向滚动中不响应 hover 位移，避免抖动 */
.case-scroll-wrapper .item-case {
    flex-shrink: 0;
}

.case-scroll-container {
    overflow: hidden;
}

/* ---------- 首页产品展示卡片（可点击） ---------- */
.product-item {
    display: flex;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-item:hover {
    text-decoration: none;
    color: inherit;
}

.product-item .product-title {
    transition: color .25s ease;
}

.product-item:hover .product-title {
    color: #167cba;
}

.product-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 14px;
    color: #167cba;
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s ease;
}

.product-item:hover .product-more {
    opacity: 1;
    transform: translateX(0);
}

.product-more .layui-icon {
    font-size: 13px;
}

/* 触屏设备常显 */
@media (hover: none) {
    .product-more {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 首页应用领域滚动卡片 ---------- */
.item-case {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.item-case:hover {
    text-decoration: none;
    color: inherit;
}

.item-case img {
    transition: transform .4s ease;
}

.item-case:hover img {
    transform: scale(1.06);
}

.item-case span {
    position: relative;
    transition: color .25s ease, background .25s ease;
}

.item-case:hover span {
    color: #167cba;
    font-weight: 600;
}

/* 卡片底部主色条，悬停展开 */
.item-case::after {
    content: '';
    display: block;
    height: 3px;
    width: 0;
    background: #167cba;
    transition: width .35s ease;
}

.item-case:hover::after {
    width: 100%;
}

/* ---------- PC 搜索框收窄，给导航让位 ---------- */
@media screen and (min-width: 1241px) {
    .search-box input {
        width: 150px;
    }

    .search {
        flex: 0 0 auto;
        margin-left: 16px;
    }
}

/* ---------- 顶部导航 ---------- */
.header {
    position: relative;
    height: 100px;
    /* base.css 里的 overflow:hidden 会裁掉下拉菜单，这里必须放开 */
    overflow: visible;
    background: #fff;
    box-shadow: 0 1px 0 #eef1f4;
    /* 建立堆叠上下文，保证下拉层压住下面的轮播 */
    z-index: 1000;
    transition: box-shadow .3s ease;
}

.header:hover {
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}

/* 兜底：若浏览器不支持 :has() 等，仍保证基础可展开
   注意：不设 display，交给 modal.css 的 opacity/visibility 过渡控制 */
.menu li.main-menu:hover > .drop-menu {
    display: block;
}

.main-menu > a {
    position: relative;
    transition: color .25s ease;
}

.main-menu > a:hover,
.main-menu > a.active {
    color: #167cba;
}

/* 菜单悬停下划线动效 */
.main-menu > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 0;
    height: 2px;
    background: #167cba;
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width .3s ease;
}

.main-menu > a:hover::after {
    width: 26px;
}

/* 搜索框聚焦反馈 */
.search-box input {
    border-color: #d0d7de;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.search-box input:focus {
    border-color: #167cba;
    box-shadow: 0 0 0 3px rgba(22, 124, 186, .12);
}

.search-button {
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23167cba' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E") center no-repeat;
    background-size: 16px;
    border-color: #d0d7de;
    cursor: pointer;
    transition: all .25s ease;
}

.search-button:hover {
    background-color: #167cba;
    border-color: #167cba;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E");
}

/* ---------- 区块标题微调 ---------- */
.item-block-title {
    position: relative;
    letter-spacing: 1px;
    color: #1a1a1a;
}

.item-title-line {
    transition: width .4s ease;
}

.itme-block:hover .item-title-line {
    width: 80px;
}

/* 数字区块加一点呼吸感 */
.item-list-title {
    letter-spacing: -1px;
}

/* ---------- 产品 / 案例卡片统一阴影过渡 ---------- */
.product-item,
.item-case {
    transition: transform .3s ease, box-shadow .3s ease;
}

/* ---------- 按钮统一 ---------- */
.contact-btn {
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    transition: all .3s ease;
}

.contact-btn:hover {
    color: #fff;
    background: #167cba;
    border-color: #167cba;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 124, 186, .25);
}

.text-btn,
.form-btn {
    cursor: pointer;
    transition: all .3s ease;
}

.text-btn {
    border-color: #167cba;
    color: #167cba;
}

.text-btn:hover {
    color: #fff;
    background: #167cba;
}

.form-btn:hover {
    background: #167cba;
}

/* ==========================================================================
   首页视觉统一（配色收敛 + 节奏优化）
   配色体系：主色 #167cba，中性色 #1a1a1a / #5a6570 / #8b95a1，
             浅底 #f6f9fb，深底 #2b3036
   ========================================================================== */

/* ---------- 区块节奏：交替底色，形成清晰分区 ---------- */
.mainbody {
    background: #fff;
}

.itme-block {
    padding: 64px 0 68px;
}

/* 应用领域区块：横向滚动，上下留白收紧 */
.mainbody > .itme-block:nth-of-type(2) {
    padding-bottom: 52px;
}

/* 交替底色：第 2、4 个区块用浅灰蓝，打破大片纯白 */
.mainbody > .itme-block:nth-of-type(even) {
    background: #f6f9fb;
    border-radius: 0;
}

/* 统一标题层级 */
.item-block-title {
    font-size: 34px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.item-block-content {
    max-width: 780px;
    margin: 0 auto;
    color: #7a8794;
    font-size: 15px;
    line-height: 1.85;
}

.item-title-line {
    width: 46px;
    height: 3px;
    border-radius: 2px;
    margin: 18px auto 0;
    background: #167cba;
}

/* ---------- 为什么选择我们：数字区 ---------- */
.item-block-list ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    padding: 8px 0 0;
}

.item-block-list ul li {
    width: 25%;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

/* 数字之间的细分隔线 */
.item-block-list ul li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 46px;
    margin-top: -23px;
    background: #e4eaef;
}

.item-list-title {
    font-size: 44px;
    font-weight: 700;
    color: #167cba;
    line-height: 1.2;
    letter-spacing: -1px;
}

.item-list-content {
    margin-top: 10px;
    font-size: 15px;
    color: #7a8794;
}

/* ---------- 应用领域卡片：去掉花哨渐变，统一白卡 ---------- */
.case-scroll-wrapper .item-case {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 40, 60, .05);
    transition: box-shadow .3s ease, border-color .3s ease;
}

.case-scroll-wrapper .item-case:hover {
    border-color: #cfe4f3;
    box-shadow: 0 8px 22px rgba(22, 124, 186, .14);
}

.case-scroll-wrapper .item-case img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    transition: none;   /* 横向滚动中不做缩放，避免抖动 */
}

.case-scroll-wrapper .item-case:hover img {
    transform: none;
}

.case-scroll-wrapper .item-case span {
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3a47;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-scroll-wrapper .item-case:hover span {
    color: #167cba;
    font-weight: 600;
}

/* 去掉底部展开蓝条（滚动中容易闪烁） */
.case-scroll-wrapper .item-case::after {
    display: none;
}

/* ---------- 产品卡片：改为网格，取消左右交替 ---------- */
.product-container {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* 原先用 .product-row 包裹，网格化后取消其作用 */
.product-container .product-row {
    display: contents;
}

/* 取消奇偶行图片左右交替，统一图片在左 */
.product-container .product-item,
.product-row:nth-child(odd) .product-item,
.product-row:nth-child(even) .product-item {
    flex-direction: row;
    height: 200px;
}

.product-item {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 40, 60, .05);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.product-item:hover {
    border-color: #cfe4f3;
    box-shadow: 0 10px 26px rgba(22, 124, 186, .13);
    transform: translateY(-3px);
}

.product-container .product-image {
    flex: 0 0 40%;
    width: auto;
    height: auto;
    background: #f6f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-container .product-content {
    padding: 18px 20px;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;   /* 白底图融入浅灰背景，消除硬边 */
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #7a8794;
}

.product-more {
    margin-top: 12px;
    font-size: 14px;
    color: #167cba;
}

/* ---------- 新闻列表：卡片化，与产品/领域统一 ---------- */
.news-container {
    border: none;
    border-radius: 0;
    background: transparent;
    margin-top: 8px;
    height: 480px;   /* 与 4 条新闻高度匹配 */
}

.news-item {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 40, 60, .05);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.news-item:hover {
    border-color: #cfe4f3;
    box-shadow: 0 8px 22px rgba(22, 124, 186, .12);
}

.news-thumb {
    border-radius: 6px;
    object-fit: cover;
}

.news-title {
    color: #1a1a1a;
    font-weight: 600;
    transition: color .25s ease;
}

.news-item:hover .news-title {
    color: #167cba;
}

.news-desc {
    color: #7a8794;
}

/* ---------- 联系我们：收尾区块 ---------- */
.mainbody > .itme-block:last-of-type {
    background: #f6f9fb;
    padding: 56px 0 60px;
}

.contact-btn {
    min-width: 140px;
    height: 46px;
    line-height: 46px;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 500;
    color: #167cba;
    background: #fff;
    border: 1px solid #cfe4f3;
    border-radius: 8px;
    cursor: pointer;
    transition: all .28s ease;
    display: inline-block;
    text-align: center;
}

.contact-btn:hover {
    color: #fff;
    background: #167cba;
    border-color: #167cba;
    box-shadow: 0 8px 20px rgba(22, 124, 186, .22);
}

.contact-container {
    padding: 26px 0 0;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1240px) {
    .itme-block {
        padding: 50px 0 54px;
    }

    .item-block-title {
        font-size: 30px;
    }

    .item-list-title {
        font-size: 38px;
    }
}

@media screen and (max-width: 992px) {
    .itme-block {
        padding: 40px 0 44px;
    }

    .item-block-title {
        font-size: 26px;
    }

    .item-block-content {
        font-size: 14px;
        padding: 0 8px;
    }

    .item-block-list ul li {
        width: 50%;
        padding: 12px 8px;
    }

    /* 两列时去掉竖线 */
    .item-block-list ul li + li::before {
        display: none;
    }

    .item-list-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .itme-block {
        padding: 32px 0 36px;
    }

    .item-block-title {
        font-size: 22px;
    }

    .item-list-title {
        font-size: 28px;
    }

    .item-list-content {
        font-size: 13px;
    }

    .case-scroll-wrapper .item-case img {
        height: 150px;
    }

    .product-container {
        grid-template-columns: 1fr;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* 手机端：图上文下，高度自适应，避免文字被截断 */
    .product-container .product-item,
    .product-row:nth-child(odd) .product-item,
    .product-row:nth-child(even) .product-item {
        height: auto;
        min-height: 0;
        flex-direction: column;
    }

    .product-container .product-image {
        flex: none;
        width: 100%;
        height: 170px;
        padding: 14px;
    }

    .product-container .product-content {
        padding: 14px 16px 18px;
        justify-content: flex-start;
    }

    .product-container .product-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .product-container .product-desc {
        font-size: 13px;
        line-height: 1.7;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-container .product-more {
        margin-top: 10px;
    }

    .news-container {
        height: 420px;
    }

    .contact-btn {
        min-width: 120px;
        height: 42px;
        line-height: 42px;
        font-size: 14px;
    }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
    background: #2b3036;
    padding: 46px 0 0;
    color: #b9c2cb;
    font-size: 15px;
    line-height: 1.8;
}

.footer a {
    color: #b9c2cb;
    text-decoration: none;
    transition: color .25s ease;
}

.footer a:hover {
    color: #fff;
}

/* ---------- 三栏网格 ---------- */
.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.4fr) auto;
    gap: 50px;
    align-items: center;
    padding-bottom: 40px;
}

/* 左：品牌 */
.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo {
    width: auto;
    padding: 0 0 16px;
    line-height: 0;
}

.footer-logo img {
    width: 200px;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.footer-slogan {
    font-size: 13px;
    color: #7d8894;
    line-height: 1.7;
    max-width: 280px;
}

/* 中：公司信息 */
.info-container {
    width: auto;
    float: none;
}

.footer-col-title {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .5px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: #167cba;
    border-radius: 1px;
}

.footer-info-list li {
    display: flex;
    align-items: baseline;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.7;
}

.footer-info-label {
    flex: 0 0 62px;
    color: #7d8894;
}

.footer-info-value {
    flex: 1;
    min-width: 0;
    color: #cdd5dd;
    word-break: break-all;
}

.footer-info-wide .footer-info-value {
    line-height: 1.75;
}

/* 右：二维码 */
.footer-wxcode {
    width: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-qr-box {
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    line-height: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.footer-wxcode img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.footer-qr-text {
    font-size: 13px;
    color: #7d8894;
    letter-spacing: .5px;
}

/* 底部备案条 */
.footer-site {
    padding: 18px 0;
    margin-top: 0;
    text-align: center;
    font-size: 13px;
    color: #6b7683;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 992px) {
    .footer {
        padding-top: 34px;
    }

    /* 平板：品牌 + 二维码 同一行，联系信息整行在下 */
    .footer-main {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 26px 40px;
        padding-bottom: 30px;
        align-items: start;
    }

    .footer-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-logo img {
        width: 160px;
    }

    .footer-wxcode {
        grid-column: 2;
        grid-row: 1;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .footer-wxcode img {
        width: 96px;
        height: 96px;
    }

    .info-container {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    /* 平板信息两列排布，减少高度 */
    .footer-info-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 30px;
    }

    .footer-info-wide {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding-top: 28px;
        font-size: 14px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: left;
    }

    .footer-brand,
    .info-container,
    .footer-wxcode {
        grid-column: 1 / -1;
    }

    .footer-wxcode {
        grid-row: auto;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .footer-info-list {
        display: block;
    }

    .footer-info-wide {
        grid-column: auto;
    }

    .footer-qr-box {
        padding: 6px;
    }

    .footer-wxcode img {
        width: 88px;
        height: 88px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-info-list li {
        font-size: 13px;
    }

    .footer-info-label {
        flex: 0 0 54px;
    }
}

@media screen and (max-width: 480px) {
    .footer-logo img {
        width: 130px;
    }

    .footer-slogan {
        font-size: 12px;
    }

    .footer-wxcode img {
        width: 76px;
        height: 76px;
    }
}

/* ==========================================================================
   二、移动端导航（汉堡菜单）
   ========================================================================== */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex: 0 0 44px;
}

.mobile-toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all .3s ease;
}

.mobile-toggle span:nth-child(1) { top: 15px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 27px; }

.mobile-toggle.is-open span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.is-open span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* 移动端菜单容器 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100%;
    padding: 70px 0 30px;
    background: #fff;
    box-shadow: -6px 0 30px rgba(0, 0, 0, .12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    z-index: 1200;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s ease;
    z-index: 1100;
}

.mobile-mask.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.nav-locked {
    overflow: hidden;
}

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 20px;
    color: #666;
    background: #f4f6f8;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.mobile-nav ul {
    padding: 0 18px;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid #f0f2f4;
}

.mobile-nav a {
    display: block;
    padding: 15px 4px;
    font-size: 16px;
    color: #222;
    text-decoration: none;
}

.mobile-nav > ul > li > a {
    font-weight: 600;
}

.mobile-nav .layui-icon {
    font-size: 16px;
    margin-right: 8px;
    color: #167cba;
}

/* 二级菜单 */
.mobile-sub {
    display: none;
    padding-left: 14px;
    border-left: 2px solid #eef1f4;
    margin: 0 0 10px 6px;
}

.mobile-sub.is-open {
    display: block;
}

.mobile-sub li {
    border-bottom: none;
}

.mobile-sub a {
    padding: 10px 4px;
    font-size: 14px;
    color: #666;
}

.mobile-nav-item {
    position: relative;
}

.mobile-nav-item.has-sub > a::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -6px;
    border-right: 2px solid #bbb;
    border-bottom: 2px solid #bbb;
    transform: rotate(45deg);
    transition: transform .3s ease;
}

.mobile-nav-item.has-sub.is-expanded > a::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

/* 移动端搜索 */
.mobile-search {
    padding: 16px 18px 22px;
    border-top: 1px solid #f0f2f4;
    margin-top: 10px;
}

.mobile-search form {
    display: flex;
    border: 1px solid #dde3e8;
    border-radius: 22px;
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    border: none;
    outline: none;
    background: #fff;
}

.mobile-search button {
    flex: 0 0 56px;
    height: 40px;
    font-size: 14px;
    color: #fff;
    background: #167cba;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   三、断点适配
   ========================================================================== */

/* ---------- ≤1240px：容器自适应 ---------- */
@media screen and (max-width: 1240px) {
    .container {
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }

    .menu {
        width: auto;
        flex: 1;
        overflow: visible;
    }

    .main-menu > a {
        padding: 0 14px;
        font-size: 15px;
    }

    .search-box input {
        width: 150px;
    }
}

/* ---------- ≤1100px：收紧导航 ---------- */
@media screen and (max-width: 1100px) {
    .main-menu > a {
        padding: 0 10px;
        font-size: 14px;
    }

    .menu .layui-icon {
        display: none;
    }

    .search-box input {
        width: 120px;
    }

    /* 首页统计区两列 */
    .item-block-list ul li {
        width: 50%;
        margin-bottom: 16px;
    }

    /* 应用领域滚动卡片变窄 */
    .item-case {
        flex: 0 0 300px;
    }

    .item-case img {
        height: 175px;
    }

    /* 新闻滚动容器高度适配 */
    .news-container {
        height: 620px;
    }

    .news-item {
        height: 180px;
    }

    .news-thumb {
        width: 190px;
        height: 112px;
    }

    .news-title {
        font-size: 20px;
    }

    .news-desc {
        font-size: 15px;
    }
}

/* ---------- ≤992px：切移动端导航 ---------- */
@media screen and (max-width: 992px) {

    /* 头部：logo 左、汉堡右，同一行 */
    .header {
        position: relative;
        height: 64px;
        overflow: visible;
    }

    .header-item {
        display: flex;
        height: 64px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .header-item > .logo {
        float: none;
        flex: 0 1 auto;
        max-width: calc(100% - 60px);
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .header-item > .logo > a {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .header-item > .logo img {
        height: 44px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    /* PC 菜单与搜索隐藏 */
    .menu,
    .search {
        display: none !important;
    }

    .header-item > .mobile-toggle {
        display: block;
        float: none;
        flex: 0 0 44px;
        margin-left: auto;
        align-self: center;
        background: transparent;
    }

    /* 打开时图标浮到面板之上，随时可关闭 */
    .header-item > .mobile-toggle.is-open {
        position: fixed;
        top: 14px;
        right: 16px;
        z-index: 1300;
    }

    .mobile-nav,
    .mobile-mask {
        display: block;
    }

    /* 移动端：文字缩小，指示器挪到右上角 */
    /* 手机端：文字贴底部，渐变遮罩只覆盖下沿，不遮挡图形主体 */
    .carousel-text {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 56px 16px 14px;
        background: linear-gradient(to top, rgba(6, 34, 54, .88) 0%, rgba(6, 34, 54, .55) 55%, rgba(6, 34, 54, 0) 100%);
        text-align: left;
    }

    .carousel-text h2 {
        font-size: 17px;
        line-height: 1.35;
        letter-spacing: 0;
        color: #fff;
        text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
    }

    .carousel-text h4 {
        font-size: 12px;
        margin-top: 4px;
        line-height: 1.45;
        color: rgba(255, 255, 255, .82);
        opacity: 1;
        text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    }

    /* 指示器固定在轮播右上角，不随内容撑开 */
    .carousel-container .layui-carousel-ind {
        position: absolute;
        top: 12px;
        bottom: auto;
        right: 12px;
        left: auto;
        width: auto;
        height: auto;
        margin: 0;
    }

    .carousel-container .layui-carousel-ind li {
        margin: 0 4px;
    }

    .carousel-container .layui-carousel-ind {
        bottom: auto;
        top: 10px;
        right: 12px;
        left: auto;
        width: auto;
    }

    .carousel-text h2,
    .carousel-text h4 {
        font-size: inherit;
    }

    .carousel-text h4 {
        font-size: 15px;
        margin-top: 8px;
    }

    /* 区块*/
    .itme-block {
        padding: 32px 0;
    }

    .item-block-title {
        font-size: 28px;
    }

    .item-block-content {
        font-size: 15px;
        padding: 0 4px;
        line-height: 1.7;
    }

    .item-title-line {
        width: 70px;
        height: 3px;
        margin: 14px auto;
    }

    .item-block-list {
        padding: 16px 0;
    }

    .item-list-title {
        font-size: 36px;
    }

    .item-list-content {
        font-size: 15px;
    }

    /* 产品展示改为单列 */
    .product-row {
        flex-direction: column !important;
        gap: 18px;
        margin-bottom: 18px;
    }

    .product-item {
        height: auto;
        flex-direction: row !important;
    }

    .product-image {
        flex: 0 0 40%;
        width: auto;
        height: auto;
        min-height: 140px;
        padding: 14px;
    }

    .product-content {
        padding: 16px 16px 16px 0;
    }

    .product-title {
        font-size: 16px;
    }

    .product-desc {
        font-size: 14px;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 应用领域横向卡片 */
    .item-case {
        flex: 0 0 240px;
    }

    .item-case img {
        height: 140px;
    }

    .item-case span {
        font-size: 14px;
        padding: 10px;
    }

    /* 新闻滚动改为普通列表 */
    /* 新闻区在移动端同样保持竖向滚动，必须裁剪 + 绝对定位 */
    .news-container {
        height: 420px;   /* 4 条卡片（86px）+ 间距，滚动 1 条后仍有 4 条可见 */
        max-height: none;
        border: none;
        border-radius: 0;
        overflow: hidden;
        position: relative;
    }

    .news-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: block;
        gap: 0;
    }

    .news-item {
        height: auto;
        min-height: 86px;
        flex-direction: row;
        padding: 14px;
        margin-bottom: 12px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(15, 40, 60, .05);
        border-bottom: none;
        box-sizing: border-box;
    }

    .news-info {
        overflow: hidden;
    }

    .news-thumb {
        flex: 0 0 120px;
        width: 120px;
        height: 82px;
        margin-right: 12px;
        border-radius: 6px;
    }

    .news-title {
        font-size: 15px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 6px;
    }

    .news-desc {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    /* 联系我们按钮 */
    .contact-btn {
        width: 140px;
        height: 42px;
        line-height: 42px;
        font-size: 16px;
        border-radius: 8px;
        margin: 0 6px 10px !important;
    }

    .contact-container {
        padding: 12px 0;
    }

    /* 页脚：见下方新版网格布局 */

    /* 内页：分类标题 */
    .cate-title {
        height: 42px;
        line-height: 42px;
        font-size: 17px;
        border-bottom-width: 1px;
    }

    /* 产品列表：单列 */
    .pro-item {
        width: 100%;
        height: auto;
        padding: 12px;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    }

    .pro-item-img {
        flex: 0 0 110px;
        width: 110px;
        height: 110px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pro-item-img img {
        max-width: 110px;
        max-height: 110px;
    }

    .pro-item-info {
        height: auto;
        flex: 1;
        padding-left: 14px;
        overflow: visible;
    }

    .pro-info-title {
        font-size: 16px;
        padding: 0 0 6px;
    }

    .pro-info-ext {
        font-size: 13px;
        padding: 2px 0;
        color: #888;
    }

    .pro-contact {
        margin-top: 8px;
    }

    /* 分类列表：三列 */
    .cate-item {
        width: 33.3333%;
        height: auto;
        padding: 6px;
        margin-bottom: 12px;
    }

    .cate-item-img {
        height: 120px;
    }

    .cate-item-title {
        padding: 10px 4px;
        font-size: 14px;
        height: auto;
    }

    /* 产品详情 */
    .pro-info-outer {
        flex-direction: column;
        padding: 16px 0;
    }

    .pro-info-pics {
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
    }

    .pro-pic-large {
        float: none;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: 380px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pro-pic-small {
        width: 100%;
        float: none;
        margin: 12px 0 0;
    }

    .pro-pic-small ul {
        display: flex;
        gap: 10px;
    }

    .pro-pic-small ul li {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }

    .pro-info-text {
        width: 100%;
        padding-top: 18px;
    }

    .pro-info-text h1 {
        font-size: 19px;
    }

    .pro-info-canshu {
        padding: 14px 0;
        font-size: 14px;
    }

    .contact-group {
        display: flex;
        gap: 12px;
        margin-top: 18px;
    }

    .text-btn,
    .form-btn {
        flex: 1;
        float: none;
        margin: 0;
    }

    .share {
        padding: 10px 0;
        font-size: 14px;
        line-height: 1.8;
    }

    /* 单页正文 */
    .about {
        font-size: 15px;
        line-height: 1.85;
        padding: 12px 0;
    }

    .about h3 {
        font-size: 19px;
    }

    .page-bg img {
        width: 100%;
        height: auto;
    }
}

/* ---------- ≤768px：手机 ---------- */
@media screen and (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* 移动端导航面板 */
    .mobile-nav {
        width: 82%;
    }

    /* 首页统计两列保持，但间距收紧 */
    .item-block-list ul li {
        padding: 6px;
    }

    .item-list-title {
        font-size: 30px;
    }

    /* 产品单列：图片在上，文字在下 */
    .product-item {
        flex-direction: column !important;
    }

    .product-image {
        flex: none;
        width: 100%;
        height: 190px;
        padding: 16px;
        box-sizing: border-box;
    }

    .product-content {
        padding: 0 16px 18px;
    }

    .product-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* 新闻卡片图片小一点 */
    .news-thumb {
        flex: 0 0 104px;
        width: 104px;
        height: 74px;
    }

    .news-title {
        font-size: 14px;
    }

    /* 联系我们按钮全宽堆叠不必要，保持居中 */
    .contact-btn {
        width: 130px;
        font-size: 15px;
    }

    /* 分类列表：两列 */
    .cate-item {
        width: 50%;
    }

    .cate-item-img {
        height: 130px;
    }

    /* 产品详情大图高度收敛 */
    .pro-pic-large {
        max-height: 300px;
    }

    /* 页脚二维码区 */
    .carousel-text {
        font-size: 21px;
        right: 16px;
        left: 16px;
    }

    .carousel-text h4 {
        font-size: 13px;
    }
}

/* ---------- ≤480px：小屏 ---------- */
@media screen and (max-width: 480px) {
    .header {
        height: 58px;
    }

    .header-item {
        height: 58px;
    }

    .header-item > .logo {
        height: 38px;
        max-width: calc(100% - 60px);
    }

    .header-item > .logo img {
        height: 38px;
    }

    .item-block-title {
        font-size: 22px;
    }

    .item-block-content {
        font-size: 14px;
    }

    .item-list-title {
        font-size: 26px;
    }

    .item-list-content {
        font-size: 13px;
    }

    /* 应用领域卡片更小 */
    .item-case {
        flex: 0 0 170px;
    }

    .item-case img {
        height: 110px;
    }

    .item-case span {
        font-size: 13px;
        padding: 8px;
    }

    /* 新闻缩略图取消，纯文字列表更清爽 */
    .news-item {
        padding: 12px;
    }

    .news-thumb {
        flex: 0 0 88px;
        width: 88px;
        height: 64px;
        margin-right: 10px;
    }

    .news-title {
        font-size: 14px;
    }

    .news-desc {
        -webkit-line-clamp: 1;
    }

    /* 产品 */
    .product-image {
        height: 160px;
    }

    /* 分类两列间距 */
    .cate-item {
        padding: 4px;
    }

    .cate-item-img {
        height: 110px;
    }

    .cate-item-title {
        font-size: 13px;
        padding: 8px 2px;
    }

    /* 产品列表 */
    .pro-item-img {
        flex: 0 0 88px;
        width: 88px;
        height: 88px;
    }

    .pro-item-img img {
        max-width: 88px;
        max-height: 88px;
    }

    .pro-info-title {
        font-size: 15px;
    }

    .pro-info-ext {
        font-size: 12px;
    }

    /* 联系按钮 */
    .contact-btn {
        width: 118px;
        height: 38px;
        line-height: 38px;
        font-size: 14px;
    }

    /* 页脚 */
    .footer {
        font-size: 13px;
    }

    .footer-wxcode img {
        width: 80px;
    }
}

/* ==========================================================================
   四、触摸设备优化
   ========================================================================== */
@media (hover: none) {
    /* 触屏取消悬停位移，避免误触跳动 */
    .news-list-item:hover,
    .case-grid-item:hover,
    .item-case:hover,
    .product-item:hover,
    .contact-btn:hover,
    .case-gallery-item:hover {
        transform: none;
    }

    .main-menu > a::after {
        display: none;
    }

    /* 卡片遮罩在触屏上常驻显示更清晰 */
    .case-grid-mask {
        opacity: 1;
        background: rgba(22, 124, 186, .28);
    }

    .case-grid-mask .layui-icon {
        display: none;
    }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   五、打印
   ========================================================================== */
@media print {
    .header,
    .footer,
    .mobile-nav,
    .mobile-mask,
    .mobile-toggle,
    .contact-container,
    .side-box {
        display: none !important;
    }

    body {
        color: #000;
    }
}
