:root{
  --bg:#f5f6f8; --card:#fff; --ink:#1a1d24; --muted:#6b7280; --line:#e5e7eb;
  --brand:#2563eb; --green:#16a34a; --red:#dc2626; --amber:#d97706; --blue:#0284c7; --gray:#9ca3af;
  --radius:14px; --shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg); color:var(--ink); font-size:16px; line-height:1.5;
  padding-bottom:88px; -webkit-text-size-adjust:100%;
}
a{color:var(--brand);text-decoration:none}
/* 顶栏 */
.topbar{
  position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);padding:12px 16px;
  display:flex;align-items:center;gap:10px;
}
.topbar h1{font-size:17px;margin:0;font-weight:700;flex:1;letter-spacing:.2px}
.topbar .sub{font-size:12px;color:var(--muted);font-weight:400;display:block;margin-top:2px}
.iconbtn{
  border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;
  font-size:14px;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;gap:6px;
}
.iconbtn:active{background:#f0f1f3}
/* 容器 */
.wrap{padding:14px 14px 0;max-width:820px;margin:0 auto}
/* 数据源状态条 */
.banner{
  display:flex;align-items:center;gap:8px;font-size:13px;padding:10px 12px;border-radius:12px;
  margin-bottom:12px;line-height:1.4;
}
.banner.ok{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.banner.warn{background:#fffbeb;color:#92400e;border:1px solid #fde68a}
.banner.err{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
/* 段标题 */
.sec{display:flex;align-items:center;gap:8px;margin:18px 2px 10px}
.sec h2{font-size:15px;margin:0;font-weight:700;flex:1}
.sec .count{font-size:12px;color:var(--muted);font-weight:400}
/* 房态网格 */
.rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:9px}
.room{
  background:var(--card);border-radius:12px;padding:10px 10px 9px;box-shadow:var(--shadow);
  border-left:4px solid var(--gray);cursor:pointer;position:relative;transition:transform .12s;
}
.room:active{transform:scale(.97)}
.room .no{font-size:16px;font-weight:700;letter-spacing:.3px}
.room .st{font-size:12px;margin-top:3px;font-weight:600}
.room .meta{font-size:11px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room .src{position:absolute;top:7px;right:8px;font-size:9px;color:var(--muted);background:#f3f4f6;border-radius:4px;padding:1px 4px}
/* 工单卡片 */
.ticket{
  background:var(--card);border-radius:var(--radius);padding:13px 14px;box-shadow:var(--shadow);
  margin-bottom:10px;display:block;color:inherit;cursor:pointer;border:1px solid transparent;
}
.ticket:active{background:#fafafa}
.ticket .row1{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.ticket .rid{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.ticket .room{font-size:16px;font-weight:700;border:none;padding:0;background:none;box-shadow:none}
.ticket .cat{font-size:12px;color:var(--muted);background:#f3f4f6;border-radius:6px;padding:1px 6px}
.ticket .desc{font-size:14px;color:#374151;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ticket .row3{display:flex;align-items:center;gap:8px;margin-top:7px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.pill{padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.pill.待接单{background:#fef3c7;color:#92400e}
.pill.处理中{background:#dbeafe;color:#1e40af}
.pill.待确认{background:#ede9fe;color:#5b21b6}
.pill.已完成{background:#dcfce7;color:#166534}
.pill.已取消{background:#f3f4f6;color:#6b7280}
.pill.紧急{background:#fee2e2;color:#991b1b}
/* 分段控件 */
.seg{display:flex;background:#eceef1;border-radius:11px;padding:3px;margin-bottom:14px}
.seg button{
  flex:1;border:0;background:transparent;padding:9px 6px;font-size:14px;font-weight:600;color:var(--muted);
  border-radius:9px;cursor:pointer;font-family:inherit;
}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
/* 表单 */
.card{background:var(--card);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);margin-bottom:12px}
label{display:block;font-size:13px;font-weight:600;color:#374151;margin:0 0 6px}
.field{margin-bottom:16px}
.req::after{content:" *";color:var(--red)}
input[type=text],input[type=number],textarea,select{
  width:100%;padding:12px;border:1px solid var(--line);border-radius:11px;font-size:16px;
  font-family:inherit;background:#fff;color:var(--ink);appearance:none;
}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
textarea{min-height:88px;resize:vertical}
select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");background-repeat:no-repeat;background-position:right 14px center}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  padding:9px 15px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:14px;
  cursor:pointer;font-family:inherit;color:var(--ink);
}
.chip.on{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}
.btn{
  width:100%;padding:14px;border:0;border-radius:12px;background:var(--brand);color:#fff;font-size:16px;
  font-weight:700;font-family:inherit;cursor:pointer;
}
.btn:active{filter:brightness(.94)}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}
.btn.green{background:var(--green)} .btn.red{background:var(--red)} .btn.amber{background:var(--amber)}
.btn:disabled{opacity:.5}
.btnrow{display:flex;gap:10px;margin-top:10px}
/* 拍照 */
.photo-box{display:flex;gap:10px;align-items:center}
.photo-pick{
  border:1.5px dashed #cbd5e1;border-radius:12px;padding:14px;text-align:center;color:var(--muted);
  font-size:13px;cursor:pointer;flex:1;
}
.photo-pick img{max-width:100%;max-height:150px;border-radius:8px;display:block;margin:0 auto}
/* 时间线 */
.timeline{position:relative;padding-left:22px;margin-top:6px}
.timeline::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl-item{position:relative;padding:0 0 16px}
.tl-item::before{content:"";position:absolute;left:-22px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--brand);border:2px solid #fff;box-shadow:0 0 0 1px var(--line)}
.tl-item .t{font-size:13px;font-weight:600}
.tl-item .m{font-size:12px;color:var(--muted);margin-top:1px}
/* 统计 */
.metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:12px}
.metric{background:var(--card);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow)}
.metric .v{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.metric .k{font-size:12px;color:var(--muted);margin-top:2px}
.bars{display:flex;flex-direction:column;gap:9px}
.bar{font-size:13px}
.bar .lbl{display:flex;justify-content:space-between;margin-bottom:4px;color:#374151}
.bar .track{height:8px;background:#eef0f3;border-radius:5px;overflow:hidden}
.bar .fill{height:100%;background:var(--brand);border-radius:5px;transition:width .4s}
/* 底部浮动按钮 */
.fab{
  position:fixed;left:50%;transform:translateX(-50%);bottom:20px;z-index:30;
  background:var(--brand);color:#fff;border:0;border-radius:999px;padding:15px 30px;font-size:16px;
  font-weight:700;font-family:inherit;box-shadow:0 8px 24px rgba(37,99,235,.4);cursor:pointer;
  display:flex;align-items:center;gap:8px;
}
.fab:active{transform:translateX(-50%) scale(.97)}
/* 底部导航 */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:25;background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line);
  display:flex;padding:8px 0 max(8px,env(safe-area-inset-bottom));
}
.tabbar a{
  flex:1;text-align:center;font-size:11px;color:var(--muted);padding:4px 0;font-weight:600;
}
.tabbar a.on{color:var(--brand)}
.tabbar a span{display:block;font-size:19px;line-height:1.25}
/* 弹层 */
.sheet-mask{position:fixed;inset:0;background:rgba(17,24,39,.45);z-index:40;display:none}
.sheet-mask.on{display:block}
.sheet{
  position:fixed;left:0;right:0;bottom:0;z-index:41;background:#fff;border-radius:18px 18px 0 0;
  padding:20px 18px calc(20px + env(safe-area-inset-bottom));transform:translateY(100%);
  transition:transform .22s ease;max-height:86vh;overflow:auto;
}
.sheet.on{transform:translateY(0)}
.sheet h3{margin:0 0 4px;font-size:18px}
.sheet .hint{font-size:13px;color:var(--muted);margin-bottom:14px}
.empty{text-align:center;color:var(--muted);font-size:14px;padding:40px 20px}
.toast{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(17,24,39,.92);color:#fff;
  padding:12px 20px;border-radius:12px;font-size:14px;z-index:60;opacity:0;pointer-events:none;transition:opacity .2s;
  max-width:80vw;text-align:center;
}
.toast.on{opacity:1}
@media(min-width:640px){
  .rooms{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
  .metrics{grid-template-columns:repeat(4,1fr)}
}

/* ===== 房态搜索与楼层索引 ===== */
.searchbar{position:relative;margin-bottom:10px}
.searchbar input{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font-size:16px;
  background:#fff;font-family:inherit;color:var(--ink);appearance:none;
}
.searchbar input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.searchbar input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.floorbar{
  display:flex;gap:8px;overflow-x:auto;padding:2px 14px 10px;margin:0 -14px;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.floorbar::-webkit-scrollbar{display:none}
.floorbar .chip{white-space:nowrap;flex:none;padding:8px 13px;font-size:13px}
.floorhead{display:flex;align-items:center;gap:8px;margin:16px 2px 9px;font-size:13px;font-weight:700;color:#374151}
.floorhead .line{flex:1;height:1px;background:var(--line)}
.floorhead:first-child{margin-top:4px}
.room .no{font-size:17px;font-weight:700;letter-spacing:.5px;font-variant-numeric:tabular-nums}

/* ===== 后台管理 ===== */
.kv{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px}
.kv:last-child{border-bottom:0}
.kv > span{color:var(--muted)}
.kv > b{font-weight:600}
.ok-t{color:var(--green)} .bad-t{color:var(--red)}
.row-item{display:flex;align-items:center;gap:8px;padding:11px 0;border-bottom:1px solid var(--line)}
.row-item:last-child{border-bottom:0}
.mini{
  border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 10px;font-size:12px;
  font-family:inherit;color:var(--ink);cursor:pointer;white-space:nowrap;
}
.mini.on{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}
.mini.danger{color:var(--red);border-color:#fecaca}
.mini:active{filter:brightness(.95)}
.permgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:7px}
.perm{
  display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:10px;
  padding:9px 10px;font-size:13px;background:#fff;cursor:pointer;color:var(--ink);font-weight:400;
}
.perm.on{background:#eff6ff;border-color:#bfdbfe}
.perm input{width:16px;height:16px;accent-color:var(--brand);margin:0;flex:none}
/* 趋势图 */
.trend{display:flex;align-items:flex-end;gap:6px;height:96px;padding-top:6px}
.tcol{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px}
.tbars{display:flex;align-items:flex-end;gap:3px;height:66px}
.tbar{width:11px;border-radius:3px 3px 0 0;min-height:2px}
.tbar.created{background:#93c5fd}
.tbar.done{background:#4ade80}
.tday{font-size:10px;color:var(--muted);white-space:nowrap}
.legend{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);margin-top:8px}
.lg{width:10px;height:10px;border-radius:2px;display:inline-block}
.lg.created{background:#93c5fd} .lg.done{background:#4ade80}

/* ===== 禁止双击放大（保留双指缩放） ===== */
html, body {
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  overscroll-behavior-y: contain;
}
/* 所有可点元素同样禁用双击缩放，避免快速连点被识别为 dblclick zoom */
button, a, input, textarea, select, label,
.room, .ticket, .chip, .mini, .perm, .fab, .iconbtn, .seg button {
  touch-action: manipulation;
}

/* ===== 顶栏：标题居中 + 左侧排序切换 ===== */
.topbar-3{display:flex;align-items:center;gap:8px}
.topbar-3 > .side-left,
.topbar-3 > .side-right{flex:1 1 0;display:flex;min-width:0}
.topbar-3 > .side-left{justify-content:flex-start}
.topbar-3 > .side-right{justify-content:flex-end}
.topbar-3 h1{flex:0 0 auto;text-align:center;margin:0}
.seg-mini{display:flex;background:#eceef1;border-radius:9px;padding:2px;gap:2px;flex:none}
.seg-mini button{
  border:0;background:transparent;padding:6px 10px;font-size:12px;font-weight:600;
  color:var(--muted);border-radius:7px;font-family:inherit;cursor:pointer;white-space:nowrap;
}
.seg-mini button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.1)}
.seg-mini button:active{transform:scale(.96)}
@media (max-width:360px){
  .seg-mini button{padding:6px 7px;font-size:11px}
  .topbar-3 h1{font-size:15px}
}

/* ===== 房间卡片：房号 + 编号（编号略小） ===== */
.room .no{
  display:flex;align-items:baseline;gap:4px;white-space:nowrap;
  font-size:17px;font-weight:700;letter-spacing:.4px;font-variant-numeric:tabular-nums;
}
.room .no .code{
  font-size:12px;font-weight:600;color:#9aa1ab;letter-spacing:0;
}
.room.occupied .no .code,
.room.locked .no .code{color:#a8aeb8}

/* ================= 首页改版（2026-11-20 晚） ================= */
/* 顶部紧凑：去掉标题浮块，让房态占满上方空间 */
.topwrap{padding:10px 12px 0;max-width:900px;margin:0 auto}
.topwrap .seg{margin-bottom:8px}
.topwrap .sec{margin:9px 2px 5px}
.topwrap .sec h2{font-size:14px}
body{padding-bottom:104px}

/* 房间网格：更紧凑 */
.rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:6px}

/* 楼层标题更紧凑 */
.floorhead{margin:9px 2px 5px;font-size:12.5px}
.floorhead .cnt{font-weight:400;color:var(--muted);font-size:11px}

/* ---- 纯色房态区块 ---- */
.room{
  border-left:none !important;
  border-radius:10px;
  padding:7px 9px 8px;
  box-shadow:none;
  color:#fff;
  cursor:pointer;
  position:relative;
  transition:transform .1s;
  overflow:hidden;
}
.room:active{transform:scale(.97)}
.room.free     {background:#16a34a}
.room.occupied {background:#dc2626}
.room.pending  {background:#ef9013}
.room.locked   {background:#4b5563}
.room.dirty    {background:#0284c7}
.room.unknown  {background:#e8ebef;color:#4b5563}

.room .no{
  display:flex;align-items:baseline;gap:4px;white-space:nowrap;
  font-size:17px;font-weight:800;letter-spacing:.3px;
  color:inherit;font-variant-numeric:tabular-nums;
}
.room .no .code{font-size:11.5px;font-weight:600;color:rgba(255,255,255,.72);letter-spacing:0}
.room.unknown .no .code{color:#9aa1ab}

.room .st{margin-top:2px;font-size:11.5px;font-weight:600;color:inherit;opacity:.96;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room .src{background:rgba(255,255,255,.28);color:#fff;font-size:9px;padding:1px 5px;border-radius:5px}
.room.unknown .src{background:#d7dbe1;color:#6b7280}
.room .meta{display:none}

/* ---- 右下角刷新 + 最近刷新时间 ---- */
.refresh-dock{
  position:fixed;right:14px;bottom:calc(66px + env(safe-area-inset-bottom));z-index:35;
  display:flex;flex-direction:column;align-items:center;gap:4px;
}
.rf-btn{
  width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:var(--ink);
  box-shadow:0 2px 10px rgba(0,0,0,.16);font-size:19px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-family:inherit;
}
.rf-btn:active{transform:scale(.93)}
.rf-btn.spin{animation:rfspin .8s linear infinite}
@keyframes rfspin{to{transform:rotate(360deg)}}
.rf-time{
  font-size:10px;color:#8a9099;background:rgba(255,255,255,.9);
  padding:1px 7px;border-radius:8px;white-space:nowrap;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}

/* 工单列表页 */
.ticket{border-radius:12px}

/* 房态卡片：主标签 + 次要信息（退房日弱化） */
.room .st .sub2{font-weight:500;opacity:.78;font-size:10.5px}

/* ===== 修复：纯色底上的文字颜色（优先级需高于 .room.free .st 等旧规则） ===== */
.room.free .st,
.room.occupied .st,
.room.pending .st,
.room.locked .st,
.room.dirty .st{
  color:#fff;
}
.room.unknown .st{color:#4b5563}
.room .st .sub2{color:#fff;opacity:.8}

/* 状态行允许换行，避免长文案被截断成「待入住 · 明天…」 */
.room .st{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  line-height:1.25;
  font-size:11px;
  letter-spacing:0;
  word-break:normal;
  overflow-wrap:break-word;
}
/* 卡片略加宽，减少换行 */
.rooms{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:6px}
.room{padding:7px 9px 8px}

/* ===== 后台：职务标签 ===== */
.rolechips{display:flex;flex-wrap:wrap;gap:7px}
.rolechip{
  display:inline-flex;align-items:center;gap:6px;background:#f1f3f6;border:1px solid var(--line);
  border-radius:999px;padding:6px 6px 6px 12px;font-size:13px;
}
.rolechip b{font-weight:700}
.rolechip .rc-cnt{font-size:11px;color:var(--muted)}
.rolechip .rc-del{
  width:20px;height:20px;border-radius:50%;border:0;background:#e5e8ec;color:#6b7280;
  font-size:13px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;
  font-family:inherit;padding:0;
}
.rolechip .rc-del:active{background:#fecaca;color:#991b1b}

/* ================= 中央大「报 修」按钮 + 双项导航 ================= */
.tabbar .navgap{flex:0 0 160px;max-width:160px}
body{padding-bottom:136px}

.fab{
  left:50%;
  transform:translateX(-50%);
  bottom:calc(14px + env(safe-area-inset-bottom));
  z-index:40;
  min-width:150px;
  padding:16px 36px;
  font-size:18px;
  font-weight:800;
  letter-spacing:2px;
  border-radius:999px;
  justify-content:center;
  box-shadow:0 10px 30px rgba(37,99,235,.5), 0 0 0 5px rgba(37,99,235,.12);
}
.fab:active{transform:translateX(-50%) scale(.95)}

/* 小屏微调，保证不与两侧导航文字重叠 */
@media (max-width:360px){
  .tabbar .navgap{flex:0 0 144px;max-width:144px}
  .fab{min-width:136px;padding:15px 28px;font-size:17px;letter-spacing:1px}
}

/* ===== 处理计时 ===== */
.timer-card{
  border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);
  text-align:center;margin-bottom:12px;
}
.timer-card.running{background:#eff6ff;border:1px solid #bfdbfe}
.timer-card.done{background:#f0fdf4;border:1px solid #bbf7d0}
.timer-label{font-size:12px;font-weight:700;color:#475569;letter-spacing:.5px}
.timer-val{
  font-size:32px;font-weight:800;font-variant-numeric:tabular-nums;
  letter-spacing:1.5px;margin:6px 0 4px;color:#0f172a;line-height:1.1;
}
.timer-card.running .timer-val{color:var(--brand)}
.timer-card.done .timer-val{color:var(--green);font-size:26px;letter-spacing:.5px}
.timer-sub{font-size:11px;color:var(--muted)}

/* 工单卡片：房号 + 编号 */
.ticket .room{display:inline-flex;align-items:baseline;gap:4px}
.ticket .room .code{font-size:12px;font-weight:600;color:#9aa1ab;letter-spacing:0}
.ticket .elapsed{
  font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 8px;white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.ticket .elapsed.live{background:#dbeafe;color:#1e40af}
.ticket .elapsed.done{background:#dcfce7;color:#166534}

/* ===== 已暂停状态 ===== */
.pill.已暂停{background:#fef3c7;color:#92400e}
.btn.amber{background:#f59e0b;color:#fff}
.btn.red{background:#dc2626;color:#fff}
.timer-card.paused{background:#fffbeb;border:1px solid #fde68a}
.timer-card.paused .timer-val{color:#b45309}
.elapsed.paused{background:#fef3c7;color:#92400e}

/* ===== 工单详情：报修内容大字 + 计时小标签 ===== */
.ticket-desc{
  margin-top:14px;
  font-size:22px;
  font-weight:700;
  line-height:1.45;
  color:#0f172a;
  letter-spacing:.2px;
  white-space:pre-wrap;
  word-break:break-word;
}
.timer-mini{
  font-size:11.5px;font-weight:600;padding:2px 9px;border-radius:999px;
  font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:.2px;
}
.timer-mini.running{background:#eff6ff;color:#1d4ed8}
.timer-mini.paused{background:#fffbeb;color:#b45309}
.timer-mini.done{background:#f0fdf4;color:#15803d}
@media (max-width:360px){
  .ticket-desc{font-size:20px}
}

/* ===== 禁止横向晃动 / 橡皮筋（前后台通用） ===== */
html{
  overflow-x:hidden;
  overscroll-behavior:none;      /* 关掉 iOS 橡皮筋与下拉刷新 */
  -webkit-overflow-scrolling:auto;
}
body{
  overflow-x:hidden;
  max-width:100%;
  overscroll-behavior-x:none;
  position:relative;
}
/* 内容容器不得溢出视口 */
.wrap,.topwrap{max-width:100%;box-sizing:border-box}
/* 楼层索引允许在自身内部横向滑动，但不带动整页 */
.floorbar{
  touch-action:pan-x;
  overscroll-behavior-x:contain;
}
/* 长文本/长串不撑破容器（防止出现横向滚动条） */
.kv > span,.kv > b,
.row-item > div,
.ticket .desc,.ticket .row1,.ticket .row3,
.ticket-desc,.hint,.banner > div{
  min-width:0;
  overflow-wrap:break-word;
  word-break:break-word;
}
/* 输入类元素不超出容器 */
input,textarea,select{max-width:100%}
/* 图片不撑破卡片 */
img{max-width:100%;height:auto}
/* 固定层不引起横向位移 */
.tabbar,.refresh-dock,.fab,.sheet{max-width:100vw}

/* ===== 我的工单卡片：房间号红色加粗 + 编号括弧 ===== */
.ticket .room{display:inline-flex;align-items:baseline;gap:2px;font-size:inherit;font-weight:inherit}
.ticket .rno{
  font-size:20px;font-weight:800;color:#dc2626;letter-spacing:.4px;
  font-variant-numeric:tabular-nums;line-height:1.1;
}
.ticket .rcode{
  font-size:12.5px;font-weight:600;color:#9aa1ab;letter-spacing:0;
}
@media (max-width:360px){
  .ticket .rno{font-size:18px}
  .ticket .rcode{font-size:11.5px}
}

/* ================= 我的工单：适老化放大 ================= */
.page-tickets .topwrap{padding:14px 14px 0}
.page-tickets .sec h2{font-size:20px}
.page-tickets .sec{margin:4px 2px 12px}
.page-tickets .count{font-size:15px}

/* 状态筛选按钮加大 */
.page-tickets .chips{gap:10px}
.page-tickets .chip{
  font-size:16px;
  padding:11px 18px;
  border-radius:999px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
}

/* 工单卡片：面积与字号全面放大 */
.page-tickets .ticket{
  padding:20px 18px;
  border-radius:18px;
  margin-bottom:16px;
  border:1px solid #e6e8ec;
}
.page-tickets .ticket .row1{
  gap:10px;
  margin-bottom:12px;
  flex-wrap:wrap;
  row-gap:9px;
}
.page-tickets .ticket .rno{font-size:28px;letter-spacing:.5px}
.page-tickets .ticket .rcode{font-size:16px}
.page-tickets .ticket .cat{
  font-size:16px;
  padding:4px 11px;
  border-radius:9px;
}
.page-tickets .ticket .pill{
  font-size:16px;
  padding:5px 14px;
}
.page-tickets .ticket .elapsed{
  font-size:15px;
  padding:5px 11px;
}
.page-tickets .ticket .desc{
  font-size:20px;
  line-height:1.55;
  color:#111827;
  -webkit-line-clamp:3;
  margin-top:2px;
}
.page-tickets .ticket .row3{
  font-size:16px;
  margin-top:14px;
  gap:10px;
  color:#5b6472;
}
.page-tickets .empty{font-size:17px;padding:56px 20px}

@media (max-width:360px){
  .page-tickets .ticket .rno{font-size:25px}
  .page-tickets .ticket .desc{font-size:18px}
  .page-tickets .ticket .row3{font-size:15px}
}

/* ===== 我的工单：筛选条紧凑 + 按状态配色 ===== */
.page-tickets .chips{
  flex-wrap:nowrap;
  overflow-x:auto;
  gap:7px;
  margin-bottom:12px;
  padding-bottom:2px;
  scrollbar-width:none;
}
.page-tickets .chips::-webkit-scrollbar{display:none}

.page-tickets .chip{
  flex:none;
  white-space:nowrap;
  font-size:13.5px;
  font-weight:700;
  min-height:34px;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid transparent;
  display:inline-flex;
  align-items:center;
  gap:0;
  background:#f1f3f6;
  color:#4b5563;
}
.page-tickets .chip .fc{
  font-size:11.5px;
  font-weight:800;
  margin-left:4px;
  opacity:.72;
  font-variant-numeric:tabular-nums;
}

/* 背景色与状态标签一一对应 */
.page-tickets .chip[data-f=""]        {background:#eef0f3;color:#374151}
.page-tickets .chip[data-f="待接单"]  {background:#fef3c7;color:#92400e}
.page-tickets .chip[data-f="处理中"]  {background:#dbeafe;color:#1e40af}
.page-tickets .chip[data-f="已暂停"]  {background:#fde68a;color:#78350f}
.page-tickets .chip[data-f="待确认"]  {background:#ede9fe;color:#5b21b6}
.page-tickets .chip[data-f="已完成"]  {background:#dcfce7;color:#166534}

/* 选中：加粗 + 内描边（保持状态色，不变成蓝底） */
.page-tickets .chip.on{
  background:inherit;
  color:inherit;
  font-weight:800;
  box-shadow:inset 0 0 0 2px currentColor;
}

/* 筛选条进一步压缩，确保一行 */
.page-tickets .chips{gap:6px}
.page-tickets .chip{
  font-size:12.5px;
  padding:5px 9px;
  min-height:32px;
  letter-spacing:0;
}
.page-tickets .chip .fc{font-size:10.5px;margin-left:3px}

/* ================================================================
   全局适老化（所有前端 + 后台页面）
   目标：正文字号 ≥16px、按钮高度 ≥44px、关键数字更大
   ================================================================ */
body{font-size:18px}

/* ---- 顶栏 ---- */
.topbar{padding:14px 16px}
.topbar h1{font-size:20px}
.topbar .sub{font-size:14px}
.iconbtn{font-size:16px;padding:11px 15px;border-radius:12px}

/* ---- 分段控件 ---- */
.seg{border-radius:15px;padding:4px}
.seg button{font-size:17px;padding:13px 8px;border-radius:12px}

/* ---- 搜索框 ---- */
.searchbar input{font-size:18px;padding:16px 15px;border-radius:14px}

/* ---- 楼层索引 ---- */
.floorbar .chip{font-size:15px;padding:10px 16px;min-height:42px}
.floorbar{gap:9px;padding:2px 14px 12px}

/* ---- 房态卡片 ---- */
.rooms{gap:8px;grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}
.room{padding:10px 11px 12px;border-radius:12px}
.room .no{font-size:22px}
.room .no .code{font-size:14px}
.room .st{font-size:14px;line-height:1.28}
.floorhead{font-size:15.5px;margin:13px 2px 8px}
.floorhead .cnt{font-size:13px}
.sec h2{font-size:17px}
.sec .count{font-size:14px}

/* ---- 工单卡片（全站统一放大） ---- */
.ticket{padding:18px 16px;border-radius:16px;margin-bottom:14px;border:1px solid #e6e8ec}
.ticket .row1{gap:9px;margin-bottom:10px;flex-wrap:wrap;row-gap:8px}
.ticket .rno{font-size:26px}
.ticket .rcode,.ticket .room .code{font-size:15px}
.ticket .cat{font-size:15px;padding:4px 10px;border-radius:8px}
.ticket .pill{font-size:15px;padding:4px 12px}
.ticket .elapsed{font-size:14px;padding:4px 10px}
.ticket .desc{font-size:19px;line-height:1.5;color:#111827;-webkit-line-clamp:3}
.ticket .row3{font-size:15px;margin-top:12px;gap:9px;color:#5b6472}

/* ---- 通用小胶囊 / 按钮 ---- */
.chip{font-size:16px;padding:10px 17px;min-height:42px}
.btn{font-size:18px;padding:17px;border-radius:14px}
.btnrow{gap:12px}

/* ---- 表单 ---- */
label{font-size:15px}
input[type=text],input[type=number],input[type=tel],input[type=search],textarea,select{
  font-size:18px;padding:15px 14px;border-radius:13px;
}
textarea{min-height:110px}
.photo-pick{font-size:15px;padding:18px}

/* ---- 底部导航与浮动按钮 ---- */
.tabbar a{font-size:13.5px;padding:6px 0}
.tabbar a span{font-size:24px}
.tabbar .navgap{flex:0 0 172px;max-width:172px}
.fab{font-size:20px;padding:18px 40px;min-width:172px;border-radius:999px}
.rf-btn{width:50px;height:50px;font-size:22px}
.rf-time{font-size:12px;padding:2px 9px}

/* ---- 弹层 ---- */
.sheet h3{font-size:23px}
.sheet .hint{font-size:15px;line-height:1.5}

/* ---- 工单详情 ---- */
.ticket-desc{font-size:24px;line-height:1.45}
.timer-mini{font-size:14px;padding:4px 11px}
.timeline .tl-item .t{font-size:15px}
.timeline .tl-item .m{font-size:13.5px}
.banner{font-size:15px;padding:13px 14px}

/* ---- 后台 ---- */
.kv{font-size:16px;padding:11px 0}
.row-item{padding:14px 0}
.row-item > div{font-size:16px}
.mini{font-size:14.5px;padding:9px 13px;border-radius:10px}
.perm{font-size:15px;padding:12px 12px;border-radius:11px}
.perm input{width:19px;height:19px}
.metric{padding:17px}
.metric .v{font-size:29px}
.metric .k{font-size:14px}
.rolechip{font-size:15px;padding:8px 8px 8px 14px}
.rolechip .rc-cnt{font-size:12.5px}
.rolechip .rc-del{width:24px;height:24px;font-size:15px}
.bar{font-size:15px}
.trend{height:110px}

/* 小屏兜底：避免放大后换行过乱 */
@media (max-width:360px){
  body{font-size:17px}
  .room .no{font-size:20px}
  .ticket .rno{font-size:23px}
  .ticket .desc{font-size:17.5px}
  .fab{font-size:18px;padding:16px 30px;min-width:150px}
  .tabbar .navgap{flex:0 0 152px;max-width:152px}
}

/* 我的工单筛选条：全局放大后仍保持紧凑一行 */
.page-tickets .chips .chip{font-size:12.5px;padding:5px 9px;min-height:32px;font-weight:700}
.page-tickets .chips .chip .fc{font-size:10.5px;margin-left:3px}

/* ================= 登录页 ================= */
.page-login{
  display:flex;align-items:center;justify-content:center;min-height:100vh;
  background:linear-gradient(160deg,#eff6ff 0%,#f8fafc 45%,#f0fdf4 100%);
  padding:0;margin:0;
}
.login-wrap{width:100%;max-width:430px;padding:24px 20px}
.login-card{
  background:#fff;border-radius:22px;padding:34px 26px 28px;
  box-shadow:0 12px 44px rgba(15,23,42,.10);border:1px solid #e8ecf1;
}
.login-logo{font-size:46px;text-align:center;line-height:1}
.login-title{font-size:26px;font-weight:800;text-align:center;margin:12px 0 4px;letter-spacing:1.5px;color:#0f172a}
.login-sub{text-align:center;color:var(--muted);font-size:16px;margin-bottom:26px}
.login-btn{margin-top:8px;letter-spacing:3px;font-size:20px;padding:18px;border-radius:14px}
.login-err{color:var(--red);font-size:15px;text-align:center;margin-top:14px;min-height:22px;font-weight:700}
.login-hint{
  margin-top:24px;padding-top:18px;border-top:1px dashed var(--line);
  font-size:13.5px;color:var(--muted);text-align:center;line-height:1.9;
}
.login-hint b{color:#374151;font-weight:700}
.page-login .field{margin-bottom:18px}
.page-login input{font-size:19px;padding:16px 15px}

/* 当前登录用户 */
.me-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0}
.me-name{font-size:17px;font-weight:800;color:#0f172a}
.me-role{font-size:13px;color:var(--muted)}

/* 登录页标题（单行：维修工单 掌宿新街口店） */
.login-title{
  font-size:23px;
  font-weight:800;
  text-align:center;
  margin:12px 0 24px;
  letter-spacing:.5px;
  color:#0f172a;
  line-height:1.35;
}
.login-title .brand-lite{font-weight:700;color:#334155}
@media (max-width:380px){
  .login-title{font-size:20px;letter-spacing:0}
}
