/* ============================================================
   btzykj.com 老站现代化皮肤（纯覆盖层）
   通过每页 <head> 的一行 <link> 加载，不改动任何 HTML 正文、
   URL、文件名、图片路径。原站内联样式全部保留，本文件后加载，
   仅覆盖视觉与响应式相关规则。
   ============================================================ */

/* ---------- 1. 基础：字体、图片、可读性 ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0 !important;
  background: #fff !important;
  color: #243247;
  line-height: 1.65;
  overflow-x: hidden;
}
body, body *:not(script):not(style):not(noscript) {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               "Source Han Sans SC", "Segoe UI", Arial, sans-serif !important;
}
div, img, table, td, th, ul, li { box-sizing: border-box; }
img { max-width: 100%; border: 0; }
a { transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #12a4d9; outline-offset: 2px;
}
marquee, #colee_left, #colee_left1, #colee_left2 { max-width: 100%; overflow: hidden; }

/* ---------- 2. 顶部：保留蓝色识别，换成克制的渐变 ---------- */
#top-one {
  background: linear-gradient(90deg, #0b3a78, #1263b8) !important;
  height: auto !important;
  min-height: 30px;
  line-height: 30px !important;
  font-size: 13px !important;
  padding: 0 16px;
  letter-spacing: .2px;
}
#top-one > * { max-width: 1200px; margin: 0 auto; }
#top-two { height: auto !important; padding: 4px 12px; background: #fff !important; }
#top-two img { display: block; margin: 0 auto; width: auto; max-width: 100%; }

#top-three {
  background-image: none !important;
  background: linear-gradient(90deg, #0e4c9a, #1675c8) !important;
  height: auto !important;
  min-height: 56px;
  font-size: 15px !important;
  padding: 0 12px;
  box-shadow: 0 2px 12px rgba(9, 45, 92, .18);
}
#top-three table {
  width: 100% !important; max-width: 1200px;
  margin: 0 auto; border-collapse: collapse;
}
/* 老站导航单元格是 <th> 不是 <td>，两者都要覆盖 */
#top-three td, #top-three th {
  height: 56px !important; text-align: center !important;
  padding: 0 4px !important; font-weight: normal;
}
#top-three a, #top-three a:link, #top-three a:visited {
  display: block; color: #fff !important; font-size: 15px !important;
  font-weight: 500; text-decoration: none !important;
  border-radius: 6px; padding: 6px 2px;
}
/* 老站 hover 时把字号放大到 18px，会造成菜单跳动，这里覆盖掉 */
#top-three a:hover {
  color: #fff !important; font-size: 15px !important;
  background: rgba(255, 255, 255, .16) !important;
}

/* ---------- 3. 面包屑条：去掉旧底纹，改浅色 ---------- */
#middle-one {
  background-image: none !important;
  background: linear-gradient(90deg, #f2f7fc, #e8f2fb) !important;
  color: #24507c !important;
  height: auto !important; min-height: 52px;
  line-height: 1.5 !important;
  text-indent: 0 !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid #dce9f5;
  font-size: 13px !important;
}
#middle-one a, #middle-one a:link { color: #24507c !important; }
#middle-one a:hover { color: #0b76bd !important; }

/* ---------- 4. 主体：柔和底色、去掉写死的高度、卡片轻圆角 ---------- */
#middle { background: #eef3f8 !important; }
#middle-four { background: #f6f9fc !important; height: auto !important; }
#middle-two, #middle-three, #middle-three1, #middle-five {
  background: #fff !important;
  height: auto !important;
  padding: 14px 0;
}
#low, #low-one, #low-two { height: auto !important; }

.tupian, .tupian1, .img-box, .img-box1, .img1-box, .xinwen, .wenzi, .fd, .fd1, .fdb {
  border-radius: 10px;
}
.tupian, .img-box, .img1-box { transition: box-shadow .2s ease, transform .2s ease; }
.tupian:hover, .img-box:hover, .img1-box:hover { box-shadow: 0 8px 22px rgba(20, 60, 110, .12); }

