/* 极速流转 · 全站共享样式（报修端 / 工作人员端 / 管理员端）
   ------------------------------------------------------------------
   单一来源：三个页面都 <link> 这一个文件，不许再各自内联一套（旧版就是这么烂掉的）。
   ⚠️ 第一条 [hidden] 是铁律：下面给 .ovl/.sheet 等设了 display，优先级会压过浏览器
   默认的 [hidden]{display:none}，不写这条遮罩会永远盖住全屏、整页点不动。 */
/* ⚠️ 铁律：下面给 .ovl / .sheet 等设了 display，优先级会压过浏览器默认的 [hidden]{display:none}，
   不写这一条，遮罩会永远盖住全屏、整个页面点不动（踩过）。 */
[hidden]{display:none !important}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;height:100%}
body{
  background:#f2f5fa;color:#16202e;
  font:15px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;overscroll-behavior-y:contain;
}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
input,textarea{font:inherit;color:inherit}
:root{--accent:#2f7bee;--accent-d:#1f63cd;--red:#e5484d;--amber:#e08a00;--grey:#8b97a8;--line:#e4e9f2;--card:#fff}

/* ---------- 顶栏 ---------- */
.nav{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;
  height:52px;padding:0 14px;padding-top:env(safe-area-inset-top);
  background:rgba(255,255,255,.94);backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.nav b{font-size:17px;font-weight:700;letter-spacing:.3px}
.nav .sub{font-size:12px;color:var(--grey);margin-left:2px}
.nav .sp{flex:1}
.nav .ic{
  position:relative;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
  color:#4a586b;font-size:19px;
}
.nav .ic:active{background:#eef2f9}
.nav .dot{
  position:absolute;top:5px;right:5px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;
  background:var(--red);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;
}

/* ---------- 布局 ---------- */
/* ⚠️ width:100% 不能省：父级 .screen 是竖向 flex 容器，而 flex 子项一旦带
   margin:auto 就会被按**内容宽度**收缩、不再拉伸 —— 手机上内容只有 322px 宽，
   两侧露灰边（用户说的"太窄"就是这个）。给个明确宽度，再用 auto margin 居中。 */
.wrap{width:100%;max-width:680px;margin:0 auto;padding:0 16px 28px}
}
.screen{display:flex;flex-direction:column;min-height:calc(100vh - 52px);min-height:calc(100dvh - 52px)}

/* ---------- 定位条 ---------- */
.locbar{
  display:flex;align-items:center;gap:10px;margin:12px 0 0;
  background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px 14px;
  box-shadow:0 1px 2px rgba(21,35,60,.04);
}
.locbar .pin{font-size:20px;flex:0 0 auto}
.locbar .txt{flex:1;min-width:0}
.locbar .txt b{display:block;font-size:16px;font-weight:650;line-height:1.35}
.locbar .txt i{font-style:normal;font-size:12px;color:var(--grey)}
.locbar .chg{flex:0 0 auto;font-size:13px;color:var(--accent);font-weight:600;padding:6px 2px}

/* ---------- 紧急条 ---------- */
/* 紧急条：文案在上、拨号按钮在下（按钮独占一行，拇指更好按，也不会被长文案挤变形） */
/* 紧急条：压成一行。号码本身就是 tel: 链接（点一下就拨），
   不用再单独摆一个占一整行的大按钮 —— 那玩意儿太占地方了。 */
.emg{
  display:flex;align-items:flex-start;gap:2px;margin:12px 0 0;
  background:#fff1f1;border:1px solid #ffd4d5;border-radius:11px;padding:8px 11px;
  font-size:12.5px;color:#a52327;line-height:1.5;
}
.emg.hot{background:#e5484d;border-color:#e5484d;color:#fff;animation:pulsebg 1.4s ease-in-out infinite}
@keyframes pulsebg{0%,100%{box-shadow:0 0 0 0 rgba(229,72,77,.5)}50%{box-shadow:0 0 0 10px rgba(229,72,77,0)}}
.emg .t{flex:1;min-width:0}
.emg .t b{font-weight:700}
.emg a.call{
  flex:0 0 auto;color:#c9282d;font-weight:700;font-size:13.5px;
  text-decoration:none;white-space:nowrap;
  border-bottom:1.5px solid rgba(200,40,45,.3);padding-bottom:1px;
}
.emg.hot a.call{color:#fff;border-bottom-color:rgba(255,255,255,.5)}

/* ---------- 大按钮区 ---------- */
.hero{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:18px 0 6px}
.talk{
  width:158px;height:158px;border-radius:50%;position:relative;
  background:radial-gradient(circle at 50% 34%,#5b9bff,#2f7bee 62%,#1f63cd);
  color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  box-shadow:0 12px 30px rgba(47,123,238,.35),inset 0 -3px 12px rgba(0,0,0,.14);
  /* manipulation = 允许点按、禁止双击缩放，比 none 更不容易把 click 吃掉；
     touch-callout 关掉系统长按菜单（小米的「标记广告」就是从这儿来的） */
  touch-action:manipulation;
  -webkit-touch-callout:none;
  user-select:none;-webkit-user-select:none;-webkit-user-drag:none;
  transition:transform .12s;
}
.talk:active{transform:scale(.96)}
.talk .mic{font-size:46px;line-height:1}
.talk .lb{font-size:14px;font-weight:600;opacity:.95}
.talk.pressing{transform:scale(.94)}
.talk.cancel-zone{background:radial-gradient(circle at 50% 34%,#ff8a8e,#e5484d 62%,#b32b30)}
.talk:disabled{filter:grayscale(.5);opacity:.7}
.talkhint{font-size:13.5px;color:#5b6a7e;text-align:center;line-height:1.5}
.talkhint b{color:var(--accent)}

.row2{display:flex;gap:10px;width:100%;max-width:340px}
.big2{
  flex:1;height:56px;border-radius:16px;background:var(--card);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;gap:7px;font-size:15px;font-weight:600;
  box-shadow:0 1px 2px rgba(21,35,60,.04);
  touch-action:manipulation;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;
}
.big2:active,.big2.pressing{background:#eef3fb;border-color:#c9dcfa}
.big2 .e{font-size:19px}

/* ---------- 最近工单 ---------- */
.recent{margin-top:14px}
.recent .hd{display:flex;align-items:center;gap:8px;margin:0 2px 8px}
.recent .hd b{font-size:13.5px;color:#5b6a7e;font-weight:600}
.recent .hd a{margin-left:auto;font-size:13px;color:var(--accent);text-decoration:none;font-weight:600}

/* ---------- 卡片 ---------- */
.card{
  background:var(--card);border:1px solid var(--line);border-radius:16px;padding:13px 14px;
  box-shadow:0 1px 2px rgba(21,35,60,.04);margin-bottom:10px;
}
.card.tap:active{background:#f7f9fd}
.card .top{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:5px}
.card .meta{font-size:12px;color:var(--grey);display:flex;gap:8px;flex-wrap:wrap}
.card .no{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;color:#7b8798}
.card .desc{font-size:14px;margin:6px 0 2px;line-height:1.5;word-break:break-word}
.card .who{font-size:12px;color:var(--grey);margin-top:4px}

.tag{display:inline-flex;align-items:center;height:21px;padding:0 8px;border-radius:7px;font-size:11.5px;font-weight:600}
.t-amber{background:#fff5e6;color:#a96500}
.t-blue{background:#eaf2ff;color:#1d5fc4}
.t-red{background:#ffeded;color:#c9282d}
.t-grey{background:#eef1f5;color:#64707f}
.t-green{background:#e9f7ee;color:#1a7f45}

/* ---------- 按钮 ---------- */
.btn{
  height:46px;padding:0 18px;border-radius:13px;background:var(--accent);color:#fff;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
}
.btn:active{background:var(--accent-d)}
.btn.ghost{background:#eef2f9;color:#3d4a5c}
.btn.ghost:active{background:#e2e8f3}
.btn.wide{width:100%}
.btn.sm{height:36px;padding:0 13px;font-size:13.5px;border-radius:11px}
.btn.danger{background:#fff0f0;color:#c9282d}
.btn[disabled]{opacity:.55}
.btnrow{display:flex;gap:9px;flex-wrap:wrap}

/* ---------- 表单 ---------- */
.field{margin-bottom:13px}
.field>label{display:block;font-size:13px;color:#5b6a7e;font-weight:600;margin-bottom:6px}
.field .req{color:var(--red)}
.inp{
  width:100%;min-height:46px;padding:12px 13px;border-radius:13px;border:1px solid var(--line);
  background:#fff;outline:0;resize:vertical;
}
.inp:focus{border-color:#a9c9f7;box-shadow:0 0 0 3px rgba(47,123,238,.12)}
textarea.inp{line-height:1.55}
.seg{display:flex;gap:7px}
.seg button{
  flex:1;height:44px;border-radius:12px;background:#fff;border:1px solid var(--line);
  font-size:14px;font-weight:600;color:#5b6a7e;
}
.seg button.on{background:#eaf2ff;border-color:#a9c9f7;color:var(--accent-d)}
.seg button.on.crit{background:#ffeded;border-color:#ffc9cb;color:#c9282d}

/* ---------- 照片 ---------- */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ph{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#eef1f5}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.ph .del{
  position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;
  background:rgba(0,0,0,.55);color:#fff;font-size:13px;line-height:22px;text-align:center;
}
.ph.add{border:1px dashed #c3ccdb;background:#fafbfe;display:grid;place-items:center;color:#8b97a8;font-size:24px}

/* ---------- 录音浮层 ---------- */
.ovl{position:fixed;inset:0;z-index:60;background:rgba(12,20,33,.55);display:flex;align-items:flex-end;justify-content:center}
/* 语音输入浮层：一张安静的白卡片，不是录音机。
   刻意的取舍 —— 没有声波、没有红色录制点、没有大倒计时。 */
.recovl{
  position:fixed;inset:0;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:70;
  background:rgba(12,20,33,.55);
  display:flex;align-items:center;justify-content:center;padding:22px;
  /* 长按防护三件套：防系统长按菜单（小米的「标记广告」）、防选中、防拖拽 */
  touch-action:none;
  -webkit-touch-callout:none;
  -webkit-user-select:none;user-select:none;
}
.reccard{
  background:#fff;border-radius:22px;padding:26px 22px 16px;width:100%;max-width:332px;
  text-align:center;box-shadow:0 18px 48px rgba(10,20,40,.3);
}
.recicon{
  width:64px;height:64px;border-radius:50%;margin:0 auto 14px;
  background:#eaf2ff;color:#2f7bee;font-size:29px;display:grid;place-items:center;
  animation:recsoft 1.9s ease-in-out infinite;
}
@keyframes recsoft{
  0%,100%{box-shadow:0 0 0 0 rgba(47,123,238,.3)}
  50%{box-shadow:0 0 0 13px rgba(47,123,238,0)}
}
.recmain{font-size:18px;font-weight:650;color:#16202e;line-height:1.35}
.recsec{font-size:12.5px;color:#9aa5b4;font-variant-numeric:tabular-nums;margin-top:4px}
.reclive{
  font-size:14px;color:#3d4a5c;line-height:1.5;margin-top:10px;padding:9px 11px;
  background:#f5f8fd;border-radius:11px;min-height:38px;text-align:left;word-break:break-word;
}
.recok{
  width:100%;height:52px;border-radius:15px;background:#2f7bee;color:#fff;
  font-size:16.5px;font-weight:650;margin-top:18px;
}
.recok:active{background:#1f63cd}
.recx{margin-top:4px;color:#9aa5b4;font-size:14px;padding:10px 18px;width:100%}

/* ---------- 提交成功 ---------- */
.done{position:fixed;inset:0;z-index:65;background:rgba(12,20,33,.5);display:flex;align-items:center;justify-content:center;padding:20px}
.done .box{background:#fff;border-radius:22px;padding:26px 22px 20px;text-align:center;width:100%;max-width:350px;animation:pop .22s ease-out}
@keyframes pop{from{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}
.done .ic{width:66px;height:66px;border-radius:50%;background:#e9f7ee;color:#1a7f45;font-size:34px;display:grid;place-items:center;margin:0 auto 12px}
.done .ic.merge{background:#eaf2ff;color:var(--accent-d)}
.done h3{margin:0 0 6px;font-size:19px}
.done p{margin:0 0 4px;font-size:14px;color:#5b6a7e;line-height:1.55}
.done .no{font-family:ui-monospace,Menlo,monospace;font-size:15px;color:#16202e;font-weight:650;margin:8px 0 2px;word-break:break-all}
.done .acts{display:flex;gap:9px;margin-top:16px}
.done .acts .btn{flex:1}
/* 已删除：.said（"只保存了文字，声音没有留下"）、.undobar（3 秒撤销条）、.recprivacy。
   都是同一类毛病——反复强调"不留声音"，其实没人关心；而 3 秒倒计时根本来不及反应，
   撤回改成在工单进度页里做。 */

/* ---------- sheet / 弹窗 ---------- */
.sheet{
  background:#fff;border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));
  width:100%;max-width:560px;max-height:82vh;max-height:82dvh;overflow:auto;animation:up .2s ease-out;
}
@keyframes up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
.sheet-h{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.sheet-h b{font-size:16.5px;flex:1;min-width:0}
.sheet-h .x{width:34px;height:34px;border-radius:10px;color:var(--grey);font-size:17px;flex:0 0 auto}
.sheet-hint{font-size:13px;color:#5b6a7e;line-height:1.55;margin:-4px 0 12px}
.sheet-b{display:flex;gap:9px;margin-top:16px}
.sheet-b .btn{flex:1}
.picklist{max-height:56vh;overflow:auto;margin:0 -6px}
.pickrow{
  display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;
  padding:12px 10px;border-radius:12px;border-bottom:1px solid #f1f4f9;
}
.pickrow:active{background:#f2f6fd}
.pickrow span{font-size:15px}
.pickrow em{font-style:normal;font-size:12px;color:var(--grey)}

/* ---------- 详情时间轴 ---------- */
.tl{position:relative;padding-left:22px;margin-top:6px}
.tl:before{content:'';position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:#e7ecf5}
.tl .ev{position:relative;padding:0 0 16px}
.tl .ev:before{content:'';position:absolute;left:-22px;top:5px;width:10px;height:10px;border-radius:50%;background:#c9d5e8;border:2px solid #fff;box-shadow:0 0 0 2px #e7ecf5}
.tl .ev.first:before{background:#2f7bee}
.tl .ev b{font-size:14px;font-weight:650}
.tl .ev .tm{font-size:11.5px;color:var(--grey);margin-left:7px;font-weight:400}
.tl .ev p{margin:3px 0 0;font-size:13.5px;color:#5b6a7e;line-height:1.55;word-break:break-word}
.tl .ev .who{font-size:11.5px;color:#9aa5b4;margin-top:3px}
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:7px}
.pgrid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;display:block}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.compare .col{min-width:0}
.compare .col p{font-size:12px;color:var(--grey);margin:0 0 5px;text-align:center}
.compare .col .pgrid{grid-template-columns:1fr}

/* ---------- 空态 ---------- */
.empty{text-align:center;padding:54px 20px;color:var(--grey)}
.empty .e{font-size:40px;opacity:.5}
.empty p{margin:10px 0 0;font-size:14px}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(14px);
  background:rgba(22,32,46,.94);color:#fff;font-size:14px;padding:11px 17px;border-radius:13px;
  max-width:86%;text-align:center;line-height:1.5;z-index:90;opacity:0;transition:.22s;pointer-events:none;
}
.toast.on{opacity:1;transform:translateX(-50%)}
.spin{display:inline-block;width:15px;height:15px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:sp .7s linear infinite;vertical-align:-2px}
@keyframes sp{to{transform:rotate(360deg)}}

.note{font-size:12.5px;color:var(--grey);line-height:1.55;margin-top:8px}
.secttl{font-size:13.5px;color:#5b6a7e;font-weight:600;margin:16px 2px 8px}
audio{width:100%;height:38px;margin-top:6px}

/* ---------- 不用麦克风权限的两种输入方式（键盘语音 / 系统录音机） ---------- */
.timerow{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}
.timerow .tbtn{
  flex:1;min-width:146px;height:42px;justify-content:center;
  background:#eef2f9;border-radius:12px;color:#3d4a5c;font-weight:600;
}
.timerow .tbtn:active{background:#e2e8f3}
/* 已知这台手机不给网页麦克风时，大按钮变灰一点（仍然可以点，用户也可能换浏览器了） */
.talk.off{background:radial-gradient(circle at 50% 34%,#8fa4c4,#6b7f9c 62%,#5a6c86);box-shadow:0 10px 24px rgba(90,108,134,.26)}

/* ---------- 首次开启麦克风的引导卡 ----------
   在用户「按住说话」之前，用一次明确的点击把权限拿到手。
   否则第一次按住时系统弹授权框，用户必须抬手去点「允许」，
   一抬手就等于松手结束 —— 录制还没开始就结束了。 */
.micask{
  display:flex;align-items:center;gap:10px;width:100%;max-width:340px;
  background:#fff;border:1px solid #c9dcfa;border-radius:14px;padding:11px 12px;
  box-shadow:0 1px 3px rgba(47,123,238,.1);margin-bottom:4px;
}
.micask .t{flex:1;min-width:0}
.micask .t b{display:block;font-size:14px;font-weight:650}
.micask .t span{font-size:11.5px;color:#8b97a8;line-height:1.45;display:block;margin-top:1px}
.micask .btn{flex:0 0 auto;height:38px;padding:0 15px;border-radius:11px;font-size:14px}

/* ==================================================================
 * 首页动线：① 拍照 → ② 描述 → ③ 提交
 * 语音只是「填写描述」的一种输入方式（和打字并列），所以不做成首屏大按钮。
 * ================================================================== */
.secttl{
  display:flex;align-items:center;gap:7px;margin:16px 2px 9px;
  font-size:14px;color:#3d4a5c;font-weight:650;
}
.secttl .num{
  width:20px;height:20px;border-radius:50%;background:#2f7bee;color:#fff;
  font-size:12px;font-weight:700;display:grid;place-items:center;flex:0 0 auto;
}
.secttl em{font-style:normal;font-size:12px;color:#9aa5b4;font-weight:400;margin-left:1px}

/* 拍照入口：标题行里的一个小胶囊。
   原来是一整行 64px 高的大按钮 + 📷 emoji —— 白占一整行，看着也廉价；
   有照片之后那个大按钮还在，就更浪费了。现在点它才调起相机。 */
.addshot{
  margin-left:auto;display:inline-flex;align-items:center;gap:3px;
  height:28px;padding:0 12px;border-radius:999px;
  background:#eef4ff;border:1px solid #c9dcfa;color:#2f7bee;
  font-size:12.5px;font-weight:650;white-space:nowrap;
  touch-action:manipulation;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;
}
.addshot .plus{font-size:15px;font-weight:700;line-height:1}
.addshot:active{background:#dbe8ff;border-color:#9cc2f7}

.thumbbox{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.thumb{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#eef1f5}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
/* 照片正在压缩时的占位：先让格子出现，图随后就换上（不给用户"卡住了"的感觉）。
   ⚠️ 别用 .spin 这个名字：全局的 .spin 是白色的（给 toast/按钮里的转圈用），
   在这里会把蓝色转圈覆盖成白的，白底上就看不见了。 */
.thumb.wait{background:#e8eef7}
.thumb .ph{position:absolute;inset:0;display:grid;place-items:center}
.thumb .ph .pspin{
  display:block;width:17px;height:17px;border-radius:50%;
  border:2px solid rgba(47,123,238,.22);border-top-color:#2f7bee;
  animation:pspin .7s linear infinite;
}
@keyframes pspin{to{transform:rotate(360deg)}}
.thumb .del{
  position:absolute;top:3px;right:3px;width:23px;height:23px;border-radius:50%;
  background:rgba(0,0,0,.58);color:#fff;font-size:13px;line-height:23px;text-align:center;
  touch-action:manipulation;
}

.descwrap{
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 13px;
  box-shadow:0 1px 2px rgba(21,35,60,.04);
}
.descinp{
  border:0;background:none;padding:0;min-height:78px;width:100%;
  font-size:16px;line-height:1.6;resize:none;
}
.descinp:focus{box-shadow:none}
.descrow{
  display:flex;align-items:center;gap:9px;margin-top:8px;padding-top:10px;
  border-top:1px solid var(--line-soft);flex-wrap:wrap;
}
.descrow .tbtn{
  flex:0 0 auto;height:40px;padding:0 14px;border-radius:11px;
  background:#eaf2ff;color:#1f63cd;font-weight:650;font-size:14.5px;
}
/* 只在「这台手机确实拿不到麦克风」时才出现的替代指引，不是常驻文案 */
.descnote{font-size:11.5px;line-height:1.45;margin-top:8px}
.descnote.warn{color:#c07a00}
/* 「语音识别中…」小字条：识别在后台跑，用户不用干等。做完就 hidden。 */
.voicechip{font-size:11.5px;color:#2f7bee;display:inline-flex;align-items:center;gap:5px;
  white-space:nowrap;animation:pulse 1.2s ease-in-out infinite}
.voicechip::before{content:'';width:6px;height:6px;border-radius:50%;background:#2f7bee;flex:0 0 auto}
@keyframes pulse{0%,100%{opacity:.55}50%{opacity:1}}

.gobtn{
  width:100%;height:54px;border-radius:16px;background:#2f7bee;color:#fff;
  font-size:17px;font-weight:650;margin-top:18px;
  box-shadow:0 6px 18px rgba(47,123,238,.26);
}
.gobtn:active{background:#1f63cd}
.gobtn[disabled]{background:#dde4ef;color:#95a3b6;box-shadow:none}

/* 首页不再放「工作人员入口」：工作人员走独立端口 /staff.html，报修端只服务报修人 */

/* ==================================================================
 * 以下为工作人员端 / 管理员端额外需要的组件（报修端不需要，但放在同一个设计系统里）
 * ================================================================== */

/* ---------- 底部标签栏（工作人员端手机用） ---------- */
/* ⚠️ 必须 fixed 而不是 sticky：内容不满一屏时 sticky 会停在文档流里，
   标签栏就浮在屏幕中间（踩过）。fixed 后由 .jobwrap 的 padding-bottom 留出位置。 */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:15;display:flex;background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(12px);border-top:1px solid var(--line);
  padding-bottom:env(safe-area-inset-bottom);
}
.tabbar button{flex:1;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#8b97a8;font-size:11px;position:relative}
.tabbar button .e{font-size:19px;line-height:1}
.tabbar button.on{color:var(--accent)}
.tabbar .dot{position:absolute;top:6px;left:50%;margin-left:6px;min-width:15px;height:15px;padding:0 4px;border-radius:8px;background:var(--red);color:#fff;font-size:10px;font-weight:700;line-height:15px;text-align:center}

/* ---------- 顶部标签（分段控件） ---------- */
.tabs{display:flex;gap:6px;background:#e9eef7;padding:4px;border-radius:13px;margin:12px 0}
.tabs button{flex:1;height:36px;border-radius:10px;font-size:13.5px;font-weight:600;color:#5b6a7e}
.tabs button.on{background:#fff;color:#16202e;box-shadow:0 1px 3px rgba(21,35,60,.1)}

/* ---------- 工单卡（工作人员端） ---------- */
.job{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 14px;margin-bottom:10px;box-shadow:0 1px 2px rgba(21,35,60,.05);position:relative}
.job.hot{border-color:#ffc9cb;background:linear-gradient(#fff,#fff7f7)}
.job.warn{border-color:#ffe0b2}
.job .no{font-family:ui-monospace,Menlo,monospace;font-size:11px;color:#9aa5b4}
.job .loc{font-size:16px;font-weight:650;margin:4px 0 3px;line-height:1.35}
.job .say{font-size:14px;color:#3d4a5c;line-height:1.5;margin:5px 0;word-break:break-word}
.job .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
.job .photo{width:60px;height:60px;border-radius:10px;object-fit:cover}
.job .acts{display:flex;gap:8px;margin-top:11px;flex-wrap:wrap}
.job .acts .btn{flex:1;min-width:88px}
.job.finished{opacity:.72}

/* ---------- 登录 ---------- */
.login{max-width:380px;margin:9vh auto;padding:0 18px}
.login .logo{width:66px;height:66px;border-radius:19px;background:linear-gradient(160deg,#5b9bff,#1f63cd);color:#fff;font-size:31px;display:grid;place-items:center;margin:0 auto 14px}
.login h1{font-size:21px;text-align:center;margin:0 0 5px}
.login p.sub{text-align:center;color:#8b97a8;font-size:13px;margin:0 0 22px}

/* ---------- 管理台 ---------- */
.desk{display:flex;min-height:100vh}
.side{
  width:196px;flex:0 0 auto;background:#16202e;color:#c9d3e2;padding:16px 12px;
  display:flex;flex-direction:column;gap:3px;position:sticky;top:0;height:100vh;
}
.side .brand{display:flex;align-items:center;gap:9px;padding:6px 10px 16px;font-weight:700;color:#fff;font-size:15px}
.side .brand i{width:26px;height:26px;border-radius:8px;background:linear-gradient(160deg,#5b9bff,#1f63cd);display:grid;place-items:center;font-style:normal;font-size:14px}
.side a{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:10px;color:#c9d3e2;text-decoration:none;font-size:14px;cursor:pointer}
.side a:hover{background:rgba(255,255,255,.06)}
.side a.on{background:var(--accent);color:#fff;font-weight:600}
.side .sp{flex:1}
.side .me{font-size:12px;color:#8b97a8;padding:8px 11px}
.main{flex:1;min-width:0;padding:18px 20px 40px}
.hd{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.hd h2{margin:0;font-size:19px}
.hd .sp{flex:1}

.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:12px;margin-bottom:16px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 15px}
.kpi .n{font-size:26px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.15}
/* 时长类的值是「不到 1 分钟」这种长文本，26px 会撑成两行把卡片顶歪 */
.kpi .n.sm{font-size:18px;line-height:1.35;padding-top:5px}
.kpi .k{font-size:12.5px;color:#8b97a8;margin-top:2px}
.kpi.hot .n{color:var(--red)}
.kpi.good .n{color:#1a7f45}

.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-bottom:14px}
.panel h3{margin:0 0 11px;font-size:15px}

/* 窄屏时不要硬挤：给个最小宽度让它横向滚动，胜过把「已完结」压成竖排三行 */
table.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
/* 保底宽度和 nowrap 只给工单大表（它在 .tblwrap 自己的盒子里横向滚，不会把页面撑破）。
   ⚠️ 以前这两条是全局的：设置页、看板、点位与人员的表在手机上全被顶出横向滚动（踩过）。
   其余表格一律流式 + 换行适应。 */
.tblwrap table.tbl{min-width:940px}
.tblwrap table.tbl td:nth-child(2),.tblwrap table.tbl td:nth-child(3),.tblwrap table.tbl td:nth-child(4),
.tblwrap table.tbl td:nth-child(6),.tblwrap table.tbl td:nth-child(7),.tblwrap table.tbl td:nth-child(8){white-space:nowrap}
.tblwrap table.tbl td:nth-child(5){min-width:280px}
table.tbl th{
  text-align:left;font-weight:600;color:#8b97a8;font-size:12px;padding:9px 8px;
  border-bottom:1px solid var(--line);white-space:nowrap;position:sticky;top:0;background:#fff;
}
table.tbl td{padding:10px 8px;border-bottom:1px solid #f1f4f9;vertical-align:top}
table.tbl tr:hover td{background:#fafcff}
table.tbl tr.hot td{background:#fff8f8}
table.tbl .mono{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#5b6a7e}
.tblwrap{max-height:62vh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.chk{width:16px;height:16px}

.filters{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.filters select,.filters input{font:inherit;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:#fff;min-width:0}
.filters input[type=search]{width:200px}

.chart{display:flex;align-items:flex-end;gap:6px;height:132px;padding-top:8px}
.chart .b{flex:1;background:linear-gradient(#8fbaff,#2f7bee);border-radius:6px 6px 0 0;min-height:3px;position:relative}
.chart .b span{position:absolute;bottom:-19px;left:0;right:0;text-align:center;font-size:10.5px;color:#8b97a8}
.bars{display:flex;flex-direction:column;gap:8px}
.bars .r{display:flex;align-items:center;gap:9px;font-size:13px}
.bars .r .nm{width:88px;flex:0 0 auto;color:#5b6a7e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bars .r .bar{flex:1;height:10px;border-radius:6px;background:#eef2f9;overflow:hidden}
.bars .r .bar i{display:block;height:100%;background:var(--accent);border-radius:6px}
.bars .r .v{width:42px;text-align:right;color:#8b97a8;font-variant-numeric:tabular-nums}

/* ---------- 扫码条（工作人员端） ---------- */
.scanbar{
  background:linear-gradient(135deg,#2f7bee,#1f63cd);color:#fff;border-radius:16px;padding:14px;
  margin:12px 0;display:flex;align-items:center;gap:12px;
}
.scanbar .pin{font-size:24px}
.scanbar .t{flex:1;min-width:0}
.scanbar .t b{display:block;font-size:16px;line-height:1.3}
.scanbar .t i{font-style:normal;font-size:12.5px;opacity:.85}
.scanbar button{background:#fff;color:#1f63cd;font-weight:700;padding:9px 15px;border-radius:11px;font-size:13.5px;white-space:nowrap}

/* ---------- 消息 ---------- */
.msgrow{display:flex;gap:10px;padding:12px 2px;border-bottom:1px solid #f1f4f9}
.msgrow .e{font-size:17px;flex:0 0 auto}
.msgrow .t{flex:1;min-width:0}
.msgrow .t b{font-size:14px;display:block}
.msgrow .t p{margin:2px 0 0;font-size:13px;color:#5b6a7e;line-height:1.5;word-break:break-word}
.msgrow .tm{font-size:11.5px;color:#9aa5b4;flex:0 0 auto}
.msgrow.unread{background:#f6faff}
.msgrow.unread .t b:after{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);margin-left:6px;vertical-align:1px}

@media (max-width:760px){
  .desk{flex-direction:column}
  .side{width:auto;height:auto;position:static;flex-direction:row;overflow-x:auto;padding:10px}
  .side .brand{display:none}
  .side .me{display:none}
  .side a{white-space:nowrap;padding:8px 13px}
  .main{padding:14px 12px 40px}
  .filters input[type=search]{width:100%}
}

/* ==================================================================
 * 宽屏自适应（必须放在文件最后：同名规则写在后面才会覆盖前面的组件样式）
 * ================================================================== */
/* 宽屏（平板 / 电脑）自适应：不要留一条 560 的窄条 —— 容器放宽，
   字号、输入框、按钮、照片格一起等比放大，看着才是"这个屏幕该有的比例"。
   手机（<640px）完全不受影响，仍是满宽。 */
@media (min-width:640px){
  .wrap{max-width:820px;padding:0 28px 36px}
  .nav{padding:0 22px;height:60px}
  .nav b{font-size:20px}
  .nav .ic{width:42px;height:42px;font-size:19px}
  .screen{min-height:calc(100vh - 60px);min-height:calc(100dvh - 60px)}
  .locbar{padding:16px 18px;border-radius:18px}
  .locbar .txt b{font-size:18px}
  .locbar .txt i{font-size:13px}
  .secttl{font-size:15.5px;margin:20px 2px 11px}
  .secttl .num{width:23px;height:23px;font-size:13px}
  .addshot{height:32px;padding:0 15px;font-size:13.5px}
  .descinp{min-height:132px;font-size:17px}
  .gobtn{height:58px;font-size:18px;border-radius:18px}
  .thumbbox{grid-template-columns:repeat(6,1fr);gap:10px}
  .emg{font-size:14.5px;padding:12px 16px}
  .foot{font-size:13px}
