/* ============================================================
 * m.css — 手机专用 UI（html.m 作用域，桌面端零影响）
 * 由 m.js 在 <head> 同步添加 .m 类；本文件在 site.css / admin.css
 * 之后加载，同名属性以本文件为准（html.m 前缀优先级更高）。
 * 兼容目标：微信 X5/XWeb、UC U3、QQ、百度、华为、小米、OPPO、vivo、
 * iOS 10+ Safari/WKWebView、Android Chrome 45+。
 * 禁用特性：:has() / gap(flex) / dvh(仅渐进增强) / :in-range / :is()
 * 保留特性：flex(加-webkit-) / grid(Chromium57+) / var() / keyframes
 * ============================================================ */

/* ---------- 调色板（自给自足，不依赖主题文件；与 site.css / admin.css v4 同步） ---------- */
html.m {
  --bg:       #05070F;
  --bg-2:     #0A0D19;
  --bg-3:     #111528;
  --line:     rgba(255,255,255,.08);
  --line-2:   rgba(255,255,255,.17);
  --txt:      #EAF1FF;
  --sub:      #94A3C2;
  --dim:      #5A6684;

  /* 霓虹主色 + 兼容别名 */
  --neon:     #38E1FF;
  --neon-2:   #B06CFF;
  --neon-dim: rgba(56,225,255,.13);
  --gold:     var(--neon);
  --gold-2:   #8CEBFF;
  --gold-dim: var(--neon-dim);
  --steel:    #7FA8E8;
  --ok:       #35DCA0;
  --danger:   #FF5C7A;
  --warn:     #FFB020;
  --warn-dim: rgba(255,176,32,.13);
  --info:     #7FA8E8;
  --info-dim: rgba(127,168,232,.13);

  /* 后台手机端抽屉/弹层沿用 admin.css 的令牌名 */
  --surface:    #0A0D19;
  --surface-2:  #111528;
  --brand:      #38E1FF;
  --brand-2:    #B06CFF;
  --brand-dim:  rgba(56,225,255,.13);
  --ok-dim:     rgba(53,220,160,.13);
  --danger-dim: rgba(255,92,122,.13);
  --r-ctl:      11px;
  --sh-lg:      0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(0,0,0,1);

  /* 玻璃拟态 */
  --glass:      linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  --glass-2:    linear-gradient(150deg, rgba(255,255,255,.042), rgba(255,255,255,.010));
  --glass-line: rgba(255,255,255,.13);
  --blur:       14px;

  --sa-b: env(safe-area-inset-bottom, 0px);
  --sa-t: env(safe-area-inset-top, 0px);
}

/* ---------- 全局手机化硬处理 ---------- */
html.m body {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
  word-break: break-word;
}
/* 有后台固定底栏的页面才留位（index.html 无底栏，不应被额外 58px 挤到下面） */
html.m.has-mtab body { padding-bottom: calc(58px + var(--sa-b)); }
html.m * { -webkit-tap-highlight-color: transparent; }
html.m a, html.m button, html.m .tab, html.m .mtab, html.m .mrow {
  -webkit-touch-callout: none;                /* 防长按弹菜单 */
}
html.m img { -webkit-touch-callout: default; }

/* 触控目标统一 ≥44px，输入 16px 防 iOS 聚焦缩放 */
html.m .input, html.m select.input, html.m textarea.input,
html.m input[type=text], html.m input[type=tel], html.m input[type=email],
html.m input[type=password], html.m input[type=number], html.m input[type=datetime-local],
html.m select, html.m textarea {
  font-size: 16px;
  min-height: 46px;
  line-height: 1.5;
}
html.m textarea.input, html.m textarea { min-height: 110px; }
html.m .btn  { min-height: 46px; padding: 11px 16px; }
html.m .btn.lg { min-height: 50px; }
html.m .btn.mini { min-height: 38px; padding: 7px 12px; font-size: 13px; }