/* 青色导航按钮：由纯 #0FF 改为淡青渐变，hover 变实色 */
.dh a, .dh2 a {
  background: linear-gradient(180deg, #e9f7fb, #d3eef7) !important;
  color: #0b4f80 !important;
  border: 1px solid #bfe3f0;
  border-radius: 8px;
  font-weight: 600;
}
.dh a:hover, .dh2 a:hover { background: #12a4d9 !important; color: #fff !important; }

/* ---------- 5. 中等屏：解除 1200px 固定宽度 ---------- */
@media (max-width: 1200px) {
  #middle-one, #middle-two, #middle-three, #middle-three1, #middle-four,
  #middle-five, #low, #low-one, #low-two, #left, #right, #form {
    width: 100% !important; max-width: 100% !important;
    height: auto !important;
  }
  table[width] { width: 100% !important; max-width: 100% !important; }
  td[width] { width: auto !important; max-width: 100% !important; }
  img { height: auto; }

  /* 首页轮播：JS 用 document.write 写死宽高，需强制自适应 */
  #middle { height: auto !important; }
  #middle > div[style], #middle > div[style] > div {
    width: 100% !important; height: auto !important;
  }
  #middle img { width: 100% !important; height: auto !important; }
}

/* ---------- 5.2 首页「经典案例」走马灯：桌面端恢复横向滚动 ----------
   老站用 #colee_left + 内联脚本做无缝滚动：里面两张并排的 table-cell，
   内容按 250px 自然宽度排开（7 张 = 约 1900px），超出 1180px 的裁剪框，
   靠 scrollLeft++ 移动。换肤后第 1 段的 `img{max-width:100%}` 与
   `#colee_left1/2{max-width:100%}` 会让这两格被压回容器宽度，图片被挤成
   80px 宽、scrollWidth 等于 clientWidth，滚动条件永不成立 —— 于是桌面端
   看上去"不动了"。这里把内层单元格与图片按原始尺寸还原，滚动脚本即可恢复。
   只在 >=769px 生效，移动端仍走第 6 段的两列卡片重排。 */
@media (min-width: 769px) {
  #colee_left {
    /* 5.4 段已把外层表格钉在 1200，这里让它随单元格取宽即可（1180 左右） */
    width: auto !important;
    max-width: 1180px !important;
  }
  /* 承载走马灯的那一格老站写死 width=1180，窄桌面窗口下会把页面撑出横向滚动，
     交还给表格自动分配后，内层 100% 自然跟随可见宽度 */
  #middle-five th[width="1180"] { width: auto !important; max-width: 100% !important; }
  /* 这三格默认各带 1px 内边距，塌陷边框后仍会把整行撑到 1206，清掉正好 1200 */
  #middle-five th[width="1180"], #middle-five th[width="10"] { padding: 0 !important; }
  #colee_left1, #colee_left2 {
    width: auto !important;
    max-width: none !important;
    vertical-align: top;
  }
  #colee_left1 > table, #colee_left2 > table {
    width: auto !important;
    max-width: none !important;
  }
  #colee_left1 td, #colee_left2 td {
    width: auto !important;
    max-width: none !important;
    vertical-align: top;
  }
  /* 还原老站 .tupian 的 content-box 尺寸（250×240 + 8px 内边距 + 1px 边框） */
  #colee_left1 .tupian, #colee_left2 .tupian {
    box-sizing: content-box !important;
    width: 250px !important;
    height: 240px !important;
    max-width: none !important;
    display: block;
    margin: 0 auto;
  }
  /* 名称行：统一两行高度，避免 18px 仿宋换行后卡片高低不齐 */
  #colee_left1 td > div:last-child,
  #colee_left2 td > div:last-child {
    min-height: 46px;
    padding: 10px 6px 0;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #243247;
    text-align: center;
  }
  #colee_left1 .wenzi, #colee_left2 .wenzi {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  #colee_left1 td > div:last-child a,
  #colee_left2 td > div:last-child a {
    color: #0b4f80 !important;
    text-decoration: none !important;
  }
  #colee_left1 td > div:last-child a:hover,
  #colee_left2 td > div:last-child a:hover { color: #1675c8 !important; }
  /* 走马灯左右各有一条 10px 的 #B0FFB0 老绿色装饰条，只作间距用，改成透明留白 */
  #middle-five table th[width="10"][bgcolor="#B0FFB0"] {
    background: transparent !important;
  }
}

