/* ============================================================
   晶华玻璃 —— 前台样式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px; line-height: 1.8; color: #33404d; background: #f6f9fb;
  /* 防止 iOS 横屏时自动放大整页文字 */
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
a { color: #1f6f8b; text-decoration: none; }
a:hover { color: #0f9b8e; }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
.wrap { width: 1180px; max-width: 96%; margin: 0 auto; }

/* ---------- 顶部条 ---------- */
.topbar { background: #123a4d; color: #cfe4ec; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar .contact b { color: #7fd8d0; }

/* ---------- Logo + 导航 ---------- */
.header { background: #fff; box-shadow: 0 1px 6px rgba(20, 60, 80, .08); position: relative; z-index: 20; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; }
.logo-mark {
  width: 48px; height: 48px; border-radius: 8px; margin-right: 12px;
  background: linear-gradient(135deg, #0f9b8e, #1f6f8b);
  color: #fff; font-weight: 700; font-size: 20px; text-align: center; line-height: 48px; letter-spacing: 1px;
}
.logo-text b { display: block; font-size: 20px; color: #123a4d; letter-spacing: 2px; }
.logo-text em { display: block; font-style: normal; font-size: 11px; color: #8aa0ad; letter-spacing: 3px; }

.nav { display: flex; align-items: center; }
.nav-a { display: block; padding: 0 20px; line-height: 78px; font-size: 15px; color: #33404d; }
.nav-a:hover { color: #0f9b8e; }
.nav-a.cur { color: #0f9b8e; font-weight: 700; box-shadow: inset 0 -3px 0 #0f9b8e; }
.nav-drop { position: relative; }
.nav-drop .drop-box {
  display: none; position: absolute; left: 0; top: 78px; min-width: 170px;
  background: #fff; box-shadow: 0 6px 18px rgba(20, 60, 80, .16); border-radius: 0 0 6px 6px; overflow: hidden;
}
.nav-drop:hover .drop-box { display: block; }
.drop-box a { display: block; padding: 10px 18px; font-size: 14px; border-bottom: 1px solid #eef3f6; }
.drop-box a:hover { background: #f1f9fb; color: #0f9b8e; }
.nav-toggle { display: none; background: #123a4d; color: #fff; border: 0; padding: 8px 16px; border-radius: 4px; cursor: pointer; }

/* ---------- 内页 banner ---------- */
.subbanner {
  height: 210px; background-size: cover; background-position: center;
  background-color: #123a4d; display: flex; align-items: center;
}
.subbanner h1 { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.subbanner p { color: #bfe3ea; margin-top: 6px; letter-spacing: 4px; }

/* ---------- 首页轮播 ---------- */
.slider { position: relative; height: 420px; overflow: hidden; background: #0b2b3a; }
.slider .slide {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; opacity: 0; transition: opacity .8s;
}
.slider .slide.on { opacity: 1; }
.slider .slide .wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.slider h2 { color: #fff; font-size: 38px; text-shadow: 0 2px 10px rgba(0,0,0,.4); letter-spacing: 2px; }
.slider p { color: #d6f0f2; margin-top: 12px; font-size: 16px; letter-spacing: 1px; }
.slider-dot { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; }
.slider-dot span {
  display: inline-block; width: 12px; height: 12px; margin: 0 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
}
.slider-dot span.on { background: #7fd8d0; }

/* ---------- 区块 ---------- */
.main { padding-bottom: 40px; }
.sec { padding: 46px 0; }
.bg-soft { background: #eef5f8; }
.sec-head { display: flex; align-items: center; margin-bottom: 26px; }
.sec-head h3 { font-size: 22px; color: #123a4d; font-weight: 700; letter-spacing: 1px; }
.sec-head .line { flex: 1; height: 1px; background: #d9e4ea; margin: 0 20px; }
.sec-head .more { font-size: 13px; color: #7b8f9b; }
.block-title { font-size: 20px; color: #123a4d; padding-left: 12px; border-left: 4px solid #0f9b8e; margin: 30px 0 16px; }

/* ---------- 关于 ---------- */
.about-box { display: flex; gap: 34px; align-items: flex-start; }
.about-img { width: 420px; flex: none; }
.about-img img { border-radius: 8px; }
.about-txt p { margin-bottom: 12px; color: #4a5a67; }
.about-num { display: flex; gap: 30px; margin: 20px 0; }
.about-num li { text-align: center; }
.about-num b { display: block; font-size: 28px; color: #0f9b8e; line-height: 1.2; }
.about-num span { font-size: 12px; color: #7b8f9b; }
.tips, .tips2 { background: #fff8e6; border-left: 3px solid #e0a80d; padding: 10px 14px; font-size: 13px; color: #7a5c10; }

/* ---------- 时间轴 / 能力 ---------- */
.timeline { border-left: 2px solid #d9e4ea; padding-left: 24px; }
.timeline li { position: relative; margin-bottom: 14px; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: #0f9b8e; border: 2px solid #fff;
}
.timeline b { color: #0f9b8e; margin-right: 12px; font-size: 16px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap { background: #fff; padding: 22px; border-radius: 8px; box-shadow: 0 2px 10px rgba(20,60,80,.06); }
.cap h4 { color: #123a4d; margin-bottom: 8px; font-size: 16px; }
.cap p { color: #6a7a86; font-size: 13px; }

/* ---------- 分类条 ---------- */
.cate-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.cate-a {
  padding: 7px 18px; border-radius: 20px; background: #fff; border: 1px solid #dbe6ec;
  color: #4a5a67; font-size: 13px;
}
.cate-a:hover, .cate-a.on { background: #0f9b8e; border-color: #0f9b8e; color: #fff; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 20px 0 14px; flex-wrap: wrap; }
.search-box { display: flex; }
.search-box input { width: 220px; height: 34px; border: 1px solid #dbe6ec; border-radius: 4px 0 0 4px; padding: 0 12px; outline: none; }
.search-box button { height: 34px; padding: 0 18px; border: 0; background: #123a4d; color: #fff; border-radius: 0 4px 4px 0; cursor: pointer; }
.list-tip { color: #7b8f9b; font-size: 13px; margin-bottom: 12px; }
.list-tip b { color: #0f9b8e; }
.list-tip span { color: #a0aeb8; }

/* ---------- 产品卡片 ---------- */
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pro-card {
  background: #fff; border-radius: 8px; overflow: hidden; display: block;
  box-shadow: 0 2px 12px rgba(20,60,80,.07); transition: transform .2s, box-shadow .2s;
}
.pro-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20,60,80,.14); }
.pro-img { height: 210px; background: #eef5f8; overflow: hidden; }
.pro-img img { width: 100%; height: 210px; object-fit: cover; }
.pro-info { padding: 14px 16px 18px; }
.pro-info h4 { font-size: 15px; color: #123a4d; font-weight: 600; }
.pro-info .model { font-size: 12px; color: #8aa0ad; margin: 4px 0 8px; }
.pro-info .sum { font-size: 13px; color: #6a7a86; height: 44px; overflow: hidden; }
.btn-view {
  display: inline-block; margin-top: 10px; padding: 5px 16px; font-size: 12px;
  border: 1px solid #0f9b8e; color: #0f9b8e; border-radius: 3px;
}
.pro-card:hover .btn-view { background: #0f9b8e; color: #fff; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: #8aa0ad; }

/* ---------- 两栏 ---------- */
.two-col { display: flex; gap: 30px; }
.col-l { flex: 1; }
.col-r { width: 320px; flex: none; }
.news-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #e2ebf0; }
/* 首页新闻日期徽标：与 news.asp 的 .n-date 同款（大号「日」+ 小号「年-月」两行）。
   旧版把 "MM-DD" 塞进 54px 方框 + line-height:54px，连字符处被折断成两行，
   「日」跑到方框外，白字白底看不见 —— 所以这里必须 flex 竖排 + nowrap。 */
.news-list .date {
  width: 54px; height: 54px; flex: none; background: #123a4d; color: #fff;
  border-radius: 6px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; white-space: nowrap;
}
.news-list .date b { font-size: 19px; line-height: 1.1; font-weight: 700; }
.news-list .date span { font-size: 10px; line-height: 1.3; color: #bfe3ea; }
.news-list .nbody a { display: block; font-size: 15px; color: #33404d; }
.news-list .nbody a:hover { color: #0f9b8e; }
.news-list .nbody em { font-style: normal; font-size: 12px; color: #8aa0ad; }
.contact-card { background: #fff; padding: 22px; border-radius: 8px; box-shadow: 0 2px 12px rgba(20,60,80,.07); }
.contact-card p { margin-bottom: 6px; }
.contact-card b { color: #123a4d; }
.contact-card .tips2 { margin-top: 12px; }
.btn-primary {
  display: inline-block; margin-top: 12px; padding: 9px 26px; background: #0f9b8e;
  color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 14px;
}
.btn-primary:hover { background: #0c857a; color: #fff; }

/* ---------- 面包屑 / 文章 ---------- */
.crumb { padding: 16px 0; font-size: 13px; color: #8aa0ad; }
.crumb a { color: #8aa0ad; }
.article { color: #4a5a67; line-height: 2; }
.article p { margin-bottom: 12px; }
.article-page { background: #fff; padding: 34px 40px; border-radius: 8px; box-shadow: 0 2px 12px rgba(20,60,80,.07); }
.a-title { font-size: 24px; color: #123a4d; text-align: center; margin-bottom: 10px; }
.a-meta { text-align: center; font-size: 12px; color: #8aa0ad; border-bottom: 1px solid #eef3f6; padding-bottom: 14px; margin-bottom: 20px; }
.a-source { margin-top: 20px; font-size: 13px; color: #7b8f9b; word-break: break-all; }

/* ---------- 产品详情 ---------- */
.detail { display: flex; gap: 34px; background: #fff; padding: 26px; border-radius: 8px; box-shadow: 0 2px 12px rgba(20,60,80,.07); }
.d-img { width: 440px; flex: none; }
.d-img img { width: 100%; border-radius: 6px; background: #eef5f8; }
.d-img img.zoomable { cursor: zoom-in; }
.g-tip { font-size: 12px; color: #8aa0ad; text-align: center; margin: 8px 0 0; }
/* 主图区：悬停局部放大（放大镜 + 原图区域标记） */
.d-img .g-view { position: relative; line-height: 0; }
.g-zoom-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(8, 26, 34, .55); color: #eaf6f4; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 3px; pointer-events: none; }
/* 局部放大预览面板：只在鼠标悬停主图时出现，宽度撑满右栏，
   top / height 由脚本按主图实时写入（上沿、下沿都与产品图片齐平），
   这里的 top/height 只是脚本未执行时的兜底值。
   用 outline 而不是 border —— 全局 box-sizing:border-box 下 border 会占掉
   尺寸并推移背景定位原点，导致取景偏移（踩过）。 */
.g-zoom { position: absolute; left: 0; top: 0; right: 0; height: 340px; display: none; background-color: #fff; background-repeat: no-repeat; outline: 2px solid #0f9b8e; border-radius: 8px; box-shadow: 0 12px 34px rgba(10, 40, 55, .3); pointer-events: none; z-index: 8; }
.g-zoom.on { display: block; }
.g-mark { position: absolute; display: none; border: 2px solid #0f9b8e; background: rgba(15, 155, 142, .22); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset; pointer-events: none; z-index: 5; }
.g-mark.on { display: block; }
.g-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.g-thumb { display: block; width: 72px; height: 72px; border: 2px solid #e3eaee; border-radius: 5px; overflow: hidden; background: #eef5f8; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.g-thumb:hover { border-color: #9fd4cd; }
.g-thumb.cur { border-color: #0f9b8e; }
.g-lightbox { display: none; }
.g-lightbox.on { display: flex; align-items: center; justify-content: center; position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(8, 26, 34, .88); z-index: 999; }
.g-lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 4px; background: #0d2029; cursor: zoom-out; }
.g-lb-close { position: absolute; right: 22px; top: 14px; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: .8; }
.g-lb-close:hover { opacity: 1; }
.g-lb-nav { position: absolute; top: 50%; margin-top: -28px; color: #fff; font-size: 34px; cursor: pointer; padding: 8px 16px; opacity: .75; user-select: none; }
.g-lb-nav:hover { opacity: 1; }
.g-lb-prev { left: 12px; }
.g-lb-next { right: 12px; }
.g-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #dbeef3; font-size: 13px; }
.d-info { flex: 1; position: relative; }
.d-info h2 { font-size: 24px; color: #123a4d; margin-bottom: 14px; }
.d-table { width: 100%; border-collapse: collapse; }
.d-table th, .d-table td { border: 1px solid #e6eef2; padding: 9px 12px; font-size: 13px; text-align: left; }
.d-table th { width: 96px; background: #f4f9fb; color: #6a7a86; font-weight: normal; }
.d-sum { margin: 14px 0; color: #6a7a86; }
.d-notice { background: #f1f9fb; border: 1px dashed #9fd4cd; padding: 12px 14px; font-size: 13px; color: #2c6a63; }
.d-article { background: #fff; padding: 26px; border-radius: 8px; box-shadow: 0 2px 12px rgba(20,60,80,.07); margin-top: 22px; }
.d-article .block-title { margin-top: 0; }
.d-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 13px; color: #7b8f9b; }
.d-nav span { display: block; }
.btn-back { padding: 6px 18px; border: 1px solid #dbe6ec; border-radius: 4px; background: #fff; }

/* ---------- 新闻列表 ---------- */
.news-big li { display: flex; gap: 20px; padding: 20px; background: #fff; margin-bottom: 14px; border-radius: 8px; box-shadow: 0 2px 10px rgba(20,60,80,.06); }
.n-date { width: 74px; flex: none; text-align: center; background: #123a4d; color: #fff; border-radius: 6px; padding: 8px 0; height: 74px; }
.n-date b { display: block; font-size: 26px; line-height: 1.2; }
.n-date span { font-size: 11px; color: #bfe3ea; }
.n-main { flex: 1; }
.n-title { font-size: 17px; color: #123a4d; font-weight: 600; }
.n-title:hover { color: #0f9b8e; }
.n-sum { color: #6a7a86; font-size: 13px; margin: 6px 0; }
.n-meta { font-size: 12px; color: #8aa0ad; }
.n-pic { width: 150px; flex: none; }
.n-pic img { display: block; width: 150px; height: 100px; object-fit: cover; border-radius: 6px; background: #f1f3f5; }
.n-top { font-style: normal; font-size: 11px; color: #b23b3b; border: 1px solid #e0a3a3; background: #fdf3f3; border-radius: 3px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.a-cover { margin: 18px 0 6px; text-align: center; }
.a-cover img { max-width: 100%; max-height: 480px; border-radius: 6px; }

/* ---------- 留言表单 ---------- */
.contact-wrap { align-items: flex-start; }
.msg-form, .contact-card { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 12px rgba(20,60,80,.07); }
.msg-form p { margin-bottom: 12px; }
.msg-form label { display: block; font-size: 13px; color: #6a7a86; margin-bottom: 5px; }
.msg-form label i { color: #d64545; font-style: normal; }
.msg-form input[type=text], .msg-form textarea {
  width: 100%; border: 1px solid #dbe6ec; border-radius: 4px; padding: 8px 10px; font-size: 14px;
  font-family: inherit; outline: none; resize: vertical;
}
.msg-form input[type=text]:focus, .msg-form textarea:focus { border-color: #0f9b8e; }
.msg-form .vcode { width: 120px !important; display: inline-block; }
.vask { display: inline-block; padding: 6px 12px; background: #f1f9fb; border: 1px dashed #9fd4cd; color: #2c6a63; border-radius: 4px; font-size: 13px; }
.form-tip { font-size: 12px; color: #8aa0ad; }
.msg { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; font-size: 13px; }
.msg.ok { background: #eefaf3; border: 1px solid #a7e0c4; color: #1f7a4d; }
.msg.err { background: #fdeeee; border: 1px solid #f2b8b8; color: #a33b3b; }

/* ---------- 分页 ---------- */
.pager { text-align: center; padding: 24px 0; }
.pager .p-total { color: #8aa0ad; font-size: 13px; margin-right: 12px; }
.pager .pg { display: inline-block; padding: 6px 13px; margin: 0 3px; border: 1px solid #dbe6ec; background: #fff; border-radius: 4px; color: #56666f; font-size: 13px; }
.pager .pg:hover { border-color: #0f9b8e; color: #0f9b8e; }
.pager .cur { background: #0f9b8e; border-color: #0f9b8e; color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: #123a4d; color: #b9d2dc; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 26px; padding: 40px 0 28px; }
.f-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; letter-spacing: 1px; }
.f-col p, .f-col li { font-size: 13px; line-height: 1.9; }
.f-col a { color: #b9d2dc; }
.f-col a:hover { color: #7fd8d0; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; padding: 14px 0; }
.copyright .wrap { display: flex; justify-content: space-between; }
.copyright a { color: #7fd8d0; }

/* ---------- 右侧悬浮工具条 ---------- */
.side-float { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 80; width: 62px; }
.sf-item { position: relative; display: block; margin-bottom: 2px; padding: 10px 4px 9px; background: #0f9b8e; color: #fff; text-align: center; cursor: pointer; transition: background .2s; }
.sf-item:first-child { border-radius: 6px 0 0 0; }
.sf-item:last-child { margin-bottom: 0; border-radius: 0 0 0 6px; }
.sf-item:hover { background: #0b7d72; color: #fff; }
.sf-item svg { display: block; margin: 0 auto 4px; }
.sf-txt { display: block; font-size: 12px; line-height: 1.3; letter-spacing: 1px; }
/* 悬停弹出层（往左弹）。必须显式定宽：按钮只有 62px 宽，若靠 shrink-to-fit，
   可用宽度会算成 62-70 = 负值，弹层会被压成一条窄条 */
.sf-pop { position: absolute; right: 70px; top: 50%; width: 212px; transform: translateY(-50%) translateX(10px); background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(10, 40, 55, .24); padding: 12px 15px; text-align: left; color: #4a5a67; opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s, visibility .22s; pointer-events: none; }
.sf-pop::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.sf-item:hover .sf-pop, .sf-item:focus-within .sf-pop { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.sf-pop b { display: block; font-size: 14px; color: #123a4d; margin-bottom: 5px; }
.sf-pop i { display: block; font-style: normal; font-size: 14px; font-weight: 600; color: #0f9b8e; line-height: 1.75; }
.sf-pop em { display: block; font-style: normal; font-size: 12px; color: #8aa0ad; line-height: 1.7; margin-top: 4px; }
.sf-pop u { display: inline-block; text-decoration: none; margin-top: 9px; padding: 4px 13px; background: #0f9b8e; color: #fff; border-radius: 3px; font-size: 12px; }
.sf-item:hover .sf-pop u { background: #0b7d72; }
/* 微信二维码弹出层 */
.sf-pop-qr { text-align: center; padding: 10px 12px 12px; width: 178px; }
.sf-pop-qr img { display: block; width: 152px; height: 152px; margin: 0 auto; border-radius: 3px; }
.sf-pop-qr em { margin-top: 7px; }
.sf-pop-qr i { font-weight: normal; font-size: 12px; color: #6a7a86; margin-top: 2px; line-height: 1.5; }
/* 二维码提示语分两版：桌面「扫码」，手机「长按识别」（见 600px 断点切换）。
   选择器带 .sf-pop-qr 前缀 —— 必须压过上面的 .sf-pop em { display:block } (0,1,1) */
.sf-pop-qr .qr-tip-m { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .pro-grid, .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .about-box, .detail { flex-direction: column; }
  .about-img, .d-img { width: 100%; }
  .two-col { flex-direction: column; }
  .col-r { width: 100%; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  /* 窄屏下 .detail 变单列，右栏跑到图片下方；放大预览面板会盖住参数区且触屏无悬停，
     直接禁用（JS 量到尺寸为 0 会自动跳过，不会报错） */
  .g-zoom, .g-zoom-hint { display: none !important; }
  /* 鼠标悬停放大在触屏上不存在，提示语一并隐藏 */
  .g-tip { display: none; }
}
@media (max-width: 760px) {
  .header .wrap { height: 62px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; background: #fff; flex-direction: column; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
  .nav.show { display: flex; }
  .nav-a { line-height: 46px; }
  .nav-drop .drop-box { position: static; display: none; }
  .nav-toggle { display: block; }
  .pro-grid, .cap-grid { grid-template-columns: 1fr; }
  .slider { height: 260px; }
  .slider h2 { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  /* 悬浮工具条：窄屏收窄，弹出层不超出屏幕 */
  .side-float { width: 46px; }
  .sf-item { padding: 7px 2px 6px; }
  .sf-item svg { width: 18px; height: 18px; }
  .sf-txt { font-size: 10px; letter-spacing: 0; }
  .sf-pop { right: 52px; max-width: 74vw; }
  .sf-pop-qr img { width: 120px; height: 120px; }
  /* 触屏：去掉点按时的灰蓝色高亮块，改用品牌色淡高亮 */
  a, button, .cate-a { -webkit-tap-highlight-color: rgba(15, 155, 142, .14); }
  /* iOS：输入框字号 < 16px 时聚焦会强制放大整页，这里统一提到 16px */
  .search-box input, .msg-form input[type=text], .msg-form textarea { font-size: 16px; }
}

/* ---------- 手机端（≤600px）---------- */
@media (max-width: 600px) {

  /* 布局基底：左右留 14px 边距（原 96% 只剩约 7px，太贴边） */
  .wrap { max-width: 100%; padding: 0 14px; }

  /* 顶部条：欢迎语与营业时间让位，只留可一键拨打的热线 */
  .topbar .tip, .topbar .hours { display: none; }
  .topbar .wrap { height: 32px; justify-content: center; }
  .topbar .contact a { color: #7fd8d0; display: inline-block; line-height: 32px; padding: 0 8px; margin: 0 -8px 0 0; }

  /* 头部：Logo 收缩，给「菜单」按钮留位 */
  .header .wrap { height: 56px; }
  .logo-mark { width: 38px; height: 38px; line-height: 38px; font-size: 16px; margin-right: 9px; border-radius: 7px; }
  .logo-text b { font-size: 15px; letter-spacing: 1px; }
  .logo-text em { font-size: 9px; letter-spacing: 2px; }
  .nav { top: 56px; }
  .nav-a { line-height: 44px; font-size: 15px; }
  .nav-toggle { padding: 10px 16px; font-size: 13px; }

  /* 内页 banner：降高度、降字号，长标题不再撑满整个首屏 */
  .subbanner { height: 118px; }
  .subbanner h1 { font-size: 20px; letter-spacing: 1px; line-height: 1.45; }
  .subbanner p { font-size: 12px; margin-top: 4px; letter-spacing: 2px; }

  /* 首页轮播：文字收进边距内，圆点加大到可点的尺寸 */
  .slider { height: 216px; }
  .slider h2 { font-size: 19px; letter-spacing: 1px; padding: 0 2px; }
  .slider p { font-size: 13px; margin-top: 8px; padding: 0 2px; }
  .slider-dot { bottom: 12px; }
  .slider-dot span { width: 24px; height: 24px; margin: 0 2px; background: transparent; position: relative; }
  .slider-dot span::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
    margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: rgba(255,255,255,.5);
  }
  .slider-dot span.on { background: transparent; }
  .slider-dot span.on::after { background: #7fd8d0; }

  /* 区块节奏与标题 */
  .sec { padding: 30px 0; }
  .sec-head { margin-bottom: 18px; }
  .sec-head h3 { font-size: 18px; }
  .block-title { font-size: 17px; margin: 22px 0 12px; }

  /* 关于我们：数字四项一行排开（桌面是 flex，这里改 grid 保证等宽不挤） */
  .about-num { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
  .about-num b { font-size: 21px; }
  .about-num span { font-size: 11px; }

  /* 产品卡片 */
  .pro-grid { gap: 16px; }
  .pro-img, .pro-img img { height: 188px; }
  .pro-info h4 { font-size: 16px; }

  /* 面包屑：链接点按区由 pointer:coarse 块统一加高 */
  .crumb { padding: 11px 0; }

  /* 文章 / 详情容器：内边距收窄，正文占比更大 */
  .article-page { padding: 20px 15px 22px; }
  .a-title { font-size: 20px; line-height: 1.5; }
  .a-cover img { max-height: 320px; }
  .detail { padding: 15px; gap: 16px; }
  .d-info h2 { font-size: 20px; line-height: 1.45; }
  .d-article { padding: 16px 15px; }
  .d-table th, .d-table td { padding: 8px 9px; font-size: 13px; }
  .d-table th { width: 84px; }

  /* 详情页「上一篇/下一篇」：窄屏改纵向堆叠，不再互相挤压换行 */
  .d-nav { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 0 4px; }
  .d-nav span { line-height: 1.7; }
  .btn-back { display: block; text-align: center; padding: 10px 0; }

  /* 新闻列表卡片：日期徽标与缩略图同步缩小，摘要两行截断 */
  .news-big li { padding: 14px 12px; gap: 12px; }
  .n-date { width: 56px; height: 56px; padding: 6px 0; }
  .n-date b { font-size: 20px; }
  .n-pic { width: 96px; }
  .n-pic img { width: 96px; height: 72px; }
  .n-title { font-size: 15px; line-height: 1.6; }
  .n-sum {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 12px; line-height: 1.7;
  }
  .news-list .nbody a { font-size: 15px; }

  /* 搜索与筛选：搜索框占满一行 */
  .filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .search-box { width: 100%; }
  .search-box input { flex: 1; width: auto; height: 38px; }
  .search-box button { height: 38px; padding: 0 22px; }
  .cate-bar { gap: 8px; }
  .cate-a { padding: 7px 14px; }

  /* 留言表单：16px 防 iOS 聚焦缩放；提交按钮加大成整行 */
  .msg-form, .contact-card { padding: 18px 15px; }
  .msg-form .vcode { width: 104px !important; }
  .vask { padding: 9px 12px; }
  .btn-primary { width: 100%; padding: 12px 0; font-size: 16px; }

  /* 分页：页码点按区由 pointer:coarse 块统一加大 */
  .pager { padding: 20px 0; }
  .pager .p-total { display: block; margin: 0 0 8px; }

  /* 页脚：链接点按区由 pointer:coarse 块统一加大，版权居中 */
  .footer-inner { padding: 26px 0 16px; gap: 18px; }
  .copyright { text-align: center; padding: 10px 0; }
  .copyright .wrap { display: block; line-height: 1.9; }
  .copyright .adminlink { display: block; margin-top: 2px; }

  /* 右侧悬浮条 → 底部固定工具条（电话 / 在线咨询 / 微信 / 返回顶部） */
  body { padding-bottom: 54px; padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  .side-float {
    left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto;
    display: flex; background: #0f9b8e; box-shadow: 0 -3px 14px rgba(10,40,55,.2);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sf-item { flex: 1; margin: 0; padding: 8px 2px 9px; border-radius: 0; }
  .sf-item + .sf-item { border-left: 1px solid rgba(255,255,255,.18); }
  .sf-item svg { width: 20px; height: 20px; margin: 0 auto 3px; }
  .sf-txt { font-size: 11px; letter-spacing: 1px; }
  .sf-item:hover { background: #0b7d72; }
  /* 悬停弹层在触屏上无法唤起：电话直接拨打、咨询直接跳转留言页 */
  .sf-item:not(.sf-wechat) .sf-pop { display: none !important; }
  /* 微信：点击弹出居中二维码蒙层，长按识别。
     触屏 tap 会带来「粘性 :hover」，这里先关掉 hover/focus 两条路径，只用 .on 控制 */
  .sf-wechat { cursor: pointer; }
  .sf-wechat .sf-pop {
    display: block !important; position: fixed; left: 50%; top: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%) scale(.96); width: 236px; z-index: 99;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .sf-wechat:hover .sf-pop, .sf-wechat:focus-within .sf-pop {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translate(-50%, -50%) scale(.96);
  }
  .sf-wechat.on .sf-pop {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
  /* 蒙层底（z-index:-1 只在 .side-float 的 stacking context 内生效：
     页面内容被压暗，弹层与工具条文字在其上） */
  .sf-wechat.on::before {
    content: ""; position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(8, 26, 34, .62);
  }
  .sf-pop-qr { width: 236px; padding: 16px 14px 14px; }
  .sf-pop-qr img { width: 168px; height: 168px; }
  .sf-pop-qr .qr-tip-pc { display: none; }
  .sf-pop-qr .qr-tip-m { display: block; }
  /* 蒙层模式下不需要弹出层的小三角箭头 */
  .sf-wechat .sf-pop::after { display: none; }
}

/* ---------- 触屏点按区（pointer:coarse 或窄屏）----------
   独立成块：iPad 竖屏 768px 走不到 600px 断点，但同样是触屏，
   点按区与 iOS 输入字号优化按「主指针是否为手指」来判断；
   鼠标为主的桌面端完全不命中，外观零变化。 */
@media (pointer: coarse), (max-width: 600px) {
  a, button, .cate-a { -webkit-tap-highlight-color: rgba(15, 155, 142, .14); }
  /* iOS：输入框字号 < 16px 时聚焦会强制放大整页 */
  .search-box input, .msg-form input[type=text], .msg-form textarea { font-size: 16px; }
  /* 顶部条热线：扩大点按范围（负 margin 平衡，视觉不变） */
  .topbar .contact a { display: inline-block; padding: 8px 8px; margin: -8px 0; }

  .sec-head .more { padding: 8px 0 8px 10px; font-size: 13px; }         /* 「了解更多」 */
  .crumb a { display: inline-block; padding: 6px 0; }                   /* 面包屑 */
  .news-list .nbody a { padding: 5px 0; }                               /* 首页新闻标题 */
  .n-title { display: inline-block; padding: 4px 0; margin: -4px 0; }   /* 新闻列表标题 */
  .news-list .date span { font-size: 11px; }
  .d-nav span a, .d-notice a { display: inline-block; padding: 6px 0; margin: -6px 0; }
  .pager .pg { padding: 9px 15px; font-size: 14px; }
  .f-col a { display: inline-block; padding: 6px 0; }                   /* 页脚分类/友链 */
  .copyright .adminlink a { display: inline-block; padding: 7px 10px; }
}