/* ---------- 通用顶栏（前台 + 后台同款类名） ---------- */
html.m .topbar {
  position: relative;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  min-height: 52px;
  padding: 8px 14px;
  gap: 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
  overflow: hidden;
}
html.m .topbar .brand { min-width: 0; }
html.m .topbar .bt b  { font-size: 14.5px; display: block; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .topbar .bt i  { display: none; }              /* 英文副标手机端收起 */
html.m .topbar .bstat { display: none; }              /* 运行状态灯手机端收起 */
html.m .topbar .tip   { display: none; }              /* 后台站点名长提示收起 */
html.m .topbar .nw-build { display: none; }           /* 水印手机端收起（部署验证用登录页水印仍在） */
html.m .topbar .admin-entry { font-size: 12px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 3px; }
html.m .topbar .back-link { display: none; }         /* 品牌logo可点回首页，返回链接隐藏防顶栏溢出 */
html.m .topbar .btn.mini { min-height: 36px; padding: 6px 12px; font-size: 12.5px; }

/* ============================================================
 * 一、前台 · 选服中心 index.html
 * ============================================================ */
html.m .shell { padding: 0 16px; }
html.m .hero  { padding: 34px 16px 26px; }
html.m .hero h1 { font-size: 35px; line-height: 1.25; }
html.m .hero h1 .h1-sub { font-size: .46em; margin-top: 10px; }
html.m .kicker { font-size: 11.5px; letter-spacing: .22em; }
html.m .desc   { font-size: 14.5px; line-height: 1.8; }

html.m .steps { grid-template-columns: 1fr; margin-top: 26px; }
html.m .steps li { border-left: 0; border-top: 1px solid var(--line); padding: 12px 16px; }
html.m .steps li:first-child { border-top: 0; }
html.m .steps .t { font-size: 14px; }

html.m .sec-head { gap: 10px; }
html.m .sec-head h2 { font-size: 19px; }
html.m .sec-head .cnt { font-size: 12px; }

/* 库存卡片：单列满宽，三段式完整保留 */
html.m .stock-grid { grid-template-columns: 1fr; gap: 14px; }
html.m .stock-card .ct { padding: 13px 16px 11px; }
html.m .stock-card .cb { padding: 14px 16px; }
html.m .stock-card .cf { padding: 12px 16px; gap: 12px; }
html.m .stock-card .cf .go { min-height: 48px; flex: 1 1 auto; font-size: 16px; }
html.m .stock-card .cd { font-size: 12.5px; }
html.m .stock-card .name { font-size: 17px; }
html.m .stock-card .type { font-size: 12.5px; }
html.m .stock-card .contact-link { min-height: 46px; margin-top: 16px; padding: 12px 14px; font-size: 14px; }
html.m .name-row { flex-wrap: wrap; }

html.m .ann { padding: 14px 16px; }
html.m .ann-h { gap: 10px; }
html.m .ann p { font-size: 14px; line-height: 1.8; }

html.m .site-foot {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 16px calc(18px + var(--sa-b));
  font-size: 11.5px;
}

/* ============================================================
 * 二、前台 · 服务台 whitelist.html
 * ============================================================ */
/* 四个业务 Tab → 固定底部导航（01申请 / 02领取 / 03查询 / 04举报） */
html.m .workspace { padding-bottom: calc(58px + var(--sa-b)); }
html.m .workspace > .tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: -webkit-flex;
  display: flex;
  gap: 2px;
  padding: 6px 6px calc(6px + var(--sa-b));
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
}
html.m .workspace > .tabs .tab {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 6px 2px;
  font-size: 13.5px;
  border: 0;
  background: transparent;
  color: var(--sub);
}
html.m .workspace > .tabs .tab i {
  display: block;
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
  font-style: normal;
  color: var(--dim);
}
html.m .workspace > .tabs .tab.active,
html.m .workspace > .tabs .tab.on { color: var(--gold); background: transparent; border-bottom: 0; }
html.m .workspace > .tabs .tab.active i,
html.m .workspace > .tabs .tab.on i { color: var(--gold); }

/* 服务器锁定条 / 状态板 */
html.m .status-board { grid-template-columns: repeat(2, 1fr); }
html.m .sb-item { border-left: 0 !important; border-top: 1px solid var(--line); }
html.m .sb-item:nth-child(-n+2) { border-top: 0 !important; }
html.m .sb-item { padding: 12px 14px; }
html.m .sb-item b { font-size: 18px; }