/* ---------- 5.3 首页「产品导航」左侧栏目栏 ----------
   老站这一列是一个 rowspan=5 的 <td>，里面再套一张 13 行的表，每个链接
   靠 `.dh1 a{display:block;line-height:40px}` 撑开；但 #middle-two 上有
   align="center"，文字于是变成居中：短词左右各空一大块，长词「门禁、楼宇
   对讲系列」几乎顶到两边，整列看着窄、短、不齐。
   这里把它做成一张与右侧产品网格等高的导航卡片：统一左对齐 + 项目符号 +
   细分隔线，行高按剩余高度均分（表格 height:100%），底边正好压在右侧
   最后一排按钮的下沿，不再出现"上不去下不来"的短一截。
   只在 >=769px 生效，移动端仍走第 6 段的自适应层。 */
@media (min-width: 769px) {
  #middle-two td[rowspan="5"][bgcolor="#FFFFFF"] {
    padding: 0 10px 0 0 !important;
    vertical-align: top;
    background: transparent !important;
  }
  #middle-two td[rowspan="5"] > table {
    width: 100% !important;
    height: 100% !important;
    background: #fff;
    border: 1px solid #e2ebf4;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 16px rgba(18, 56, 102, .06);
    overflow: hidden;
  }
  #middle-two td[rowspan="5"] > table td {
    height: auto !important;
    padding: 0 !important;
    text-align: left !important;
    border-bottom: 1px solid #eef3f8;
  }
  #middle-two td[rowspan="5"] > table tr:last-child td { border-bottom: 0; }
  /* 文字左对齐、留出项目符号位与右侧安全边距，长条目也不再贴边 */
  #middle-two td[rowspan="5"] > table td a,
  #middle-two td[rowspan="5"] > table .dh1 a {
    display: block !important;
    position: relative;
    padding: 12px 12px 12px 24px !important;
    line-height: 1.45 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #243247 !important;
    text-decoration: none !important;
    background: transparent !important;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
  }
  #middle-two td[rowspan="5"] > table td a::before {
    content: '';
    position: absolute; left: 11px; top: 50%;
    width: 5px; height: 5px; margin-top: -2.5px;
    border-radius: 1.5px; background: #a8c8e6;
  }
  #middle-two td[rowspan="5"] > table td a:hover {
    background: #f2f8ff !important;
    color: #0b76bd !important;
    font-weight: 400 !important;
  }
  #middle-two td[rowspan="5"] > table td a:hover::before { background: #1675c8; }
}

/* ---------- 5.4 各栏目统一 1200px 内容栏 ----------
   老站首页的容器宽窄不一：精品橱窗 / 产品导航 / 关于我们 是 `width:1200px;
   margin:auto` 的方块，而「停车场解决方案」「经典案例」「服务流程」写的是
   `width:auto`，于是这三段的底色与内容直接拉满整个视口（1440 屏实测 1401px），
   比上面几段宽出近 200px —— 用户看到的就是"这个栏目特别宽"。
   这里把这两段（解决方案、案例）收回成与其余栏目一致的 1200px 居中方块，
   内层表格改为 100% 跟随，图片仍按 390px 原尺寸排列（3×390 + 30 间隔 = 1200）。
   页脚保持通栏（页脚本就如此，属正常版式）。
   只在 >=769px 生效，移动端仍走第 6 段的自适应层。 */
