@charset "UTF-8";
/* ==========================================================================
   H5（手机端）专属样式 —— 由 layouts/mobile.php 加载
   ========================================================================== */

body.is-mobile { padding-bottom: 62px; }

/* 顶部 */
.m-header {
    position: sticky; top: 0; z-index: 50; background: #fff;
    border-bottom: 1px solid var(--line-2);
}
.m-header__bar {
    height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
.m-header__logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.m-header__logo img { height: 30px; width: auto; }
.m-header__logo strong { font-size: 15px; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-header__btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink-2); position: relative; flex: 0 0 auto;
}
.m-header__btn .cart-badge { top: -3px; right: -3px; }

/* 搜索 */
.m-search { padding: 0 14px 10px; }
.m-search input {
    width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--line);
    border-radius: 999px; background: var(--bg-soft); font-size: 14px;
}
.m-search { position: relative; }
.m-search::before {
    content: ""; position: absolute; left: 26px; top: 50%; margin-top: -7px; width: 14px; height: 14px; opacity: .45;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2f6b' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.m-search input:focus { outline: 0; border-color: var(--accent); background: #fff; }

/* 抽屉菜单 */
.m-drawer {
    position: fixed; inset: 0 22% 0 0; background: #fff; z-index: 90;
    transform: translateX(-100%); transition: transform .3s var(--ease);
    display: flex; flex-direction: column; overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.m-drawer.open { transform: none; }
.m-drawer__head {
    padding: 20px 20px 16px; background: var(--bg-deep); color: #fff;
    display: flex; align-items: center; justify-content: space-between;
}
.m-drawer__head strong { font-size: 16px; }
.m-drawer__close { background: transparent; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.m-drawer__nav { padding: 10px; }
.m-drawer__nav a {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 12px;
    font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line-2); color: var(--ink);
}
.m-drawer__nav a:last-child { border-bottom: 0; }
.m-drawer__nav a .arrow { color: var(--muted-2); }
.m-drawer__langs { padding: 14px 12px 30px; }
.m-drawer__langs h5 { font-size: 13px; color: var(--muted); margin-bottom: 10px; letter-spacing: .1em; }
.m-lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.m-lang-grid a {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.m-lang-grid a.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }

.m-mask {
    position: fixed; inset: 0; background: rgba(6,20,44,.45); z-index: 80; opacity: 0;
    visibility: hidden; transition: opacity .3s var(--ease);
}
.m-mask.show { opacity: 1; visibility: visible; }

/* 底部标签栏 */
.m-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff;
    border-top: 1px solid var(--line-2); display: flex; height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
}
.m-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 11px; color: var(--muted); position: relative;
}
.m-tabbar a.active { color: var(--brand); font-weight: 700; }
.m-tabbar a .ico { font-size: 20px; line-height: 1; }
.m-tabbar a .cart-badge { position: absolute; top: 6px; left: 56%; }

/* 轮播（H5） */
.m-hero { position: relative; background: var(--bg-deep); overflow: hidden; }
.m-hero__track { display: flex; transition: transform .45s var(--ease); }
.m-hero__slide { flex: 0 0 100%; position: relative; }
.m-hero__slide img { width: 100%; height: 210px; object-fit: cover; }
.m-hero__slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,20,44,.35), rgba(6,20,44,.72));
}
.m-hero__text {
    position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; color: #fff; padding: 0 18px;
}
.m-hero__text h2 { font-size: 22px; margin-bottom: 6px; }
.m-hero__text p { font-size: 13.5px; color: rgba(255,255,255,.8); margin: 0; }
.m-hero__dots { position: absolute; right: 16px; bottom: 12px; z-index: 3; display: flex; gap: 6px; }
.m-hero__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.m-hero__dots i.active { background: #fff; width: 16px; border-radius: 3px; }

/* 快捷入口 */
.m-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 14px; background: #fff; }
.m-quick a { text-align: center; font-size: 12px; color: var(--ink-2); }
.m-quick i {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    margin: 0 auto 6px; border-radius: 14px; background: var(--brand-soft); color: var(--brand);
    font-size: 21px; font-style: normal;
}

/* 区块 */
.m-section { padding: 26px 0 6px; }
.m-section--soft { background: var(--bg-soft); }
.m-section__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 14px 14px; }
.m-section__head h2 { font-size: 19px; margin: 0; }
.m-section__head a { font-size: 13px; color: var(--muted); }