html.m .stock-chip { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
html.m .sc-seat { -webkit-align-items: flex-start; align-items: flex-start; }
html.m .sc-main { -webkit-flex: 1 1 100%; flex: 1 1 100%; min-width: 0; -webkit-order: -1; order: -1; }
html.m .sc-name { font-size: 17px; }
html.m .sc-type { font-size: 12.5px; }

/* 表单区 */
html.m .pane { padding-top: 24px; }
html.m .pane-head h2 { font-size: 19px; }
html.m .pane-sub { font-size: 14px; line-height: 1.8; }
html.m .rules p { font-size: 14px; line-height: 1.8; }
html.m .rules .rn { font-size: 13px; }
html.m .apply-grid { grid-template-columns: 1fr; gap: 18px; }
html.m .form-wrap { max-width: none; }
html.m .field > label { line-height: 1.65; overflow: visible; white-space: normal; }
html.m .row2 { -webkit-flex-direction: column; flex-direction: column; gap: 10px; }
html.m .row2 .input, html.m .row2 .btn { width: 100%; -webkit-flex: none; flex: none; }

/* 截图上传 3 槽（aspect-ratio 老内核不支持时给保底高度） */
html.m .upload-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
html.m .upload-slot { min-height: 96px; }

/* 前台表单提交按钮满宽 */
html.m .apply-col .btn, html.m .form-wrap .btn, html.m .query-col .btn, html.m .report-col .btn {
  width: 100%;
}

/* ---------- 弹层 → 底部抽屉（前台 .modal-mask 体系） ---------- */
html.m .modal-mask {
  -webkit-align-items: flex-end;
  align-items: flex-end;
  padding: 0;
}
html.m .modal-card {
  width: 100%;
  max-width: none;
  max-height: 90vh;
  max-height: -webkit-calc(100dvh - var(--sa-t));
  max-height: calc(100dvh - var(--sa-t));
  border-radius: 10px 10px 0 0;
  border-bottom: 0;
  -webkit-animation: mSheetUp .22s ease-out;
  animation: mSheetUp .22s ease-out;
}
html.m .modal-head { padding: 16px 18px 12px; }
html.m .modal-head h3 { font-size: 17px; }
html.m .modal-body { padding: 12px 18px 4px; -webkit-overflow-scrolling: touch; font-size: 15px; line-height: 1.8; }
html.m .modal-foot {
  -webkit-flex-direction: column-reverse;
  flex-direction: column-reverse;
  gap: 10px;
  padding: 12px 18px calc(14px + var(--sa-b));
}
html.m .modal-foot .btn, html.m .modal-foot .btn.lg { width: 100%; min-width: 0; min-height: 46px; }
@-webkit-keyframes mSheetUp { from { -webkit-transform: translateY(46%); opacity: .5; } to { -webkit-transform: translateY(0); opacity: 1; } }
@keyframes mSheetUp { from { transform: translateY(46%); opacity: .5; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
 * 三、后台 · 主后台 admin/index.html + 分后台 subadmin.html
 * ============================================================ */
/* 登录页 */
html.m .login-wrap { padding: 16px; }
html.m .login-box { width: 100%; max-width: 380px; padding: 26px 20px; }
html.m .login-box h1 { font-size: 21px; }

/* 桌面横向 tab 条隐藏（由底部 #mtabs 接管；主后台 #tabs / 分后台 #subTabs） */
html.m #tabs, html.m #subTabs { display: none !important; }

/* 主区 */
html.m .main { padding: 14px 14px 24px; }
html.m .card { padding: 14px 14px 16px; margin-bottom: 12px; border-radius: 4px; }
html.m .card h2 { font-size: 17px; flex-wrap: wrap; }
html.m .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
html.m .stat { padding: 12px; }
html.m .stat .v { font-size: 22px; }
html.m .form-grid { grid-template-columns: 1fr; }
html.m .perm-list { grid-template-columns: 1fr; }
html.m .perm-list label { padding: 12px; }

/* ---------- 底部导航 #mtabs（m.js 自动构建） ---------- */
html.m #mtabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: -webkit-flex;
  display: flex;
  padding: 5px 4px calc(5px + var(--sa-b));
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
}
html.m #mtabs .mtab {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  color: var(--sub);
  font-size: 13px;
}
html.m #mtabs .mtab .mdot {
  width: 6px; height: 6px;
  border: 1px solid var(--dim);
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}
html.m #mtabs .mtab.on { color: var(--gold); }
html.m #mtabs .mtab.on .mdot { background: var(--gold); border-color: var(--gold); }
html.m #mtabs .mtab .mbadge {
  position: absolute;
  top: 2px; right: 12%;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  border-radius: 8px;
  text-align: center;
}
html.m #mtabs .mtab .mbadge.hidden { display: none; }

