@charset "utf-8";
/* ==========================================================
   亮仓 LightWMS 官网样式
   配色：图标主色 —— 亮仓蓝 #0A4D8C + 信号红 #FF0000
   （取自官方图标 lightwms_ico_manus-Good 的原始配色）
   ========================================================== */

:root {
    /* 品牌主色 —— 来自图标的深蓝 */
    --brand: #0A4D8C;
    --brand-d: #063A66;
    --brand-l: #2C6CA6;

    /* 品牌辅色 —— 来自图标的纯红 */
    --red: #FF0000;
    --red-d: #CC0000;          /* 按钮底 / hover，配白字 5.89:1 ✓ */
    --red-ink: #C00000;        /* 红色文字专用，白底 6.48:1 ✓ */
    --red-on-dark: #FF8080;    /* 深蓝底上的红字，#063A66 底 4.79:1 ✓ */

    /* 蓝色阶 */
    --blue-50: #F1F6FA;
    --blue-100: #DCE8F1;
    --blue-200: #B6CFE0;
    --blue-300: #7FA8C8;
    /* 红色阶 */
    --red-50: #FFF0F0;
    --red-100: #FFE0E0;
    --red-200: #FFC9C9;
    --purple: #B49AD6;
    --purple-bg: #F3EEFA;
    --mint: #7FC7B8;
    --mint-bg: #EBF7F4;
    --cream: #EFC177;
    --pink: #EDA3AC;

    /* 中性色 */
    --ink: #2C3E50;
    --ink-2: #5A6B7F;
    --ink-3: #8A99AB;
    --line: #E4EBF2;
    --bg: #F7F9FC;
    --card: #FFFFFF;

    --radius: 8px;
    --shadow: 0 2px 12px rgba(10, 77, 140, .06);
    --shadow-lg: 0 6px 28px rgba(10, 77, 140, .12);
    --maxw: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
}

a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--red-ink); }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ==================== 顶部导航 ==================== */
.topbar {
    background: var(--brand-d);
    color: #B8D8EC;
    font-size: 13px;
}
.topbar .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 34px; flex-wrap: wrap; gap: 8px;
}
.topbar a { color: #B8D8EC; }
.topbar a:hover { color: #fff; }
.topbar .tb-left span { margin-right: 18px; white-space: nowrap; }
.topbar .tb-right span { margin-left: 18px; }

.site-head {
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
    position: relative;
    z-index: 100;
}
.site-head .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px; gap: 20px;
}
/* 头部 logo（2026-11-09 接入图形标识）
   ------------------------------------------------------------
   logo.png 是完整的一幅字标（货架 + 发光标签 + Light WMS），
   比例 1200:701 ≈ 1.71:1，**整幅显示，不裁切局部**。
   高度取 54px —— 与原文字 logo（20px 主标题 + 11px 副标题 ≈ 54px）
   视觉体量一致，无需改动 header 高度（76px）。
   ⚠️ 不要给 .logo img 加 object-fit: cover —— 那样会裁掉两侧。 */
.logo img { height: 54px; width: auto; display: block; }
.logo-text b { display: block; font-size: 20px; color: var(--brand-d); letter-spacing: .5px; }
.logo-text span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .8px; }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav > li { position: relative; }
.main-nav > li > a {
    display: block; padding: 0 16px; height: 76px; line-height: 76px;
    font-size: 15px; color: var(--ink); font-weight: 500;
    border-bottom: 3px solid transparent;
}
.main-nav > li > a:hover { color: var(--brand); background: var(--blue-50); }
.main-nav > li.active > a,
.main-nav > li.current > a {
    color: var(--brand); border-bottom-color: var(--red);
}
.main-nav .sub {
    position: absolute; top: 100%; left: 0; min-width: 168px;
    background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s; z-index: 50;
}
.main-nav > li:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub a {
    display: block; padding: 9px 16px; font-size: 14px; color: var(--ink-2);
    border-left: 3px solid transparent;
}
.main-nav .sub a:hover {
    color: var(--brand); background: var(--blue-50); border-left-color: var(--red);
}

.btn-search {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; cursor: pointer; color: var(--ink-2); font-size: 16px;
}
.btn-search:hover { border-color: var(--red); color: var(--red-ink); }