@media (min-width: 769px) {
  #middle-four > table, #middle-five > table {
    width: 100% !important;
    max-width: 100% !important;
    /* 老站表格用默认 cellspacing=2，5 列会多出 12px；塌陷后 3×390 正好 1200 */
    border-collapse: collapse !important;
  }
  /* 解决方案的 3 张图各 390，两侧留白由表格自动分配，正好落在 1200 内 */
  #middle-four > table td[width="390"] { width: 390px !important; }
  #low-one > table { width: 100% !important; max-width: 100% !important; }
  /* 精品橱窗 / 产品导航：外层容器本来就是 1200，但内层表格只有 1112 / 1120，
     居中后左右各缩进约 40px，与上下栏目错开。一并拉到 100%，图片按原尺寸居中。 */
  #middle-three1 > table, #middle-two > table {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* 1240px 以下整站仍是流式布局（老站 1200 固定宽 + 皮肤 1200 断点），
   所以只在足够宽的桌面把两段容器钉成 1200 方块，避免窄窗口被撑出横向滚动。 */
@media (min-width: 1240px) {
  #middle-four, #middle-five, #low-one {
    width: 1200px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---------- 5.5 产品中心首页：桌面端两栏（左栏目栏 + 右产品图） ----------
   该结构由 legacy-desktop.js 在 /cp/cpzx1.html 运行时生成，HTML 文件零改动。
   仅 min-width:769px 生效，移动端仍走第 6 段的自适应层。 */
@media (min-width: 769px) {
  body.pc-layout #middle-three {
    background: #f4f8fc !important;
    height: auto !important;
    padding: 22px 0 36px !important;
  }
  .pc-wrap {
    display: flex; gap: 24px; align-items: flex-start;
    width: 1200px; max-width: calc(100% - 28px); margin: 0 auto;
  }

  /* 栏目栏 */
  .pc-side { width: 208px; flex: none; position: sticky; top: 18px; }
  .pc-side-box {
    background: #fff; border: 1px solid #e2ebf4; border-radius: 12px;
    overflow: hidden; box-shadow: 0 4px 16px rgba(18, 56, 102, .07);
  }
  .pc-side-box + .pc-side-box { margin-top: 14px; }
  .pc-side-title {
    background: linear-gradient(90deg, #0e4c9a, #1675c8);
    color: #fff; font-size: 15px; font-weight: 600;
    padding: 12px 16px; letter-spacing: .5px;
  }
  .pc-side-list { list-style: none; margin: 0; padding: 6px 0; }
  .pc-side-list li { margin: 0; padding: 0; }
  .pc-side-list a {
    display: block; position: relative;
    padding: 11px 14px 11px 30px;
    color: #243247 !important; font-size: 14px; text-decoration: none !important;
    border-left: 3px solid transparent;
  }
  .pc-side-list a::before {
    content: ''; position: absolute; left: 16px; top: 50%;
    width: 6px; height: 6px; margin-top: -3px; border-radius: 2px; background: #a8c8e6;
  }
  .pc-side-list a:hover, .pc-side-list a.is-active {
    background: #f2f8ff !important; color: #0b76bd !important;
    border-left-color: #1675c8;
  }
  .pc-side-list a:hover::before, .pc-side-list a.is-active::before { background: #1675c8; }
  .pc-side-body { padding: 12px 16px 14px; }
  .pc-tel-label { display: block; font-size: 12px; color: #7b8fa6; margin-bottom: 2px; }
  .pc-tel {
    display: block; font-size: 16px; font-weight: 600;
    color: #0e4c9a !important; text-decoration: none !important; line-height: 1.7;
  }
  .pc-tel:hover { color: #1675c8 !important; }

  /* 右侧产品区：保留原有分类标题与「更多」链接，把 5 列图片排成规整网格 */
  .pc-main { flex: 1; min-width: 0; }
  .pc-main > table { width: 100% !important; }
  .pc-main th[width="900"] {
    font-size: 19px !important; font-weight: 600; color: #0e4c9a !important;
    padding: 10px 0 10px 4px !important;
  }
  .pc-main th[width="200"] { text-align: right !important; padding-right: 6px !important; }
  .pc-main tr[id^="pc-cat-"] { scroll-margin-top: 18px; }
  .pc-main td.img-box, .pc-main th.img-box {
    width: 20% !important; height: auto !important;
    padding: 8px 7px 4px !important;
    vertical-align: top; background: transparent !important;
  }
  .pc-main .img-box img {
    width: 100% !important; height: auto !important;
    border-radius: 10px; background: #fff;
    box-shadow: 0 3px 12px rgba(18, 56, 102, .07);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .pc-main .img-box:hover img {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(18, 56, 102, .15);
  }
  .pc-main td.dh {
    font-size: 14px !important; padding: 6px 6px 16px !important;
    text-align: center !important;
  }
  .pc-main td.dh a { color: #0b4f80 !important; }
  .pc-main td.dh a:hover { color: #1675c8 !important; }
}

/* ---------- 6. 手机屏：固定顶栏 + 抽屉导航 + 单列/卡片重排 ---------- */
/* 所有规则以 body.m-ready 为前提；该 class 由 legacy-mobile.js 仅在 <=768px 添加，
   桌面浏览器不加载任何移动端行为，DOM 与视觉完全保持原样。 */
@media (max-width: 768px) {
  /* 6.1 固定顶栏：沿用老站 #top-two 的 logo，只追加一个汉堡按钮 */
  body.m-ready { padding-top: 58px !important; }
  body.m-ready #top-one { display: none !important; }
  body.m-ready #top-two {
    position: fixed !important;
    top: 0; left: 0; right: 0; z-index: 9000;
    height: 58px !important; min-height: 58px !important;
    padding: 0 14px !important;
    background: #fff !important;
    box-shadow: 0 1px 10px rgba(15, 50, 95, .12);
    display: flex !important; align-items: center; justify-content: center;
  }
  body.m-ready #top-two img {
    max-height: 40px; width: auto !important; max-width: 72%;
  }
  body.m-ready img.m-hide { display: none !important; }
  .m-burger {
    position: absolute; right: 10px; top: 9px;
    width: 40px; height: 40px; padding: 0;
    border: 0; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .m-burger i {
    display: block; width: 22px; height: 2px; margin: 3px 0;
    background: #0e4c9a; border-radius: 2px;
    transition: transform .22s ease, opacity .22s ease;
  }
  body.m-nav-open .m-burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.m-nav-open .m-burger i:nth-child(2) { opacity: 0; }
  body.m-nav-open .m-burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* 6.2 抽屉：直接把原 #top-three 定位成右侧抽屉，不移动任何 DOM 节点，
         所有导航链接的 href 与目标窗口保持原样 */
  body.m-ready #top-three {
    position: fixed !important;
    top: 0; right: 0; bottom: 0;
    width: 78% !important; max-width: 320px;
    height: auto !important; min-height: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: -8px 0 28px rgba(10, 40, 80, .18);
    z-index: 9200;
    transform: translateX(102%);
    transition: transform .26s ease;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  body.m-ready.m-nav-open #top-three { transform: none; }
  body.m-ready #top-three::before {
    content: '导航菜单';
    display: block; padding: 18px 20px;
    font-size: 15px; font-weight: 600; color: #0e4c9a;
    border-bottom: 1px solid #eaf0f7; background: #f7fbff;
  }
  .m-mask {
    position: fixed; inset: 0; z-index: 9100;
    background: rgba(8, 26, 48, .45); display: none;
  }
  body.m-nav-open .m-mask { display: block; }
  body.m-nav-open { overflow: hidden; }
  body.m-ready #top-three table,
  body.m-ready #top-three tbody,
  body.m-ready #top-three tr { display: block !important; width: 100% !important; }
  body.m-ready #top-three th, body.m-ready #top-three td {
    display: block !important; width: 100% !important;
    height: auto !important; padding: 0 !important;
    text-align: left !important;
    border-bottom: 1px solid #eef3f8;
  }
  /* 竖线分隔符 th 不带 width 属性 */
  body.m-ready #top-three th:not([width]) { display: none !important; }
  body.m-ready #top-three a,
  body.m-ready #top-three a:link,
  body.m-ready #top-three a:visited {
    display: block !important;
    color: #243247 !important; font-size: 15px !important;
    font-weight: 500; padding: 14px 20px !important;
    border-radius: 0 !important; background: transparent !important;
  }
  body.m-ready #top-three a:hover {
    color: #0b76bd !important; font-size: 15px !important;
    background: #f2f8ff !important;
  }

  /* 6.3 布局表格全部纵向单列，解除老站写死的宽高 */
  body.m-ready table {
    display: block !important;
    width: 100% !important; max-width: 100% !important;
    height: auto !important;
  }
  body.m-ready tbody, body.m-ready thead, body.m-ready tfoot,
  body.m-ready tr {
    display: block !important; width: 100% !important; height: auto !important;
  }
  body.m-ready td, body.m-ready th {
    display: block !important;
    width: 100% !important; max-width: 100% !important;
    height: auto !important; min-height: 0 !important;
    padding: 8px 12px !important;
    border: 0 !important; box-sizing: border-box;
    word-break: break-word; text-align: left !important;
  }
  body.m-ready td.m-empty, body.m-ready th.m-empty,
  body.m-ready tr.m-paired { display: none !important; }

  /* 规格参数表保留行列对照，竖排会很难读 */
  body.m-ready table[border="1"] {
    display: table !important; width: 100% !important; border-collapse: collapse;
  }
  body.m-ready table[border="1"] tr { display: table-row !important; }
  body.m-ready table[border="1"] td, body.m-ready table[border="1"] th {
    display: table-cell !important; width: auto !important;
    border: 1px solid #d9e5f1 !important; padding: 8px 10px !important;
    font-size: 13px;
  }
  body.m-ready table[border="1"] td:first-child {
    background: #f4f8fc; font-weight: 600; white-space: nowrap;
  }

  /* 6.4 图片自适应；小图标（<=40px）保持原尺寸，避免被拉成巨型 */
  body.m-ready img { max-width: 100% !important; height: auto !important; }
  body.m-ready img.m-icon {
    width: auto !important; max-width: none !important; height: auto !important;
  }
  body.m-ready img.m-decor { display: none !important; }
  /* 覆盖 1200px 段里「#middle img { width:100% }」：它会把 240px 的装饰小图
     拉成整屏宽的模糊大图。改为不放大、只按容器宽度缩小。 */
  body.m-ready #middle img {
    display: block; border-radius: 10px;
    width: auto !important; max-width: 100% !important; height: auto !important;
  }

  /* 6.5 「图片行 + 名称行」重新配对生成的两列卡片 */
  .m-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; padding: 4px 12px 14px;
  }
  .m-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e8eef5; border-radius: 12px;
    overflow: hidden; text-decoration: none !important; color: #243247;
    box-shadow: 0 3px 12px rgba(18, 56, 102, .07);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .m-card:active { transform: translateY(2px); }
  .m-card img {
    width: 100% !important; height: auto !important;
    aspect-ratio: 1 / 1; object-fit: contain;
    background: #f6f9fc; padding: 10px; box-sizing: border-box;
  }
  .m-card-label {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px; line-height: 1.45; text-align: center;
    padding: 10px 8px 12px; min-height: 42px; color: #243247;
  }
  .m-card-wide { grid-column: 1 / -1; max-width: 56%; margin: 0 auto; width: 100%; }

  /* 同一格里已有「图 + 名称」：两列平铺，不再纵向拉长 */
  body.m-ready tr.m-tile-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; padding: 4px 12px 12px;
  }
  body.m-ready td.m-tile {
    display: flex !important; flex-direction: column;
    width: auto !important; min-width: 0;
    background: #fff; border: 1px solid #e8eef5 !important;
    border-radius: 12px; padding: 8px !important;
    box-shadow: 0 3px 12px rgba(18, 56, 102, .07);
    text-align: center !important;
  }
  body.m-ready td.m-tile img {
    width: 100% !important; height: auto !important;
    aspect-ratio: 1 / 1; object-fit: contain;
  }
  body.m-ready td.m-tile img.m-icon {
    width: auto !important; max-width: none !important; aspect-ratio: auto;
  }
  body.m-ready td.m-tile a {
    font-size: 13px !important; color: #0b4f80 !important; line-height: 1.45;
  }

  /* 6.6 内容区与侧栏 */
  body.m-ready #middle-one {
    padding: 12px 14px !important; font-size: 13px !important;
  }
  body.m-ready #middle-two, body.m-ready #middle-three,
  body.m-ready #middle-three1, body.m-ready #middle-four,
  body.m-ready #middle-five { padding: 10px 0 14px !important; }
  body.m-ready #middle-two h2, body.m-ready #middle-three h2,
  body.m-ready #middle-three1 h2, body.m-ready #middle-four h2 {
    font-size: 19px !important; margin: 10px 12px 8px !important; line-height: 1.4;
  }
  body.m-ready .m-has-aside { display: flex !important; flex-direction: column; }
  body.m-ready .m-has-aside > .m-main { order: 1; width: 100% !important; }
  body.m-ready .m-has-aside > .m-last { order: 2; }
  .m-aside {
    margin: 16px 12px; border: 1px solid #e3ebf5;
    border-radius: 12px; background: #fff;
  }
  .m-aside summary {
    padding: 14px 16px; font-size: 14px; font-weight: 600;
    color: #0e4c9a; cursor: pointer;
  }
  .m-aside[open] summary { border-bottom: 1px solid #eef3f8; }
  /* 双保险：折叠时强制收起内部侧栏，避免旧浏览器把它展开成大图 */
  .m-aside:not([open]) > *:not(summary) { display: none !important; }
  .m-aside img { max-width: 100% !important; height: auto !important; }

  /* 6.7 页脚 */
  body.m-ready #low, body.m-ready #low-one, body.m-ready #low-two {
    padding: 14px 12px !important; font-size: 12px !important; text-align: center;
  }
  body.m-ready #low a, body.m-ready #low-one a, body.m-ready #low-two a {
    color: #0b4f80 !important;
  }
  body.m-ready marquee { width: 100% !important; }

  /* 6.8 右下角电话直拨按钮
     由 legacy-mobile.js 仅在移动端动态创建，HTML 文件里不存在这个节点。
     给正文留出底部空间，避免按钮盖住页脚最后一行。 */
  body.m-ready { padding-bottom: 88px !important; }
  .m-call {
    position: fixed !important;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 9050;
    display: flex !important; align-items: center; gap: 9px;
    padding: 8px 15px 8px 11px;
    background: linear-gradient(135deg, #1675c8, #0b4f9e) !important;
    color: #fff !important; text-decoration: none !important;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(10, 60, 120, .32);
    -webkit-tap-highlight-color: transparent;
    transition: opacity .2s ease, transform .18s ease;
  }
  .m-call:active { transform: translateY(1px); }
  .m-call svg { width: 24px; height: 24px; flex: none; fill: #fff; }
  .m-call-txt { display: flex; flex-direction: column; line-height: 1.25; }
  .m-call-txt b { font-size: 13px; font-weight: 600; letter-spacing: .5px; }
  .m-call-txt small { font-size: 11px; opacity: .88; letter-spacing: .3px; }
  /* 抽屉展开时收起，避免叠在遮罩与菜单之上 */
  body.m-nav-open .m-call { opacity: 0; pointer-events: none; }

  /* 6.9「联系我们」页内嵌的位置地图（map2.html）
     老站正文 p.wenzi 带 margin:16px 20px 16px 40px，窄屏下左右白吃掉 60px，
     地图卡片被压到 290 宽。这里把左右外边距收掉，并给 iframe 一个合适高度。 */
  body.m-ready #right .wenzi { margin-left: 0 !important; margin-right: 0 !important; }
  body.m-ready iframe[src="map2.html"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 560px !important;
  }
}

/* ---------- 7. 打印 ---------- */
@media print {
  #top-three, #middle, marquee { display: none !important; }
  .m-call { display: none !important; }
  body.m-ready { padding-bottom: 0 !important; }
  body { background: #fff !important; }
}