/* 「更多」底部抽屉 */
html.m #msheetMask {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(0,0,0,.55);
}
html.m #msheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 201;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-radius: 10px 10px 0 0;
  padding: 8px 10px calc(10px + var(--sa-b));
  -webkit-animation: mSheetUp .2s ease-out;
  animation: mSheetUp .2s ease-out;
}
html.m #msheet .mrow {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--txt);
  font-size: 15px;
  text-align: left;
}
html.m #msheet .mrow:last-child { border-bottom: 0; }
html.m #msheet .mrow:active { background: var(--gold-dim); }
html.m #msheet .mbadge {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
}
html.m #msheet .mbadge.hidden { display: none; }
html.m #msheetMask.hidden, html.m #msheet.hidden { display: none; }

/* ========== 修复：分后台抽屉样式 ========== */
html.m .drawer-mask { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
html.m .drawer-mask.show { opacity: 1; pointer-events: auto; }
html.m .drawer { position: fixed; left: 0; top: 0; z-index: 210; height: 100vh; height: 100dvh; width: 82vw; max-width: 400px; background: var(--bg-2); border-radius: 10px 10px 0 0; border-top: 1px solid var(--line-2); box-shadow: var(--sh-lg); display: flex; flex-direction: column; transform: translateY(100%); transition: transform .26s cubic-bezier(.4,0,.2,1); will-change: transform; }
html.m .drawer.open { transform: translateY(0); }
html.m .drawer-head { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
html.m .drawer-head .logo { width: 38px; height: 38px; flex: none; background: var(--brand); color: #fff; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
html.m .drawer-head .tt { min-width: 0; }
html.m .drawer-head .tt b { display: block; font-size: 15px; font-weight: 700; color: var(--txt); white-space: nowrap; }
html.m .drawer-head .tt span { display: block; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.m .drawer-close { margin-left: auto; flex: none; width: 32px; height: 32px; background: var(--surface-2); border: 0; border-radius: 8px; color: var(--sub); font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background .15s, color .15s; }
html.m .drawer-close:hover { background: var(--danger-dim); color: var(--danger); }
html.m .drawer-foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); font-family: var(--mono); letter-spacing: .05em; }
html.m .drawer .tabs { display: flex; flex-direction: column; gap: 3px; padding: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; border-bottom: 0; background: transparent; }
html.m .drawer .tab { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; text-align: left; color: var(--sub); font-size: 14.5px; font-weight: 500; padding: 12px 14px; min-height: 46px; border-radius: var(--r-ctl); white-space: nowrap; transition: background .15s, color .15s; font-family: var(--sans); }
html.m .drawer .tab:hover { background: var(--surface-2); color: var(--txt); }
html.m .drawer .tab.on, html.m .drawer .tab.active { background: var(--brand-dim); color: var(--brand); font-weight: 600; }
html.m .drawer .tab.on::before, html.m .drawer .tab.active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; border-radius: 0 4px 4px 0; background: var(--brand); }
html.m .drawer .tab:disabled { opacity: .4; cursor: not-allowed; }
html.m .drawer .tab:disabled:hover { background: none; color: var(--sub); }
html.m .drawer .badge { margin-left: auto; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 7px; border-radius: 10px; background: var(--danger); color: #fff; }
html.m .drawer .tab.on .badge { background: var(--danger); color: #fff; }

/* ---------- 后台弹层 → 底部抽屉（.modal / .modalBox 体系） ---------- */
html.m .modal {
  -webkit-align-items: flex-end;
  align-items: flex-end;
  padding: 0;
}
html.m .modalBox {
  width: 100%;
  max-width: none;
  max-height: 90vh;
  border-radius: 10px 10px 0 0;
  border-bottom: 0;
  -webkit-animation: mSheetUp .22s ease-out;
  animation: mSheetUp .22s ease-out;
}
html.m .modalBox .form-grid { gap: 12px; }

/* ---------- 后台数据表 → 卡片（沿用已验证形态，html.m 作用域重写） ---------- */
html.m .tbl-wrap { overflow-x: visible; border: 0; background: transparent; }
html.m .tbl-wrap table { min-width: 0; width: 100%; display: block; }
html.m .tbl-wrap tbody tr:first-child { display: none; }
html.m .tbl-wrap tr {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  margin: 0 0 12px;
  padding: 4px 14px 10px;
}
html.m .tbl-wrap tr:hover td { background: transparent; }
html.m .tbl-wrap td {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  text-align: right;
  line-height: 1.65;
  vertical-align: top;
  font-size: 13.5px;
}
html.m .tbl-wrap td:first-child { border-top: 0; }
html.m .tbl-wrap td::before {
  content: attr(data-label);
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .05em;
  line-height: 1.7;
  text-align: left;
  max-width: 40%;
  margin-right: 12px;
}
html.m .tbl-wrap .left {
  max-width: 58%;
  max-height: none;
  overflow: visible;
  font-size: 13px;
  text-align: right;
}
html.m .tbl-wrap td.mono { white-space: normal; text-align: right; overflow-wrap: anywhere; }
html.m .tbl-wrap td .ev-grid {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 6px;
}
html.m .tbl-wrap .ev-grid img {
  width: 100%;
  max-width: none;
  max-height: 84px;
  margin: 0;
}
html.m .tbl-wrap td .ops {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  gap: 8px;
}
html.m .tbl-wrap td .ops .btn {
  -webkit-flex: 1 1 30%;
  flex: 1 1 30%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 8px;
  font-size: 13px;
  white-space: nowrap;
}

/* 后台普通按钮不满宽（避免刷新/导出等行内按钮变形），仅弹层脚部满宽 */
html.m .modal-foot .btn { width: 100%; }

/* ============================================================
 * ★ 手机端玻璃拟态霓虹（v4）
 * html.m 作用域优先级高于 site.css / admin.css，置于末尾即可覆盖。
 * 仅调整观感属性，不触碰上方已验证的布局/触控尺寸。
 * ============================================================ */
html.m .topbar {
  background: linear-gradient(180deg, rgba(10,13,25,.9), rgba(10,13,25,.68));
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--glass-line);
}
html.m .workspace > .tabs,
html.m #mtabs {
  background: linear-gradient(0deg, rgba(10,13,25,.96), rgba(10,13,25,.8));
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--glass-line);
}
html.m .workspace > .tabs .tab.active,
html.m .workspace > .tabs .tab.on,
html.m #mtabs .mtab.on { text-shadow: 0 0 14px rgba(56,225,255,.6); }
html.m #msheet,
html.m .drawer {
  background: linear-gradient(170deg, rgba(16,21,38,.97), rgba(7,10,20,.99));
  border-color: var(--glass-line);
}
html.m .modal-card,
html.m .modalBox {
  background: linear-gradient(160deg, rgba(20,25,45,.96), rgba(9,12,24,.98));
  border: 1px solid var(--glass-line);
}
html.m .modal-foot { background: rgba(255,255,255,.025); }
html.m #msheet .mrow:active { background: rgba(56,225,255,.1); }
/* 后台数据表卡片（手机端）→ 玻璃卡片，霓虹顶边 */
html.m .tbl-wrap tr {
  background: var(--glass-2);
  border: 1px solid var(--glass-line);
  border-top: 2px solid var(--neon);
  border-radius: 12px;
}
/* 时间轴在窄屏收紧左侧留白 */
html.m .tl { padding-left: 26px; }
html.m .tl-item::before { left: -23px; }
html.m .tl-time { margin-left: 0; flex-basis: 100%; }
/* 霓虹底 / 警示底改用暗字，避免白字糊在亮色上 */
html.m .drawer-head .logo { color: #04121B; }
html.m .drawer .tab.on .badge,
html.m .drawer .badge,
html.m #mtabs .mtab .mbadge,
html.m #msheet .mbadge { color: #04121B; }
