/* ============================================================
   手机版商城样式 m/m.css  (独立手机商城 /m/)  v = 20261115m6
   商业化重做: 统一 8px 间距网格 / 字阶 / 圆角 / 层次 / 安全区
   兼容 iOS Safari、鸿蒙浏览器、Android Chrome、微信内置浏览器与小程序 web-view
   仅作用于 /m/ 页面, 桌面版零影响。
   ============================================================ */
:root{
  --m-primary:#038DFE; --m-primary-d:#134ba8; --m-primary-l:#EAF1FD;
  --m-red:#E62E2E; --m-orange:#FF6A2C;
  --m-bg:#F4F6F9; --m-card:#FFFFFF; --m-line:#ECEFF4; --m-soft:#F7F9FC;
  --m-input:#F1F3F7; --m-danger-bg:#FEE2E2; --m-warn-bg:#FFF6E6; --m-warn-soft:#FFFBEB;
  --m-text:#1D2939; --m-sub:#667381; --m-muted:#8A94A3;
  --m-tab-h:56px; --m-top-h:52px; --m-safe:env(safe-area-inset-bottom, 0px);
  --m-radius:12px; --m-shadow:0 2px 10px rgba(24,48,90,.05);
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html,body{margin:0; padding:0; max-width:100%; overflow-x:hidden;}
body.m-app{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",sans-serif;
  background:var(--m-bg); color:var(--m-text); font-size:14px; line-height:1.5;
  padding-bottom:calc(var(--m-tab-h) + var(--m-safe) + 6px);
  -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:100%;
  min-height:100dvh;
}
a{color:inherit; text-decoration:none;}
img{display:block; max-width:100%;}
input,button{font-family:inherit;}
.m-wrap{max-width:750px; margin:0 auto; width:100%;}

/* ============ 顶部栏 ============ */
.m-top{position:sticky; top:0; z-index:50; background:var(--m-card); border-bottom:1px solid var(--m-line);}
.m-top-in{height:var(--m-top-h); display:flex; align-items:center; gap:10px; padding:0 12px; min-width:0;}
.m-top .m-logo{display:flex; align-items:center; gap:8px; min-width:0; flex:1; font-weight:800; font-size:16px; color:var(--m-primary);}
.m-top .m-logo .m-logo-img{height:32px; width:auto; max-width:170px; object-fit:contain;}
.m-top .m-logo .m-logo-tx{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-top .m-top-right{margin-left:auto; display:flex; align-items:center; gap:8px; flex:none; font-size:12px; color:var(--m-sub);}
.m-top .m-top-right--fixed{min-width:34px; justify-content:flex-end;}
.m-top .m-top-right a{color:var(--m-primary);}
.m-top .m-top-right .m-top-link{font-size:12px; white-space:nowrap;}
.m-top .m-top-svc{width:32px; height:32px; border-radius:50%; background:var(--m-primary-l); color:var(--m-primary); display:flex; align-items:center; justify-content:center;}
.m-top .m-top-ad img{height:30px; max-width:110px; object-fit:contain; border-radius:4px;}
.m-back{font-size:20px; color:var(--m-text); width:24px; flex:none; display:flex; align-items:center; justify-content:center;}
.m-title{flex:1; min-width:0; text-align:center; font-size:16px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
/* 搜索顶部 */
.m-searchbar{display:flex; align-items:center; gap:8px; width:100%; min-width:0;}
.m-search{flex:1; min-width:0; display:flex; align-items:center; gap:6px; background:var(--m-input); border-radius:18px; height:34px; padding:0 12px; color:var(--m-muted); font-size:13px;}
.m-search svg{width:16px; height:16px; flex:none;}
.m-search input{flex:1; min-width:0; width:100%; border:0; outline:none; background:transparent; color:var(--m-text); font-size:13px; height:32px; padding:0; -webkit-appearance:none; appearance:none;}
.m-search input::-webkit-search-cancel-button{-webkit-appearance:none;}
.m-search input::placeholder{color:var(--m-muted);}
.m-search-go{flex:none; border:0; background:transparent; color:var(--m-primary); font-size:13px; font-weight:700; padding:4px 2px;}

/* ============ 底部 5 Tab ============ */
.m-tabbar{position:fixed; left:0; right:0; bottom:0; z-index:100; width:100%;
  height:calc(var(--m-tab-h) + var(--m-safe)); padding-bottom:var(--m-safe);
  background:var(--m-card); border-top:1px solid var(--m-line);
  display:flex; box-shadow:0 -3px 12px rgba(20,40,80,.06);}
.m-tab{flex:1 1 20%; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:12px; color:var(--m-sub); white-space:nowrap;}
.m-tab svg{width:22px; height:22px; flex:none;}
.m-tab.on{color:var(--m-primary); font-weight:700;}

/* ============ 通用区块 / 按钮 ============ */
.m-sec{background:var(--m-card); margin:8px 0; padding:12px;}
.m-sec--plain{background:transparent; margin:0; padding:0;}
.m-hall-kwh{padding:0 2px 8px;}
.m-hall-kwh .t{font-size:14px;}
.m-hall-empty{padding:56px 12px;}
.m-sec-h{display:flex; align-items:center; gap:8px; margin-bottom:10px;}
.m-sec-h .t{font-size:16px; font-weight:800;}
.m-sec-h .more{margin-left:auto; font-size:12px; color:var(--m-muted);}
.m-sec-h .bar{width:4px; height:16px; border-radius:2px; background:var(--m-primary); flex:none;}
.m-btn-pri{display:flex; align-items:center; justify-content:center; width:100%; min-height:46px;
  border:0; border-radius:10px; background:linear-gradient(135deg,#038DFE,#3C7BE8); color:#fff;
  font-size:16px; font-weight:700; text-align:center; letter-spacing:.5px;}
.m-btn-pri:active{opacity:.9;}

/* ============ 首页: 广告条 ============ */
.m-ad{margin:8px; display:flex; gap:8px;}
.m-ad .m-ad-card{flex:1; min-width:0; border-radius:var(--m-radius); height:68px; padding:10px 12px; color:#fff; display:flex; flex-direction:column; justify-content:center; overflow:hidden; box-shadow:var(--m-shadow);}
.m-ad .m-ad-card .h{font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-ad .m-ad-card .s{font-size:12px; opacity:.92; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-ad .c1{background:linear-gradient(135deg,#038DFE,#3C7BE8);}
.m-ad .c2{background:linear-gradient(135deg,#FF7A2C,#FF5A2C);}

/* ============ 首页: 金刚区(栏目模块) ============ */
.m-kk{background:var(--m-card); margin:8px 0; padding:12px 6px 14px;}
.m-kk-h{display:flex; align-items:center; gap:8px; padding:0 8px 12px;}
.m-kk-h .t{font-size:15px; font-weight:800;}
.m-kk-h .bar{width:4px; height:15px; border-radius:2px; background:var(--m-primary);}
.m-kk-h .more{margin-left:auto; font-size:12px; color:var(--m-muted);}
.m-kk-grid{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px 0;}
.m-kk-i{display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0;}
.m-kk-ico{width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 3px 8px rgba(24,88,201,.12); flex:none;}
.m-kk-ico svg{width:26px; height:26px;}
.m-kk-ico img{width:28px; height:28px; object-fit:contain;}
.m-kk-tx{font-size:12px; color:var(--m-text); text-align:center; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

/* ============ 首页: 公告 / 资讯 ============ */
.m-notice{display:flex; align-items:center; gap:8px; background:var(--m-card); margin:8px 0 0; padding:11px 12px; border-radius:8px; min-width:0;}
.m-notice .lab{font-size:12px; color:#fff; background:var(--m-red); border-radius:4px; padding:2px 6px; flex:none;}
.m-notice .txt{flex:1; min-width:0; font-size:13px; color:var(--m-sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-notice .more{font-size:12px; color:var(--m-muted); flex:none;}
.m-news{background:var(--m-card); margin:0 0 8px;}
.m-news-i{display:flex; gap:10px; padding:12px; border-bottom:1px solid var(--m-line); min-width:0;}
.m-news-i:last-child{border-bottom:0;}
.m-news-th{width:60px; height:44px; border-radius:6px; background:var(--m-primary-l); flex:none; display:flex; align-items:center; justify-content:center; color:var(--m-primary); font-size:12px;}
.m-news-b{flex:1; min-width:0;}
.m-news-b .ti{display:block; font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-news-b .me{display:block; font-size:12px; color:var(--m-muted); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

/* ============ 首页: 优惠券(占位) ============ */
.m-coupon{background:var(--m-card); margin:8px 0; padding:12px;}
.m-coupon-head{display:flex; align-items:center; gap:6px; margin-bottom:10px;}
.m-coupon-head .t{font-size:16px; font-weight:800;}
.m-coupon-head .more{margin-left:auto; font-size:12px; color:var(--m-muted);}
.m-coupon-row{display:flex; gap:8px; overflow-x:auto; padding-bottom:4px;}
.m-coupon-row::-webkit-scrollbar{display:none;}
.m-cpn{flex:0 0 140px; border-radius:10px; overflow:hidden; display:flex; background:linear-gradient(135deg,#FF7A2C,#FF5A2C); color:#fff; position:relative;}
.m-cpn .l{padding:10px 12px; flex:1;}
.m-cpn .amt{font-size:20px; font-weight:800;}
.m-cpn .amt small{font-size:12px; font-weight:500;}
.m-cpn .cond{font-size:12px; opacity:.92; margin-top:2px;}
.m-cpn .btn{flex:0 0 40px; display:flex; align-items:center; justify-content:center; writing-mode:vertical-rl; font-size:12px; background:rgba(255,255,255,.18);}
.m-cpn.claimed{filter:grayscale(.4); opacity:.7;}
.m-coupon-fake{display:flex; align-items:center; gap:14px; min-width:0;
  background:linear-gradient(135deg,#FF7A2C,#FF5A2C); border-radius:var(--m-radius);
  padding:16px 14px; color:#fff; box-shadow:0 6px 16px rgba(255,106,44,.2);}
.m-coupon-fake .ci{flex:none; display:flex; opacity:.95;}
.m-coupon-fake .cb{flex:1; min-width:0;}
.m-coupon-fake .ct{display:block; font-size:16px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-coupon-fake .cs{display:block; font-size:12px; opacity:.92; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-coupon-fake .cbtn{flex:none; background:rgba(255,255,255,.22); border-radius:14px; padding:5px 13px; font-size:13px; font-weight:700;}

/* ============ 首页: 楼层(一级→二级卡片)  与电脑版 hm-bb-card 同构 ============ */
.m-floor{background:var(--m-card); margin:8px 0; padding:14px 12px 16px;}
.m-floor-h{display:flex; align-items:center; gap:8px; margin-bottom:4px;}
.m-floor-h .t{font-size:17px; font-weight:800;}
.m-floor-h .bar{width:4px; height:17px; border-radius:2px; background:var(--m-primary); flex:none;}
.m-floor-h .more{margin-left:auto; font-size:12px; color:var(--m-primary); white-space:nowrap;}
.m-floor-tip{font-size:12px; color:var(--m-muted); margin:0 0 12px 12px;}
.m-floor-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;}
.m-mod{border-radius:var(--m-radius); overflow:hidden; background:var(--m-card); border:1px solid var(--m-line); box-shadow:var(--m-shadow); min-width:0; display:block;}
/* 图区: 正方形, 顶部 4 字大标题 + 居中真实渲染图 (对齐电脑版 hm-bb-visual) */
.m-mod .vis{aspect-ratio:1/1; min-height:150px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding:12px 10px 8px; position:relative; min-width:0;}
.m-mod .vis .nm{display:block; width:100%; text-align:center; color:#fff; font-size:19px; line-height:1.2; font-weight:800; letter-spacing:.5px; text-shadow:0 1px 3px rgba(0,0,0,.18); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:none;}
.m-mod .vis .ic{flex:1 1 auto; min-height:0; width:100%; display:flex; align-items:center; justify-content:center; margin-top:4px;}
.m-mod .vis .ic img{width:82%; height:82%; max-height:104px; object-fit:contain; border-radius:8px; filter:drop-shadow(0 5px 9px rgba(0,0,0,.14));}
.m-mod .vis .ic svg{width:48px; height:48px; color:#fff; opacity:.95;}
.m-mod .vis .ic .m-ico-fallback{width:56px; height:56px; border-radius:16px; background:rgba(255,255,255,.22); display:flex; align-items:center; justify-content:center;}
.m-mod .meta{padding:9px 10px 11px; background:var(--m-card); min-width:0;}
.m-mod .sub{font-size:12px; color:var(--m-sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-mod .pr{font-size:15px; color:var(--m-red); font-weight:800; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-mod .pr small{font-size:12px; font-weight:500;}
.m-mod .pr.is-view{color:var(--m-muted); font-weight:600; font-size:13px;}

/* ============ 统一页脚 (友情链接 / 法定合规 / 版权 / 电脑版) ============ */
.m-foot{background:var(--m-card); margin-top:8px; padding:18px 14px calc(16px + var(--m-safe)); text-align:center; font-size:12px; color:var(--m-muted);}
.m-rec-h{display:flex; align-items:center; justify-content:center; gap:10px; font-size:12px; color:var(--m-sub); font-weight:600; margin-bottom:12px;}
.m-rec-h .ln{width:26px; height:1px; background:var(--m-line);}
.m-recs{display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:16px;}
.m-rec{display:inline-flex; align-items:center; justify-content:center; gap:7px; max-width:100%;
  background:var(--m-soft); border:1px solid var(--m-line); border-radius:8px; padding:8px 12px;
  font-size:12px; color:var(--m-sub); line-height:1.3;}
.m-rec img{width:18px; height:18px; object-fit:contain; flex:none;}
.m-rec-ico{display:flex; color:var(--m-primary); flex:none;}
.m-rec-tx{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-foot .links{display:flex; flex-wrap:wrap; justify-content:center; gap:6px 14px; margin-bottom:10px;}
.m-foot .links a{color:var(--m-sub);}
.m-foot .fl-h{font-size:13px; color:var(--m-sub); font-weight:600; margin-bottom:8px;}
.m-foot .lk-text{color:var(--m-muted);}
.m-foot .fl-tip{font-size:12px; color:var(--m-muted); margin-top:6px;}
.m-foot .cp{line-height:1.9; font-size:12px;}
.m-foot-pc{display:inline-block; margin-top:10px; padding:5px 18px; border:1px solid var(--m-line); border-radius:16px; color:var(--m-sub); font-size:12px;}

/* ============ 服务大厅 ============ */
.m-hall{display:flex; align-items:stretch; min-height:calc(100dvh - var(--m-top-h) - var(--m-tab-h) - var(--m-safe));}
.m-hall-nav{width:92px; flex:0 0 92px; background:var(--m-soft); border-right:1px solid var(--m-line);
  position:sticky; top:var(--m-top-h); height:calc(100dvh - var(--m-top-h) - var(--m-tab-h) - var(--m-safe));
  overflow-y:auto; overscroll-behavior:contain;}
.m-hall-nav::-webkit-scrollbar{display:none;}
.m-hn-i{display:block; width:100%; height:46px; line-height:46px; padding:0 6px; text-align:center;
  font-size:12px; color:var(--m-sub); position:relative; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-hn-i.on{background:var(--m-card); color:var(--m-primary); font-weight:700;}
.m-hn-i.on::before{content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:3px; height:20px; border-radius:2px; background:var(--m-primary);}
.m-hall-main{flex:1 1 auto; min-width:0; padding:10px 10px 18px; background:var(--m-bg);}
.m-prod{display:flex; gap:9px; background:var(--m-card); border-radius:var(--m-radius); padding:9px; margin-bottom:10px; box-shadow:var(--m-shadow); min-width:0;}
.m-prod .pic{width:84px; height:84px; flex:0 0 84px; border-radius:8px; background:var(--m-primary-l); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.m-prod .pic img{width:100%; height:100%; object-fit:contain;}
.m-prod .pic .ph{color:#fff; font-size:12px; text-align:center; padding:6px; line-height:1.3; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;}
.m-prod .info{flex:1 1 auto; min-width:0; display:flex; flex-direction:column;}
.m-prod .pt{font-size:14px; font-weight:600; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.m-prod .pd{font-size:12px; color:var(--m-muted); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-prod .pf{margin-top:auto; padding-top:6px; display:flex; align-items:center; gap:6px; min-width:0;}
.m-prod .price{flex:1 1 auto; min-width:0; color:var(--m-red); font-weight:800; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-prod .price small{font-size:12px; font-weight:500;}
.m-prod .buy{flex:none; background:linear-gradient(135deg,#FF7A2C,#FF5A2C); color:#fff; border-radius:14px; padding:5px 11px; font-size:12px; font-weight:700; white-space:nowrap;}

/* ============ 商品详情 ============ */
.m-pd-img{width:100%; height:240px; background:var(--m-card); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.m-pd-img img{width:100%; height:100%; object-fit:contain;}
.m-pd-img .ph{color:#fff; font-size:16px; text-align:center; padding:16px; width:100%; height:100%; display:flex; align-items:center; justify-content:center;}
.m-pd-bd{background:var(--m-card); padding:14px;}
.m-pd-t{font-size:18px; font-weight:800; line-height:1.4;}
.m-pd-price{display:flex; align-items:baseline; gap:10px; margin:10px 0;}
.m-pd-price .now{color:var(--m-red); font-weight:800; font-size:23px;}
.m-pd-price .old{color:var(--m-muted); text-decoration:line-through; font-size:13px;}
.m-pd-tags{display:flex; flex-wrap:wrap; gap:6px; margin:8px 0;}
.m-pd-tags span{font-size:12px; color:var(--m-primary); background:var(--m-primary-l); border-radius:4px; padding:2px 8px;}
.m-pd-sec{background:var(--m-card); margin-top:8px; padding:14px;}
.m-pd-sec h3{margin:0 0 8px; font-size:15px;}
.m-pd-sec p{margin:0; color:var(--m-sub); font-size:14px; line-height:1.8;}
.m-pd-bar{position:fixed; left:0; right:0; bottom:0; z-index:90; width:100%;
  min-height:54px; background:var(--m-card); border-top:1px solid var(--m-line); display:flex; align-items:center; padding:8px 12px calc(8px + var(--m-safe)); gap:10px;}
.m-pd-bar .kefu{font-size:12px; color:var(--m-sub); text-align:center; line-height:1.2; flex:none;}
.m-pd-bar .kefu svg{width:22px; height:22px; display:block; margin:0 auto 2px;}
.m-pd-bar .cta{flex:1; min-width:0; background:linear-gradient(135deg,#038DFE,#3C7BE8); color:#fff; text-align:center; border-radius:24px; padding:11px; font-size:15px; font-weight:700;}

/* ============ 联系方式(文章式) ============ */
.m-art{padding:0 0 4px;}
.m-art-hero{background:linear-gradient(135deg,#038DFE,#3C7BE8); color:#fff; padding:22px 16px; text-align:center;}
.m-art-hero h1{margin:0 0 6px; font-size:20px;}
.m-art-hero p{margin:0; font-size:13px; opacity:.94; line-height:1.7;}
.m-block{background:var(--m-card); margin:8px; padding:16px; border-radius:var(--m-radius); box-shadow:var(--m-shadow);}
.m-block h2{margin:0 0 10px; font-size:16px; display:flex; align-items:center; gap:8px;}
.m-block h2 svg{width:17px; height:17px; color:var(--m-primary); flex:none;}
.m-wechat-btn{display:flex; align-items:center; justify-content:center; gap:8px; background:linear-gradient(135deg,#07C160,#09A84A); color:#fff; border-radius:24px; padding:12px; font-size:15px; font-weight:700; margin:2px 0;}
.m-wechat-btn svg{width:22px; height:22px;}
.m-qr{text-align:center; padding:8px 0;}
.m-qr img{width:172px; height:172px; margin:0 auto; border:1px solid var(--m-line); border-radius:8px; object-fit:contain;}
.m-qr .cap{font-size:13px; color:var(--m-sub); margin-top:10px; line-height:1.6;}
.m-art-p{color:var(--m-sub); font-size:14px; line-height:1.9; margin:6px 0; word-break:break-all;}
.m-art-p svg{display:inline-block; vertical-align:-2px; width:15px; height:15px; color:var(--m-primary);}
.m-art-p a{color:var(--m-primary);}

/* ============ 个人中心 ============ */
.m-uc-head{background:linear-gradient(135deg,#038DFE,#3C7BE8); color:#fff; padding:24px 16px 26px;}
.m-uc-head .u{display:flex; align-items:center; gap:12px; min-width:0;}
.m-uc-head .av{width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; font-size:24px; overflow:hidden; flex:none;}
.m-uc-head .av img{width:100%; height:100%; object-fit:cover;}
.m-uc-head .ui{flex:1; min-width:0;}
.m-uc-head .nm{font-size:18px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-uc-head .tag{display:inline-block; margin-top:5px; font-size:12px; background:rgba(255,255,255,.2); border-radius:10px; padding:2px 10px;}
.m-uc-guest-btn{display:flex; align-items:center; justify-content:center; margin:16px 0 0; min-height:42px; background:var(--m-card); color:var(--m-primary); border-radius:22px; font-size:15px; font-weight:800;}
.m-uc-assets{display:flex; background:var(--m-card); margin:8px; border-radius:var(--m-radius); padding:16px 0; text-align:center; box-shadow:var(--m-shadow);}
.m-uc-a{flex:1; min-width:0; position:relative;}
.m-uc-a + .m-uc-a::before{content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:1px; height:24px; background:var(--m-line);}
.m-uc-a .n{display:block; font-size:16px; font-weight:800; color:var(--m-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-uc-a .l{display:block; font-size:12px; color:var(--m-sub); margin-top:3px;}
.m-uc-card{margin:0 8px 8px; border-radius:var(--m-radius); padding:16px 18px; color:#fff; display:flex; align-items:center; justify-content:space-between; background:linear-gradient(135deg,#2A3B66,#4A5FB0); box-shadow:0 6px 16px rgba(40,60,120,.2);}
.m-uc-card .ct{font-size:12px; opacity:.85;}
.m-uc-card .cn{font-size:17px; font-weight:800; letter-spacing:1px; margin-top:4px;}
.m-uc-card .cr{font-size:13px; font-weight:700; background:rgba(255,255,255,.18); border-radius:10px; padding:4px 12px;}
.m-uc-orders{background:var(--m-card); margin:8px; border-radius:var(--m-radius); padding:14px 12px; box-shadow:var(--m-shadow);}
.m-uc-orders .oh{display:flex; align-items:center; margin-bottom:14px;}
.m-uc-orders .oh .t{font-size:15px; font-weight:700;}
.m-uc-orders .oh .more{margin-left:auto; font-size:12px; color:var(--m-muted);}
.m-uc-ord-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; text-align:center;}
.m-uc-ord-grid .o{font-size:12px; color:var(--m-sub); min-width:0;}
.m-uc-ord-grid .o .n{font-size:17px; font-weight:800; color:var(--m-text); display:block; margin-bottom:2px;}
.m-uc-grid{background:var(--m-card); margin:8px; border-radius:var(--m-radius); padding:4px 0; box-shadow:var(--m-shadow);}
.m-uc-g-i{display:flex; align-items:center; gap:10px; padding:13px 14px; border-bottom:1px solid var(--m-line); min-width:0;}
.m-uc-g-i:last-child{border-bottom:0;}
.m-uc-g-i .gi{width:26px; text-align:center; color:var(--m-primary); flex:none;}
.m-uc-g-i .gt{flex:1; min-width:0; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.m-uc-g-i .ar{color:var(--m-muted); font-size:18px; flex:none;}

/* ============ 登录/注册 ============ */
.m-auth{max-width:420px; margin:0 auto; padding:26px 20px 18px;}
.m-auth .m-auth-logo{display:flex; align-items:center; justify-content:center; margin-bottom:10px; min-height:44px;}
.m-auth .m-auth-logo img{height:42px; width:auto; max-width:200px; object-fit:contain;}
.m-auth .logo{text-align:center; font-size:20px; font-weight:800; color:var(--m-primary); margin-bottom:6px;}
.m-auth .sub{text-align:center; color:var(--m-sub); font-size:12px; margin-bottom:22px;}
.m-msg{background:var(--m-danger-bg); color:#B91C1C; padding:10px 12px; border-radius:8px; font-size:13px; margin-bottom:14px;}
.m-field{margin-bottom:12px;}
.m-field input{width:100%; height:46px; border:1px solid var(--m-line); border-radius:10px; padding:0 14px; font-size:15px; background:var(--m-card); -webkit-appearance:none; appearance:none;}
.m-field input:focus{outline:none; border-color:var(--m-primary); box-shadow:0 0 0 3px var(--m-primary-l);}
.m-auth .alt{text-align:center; margin-top:14px; font-size:13px; color:var(--m-primary);}
.m-auth .agree{text-align:center; margin-top:18px; font-size:12px; color:var(--m-sub); line-height:1.7;}
.m-auth .backhome{display:block; text-align:center; margin-top:14px; font-size:13px; color:var(--m-sub);}
.m-type{display:flex; gap:10px; margin-bottom:16px;}
.m-type label{flex:1; min-width:0; border:1px solid var(--m-line); border-radius:10px; padding:11px 6px; text-align:center; font-size:14px; color:var(--m-sub); white-space:nowrap;}
.m-type label.on{border-color:var(--m-primary); color:var(--m-primary); font-weight:700; background:var(--m-primary-l);}
.m-mode{display:flex; gap:20px; margin-bottom:18px; border-bottom:1px solid var(--m-line);}
.m-mode-i{font-size:16px; color:var(--m-sub); padding:8px 2px; cursor:pointer; position:relative;}
.m-mode-i.on{color:var(--m-primary); font-weight:700;}
.m-mode-i.on::after{content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--m-primary); border-radius:2px;}

/* ============ 待定占位 / 通用工具 ============ */
.m-empty{text-align:center; padding:72px 20px; color:var(--m-sub);}
.m-empty .big{font-size:46px; margin-bottom:12px;}
.m-empty .tip{font-size:13px; line-height:1.8;}
.m-toast{position:fixed; left:50%; top:42%; transform:translate(-50%,-50%); background:rgba(0,0,0,.8); color:#fff; padding:10px 18px; border-radius:8px; font-size:14px; z-index:999; opacity:0; transition:opacity .2s; pointer-events:none; max-width:80%; text-align:center;}
.m-toast.show{opacity:1;}

/* 10 套柔和渐变(与桌面 hm-grad-1..10 同序列, 卡片不再一片橙红) */
.m-grad-1{background:linear-gradient(135deg,#2E63C8,#5B8CE8);}
.m-grad-2{background:linear-gradient(135deg,#E9713B,#F5A15C);}
.m-grad-3{background:linear-gradient(135deg,#7C5CE0,#A98BF0);}
.m-grad-4{background:linear-gradient(135deg,#1597C9,#48C4DF);}
.m-grad-5{background:linear-gradient(135deg,#1E9E64,#5CC98C);}
.m-grad-6{background:linear-gradient(135deg,#D8642C,#EFA34B);}
.m-grad-7{background:linear-gradient(135deg,#0E8C9E,#43C1C7);}
.m-grad-8{background:linear-gradient(135deg,#C8447E,#EC83B0);}
.m-grad-9{background:linear-gradient(135deg,#4A50C8,#8189EE);}
.m-grad-10{background:linear-gradient(135deg,#12877E,#48C4B4);}

/* ============================================================
   Start v37 - 首页长搜索框 / 多关键词结果 / 会员中心二级页 / 电脑版缩放视图
   追加在文件末尾: 同名规则靠后覆盖, 保证多层历史规则下仍生效
   ============================================================ */

/* 二级页(无底部 5 Tab) 收回底部留白 */
.m-app.m-sub{padding-bottom:24px;}

/* 首页顶栏第二行: 独立整行长搜索框(宽度占满, 容纳较长业务名称) */
.m-top--home .m-top-in{border-bottom:0;}
.m-hsearch{display:block; width:100%; padding:0 12px 10px; background:var(--m-card);}
.m-hsearch-box{display:flex; align-items:center; gap:7px; width:100%; height:40px; padding:0 5px 0 12px;
  background:var(--m-input); border:1px solid #E6EAF2; border-radius:20px; color:var(--m-muted); min-width:0;}
.m-hsearch-box:focus-within{border-color:var(--m-primary); background:var(--m-card); box-shadow:0 0 0 3px rgba(24,88,201,.08);}
.m-hsearch-box > svg{flex:none; width:18px; height:18px; color:var(--m-muted);}
.m-hsearch-box input{flex:1; min-width:0; width:100%; height:38px; border:0; outline:0; background:transparent;
  color:var(--m-text); font-size:14px; padding:0; -webkit-appearance:none; appearance:none;}
.m-hsearch-box input::placeholder{color:var(--m-muted); font-size:13px;}
.m-hsearch-box input::-webkit-search-cancel-button{-webkit-appearance:none;}
.m-hsearch-box button{flex:none; height:30px; padding:0 16px; border:0; border-radius:15px;
  background:var(--m-primary); color:#fff; font-size:13px; font-weight:700; letter-spacing:1px;}
.m-hsearch-box button:active{background:var(--m-primary-d);}

/* 服务大厅搜索框: 同款主色胶囊按钮 + 加高输入区 */
.m-search{height:38px; border-radius:19px; padding:0 12px;}
.m-search input{height:36px; font-size:14px;}
.m-search-go{height:32px; padding:0 14px; border-radius:16px; background:var(--m-primary);
  color:#fff; font-size:13px; font-weight:700;}
.m-search-go:active{background:var(--m-primary-d);}

/* 搜索结果头: 关键词 chips / 命中条数 / OR 降级提示 / 清除搜索 */
.m-hall-kwh{display:block; background:var(--m-card); border:1px solid var(--m-line); border-radius:10px;
  padding:10px; margin-bottom:10px;}
.m-hall-kwh .kws{display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0;}
.m-hall-kwh .kw{display:inline-block; max-width:100%; padding:3px 10px; border-radius:12px;
  background:var(--m-primary-l); color:var(--m-primary); font-size:12px; font-weight:700;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.m-hall-kwh .cnt{font-size:12px; color:var(--m-sub); margin-left:auto; white-space:nowrap;}
.m-hall-kwh .or{margin-top:8px; font-size:12px; color:#B26A00; background:var(--m-warn-bg);
  border-radius:6px; padding:6px 8px; line-height:1.5;}
.m-hall-kwh .clr{display:inline-block; margin-top:8px; font-size:12px; color:var(--m-primary);}

/* 会员中心二级页: 订单状态栏 / 订单卡 / 信息行 / 资产大数 / 操作区 */
.m-ucd-tabs{display:flex; background:var(--m-card); border-bottom:1px solid var(--m-line);
  position:sticky; top:var(--m-top-h); z-index:40;}
.m-ucd-tabs a{flex:1; min-width:0; text-align:center; padding:12px 0; font-size:13px;
  color:var(--m-sub); position:relative; white-space:nowrap;}
.m-ucd-tabs a.on{color:var(--m-primary); font-weight:800;}
.m-ucd-tabs a.on::after{content:''; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:24px; height:3px; border-radius:2px; background:var(--m-primary);}
.m-ucd-list{padding:8px;}
.m-ord{display:block; background:var(--m-card); border-radius:var(--m-radius);
  box-shadow:var(--m-shadow); padding:14px; margin-bottom:8px; min-width:0;}
.m-ord .oh2{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--m-sub);}
.m-ord .oh2 .no{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.m-ord .st{flex:none; color:var(--m-primary); font-weight:700;}
/* 2026-11-20 订单状态分色：待处理橙、处理中蓝、已完成绿、已取消灰（红涨绿跌不涉及金额，仅状态语义） */
.m-ord .st.pending{color:#B45309;}
.m-ord .st.processing{color:var(--m-primary);}
.m-ord .st.done{color:#15803D;}
.m-ord .st.cancelled{color:#8A94A3; font-weight:400;}
.m-ord .st.refunding{color:#B91C1C;}
.m-ord .st.other{color:var(--m-sub); font-weight:400;}
.m-ord .tt{margin:10px 0 6px; font-size:15px; font-weight:700; line-height:1.5; word-break:break-all;}
.m-ord .ft{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--m-sub);}
.m-ord .amt{margin-left:auto; font-size:16px; font-weight:800; color:var(--m-red);}
.m-ucd-card{background:var(--m-card); margin:8px; border-radius:var(--m-radius);
  box-shadow:var(--m-shadow); padding:4px 14px;}
.m-ucd-row{display:flex; align-items:center; gap:10px; padding:13px 0;
  border-bottom:1px solid var(--m-line); min-width:0;}
.m-ucd-row:last-child{border-bottom:0;}
.m-ucd-row .k{width:88px; flex:none; color:var(--m-sub); font-size:13px;}
.m-ucd-row .v{flex:1; min-width:0; font-size:14px; text-align:right;
  color:var(--m-text); word-break:break-all;}
.m-ucd-hero{background:linear-gradient(135deg,#038DFE,#3C7BE8); color:#fff; margin:8px;
  border-radius:var(--m-radius); padding:22px 18px;}
.m-ucd-hero .lb{font-size:12px; opacity:.86;}
.m-ucd-hero .nv{font-size:30px; font-weight:800; margin-top:6px; letter-spacing:.5px;}
.m-ucd-actions{display:flex; gap:8px; padding:0 8px;}
.m-ucd-actions a{flex:1; min-width:0; text-align:center; padding:12px 0; border-radius:10px;
  font-size:14px; font-weight:700; background:var(--m-card); color:var(--m-primary); border:1px solid #D9E0EA;}
.m-ucd-back{display:flex; align-items:center; justify-content:center; margin:14px 8px;
  min-height:44px; background:var(--m-card); border-radius:10px; color:var(--m-sub); font-size:14px;}

/* 电脑版: 固定 1280px 视口等比缩放的完整桌面站(不触发手机版媒体查询, 不会错位) */
.m-app.m-desktop{padding-bottom:0; background:var(--m-card); overflow:hidden;}
.m-dv-bar{position:fixed; left:0; right:0; top:0; z-index:200; height:44px; display:flex;
  align-items:center; gap:10px; padding:0 12px; background:var(--m-card); border-bottom:1px solid var(--m-line);}
.m-dv-bar .tt{flex:1; min-width:0; font-size:15px; font-weight:800; color:var(--m-text);}
.m-dv-bar a{font-size:13px; color:var(--m-primary); white-space:nowrap;}
.m-dv-stage{position:absolute; left:0; top:44px; width:100%; overflow:hidden; background:var(--m-card);}
.m-dv-stage iframe{display:block; border:0; background:var(--m-card); transform-origin:0 0;}
.m-dv-tip{position:fixed; left:0; right:0; bottom:0; z-index:200; text-align:center;
  font-size:12px; color:#fff; background:rgba(29,41,57,.78); padding:7px 10px;}
.m-ucd-empty{padding:32px 20px;}
.m-dv-empty{padding-top:120px;}
/* End v37 */

/* ============================================================
   Start v38 - 首页 logo 下方「左右滚动广告图」轮播 + 服务导航/楼层无限扩张
   追加在末尾: 同名规则靠后覆盖, 不影响桌面版与旧页面
   ============================================================ */
.m-slider{margin:8px; border-radius:var(--m-radius); overflow:hidden; position:relative;
  background:var(--m-primary-l); box-shadow:var(--m-shadow);}
.m-slider-track{display:flex; width:100%; transition:transform .45s ease; will-change:transform;}
.m-slide{flex:0 0 100%; width:100%; min-width:0; height:140px; display:block; position:relative;
  overflow:hidden; background:var(--m-primary-l);}
.m-slide img{width:100%; height:100%; object-fit:cover; display:block;}
.m-slide-ph{width:100%; height:100%; box-sizing:border-box; display:flex; flex-direction:column;
  align-items:flex-start; justify-content:center; padding:14px 18px; color:#fff;
  position:relative; overflow:hidden;}
.m-slide-ph::after{content:''; position:absolute; right:-28px; top:-38px; width:150px; height:150px;
  border-radius:50%; background:rgba(255,255,255,.13);}
.m-slide-ph .t{font-size:20px; font-weight:800; letter-spacing:1px; line-height:1.3;
  text-shadow:0 1px 4px rgba(0,0,0,.18); position:relative; z-index:1;}
.m-slide-ph .s{font-size:12px; opacity:.94; margin-top:7px; line-height:1.4;
  position:relative; z-index:1;}
.m-slider-dots{position:absolute; left:0; right:0; bottom:9px; z-index:2; display:flex;
  align-items:center; justify-content:center; gap:5px;}
.m-slider-dots .dot{width:6px; height:6px; padding:0; border:0; border-radius:6px;
  background:rgba(255,255,255,.55); box-shadow:0 0 3px rgba(0,0,0,.22);
  transition:width .22s ease,background .22s ease; cursor:pointer;}
.m-slider-dots .dot.on{width:16px; background:var(--m-card);}
/* 服务导航金刚区 / 楼层网格: 不设高度上限, 后台加栏目/加卡片就一直往下拉 */
.m-kk-grid,.m-floor-grid{height:auto; max-height:none; overflow:visible;}
/* End v38 */

/* ============ 1.4.4 文章正文富文本（后台编辑器产出的图文） ============ */
.m-art-rich{color:var(--m-sub); font-size:14px; line-height:1.9; word-break:break-word;}
.m-art-rich p{margin:0 0 10px;}
.m-art-rich h1,.m-art-rich h2,.m-art-rich h3,.m-art-rich h4{margin:14px 0 8px; font-size:16px; line-height:1.5; color:var(--m-text);}
.m-art-rich ul,.m-art-rich ol{margin:8px 0 10px; padding-left:20px;}
.m-art-rich li{margin:4px 0;}
.m-art-rich img,.m-art-rich video{max-width:100%; height:auto; display:block; margin:10px auto;}
.m-art-rich table{width:100%; border-collapse:collapse; table-layout:fixed; margin:10px 0;}
.m-art-rich th,.m-art-rich td{border:1px solid var(--m-line,#E4E9F0); padding:6px 8px; font-size:13px; word-break:break-word; vertical-align:top;}
.m-art-rich a{color:var(--m-primary);}
.m-art-rich blockquote{margin:10px 0; padding:8px 12px; background:var(--m-primary-l); color:var(--m-sub);}
/* End v39 */

/* ============ 1.4.14 手机下单页 m/order.php（2026-11-20） ============ */
.m-opd{display:flex; gap:10px; align-items:center; background:var(--m-card); margin:8px; padding:12px; border-radius:var(--m-radius); box-shadow:var(--m-shadow);}
.m-opd .img{width:64px; height:64px; flex:none; border-radius:10px; overflow:hidden; background:var(--m-primary-l); display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--m-primary);}
.m-opd .img img{width:100%; height:100%; object-fit:cover;}
.m-opd .bd{flex:1; min-width:0;}
.m-opd .t{font-size:14px; font-weight:700; line-height:1.5; word-break:break-all; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.m-opd .p{margin-top:6px; font-size:17px; font-weight:800; color:var(--m-red);}
.m-ofld{margin-bottom:13px;}
.m-ofld:last-child{margin-bottom:0;}
.m-ofld > label{display:block; font-size:13px; color:var(--m-sub); margin-bottom:6px; font-weight:600;}
.m-ofld > label i{color:var(--m-red); font-style:normal; margin-left:2px;}
.m-ofld input[type=text],.m-ofld input[type=tel],.m-ofld textarea{width:100%; min-height:44px; border:1px solid var(--m-line); border-radius:10px; padding:10px 12px; font-size:15px; background:var(--m-card); color:var(--m-text); -webkit-appearance:none; appearance:none;}
.m-ofld textarea{min-height:84px; line-height:1.6; resize:vertical;}
.m-ofld input:focus,.m-ofld textarea:focus{outline:none; border-color:var(--m-primary); box-shadow:0 0 0 3px var(--m-primary-l);}
.m-ofile{display:inline-flex; align-items:center; gap:6px; padding:10px 14px; border:1px dashed var(--m-primary); border-radius:10px; color:var(--m-primary); font-size:13.5px; background:var(--m-primary-l); position:relative; overflow:hidden;}
.m-ofile input[type=file]{position:absolute; inset:0; opacity:0; font-size:100px;}
.m-ofile-t{margin-top:6px; font-size:12px; color:var(--m-muted); line-height:1.6;}
.m-otip{margin-top:10px; padding:9px 11px; background:var(--m-warn-soft); color:#92400E; border-radius:8px; font-size:12px; line-height:1.7;}
.m-osub{padding:14px 8px calc(10px + env(safe-area-inset-bottom,0px)); display:flex; flex-direction:column; gap:9px;}
.m-okefu{text-align:center; font-size:13px; color:var(--m-sub); padding:10px 0;}
.m-odone{text-align:center; background:var(--m-card); margin:8px; padding:26px 18px 20px; border-radius:var(--m-radius); box-shadow:var(--m-shadow);}
.m-odone .ico{color:#15803D; display:flex; justify-content:center; margin-bottom:10px;}
.m-odone .h{font-size:18px; font-weight:800;}
.m-odone .s{margin-top:8px; font-size:13px; color:var(--m-sub); line-height:1.8;}
.m-odone .no{margin-top:12px; font-size:12.5px; color:var(--m-muted); font-family:monospace;}
/* End v40 */
/* 下单页优惠券下拉（1.4.14） */
.m-ofld select{width:100%; min-height:44px; border:1px solid var(--m-line); border-radius:10px; padding:10px 12px; font-size:14.5px; background:var(--m-card); color:var(--m-text); -webkit-appearance:none; appearance:none; background-image:linear-gradient(45deg,transparent 50%,#8A94A3 50%),linear-gradient(135deg,#8A94A3 50%,transparent 50%); background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%; background-size:5px 5px,5px 5px; background-repeat:no-repeat;}
.m-ofld select:focus{outline:none; border-color:var(--m-primary); box-shadow:0 0 0 3px var(--m-primary-l);}
/* End v41 */
/* 商品详情：办理资料清单（1.4.14） */
.m-pd-docs{display:flex; flex-wrap:wrap; gap:8px;}
.m-pd-docs .doc{display:inline-flex; align-items:center; gap:4px; padding:7px 11px; background:var(--m-primary-l); color:var(--m-primary-d); border-radius:8px; font-size:13px; line-height:1.4;}
.m-pd-docs .doc.pic{background:var(--m-input); color:var(--m-sub);}
.m-pd-docs .doc i{color:var(--m-red); font-style:normal;}
.m-pd-doc-tip{margin:10px 0 0; font-size:12px; color:var(--m-muted); line-height:1.7;}
.m-pd-docs svg{flex:none;}
/* End v42 */
/* 大厅排序条与翻页（1.4.14） */
.m-hall-sort{display:flex; align-items:center; gap:6px; padding:8px 8px 4px; flex-wrap:wrap;}
.m-hall-sort .m-hs{padding:5px 11px; border-radius:999px; background:var(--m-card); border:1px solid var(--m-line); font-size:12.5px; color:var(--m-sub); line-height:1.4;}
.m-hall-sort .m-hs.on{background:var(--m-primary); border-color:var(--m-primary); color:#fff; font-weight:700;}
.m-hall-sort .m-hs-cnt{margin-left:auto; font-size:12px; color:var(--m-muted);}
.m-hall-pg{display:flex; align-items:center; justify-content:center; gap:10px; padding:14px 8px 4px; font-size:13px; color:var(--m-sub);}
.m-hall-pg a{padding:7px 16px; border:1px solid var(--m-line); border-radius:8px; background:var(--m-card); color:var(--m-text);}
.m-hall-pg span{color:var(--m-muted); font-size:12.5px;}
/* End v43 */
/* 订单页签条数（1.4.14） */
.m-ucd-tabs a i{font-style:normal; margin-left:2px; font-size:12px; color:var(--m-muted); font-weight:400;}
.m-ucd-tabs a.on i{color:var(--m-primary); font-weight:700;}
/* End v44 */
/* 公告/资讯列表（1.4.15）：手机端原来没有列表页，后台发的文章只能靠首页看到前三条 */
.m-news-more{display:block; text-align:center; padding:9px 0 2px; font-size:12.5px; color:var(--m-primary);}
.m-tabs2{display:flex; gap:8px; padding:8px 8px 2px;}
.m-tabs2 a{flex:1; text-align:center; padding:9px 0; border-radius:9px; background:var(--m-card); border:1px solid var(--m-line); font-size:13.5px; color:var(--m-sub);}
.m-tabs2 a.on{background:var(--m-primary); border-color:var(--m-primary); color:#fff; font-weight:700;}
.m-tabs2 a i{font-style:normal; margin-left:3px; font-size:12px; opacity:.75;}
.m-alist{padding:8px;}
.m-alist-i{display:block; background:var(--m-card); border-radius:10px; padding:12px 13px; margin-bottom:8px;}
.m-alist-i .hd{display:flex; gap:8px; align-items:center; margin-bottom:5px;}
.m-alist-i .tag{font-size:12px; color:var(--m-primary-d); background:var(--m-primary-l); padding:1px 7px; border-radius:5px;}
.m-alist-i .dt{font-size:12px; color:var(--m-muted);}
.m-alist-i .ti{font-size:14.5px; color:var(--m-text); font-weight:600; line-height:1.55;}
.m-alist-i .ex{margin-top:5px; font-size:12.5px; color:var(--m-muted); line-height:1.65;}
.m-apg{display:flex; align-items:center; justify-content:center; gap:12px; padding:14px 8px 4px; font-size:13px; color:var(--m-sub);}
.m-apg a{padding:7px 16px; border:1px solid var(--m-line); border-radius:8px; background:var(--m-card); color:var(--m-text);}
.m-apg .cur{color:var(--m-muted); font-size:12.5px;}
.m-apg .off{opacity:.45;}
/* ============================================================
   夜晚模式（2026-11-22）
   手机版此前完全没有接暗色，PC 切夜后打开 /m/ 仍是刺眼的白。
   颜色体系本来就是 --m-* 变量，这里只覆盖变量 + 少数几处硬编码。
   ============================================================ */
html[data-theme="dark"]{
  --m-primary:#58abe8; --m-primary-d:#3d8cc4; --m-primary-l:#16283d;
  --m-bg:#0f1621; --m-card:#171f2b; --m-line:#28313f; --m-soft:#1b2430;
  --m-input:#1e2735; --m-text:#e7edf6; --m-sub:#a9b7c9; --m-muted:#8b98ab;
  --m-danger-bg:#3a1f22; --m-warn-bg:#3a2d15; --m-warn-soft:#38290f;
  --m-shadow:0 2px 10px rgba(0,0,0,.45);
}
html[data-theme="dark"] body.m-app{background:var(--m-bg); color:var(--m-text);}
/* 输入框描边与占位 */
html[data-theme="dark"] .m-search,
html[data-theme="dark"] .m-hall-kw{background:var(--m-input); color:var(--m-muted);}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{background:var(--m-card); color:var(--m-text); border-color:var(--m-line);}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:var(--m-muted);}
/* 语义提示条 */
html[data-theme="dark"] .m-msg{background:var(--m-danger-bg); color:#fca5a5;}
html[data-theme="dark"] .m-otip{background:var(--m-warn-soft); color:#fcd34d;}
html[data-theme="dark"] .m-hall-kwh .or{background:var(--m-warn-bg); color:#fcd34d;}
html[data-theme="dark"] .m-pd-docs .doc.pic{background:var(--m-input); color:var(--m-sub);}
/* 首页分类/楼层选中态 */
html[data-theme="dark"] .m-hn-i.on{background:var(--m-primary-l); color:var(--m-primary);}
/* 顶部与底栏：贴肤色，避免白条割裂 */
html[data-theme="dark"] .m-top{background:var(--m-card); border-bottom-color:var(--m-line);}
html[data-theme="dark"] .m-tabbar{background:var(--m-card); border-top-color:var(--m-line);}
html[data-theme="dark"] .m-pd-bar{background:var(--m-card); border-top-color:var(--m-line);}
/* 图片容器：白底会露出白块，压成卡片色 */
html[data-theme="dark"] .m-pd-img{background:var(--m-card);}
html[data-theme="dark"] .m-mod .meta{background:var(--m-card);}
/* 内联写死的品牌蓝（m/*.php 里有几十处 color:#0369C9），暗色下深蓝压深底几乎看不见；
   属性选择器没有特异性加成，但放在暗色块里带 !important 可以盖过内联样式。 */
html[data-theme="dark"] [style*="color:#0369C9"],
html[data-theme="dark"] [style*="color: #0369C9"]{color:var(--m-primary) !important;}
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"]{background:var(--m-card) !important;}
html[data-theme="dark"] [style*="border:1px solid #038DFE"],
html[data-theme="dark"] [style*="border: 1px solid #038DFE"]{border-color:var(--m-primary) !important;}
/* 域名后缀卡片（m/domain.php 内联样式，白底 + 深蓝后缀） */
html[data-theme="dark"] .dm2-tld{background:var(--m-card); border-color:var(--m-line);}
html[data-theme="dark"] .dm2-tld b{color:#8fb4e8;}
html[data-theme="dark"] .dm2-tld .p{color:#ff9457;}
html[data-theme="dark"] .dm2-tld .r{color:var(--m-sub);}
/* 暗色下主色偏浅（为让文字链接可读），白字压上去只有 2.5；
   按钮底色单独压深一档，白字回到 3.9 以上 */
html[data-theme="dark"] .m-hsearch-box button,
html[data-theme="dark"] .m-search-go,
html[data-theme="dark"] .m-btn,
html[data-theme="dark"] .m-btn-primary{background:#2f7fbf; color:#fff;}
html[data-theme="dark"] .m-hsearch-box button:active,
html[data-theme="dark"] .m-search-go:active{background:#26689e;}
html[data-theme="dark"] .m-tabs2 a.on,
html[data-theme="dark"] .m-hall-sort .m-hs.on{background:#2f7fbf; border-color:#2f7fbf; color:#fff;}
html[data-theme="dark"] .m-tabs2 a.on i{opacity:.92;}
html[data-theme="dark"] .m-ucd-actions a{border-color:var(--m-line);}
/* ===== 商品图文详情（富文本 · 手机/微信/平板同一套）：2026-11-23 =====
   业主口径：详情整篇都是图片也必须正常显示，不许显示成代码、不许撑破屏幕。
   宽高一律 max-width/max-height 压住，style 里写死 px 的图也照样缩小。 */
.m-pd-rich{font-size:14px; line-height:1.85; color:var(--m-sub); word-break:break-word; overflow-wrap:anywhere; overflow-x:auto; -webkit-overflow-scrolling:touch;}
.m-pd-rich img{max-width:100% !important; height:auto !important; display:block; margin:8px auto; border-radius:4px;}
.m-pd-rich video,.m-pd-rich iframe{max-width:100% !important; height:auto !important; display:block; margin:8px 0;}
.m-pd-rich p{margin:0 0 10px;}
.m-pd-rich p:last-child{margin-bottom:0;}
.m-pd-rich div{margin:0 0 10px;}
.m-pd-rich table{max-width:100%; border-collapse:collapse; font-size:13px;}
.m-pd-rich th,.m-pd-rich td{border:1px solid var(--m-line); padding:6px 8px; word-break:break-word; text-align:left; vertical-align:top;}
.m-pd-rich h1,.m-pd-rich h2,.m-pd-rich h3,.m-pd-rich h4,.m-pd-rich h5,.m-pd-rich h6{font-size:15px; line-height:1.5; margin:14px 0 8px; color:var(--m-text);}
.m-pd-rich ul,.m-pd-rich ol{margin:0 0 10px; padding-left:20px;}
.m-pd-rich li{margin:2px 0;}
.m-pd-rich blockquote{margin:10px 0; padding:8px 12px; border-left:3px solid var(--m-line); color:var(--m-sub);}
.m-pd-rich a{color:var(--m-primary); text-decoration:underline;}
.m-pd-rich hr{border:0; border-top:1px solid var(--m-line); margin:12px 0;}
/* End v47 */