.cta-btn {
    display: inline-block; padding: 0 20px; height: 40px; line-height: 40px;
    background: var(--red-d); color: #fff; border-radius: 20px;
    font-size: 14.5px; font-weight: 600;
}
.cta-btn:hover { background: var(--red); color: #fff; }

/* 移动端菜单开关 */
.nav-toggle { display: none; }

/* ==================== 首页幻灯片 ==================== */
.slider {
    position: relative; background: var(--blue-50);
    height: 460px; overflow: hidden;
}
/* 四张幻灯片用 position:absolute 完全重叠在同一位置。
   非活动张仅设 opacity:0 是不够的 —— 它依然会响应鼠标事件，
   而 DOM 里靠后的兄弟节点位于顶层，于是「无论点哪张的位置，
   实际触发的都是最后一张的按钮」（曾导致四张幻灯片点进去是同一篇）。
   必须同时关闭 pointer-events 并抬升活动张的层级。 */
.slide {
    position: absolute; inset: 0;
    opacity: 0;
    pointer-events: none;      /* 非活动张不响应点击 */
    visibility: hidden;        /* 同时移出可交互树，兼顾读屏与 Tab 焦点 */
    z-index: 1;
    transition: opacity .6s, visibility 0s linear .6s;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 2;
    transition: opacity .6s, visibility 0s;
}
/**
 * 幻灯片背景用 <picture> 包 WebP。
 * picture 是 inline 元素会破坏绝对定位的铺满效果，
 * 这里让 picture 自己绝对定位铺满，img 再填满它。
 */
.slide picture { display: block; position: absolute; inset: 0; }
.slide picture img.bg { width: 100%; height: 100%; object-fit: cover; }
.slide img.bg { width: 100%; height: 100%; object-fit: cover; }
.slide .mask {
    position: absolute; inset: 0;
    /*
     * 全局遮罩用新品牌深蓝 #0A4D8C 派生（原值 rgba(0,40,70)/rgba(0,60,100) 是旧配色硬编码）。
     *
     * ⚠️ 末端 alpha 从 .15 提到 .45：
     *   文字区在渐变**右侧**，那里原来只有 .15 的遮罩，
     *   浅色图片上副标题只有 2.69:1 —— 完全不可读。
     *   提到 .45 后，浅色图片上也有 3.74:1。
     */
    background: linear-gradient(100deg, rgba(6, 34, 58, .82) 0%, rgba(10, 77, 140, .62) 45%, rgba(10, 77, 140, .45) 100%);
}
/*
 * 文字区局部遮罩
 * ------------------------------------------------------------
 * 全局遮罩是整体压暗，图片右侧要保持通透感；
 * 但文字必须始终可读。所以在文字所在的左侧 62% 再叠一层
 * 局部深色遮罩（往右淡出）。
 * 实测：三种图片明暗下，副标题均 ≥ 6.72:1 ✔
 */
.slide .txt::before {
    content: "";
    position: absolute; left: 0; top: -50%; bottom: -50%; width: 62%;
    background: linear-gradient(90deg, rgba(6, 34, 58, .58) 0%, rgba(6, 34, 58, .48) 55%, rgba(6, 34, 58, 0) 100%);
    pointer-events: none;
    z-index: -1;
}
.slide .txt {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    /* isolation:isolate 建立独立层叠上下文，
       否则 ::before 的 z-index:-1 会掉到 .mask 下面（等于没加） */
    isolation: isolate;
}
.slide .txt .wrap { max-width: var(--maxw); margin: 0 auto; }
.slide h2 {
    font-size: 38px; color: #fff; font-weight: 700; line-height: 1.3;
    margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.slide p {
    font-size: 17px; color: #CFE6F5; max-width: 620px; margin-bottom: 24px;
    line-height: 1.8;
}
.slide .btns a {
    display: inline-block; padding: 0 26px; height: 44px; line-height: 44px;
    border-radius: 22px; font-size: 15px; font-weight: 600; margin-right: 12px;
}
.slide .btns .b1 { background: var(--red-d); color: #fff; }
.slide .btns .b1:hover { background: #fff; color: var(--red-ink); }
.slide .btns .b2 { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.slide .btns .b2:hover { background: #fff; color: var(--brand-d); }

.slider-dots {
    position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 10;
}
.slider-dots i {
    display: inline-block; width: 30px; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,.4); margin: 0 4px; cursor: pointer;
    transition: background .2s;
}
.slider-dots i.on { background: var(--red); }

/* ==================== 数据条 ==================== */
.kpi-bar { background: var(--brand-d); color: #fff; padding: 30px 0; }
.kpi-bar .wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.kpi-bar .kpi { text-align: center; flex: 1; min-width: 130px; }
.kpi-bar .kpi b {
    display: block; font-size: 34px; font-weight: 700; line-height: 1.2;
    color: #fff; margin-bottom: 4px;
}
.kpi-bar .kpi b span { font-size: 18px; }
.kpi-bar .kpi span { font-size: 13.5px; color: #A8CCE6; }

/* ==================== 区块 ==================== */
.section { padding: 52px 0; }
.section.alt { background: #fff; }
.section-gray { background: var(--blue-50); }

.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 {
    font-size: 27px; color: var(--brand-d); font-weight: 700;
    position: relative; display: inline-block; padding-bottom: 12px;
}
.sec-head h2::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%); width: 46px; height: 3px;
    background: var(--red); border-radius: 2px;
}
.sec-head p { color: var(--ink-2); font-size: 15px; margin-top: 12px; }

/* ==================== 卡片网格 ==================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .thumb { height: 190px; overflow: hidden; background: var(--blue-50); }
/**
 * <picture> 是 inline 元素，会破坏 .thumb 的定高 + img height:100% 布局。
 * 响应式图片（imgTag）用 picture 包 webp 源，这里让它撑满并让 img 填满。
 */
.card .thumb picture,
.list-items .item .thumb picture,
.grid .thumb picture {
    display: block; width: 100%; height: 100%;
}
.card .thumb picture img,
.list-items .item .thumb picture img,
.grid .thumb picture img {
    width: 100%; height: 100%; object-fit: cover;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card .cat {
    font-size: 12px; color: var(--red-ink); background: var(--red-50);
    padding: 2px 9px; border-radius: 10px; display: inline-block; margin-bottom: 9px;
    align-self: flex-start;
}
.card h3 { font-size: 16.5px; color: var(--ink); line-height: 1.5; margin-bottom: 9px; font-weight: 600; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--brand); }
.card p {
    font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 12px;
}
.card .meta {
    margin-top: auto; font-size: 12px; color: var(--ink-3);
    display: flex; justify-content: space-between; align-items: center;
}

/* ==================== 列表页 ==================== */
.page-wrap { display: flex; gap: 26px; padding: 26px 0 50px; align-items: flex-start; }
.side { width: 232px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }

.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.side-box h2,
.side-box h3,
.side-h {
    background: var(--brand); color: #fff; font-size: 15px;
    padding: 12px 16px; font-weight: 600;
}
.side-box ul li a {
    display: block; padding: 9px 16px; font-size: 14px; color: var(--ink-2);
    border-bottom: 1px solid var(--line);
}
.side-box ul li:last-child a { border-bottom: 0; }
.side-box ul li a:hover,
.side-box ul li a.on { color: var(--brand); background: var(--blue-50); }

.crumb { font-size: 13.5px; color: var(--ink-3); padding: 16px 0 6px; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 7px; color: var(--line); }

.list-head { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.list-head h1 { font-size: 25px; color: var(--brand-d); font-weight: 700; }
.list-head p { color: var(--ink-2); font-size: 14px; margin-top: 8px; line-height: 1.8; }
.list-head .count { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

.list-items .item {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px 24px; margin-bottom: 16px; display: flex; gap: 22px;
    transition: box-shadow .2s;
}
.list-items .item:hover { box-shadow: var(--shadow-lg); }
.list-items .item .thumb {
    width: 208px; height: 138px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--blue-50);
}
.list-items .item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-items .item .info { flex: 1; min-width: 0; }
.list-items .item h2,
.list-items .item h3,
.list-items .item .item-title { font-size: 18px; margin-bottom: 9px; font-weight: 600; line-height: 1.5; }
.list-items .item h2 a,
.list-items .item h3 a { color: var(--ink); }
.list-items .item h2 a:hover,
.list-items .item h3 a:hover { color: var(--brand); }
.list-items .item .desc {
    font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-items .item .meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.list-items .item .meta .tag { color: var(--red-ink); background: var(--red-50); padding: 1px 8px; border-radius: 9px; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty .big { font-size: 46px; margin-bottom: 12px; opacity: .35; }

/* ==================== 文章详情 ==================== */
.article-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 40px 40px; }
.art-title { font-size: 27px; color: var(--brand-d); font-weight: 700; line-height: 1.45; margin-bottom: 14px; }
.art-meta {
    display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3);
    padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.art-meta a { color: var(--ink-3); }
.art-meta a:hover { color: var(--brand); }
.art-meta .cat { color: var(--red-ink); background: var(--red-50); padding: 1px 10px; border-radius: 10px; }

.art-content { font-size: 15px; line-height: 1.9; color: var(--ink); }
.art-content p { margin: 0 0 14px; }
.art-content img { margin: 8px auto; border-radius: 6px; }

/* 正文内的图片需要限制宽度，避免溢出 */
.art-content img { max-width: 100%; height: auto; }
.art-content > img { display: block; margin: 16px auto; }
.art-content a { color: var(--brand); text-decoration: underline; }

.art-nav { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.art-nav a {
    display: block; padding: 9px 0; font-size: 14px; color: var(--ink-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.art-nav a:hover { color: var(--brand); }
.art-nav .lbl { color: var(--ink-3); margin-right: 8px; }

.art-foot {
    margin-top: 26px; padding: 18px 20px; background: var(--blue-50);
    border-radius: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85;
}

/* 相关文章 */
.related { margin-top: 30px; }
.related h3 { font-size: 17px; color: var(--brand-d); margin-bottom: 14px; font-weight: 600; }
.related ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.related li { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related li::before { content: "›"; color: var(--red); margin-right: 7px; font-weight: 700; }

/* ==================== 分页 ==================== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination .pg {
    min-width: 36px; height: 36px; line-height: 34px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: 5px;
    color: var(--ink-2); font-size: 14px; padding: 0 11px;
}
.pagination .pg:hover { border-color: var(--brand); color: var(--brand); }
.pagination .pg.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .pg.disabled { color: var(--line); pointer-events: none; }
.pagination .pg-dots { line-height: 34px; color: var(--ink-3); padding: 0 3px; }

/* ==================== 联系我们 ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }

.info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.info-card .it { display: flex; gap: 14px; margin-bottom: 22px; }
.info-card .it:last-child { margin-bottom: 0; }
.info-card .ico {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
    background: var(--blue-50); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.info-card .it b { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 3px; font-weight: 500; }
.info-card .it p { font-size: 15.5px; color: var(--ink); line-height: 1.6; }
.info-card .it p.tel { font-size: 21px; color: var(--red-ink); font-weight: 700; }

.form-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.f-row { margin-bottom: 16px; }
.f-row label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.f-row label em { color: #E15B5B; font-style: normal; }
.f-row input, .f-row textarea, .f-row select {
    width: 100%; padding: 10px 13px; border: 1px solid var(--line);
    border-radius: 5px; font-size: 14.5px; color: var(--ink); background: #fff;
    outline: none; transition: border-color .18s;
}
.f-row input:focus, .f-row textarea:focus, .f-row select:focus { border-color: var(--brand); }
.f-row textarea { resize: vertical; min-height: 108px; }
.f-row.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.f-submit {
    width: 100%; height: 44px; border: 0; border-radius: 5px;
    background: var(--red-d); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.f-submit:hover { background: var(--red); }

.alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 18px; line-height: 1.7; }
.alert-ok { background: var(--mint-bg); color: #2F6E62; border: 1px solid #BFE3DA; }
.alert-err { background: #FDEEEF; color: #A63E46; border: 1px solid #F5C9CD; }

/* ==================== 搜索 ==================== */
.search-form { display: flex; gap: 10px; margin: 18px 0 26px; }
.search-form input {
    flex: 1; padding: 11px 16px; border: 1px solid var(--line);
    border-radius: 5px; font-size: 15px; outline: none;
}
.search-form input:focus { border-color: var(--brand); }
.search-form button {
    padding: 0 30px; border: 0; border-radius: 5px;
    background: var(--brand); color: #fff; font-size: 15px; cursor: pointer;
}
.search-form button:hover { background: var(--brand-d); }

/* ==================== 页脚 ==================== */
.site-foot { background: var(--brand-d); color: #A8CCE6; margin-top: 56px; font-size: 13.5px; }
.foot-main { padding: 42px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 34px; }
.foot-grid h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; font-weight: 600; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: #A8CCE6; }
.foot-grid a:hover { color: #fff; }
.foot-grid p { line-height: 1.9; }
.foot-contact b { display: block; color: var(--red-on-dark, #FF8080); font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.foot-contact .tel2 { color: #fff; font-size: 15px; }

.foot-logo {
    background: #fff; border-radius: 6px; padding: 10px 14px;
    display: inline-block; margin-bottom: 16px;
}
/* 页脚 logo：复用主版 logo.png（整幅字标）
   页脚背景是深蓝 var(--brand-d)，但 .foot-logo 自带白底衬垫（background:#fff），
   所以蓝色立柱在白底上清晰可见 —— 不需要另做反白版。
   高度 56px：页脚空间充裕，字标文字（96px 宽 / 701px 高 的原图里）
   在这个尺寸下清晰可读；比例 1.71:1 -> 宽约 96px。 */
.foot-logo img { height: 56px; width: auto; display: block; }

.foot-bottom {
    border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0;
    text-align: center; font-size: 12.5px; color: #7FAECD;
}
.foot-bottom a { color: #7FAECD; }
/* ICP 备案号：与版权同行，hover 时提亮一点（合规要求可点击跳转） */
.foot-bottom .icp a { color: #9FC4E0; }
.foot-bottom .icp a:hover { color: #fff; }
.foot-links { margin-top: 7px; }
.foot-links a { margin: 0 8px; }

/* 移动端返回顶部 */
.backtop {
    position: fixed; right: 22px; bottom: 26px; width: 42px; height: 42px;
    background: var(--brand); color: #fff; border-radius: 50%; border: 0;
    cursor: pointer; font-size: 17px; opacity: 0; visibility: hidden;
    transition: all .25s; box-shadow: var(--shadow-lg); z-index: 200;
}
.backtop.show { opacity: 1; visibility: visible; }
.backtop:hover { background: var(--red); }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   平板横向区间（861–1140px）：头部紧凑化
   ------------------------------------------------------------
   问题：.main-nav 是 flex-wrap:wrap，而头部右侧还有 logo +
   搜索按钮 + 「获取方案报价」按钮。实测导航单行需要 626px，
   但 861px 视口下只分到 476px（缺 150px）→ 菜单项**自己换行**，
   「联系我们」掉到第二行，头部高度从 76px 涨到 154px，
   视觉上像坏掉了。

   注意：移动端抽屉的断点是 860px，1024px 断点只管栅格列数，
   **861–1140px 这段「平板横向」此前完全没有适配**。

   修法（不改断点、不动结构）：
     · 压缩菜单项左右内边距 16px → 9px（7 项共省 98px）
     · logo 英文副标题隐藏（省 55px 宽）
     · 搜索按钮缩小、报价按钮缩小
   实测 861px 下新占用 ≈ 468px < 476px 可用 → 恢复单行。

   ⚠️ 为什么不用 flex-wrap:nowrap：菜单项之间若被压缩到
   文字都放不下会互相挤压变形；宁可让它在更小宽度走抽屉。
   ============================================================ */
@media (max-width: 1140px) and (min-width: 861px) {
    .site-head .wrap { gap: 12px; }
    .logo-text span { display: none; }          /* 隐藏英文副标题 */
    .logo img { height: 38px; }
    .logo-text b { font-size: 18px; }
    .main-nav > li > a { padding: 0 9px; font-size: 14px; }
    .btn-search { width: 34px; height: 34px; font-size: 15px; }
    .cta-btn { padding: 0 16px; font-size: 13px; }
    .nav-toggle { display: none; }
}

/* 861–920px 再压一档：
   实测 861px 时导航需要 502px、只分到 476px，差 26px 仍会换行。
   这一档把菜单内边距再收 3px、报价按钮改为纯文字样式（去掉圆角留白）。 */
@media (max-width: 920px) and (min-width: 861px) {
    .main-nav > li > a { padding: 0 6px; font-size: 13.5px; }
    .cta-btn { padding: 0 12px; font-size: 12.5px; }
    .btn-search { display: none; }   /* 搜索在顶部通栏已有入口，窄屏先让位 */
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed; inset: 0 0 0 auto; width: 260px; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 80px 0 30px; box-shadow: -4px 0 24px rgba(0,0,0,.12);
        transform: translateX(100%); transition: transform .28s; overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav > li > a { height: auto; line-height: 1.6; padding: 13px 22px; border-bottom: 1px solid var(--line); }
    .main-nav .sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border-radius: 0; background: var(--blue-50);
    }
    .nav-toggle {
        display: block; width: 40px; height: 40px; border: 1px solid var(--line);
        background: #fff; border-radius: 5px; font-size: 18px; cursor: pointer;
    }
    .site-head .wrap { height: 64px; }
    .logo img { height: 36px; }
    .logo-text b { font-size: 17px; }
    .cta-btn { display: none; }
}

@media (max-width: 768px) {
    .slider { height: 360px; }
    .slide h2 { font-size: 26px; }
    .slide p { font-size: 15px; max-width: 90%; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-wrap { flex-direction: column; }
    .side { width: 100%; }
    .list-items .item { flex-direction: column; }
    .list-items .item .thumb { width: 100%; height: 180px; }
    .article-box { padding: 24px 20px 28px; }
    .art-title { font-size: 21px; }
    .related ul { grid-template-columns: 1fr; }
    .f-row.cols { grid-template-columns: 1fr; }
    .kpi-bar .kpi { min-width: 45%; }
    .foot-grid { grid-template-columns: 1fr; gap: 24px; }
    .section { padding: 34px 0; }
    .topbar .tb-left { display: none; }
    .topbar .wrap { justify-content: center; }
}