.m-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 14px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.m-scroll::-webkit-scrollbar { display: none; }
.m-card {
    flex: 0 0 62%; scroll-snap-align: start; background: #fff; border-radius: 14px;
    overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2);
}
.m-card__media { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.m-card__media img { width: 100%; height: 100%; object-fit: cover; }
.m-card__body { padding: 12px; }
.m-card__body h3 { font-size: 15px; margin-bottom: 4px; }
.m-card__body p { font-size: 12.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px 14px; }
.m-grid2 .m-card { flex: none; }

/* 数字条 */
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--brand); color: #fff; padding: 18px 0; }
.m-stats div { text-align: center; }
.m-stats b { display: block; font-size: 22px; line-height: 1.2; }
.m-stats span { font-size: 11px; opacity: .8; }

/* 悬浮咨询条 */
.m-contact-bar {
    position: fixed; left: 0; right: 0; bottom: 62px; z-index: 65; display: flex;
    background: #fff; border-top: 1px solid var(--line-2); padding: 8px 12px; gap: 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.m-contact-bar a { flex: 1; }

/* 其它 H5 微调 */
.m-breadcrumb { padding: 12px 14px; font-size: 13px; color: var(--muted); background: var(--bg-soft); }
.m-page-title { padding: 22px 14px 8px; }
.m-page-title h1 { font-size: 24px; margin-bottom: 6px; }
.m-page-title p { color: var(--muted); font-size: 14px; margin: 0; }
.m-block { padding: 0 14px 18px; }
.m-block h2 { font-size: 19px; margin-bottom: 10px; }
.m-block p { font-size: 14.5px; color: var(--ink-2); }

.m-detail { padding-bottom: 20px; }
.m-detail img { width: 100%; }
.m-detail__info { padding: 16px 14px; }
.m-detail__info h1 { font-size: 21px; margin-bottom: 10px; }
.m-detail__price { color: var(--brand); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.m-detail__section { padding: 18px 14px; border-top: 8px solid var(--bg-soft); }
.m-detail__section h3 { font-size: 17px; margin-bottom: 12px; }
.m-detail .spec-table th { width: 130px; font-size: 14px; padding: 11px 12px; }
.m-detail .spec-table td { font-size: 14px; padding: 11px 12px; }
.m-buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 72; display: flex; gap: 10px;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.m-buy-bar .btn { flex: 1; }

.m-form { padding: 0 14px 24px; }
.m-form .field input, .m-form .field textarea, .m-form .field select { font-size: 16px; }

.m-list { padding: 0 14px; }
.m-list-item {
    display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: center;
}
.m-list-item img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.m-list-item h4 { font-size: 15px; margin-bottom: 4px; }
.m-list-item p { font-size: 12.5px; color: var(--muted); margin: 0; }

.m-contact-item { display: flex; gap: 12px; padding: 14px; background: #fff; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--line-2); }
.m-contact-item b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.m-contact-item p { font-size: 15px; margin: 0; }

.m-footer { background: var(--brand); color: rgba(255,255,255,.62); padding: 30px 14px 24px; font-size: 13px; }
.m-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.m-footer .m-footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.m-footer .m-footer-links a { color: rgba(255,255,255,.62); }
.m-footer__bottom { text-align: center; font-size: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }

.m-to-top {
    position: fixed; right: 14px; bottom: 130px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand); color: #fff; border: 0; z-index: 60; display: none;
    align-items: center; justify-content: center;
}
.m-to-top.show { display: flex; }

.m-back { position: fixed; left: 14px; bottom: 130px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.95); border: 1px solid var(--line); z-index: 60;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }

.m-lang-tip {
    position: fixed; left: 14px; right: 14px; bottom: 72px; z-index: 66; background: #fff;
    border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: none;
    align-items: center; gap: 12px; font-size: 13.5px;
}
.m-lang-tip.show { display: flex; }
.m-lang-tip span { color: var(--muted); }
.m-lang-tip .close { margin-left: auto; border: 0; background: transparent; color: var(--muted-2); font-size: 18px; }

/* ==================================================================
   第三轮新增板块（认证 / 行业 / 资源 / 留言 / 客服 / 报价）· H5 适配
   桌面模板在没有对应 mobile 版本时会直接复用，这里统一做单列降级
   ================================================================== */
.grid, .grid.g-2, .grid.g-3, .grid.g-4, .grid.g-5 { grid-template-columns: 1fr !important; }
.split, .detail, .msg-layout, .contact-grid, .account-layout, .auth-layout { grid-template-columns: 1fr !important; }
.cert-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 26px 14px !important; }
.honor-grid { grid-template-columns: repeat(2, 1fr) !important; }

.wrap { padding-left: 14px; padding-right: 14px; }
.section { padding: 34px 0; }
.section-head h2 { font-size: 22px; }
.page-hero { padding: 40px 0; }
.page-hero h1 { font-size: 27px; }
.page-hero p, .page-hero--light p { font-size: 15px; }
.page-hero--light h1 { font-size: 27px; }

/* 产品卡 / 行业卡 */
.pcard__body { padding: 16px 16px 18px; }
.pcard__title { font-size: 16px; }
.pcard__specs { font-size: 13px; }
.pcard__foot .link-more { width: 100%; text-align: center; }
.sector-card__body { padding: 16px 18px 20px; }
.sector-card h3 { font-size: 17px; }

/* 认证徽章墙 */
.cert-badge__ring { width: 74px; height: 74px; }
.cert-badge__ring svg { width: 34px; height: 34px; }
.cert-badge strong { font-size: 13.5px; }
.cert-badge span { font-size: 12px; }
.cert-badge__pending { top: -6px; right: -8px; padding: 2px 7px; font-size: 10px; }
.cert-pending { padding: 2px 7px; font-size: 10px; }
.cert-pending-note { padding: 12px 13px; font-size: 13px; }
.cert-strip { gap: 10px 16px; }
.cert-strip__item { font-size: 13px; }
.cert-region { padding: 18px 16px; }

/* 资源中心 / 下载 */
.download-item { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
.download-item__icon { width: 36px; height: 36px; font-size: 10px; }
.download-item__main { flex: 1 1 100%; order: 2; }
.download-item__main b { font-size: 14.5px; }
.download-item__main span { font-size: 12.5px; display: block; margin-top: 4px; }
.download-item__meta { order: 3; text-align: left; width: 100%; display: flex; align-items: center; gap: 12px; }
.download-item__meta .btn { margin-top: 0; }
.resource-card { padding: 16px 18px; }

/* 精选案例 / CTA 横幅 */
.case-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; }
.case-banner h3 { font-size: 21px; }
.case-banner p { font-size: 14px; }
.case-banner .btn { width: 100%; }
.cta-band { padding: 30px 20px; text-align: center; }
.cta-band h2 { font-size: 22px; }
.cta-band .btn { width: 100%; }

/* 留言板 */
.msg-layout { gap: 24px; }
.form-card { padding: 18px 16px; }
.form-grid { grid-template-columns: 1fr; }
.msg-wall { gap: 12px; }
.msg-card { padding: 14px 16px; }

/* 常见问题 */
.faq-group__title { font-size: 15.5px; }
.faq-item__q { padding: 14px 16px; font-size: 14.5px; }
.faq-item__a { padding: 0 16px 16px; font-size: 14px; }

/* 客服气泡 / 报价弹窗 */
/* 客服浮动窗口：避开底部标签栏 */
.cw { right: 12px; bottom: 76px; }
.modal__panel { width: calc(100% - 28px); max-height: 84vh; overflow-y: auto; padding: 22px 18px; }
.modal__panel .form-grid { grid-template-columns: 1fr; }

[hidden] { display: none !important; }
