* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1f2937; background: #f4f6f9; font-size: 14px;
}
.hidden { display: none !important; }
a { cursor: pointer; text-decoration: none; }

/* 登录（V2.16 参照企业 ERP 左右分栏登录卡：左插画 + 右表单） */
.login-wrap{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:28px 20px;overflow:auto;
  background:
    radial-gradient(1200px 620px at 16% 4%, #2b2263 0%, rgba(43,34,99,0) 58%),
    radial-gradient(900px 520px at 88% 96%, #0e3550 0%, rgba(14,53,80,0) 62%),
    linear-gradient(135deg,#120f2e 0%,#0a1428 55%,#0a1c33 100%);}
.login-wrap::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.15;
  background-image:radial-gradient(rgba(255,255,255,.9) 1px,transparent 1px);background-size:40px 40px}
.login-panel{position:relative;display:grid;grid-template-columns:1.06fr .94fr;width:920px;max-width:94vw;min-height:428px;
  background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 30px 80px rgba(2,9,24,.62)}
.login-visual{position:relative;display:flex;flex-direction:column;justify-content:flex-start;padding:42px 38px;color:#fff;
  background:url('/login-banner.jpg') center/cover no-repeat}
.login-visual::after{content:'';position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(8,36,86,.88) 0%,rgba(10,48,110,.62) 45%,rgba(10,48,110,.18) 100%)}
.login-visual b{position:relative;z-index:2;font-size:30px;font-weight:700;letter-spacing:1px;text-shadow:0 2px 14px rgba(0,0,0,.35)}
.login-visual i{position:relative;z-index:2;font-style:normal;font-size:16px;color:rgba(255,255,255,.94);margin-top:12px;letter-spacing:.5px}
.login-visual span{position:relative;z-index:2;font-size:14px;color:rgba(255,255,255,.8);margin-top:6px}
.login-form{padding:46px 52px 34px;display:flex;flex-direction:column}
.login-form h1{font-size:24px;text-align:center;margin:0 0 7px;letter-spacing:1px;color:#13233c;font-weight:700}
.login-form .sub{text-align:center;color:#8a94a6;font-size:13px;margin:0 0 22px;letter-spacing:.5px}
.login-field{margin-bottom:14px}
.captcha-field{display:flex;gap:10px;align-items:stretch}
.captcha-field input{flex:1;min-width:0}
.captcha-img{width:118px;height:44px;flex:none;border:1px solid #e2e9f4;border-radius:6px;overflow:hidden;
  background:#eef3fa;display:flex;align-items:center;justify-content:center;cursor:pointer}
.captcha-img svg{width:100%;height:100%;display:block}
@media (max-width:880px){ .captcha-img{width:104px} }
.login-form input[type=text],.login-form input[type=password],.login-form input:not([type]){
  width:100%;height:44px;padding:0 14px;background:#eef3fa;border:1px solid #e2e9f4;border-radius:6px;
  font-size:14px;color:#1f2937;transition:.15s}
.login-form input::placeholder{color:#a3adbb}
.login-form input:focus{outline:none;background:#fff;border-color:#8dc6ff;box-shadow:0 0 0 3px rgba(33,150,243,.12)}
.login-hint{font-size:12px;color:#98a2b3;line-height:1.7;margin:0 0 10px}
.login-remember{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#6b7789;margin:0 0 16px;cursor:pointer}
.login-remember input{width:16px;height:16px;accent-color:#2196f3}
.login-btn{width:100%;height:44px;border-radius:6px;font-size:15px;letter-spacing:6px;
  background:linear-gradient(90deg,#1e9bff,#2196f3);box-shadow:0 8px 20px rgba(33,150,243,.26)}
.login-btn:hover{filter:brightness(1.05)}
.login-card .err{color:#dc2626;font-size:12px;min-height:16px;margin:8px 0 0;text-align:center}
.login-links{display:flex;justify-content:center;gap:26px;margin-top:auto;padding-top:16px;font-size:12.5px}
.login-links a{color:#2196f3}
.login-links a:hover{text-decoration:underline}
.login-copyright{color:#8b97ab;font-size:12px;text-align:center;letter-spacing:.3px;position:relative;z-index:2}
@media (max-width:880px){
  .login-panel{grid-template-columns:1fr;width:400px;max-width:92vw;min-height:0}
  .login-visual{padding:20px 24px 18px}
  .login-visual b{font-size:20px}
  .login-visual i{font-size:12.5px;margin-top:6px}
  .login-visual span{font-size:11.5px}
  .login-form{padding:24px 26px 22px}
  .login-form h1{font-size:19px}
}

button { cursor: pointer; border: none; border-radius: 6px; font-size: 13px; font-family: inherit; }
button.primary { background: #2563eb; color: #fff; padding: 9px 18px; }
button.primary:hover { background: #1d4fd8; }
button.ghost { background: #f1f3f7; color: #465162; padding: 9px 18px; }

/* 布局 */
#app { display: flex; height: 100vh; }
.side { width: 196px; background: #16324a; color: #cdd8e4; display: flex; flex-direction: column; }
.brand { padding: 22px 20px 18px; font-size: 16px; font-weight: 600; color: #fff; letter-spacing: .5px; }
.brand small { font-size: 10px; color: #7f9ab2; margin-left: 6px; font-weight: 400; }
nav { flex: 1; min-height: 0; overflow-y: auto; padding-top: 4px; }
nav a { display: block; padding: 12px 22px; color: #b9c9da; font-size: 14px; border-left: 3px solid transparent; }
nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
nav a.on { background: rgba(37,99,235,.22); color: #fff; border-left-color: #4b8ef7; }
.me { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; display: flex; justify-content: space-between; }
.me a { color: #8fb4d6; }

main { flex: 1; overflow: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px; background: #fff; border-bottom: 1px solid #e8ecf3; }
.topbar h2 { margin: 0; font-size: 17px; font-weight: 600; }
.today { color: #8a94a6; font-size: 12px; }

.tab { padding: 20px 26px 40px; }
.tab.on { display: block; }
.tab:not(.on) { display: none; }

/* 统计卡 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr)); gap: 14px; margin-bottom: 18px; }
.card { background: #fff; border-radius: 8px; padding: 16px 18px; border-left: 4px solid #ddd; box-shadow: 0 1px 3px rgba(16,32,56,.05); }
.card em { display: block; font-style: normal; font-size: 26px; font-weight: 600; line-height: 1.2; }
.card span { color: #8a94a6; font-size: 12px; }
.card.blue { border-left-color: #2563eb; } .card.blue em { color: #2563eb; }
.card.red { border-left-color: #dc2626; } .card.red em { color: #dc2626; }
.card.green { border-left-color: #16a34a; } .card.green em { color: #16a34a; }
.card.gray { border-left-color: #94a3b8; } .card.gray em { color: #64748b; }

/* 工具条 */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar button { white-space: nowrap; flex: 0 0 auto; }
.toolbar > .muted { flex: 1 1 240px; min-width: 200px; }
.toolbar input { height: 34px; width: 240px; padding: 0 10px; border: 1px solid #d7dde7; border-radius: 6px; font-size: 13px; }
.toolbar input:focus { outline: none; border-color: #2563eb; }
.chips { display: flex; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #fff; color: #5b6474; font-size: 12px; border: 1px solid #e2e7ef; }
.chip.on { background: #2563eb; color: #fff; border-color: #2563eb; }

/* 表格 */
.table-wrap { background: #fff; border-radius: 8px; overflow: auto; box-shadow: 0 1px 3px rgba(16,32,56,.05); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { background: #f6f8fb; color: #5b6474; font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid #e8ecf3; white-space: nowrap; }
tbody td { padding: 11px 14px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
tbody tr:hover { background: #f8fafd; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 12px; color: #fff; white-space: nowrap; }
.t-today { background: #2563eb; } .t-l1 { background: #eab308; } .t-l2 { background: #f97316; }
.t-l3 { background: #ef4444; } .t-l4 { background: #991b1b; } .t-future { background: #cbd5e1; color: #475569; }
.link { color: #2563eb; font-size: 13px; margin-right: 12px; }
.empty { padding: 36px; text-align: center; color: #9aa3b2; }

/* 面板 */
.panel { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(16,32,56,.05); }
.panel h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.muted { color: #8a94a6; font-size: 12px; line-height: 1.7; margin: 6px 0; }

/* 简易条形图 */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 78px; align-items: center; gap: 12px; font-size: 12px; }
.bar-track { height: 16px; background: #eef1f6; border-radius: 3px; overflow: hidden; display: flex; }
.bar-plan { background: #dbe4f2; height: 100%; }
.bar-done { background: #2563eb; height: 100%; }
.bar-fill { background: linear-gradient(90deg, #2563eb, #3b82f6); height: 100%; }
.bar-label { color: #5b6474; }
.bar-val { color: #5b6474; text-align: right; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(17,28,45,.48); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-box { width: 560px; max-height: 84vh; background: #fff; border-radius: 10px; display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eef1f6; }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-head a { color: #98a2b3; font-size: 20px; line-height: 1; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-box.wide { width: 900px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid #eef1f6; display: flex; justify-content: flex-end; gap: 10px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: #5b6474; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid #d7dde7; border-radius: 6px; font-size: 13px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #2563eb; }
.field .hint { font-size: 11px; color: #9aa3b2; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-block { border: 1px solid #eef1f6; border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; background: #fafbfd; }
.q-block label { font-size: 13px; color: #1f2937; margin-bottom: 6px; display: block; }

/* ===== V1.1 新增：管理端样式 ===== */
nav .nav-group { padding: 14px 22px 6px; font-size: 11px; color: #6f8ba8; letter-spacing: 1px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }
button.sm { padding: 6px 12px; font-size: 12px; }
.table-wrap.flat { box-shadow: none; border: 1px solid #eef1f6; }
.t-done { background: #16a34a; }
.t-off { background: #94a3b8; }
.t-on { background: #0ea5e9; }
.t-suspend { background: #f59e0b; }
.link.danger { color: #dc2626; }
.toolbar select { height: 34px; padding: 0 8px; border: 1px solid #d7dde7; border-radius: 6px; font-size: 13px; background: #fff; }
.q-row { display: grid; grid-template-columns: 24px 1fr 92px 1.2fr 42px; gap: 8px; align-items: center; margin-bottom: 8px; }
.q-row input, .q-row select { height: 32px; padding: 0 8px; border: 1px solid #d7dde7; border-radius: 5px; font-size: 12px; font-family: inherit; }
.q-row input:focus, .q-row select:focus { outline: none; border-color: #2563eb; }
.q-row .q-no { color: #9aa3b2; font-size: 12px; text-align: center; }
.q-row .link { margin: 0; font-size: 12px; }
.modal-body code { background: #f1f3f7; padding: 1px 5px; border-radius: 3px; font-size: 12px; }


/* 通道配置卡片 */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.ch-card { background: #fff; border: 1px solid #e8ecf3; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.ch-card.on-default { border-color: #2563eb; box-shadow: 0 0 0 1px rgba(37,99,235,.15); }
.ch-card h4 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ch-card .tag { font-size: 11px; }
.ch-card dl { margin: 8px 0; font-size: 12px; color: #5b6474; display: grid; grid-template-columns: 84px 1fr; row-gap: 5px; }
.ch-card dl dt { color: #8a94a6; }
.ch-card dl dd { margin: 0; word-break: break-all; }
.ch-card .acts { display: flex; gap: 10px; font-size: 12px; border-top: 1px dashed #eef1f6; padding-top: 9px; margin-top: 6px; }
.ch-card .acts a { cursor: pointer; }
.ch-empty { color: #98a2b3; font-size: 13px; padding: 16px; background: #fff; border: 1px dashed #dbe1ea; border-radius: 8px; }

/* ---- V2.3 可视化问卷设计器 ---- */
.tpl-designer { display: grid; grid-template-columns: 1fr 250px; gap: 14px; margin-top: 8px; align-items: start; }
.tpl-designer-main { min-width: 0; }
.tpl-designer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tpl-add-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tpl-card { border: 1px solid #e2e8f2; border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #fbfdff; cursor: grab; }
.tpl-card:active { cursor: grabbing; }
.tpl-card-head { display: grid; grid-template-columns: 18px 34px 1fr 82px 20px 20px 42px; gap: 6px; align-items: center; }
.tpl-drag { color: #b6c0cf; font-size: 12px; letter-spacing: -2px; }
.tpl-no { background: #e8f2ff; color: #0f5fa8; border-radius: 4px; font-size: 11px; text-align: center; padding: 3px 0; }
.tpl-card-head input, .tpl-card-head select { height: 30px; padding: 0 8px; border: 1px solid #d7dde7; border-radius: 5px; font-size: 12px; font-family: inherit; }
.tpl-card-head .link { font-size: 12px; margin: 0; }
.tpl-opts { margin-top: 8px; padding-left: 24px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tpl-opt { display: flex; align-items: center; gap: 2px; }
.tpl-opt input { height: 28px; width: 110px; padding: 0 7px; border: 1px solid #e2e8f2; border-radius: 5px; font-size: 12px; }
.tpl-opt .link { font-size: 12px; margin: 0; }
.tpl-hint { margin: 8px 0 0 24px; font-size: 11px; color: #98a2b3; }
.tpl-prev-wrap { position: sticky; top: 0; }
.tpl-prev-phone { border: 1px solid #e2e8f2; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 16px rgba(15,40,70,.07); }
.tpl-prev-head { background: linear-gradient(135deg,#0f5fa8,#1e88c7); color: #fff; font-size: 12px; padding: 12px 14px; }
.tpl-prev-body { padding: 12px 14px; max-height: 330px; overflow: auto; }
.prev-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: #1f2937; }
.prev-q { margin-bottom: 12px; }
.prev-qt { font-size: 12px; margin-bottom: 6px; }
.prev-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.prev-opts span { border: 1px solid #dde3ec; border-radius: 14px; font-size: 11px; padding: 3px 9px; color: #5b6474; }
.prev-input { border: 1px solid #dde3ec; border-radius: 6px; font-size: 11px; color: #b6c0cf; padding: 6px 8px; }
@media (max-width: 980px) { .tpl-designer { grid-template-columns: 1fr; } .tpl-prev-wrap { position: static; } }

/* ---------- V2.4 问卷维度 / 阳性 ---------- */
.tpl-dims{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 10px}
.dim-chip{background:#eef4ff;color:#175cd3;border:1px solid #d6e4ff;border-radius:999px;padding:1px 9px;font-size:12px}
.dim-sel{max-width:104px;font-size:12px;padding:3px 4px}
.req-lb,.pos-lb{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:#667085;white-space:nowrap}
.pos-lb{margin:0 4px}
.prev-dim{font-size:10px;background:#f2f4f7;color:#667085;border-radius:4px;padding:1px 6px;font-weight:400}
.pv-dim{display:inline-block;font-size:10px;background:#f2f4f7;color:#667085;border-radius:4px;padding:0 5px;margin-left:6px;font-weight:400}
.pv-pos{display:inline-block;font-size:10px;color:#b42318;margin-left:6px}
.stars{display:flex;gap:4px}
.star-btn{border:1px solid #d0d5dd;background:#fff;border-radius:6px;min-width:30px;height:26px;font-size:12px;cursor:pointer}
.star-btn.on{background:#0f5fa8;color:#fff;border-color:#0f5fa8}


/* =====================================================================
   V2.12 视觉升级 —— 对齐「数据看板」风格的设计系统
   色板：深蓝顶栏 + 浅蓝渐变底 + 白色圆角卡片 + 蓝色强调
   ===================================================================== */
:root{
  --brand:#2563eb; --brand-2:#3b82f6; --brand-deep:#175cd3;
  --brand-soft:#eef4ff; --brand-line:#c9dcff;
  --ink:#101828; --ink-2:#344054; --ink-3:#667085; --ink-4:#98a2b3;
  --line:#e7edf6; --line-2:#eff3fa;
  --bg:#f4f8fe;
  --r-lg:16px; --r-md:12px; --r-sm:9px;
  --sh:0 8px 24px rgba(16,42,84,.07); --sh-sm:0 2px 8px rgba(16,42,84,.05);
}
body{
  color:var(--ink); background:var(--bg);
  background-image:
    radial-gradient(1100px 520px at 15% -8%, #e6f0ff 0%, rgba(230,240,255,0) 62%),
    radial-gradient(900px 480px at 92% 4%, #e9f7ff 0%, rgba(233,247,255,0) 60%);
  background-attachment:fixed;
  font-size:14px;
}

/* ---- 顶部深色条 ---- */
#app{display:grid;grid-template-columns:212px 1fr;grid-template-rows:58px 1fr;height:100vh}
.appbar{
  grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;
  padding:0 18px;color:#fff;
  background:linear-gradient(90deg,#0a1b31 0%,#102b4d 55%,#123a63 100%);
  box-shadow:0 2px 12px rgba(8,23,44,.28);z-index:10;
}
.appbar-brand{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:.3px}
.logo{
  width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:16px;color:#fff;
  background:linear-gradient(135deg,#3b82f6,#22d3ee);
  box-shadow:0 4px 12px rgba(34,211,238,.28);
}
.appbar-brand b{font-weight:600;white-space:nowrap}
.appbar-brand small{font-size:11px;color:#9fc4f0;background:rgba(255,255,255,.12);padding:2px 7px;border-radius:999px}
.appbar-right{display:flex;align-items:center;gap:14px;font-size:12.5px;color:#cfe0f5}
.appbar-date{opacity:.9}
.appbar-user{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.1);padding:5px 12px;border-radius:999px}
.appbar-user i{width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#60a5fa,#22d3ee);display:inline-block}
.logout{background:#ef4444;color:#fff;padding:7px 16px;border-radius:9px;font-size:13px;font-weight:500;box-shadow:0 4px 12px rgba(239,68,68,.28)}
.logout:hover{background:#dc2626}

/* ---- 左侧导航 ---- */
.side{grid-column:1;grid-row:2;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:auto}
nav{flex:1;min-height:0;overflow-y:auto;padding:6px 4px 10px}
nav a{
  display:flex;align-items:center;gap:10px;margin:1px 10px;padding:6px 12px;border-radius:10px;
  color:var(--ink-2);font-size:13px;transition:.15s;
}
nav a::before{content:'';width:7px;height:7px;border-radius:3px;background:#c6d3e6;flex:none;transition:.15s}
nav a:hover{background:#f5f9ff;color:var(--brand-deep)}
nav a:hover::before{background:#93b8f3}
nav a.on{background:var(--brand-soft);color:var(--brand-deep);font-weight:600}
nav a.on::before{background:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
nav .nav-group{padding:8px 22px 2px;font-size:11px;color:var(--ink-4);letter-spacing:1.5px;font-weight:600}
.side-foot{padding:12px 18px;border-top:1px solid var(--line-2);font-size:11px;color:var(--ink-4);line-height:1.6;flex:none}

/* ---- 内容区 ---- */
main{grid-column:2;grid-row:2;overflow:auto;min-width:0}
.pagebar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 24px;background:rgba(255,255,255,.86);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:6;
}
.crumb{font-size:12px;color:var(--ink-3);display:flex;align-items:center;gap:8px}
.crumb .sep{color:#c1cbd9}
.crumb b{color:var(--ink);font-size:15.5px;font-weight:600}
.today{color:var(--ink-4);font-size:12px}
.tab{padding:18px 24px 44px}

/* ---- 指标卡：图标块 + 标签 + 大数字 ---- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:16px;margin-bottom:20px}
.card{
  position:relative;background:#fff;border:1px solid #edf2fa;border-radius:var(--r-lg);
  padding:16px 20px 16px;box-shadow:var(--sh);min-height:100px;transition:.15s;border-left:none;
  display:flex;flex-direction:column;justify-content:center;
}
.card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(16,42,84,.1)}
.card span{order:1;display:block;font-size:12.5px;color:var(--ink-3);margin-bottom:4px}
.card em{order:2;font-style:normal;font-size:29px;font-weight:700;line-height:1.15;letter-spacing:-.6px;color:var(--ink)}
.card::after{
  content:'';position:absolute;right:16px;top:16px;width:38px;height:38px;border-radius:12px;
  background-repeat:no-repeat;background-position:center;background-size:19px 19px;opacity:.95;
}
.card.blue em{color:#175cd3}
.card.blue::after{background-color:#e8f1ff;background-image:url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.8'><rect x='3' y='5' width='18' height='16' rx='3'/><path d='M8 3v4M16 3v4M3 10h18'/></svg>")}
.card.red em{color:#b42318}
.card.red::after{background-color:#fef3f2;background-image:url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='1.8'><path d='M12 3l9 16H3z'/><path d='M12 9v5M12 17h.01'/></svg>")}
.card.green em{color:#027a48}
.card.green::after{background-color:#ecfdf3;background-image:url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><path d='M8 12.5l2.5 2.5L16 9.5'/></svg>")}
.card.gray em{color:#475467}
.card.gray::after{background-color:#f2f4f7;background-image:url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='1.8'><path d='M4 20V10M10 20V4M16 20v-7M22 20h-18'/></svg>")}

/* ---- 按钮 / 输入 / 筛选 ---- */
button{border-radius:var(--r-sm);font-size:13px;font-weight:500;transition:.15s}
button.primary{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;padding:9px 18px;box-shadow:0 6px 14px rgba(37,99,235,.22)}
button.primary:hover{filter:brightness(1.06);transform:translateY(-1px)}
button.ghost{background:#fff;border:1px solid #dfe7f3;color:#344054;padding:9px 16px}
button.ghost:hover{border-color:#b9d2f7;color:var(--brand-deep);background:#f7fbff}
button.sm{padding:6px 12px;font-size:12px}
.toolbar{gap:10px;margin-bottom:16px}
.toolbar input,.toolbar select,.field input,.field select,.field textarea,.login-card input{
  border:1px solid #dfe7f3;border-radius:var(--r-sm);background:#fff;font-size:13px;color:var(--ink);
  transition:.15s;height:36px;padding:0 12px;
}
.toolbar input:focus,.toolbar select:focus,.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:#9fc0f5;box-shadow:0 0 0 3px rgba(37,99,235,.1)
}
.toolbar select{height:36px}
.chips{gap:8px}
.chip{background:#fff;border:1px solid #e3eaf4;border-radius:999px;padding:7px 15px;color:#5b6474;font-size:12.5px}
.chip:hover{border-color:#c9dcff;color:var(--brand-deep)}
.chip.on{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand-deep);font-weight:600}

/* ---- 面板 ---- */
.panel{background:#fff;border:1px solid #edf2fa;border-radius:var(--r-lg);padding:18px 20px;margin-bottom:18px;box-shadow:var(--sh)}
.panel h3{position:relative;margin:0 0 14px;padding-left:12px;font-size:15px;font-weight:600;color:var(--ink)}
.panel h3::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:15px;border-radius:3px;background:linear-gradient(180deg,#3b82f6,#22d3ee)}
.panel-head{margin-bottom:14px}
.muted{color:var(--ink-3);font-size:12px;line-height:1.75}
.link{color:var(--brand);font-weight:500}
.link:hover{text-decoration:underline}
.link.danger{color:#d92d20}

/* ---- 表格 ---- */
.table-wrap{background:#fff;border:1px solid #edf2fa;border-radius:var(--r-lg);box-shadow:var(--sh)}
.table-wrap table{min-width:780px}
thead th{background:#f8fafd;color:#667085;font-weight:600;padding:12px 14px;border-bottom:1px solid #eef2f8;font-size:12.5px}
tbody td{padding:12px 14px;border-bottom:1px solid #f3f6fb;font-size:13px}
tbody tr:hover{background:#f8fbff}
tbody tr:last-child td{border-bottom:none}
.empty{padding:44px;color:var(--ink-4);font-size:13px}
.table-wrap.flat{box-shadow:none;border:1px solid #edf2fa}

/* ---- 状态标签：浅底彩字 ---- */
.tag{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;color:#fff}
.t-today{background:#e8f1ff;color:#175cd3}
.t-l1{background:#fffaeb;color:#b54708}
.t-l2{background:#fff4ed;color:#c4320a}
.t-l3{background:#fef3f2;color:#b42318}
.t-l4{background:#fee4e2;color:#912018}
.t-future{background:#f2f4f7;color:#667085}
.t-done{background:#ecfdf3;color:#027a48}
.t-off{background:#f2f4f7;color:#667085}
.t-on{background:#eff8ff;color:#175cd3}
.t-suspend{background:#fffaeb;color:#b54708}
.t-overdue{background:#fef3f2;color:#b42318}
.card.orange em{color:#b54708}
.card.orange::after{background-color:#fff7ed;background-image:url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='1.8'><path d='M12 7v5l3 2'/><circle cx='12' cy='12' r='9'/></svg>")}

/* ---- 条形图 ---- */
.bar-track{height:12px;background:#eff3fa;border-radius:999px}
.bar-done{background:linear-gradient(90deg,#2563eb,#3b82f6);border-radius:999px}
.bar-plan{background:#dfe8f6;border-radius:999px}
.bar-fill{background:linear-gradient(90deg,#2563eb,#22d3ee);border-radius:999px}
.bar-row{grid-template-columns:128px 1fr 92px}
.bar-val{color:var(--ink-3)}

/* ---- 弹窗 ---- */
.modal-box{border-radius:18px;box-shadow:0 24px 64px rgba(8,23,44,.24)}
.modal-head{padding:18px 22px;border-bottom:1px solid #eef2f8}
.modal-body{padding:20px 22px}
.modal-foot{padding:16px 22px;border-top:1px solid #eef2f8}
.field label{font-size:12px;color:var(--ink-3)}
.grid2{gap:14px}
.q-block{border:1px solid #eaf0f8;border-radius:12px;background:#fbfdff}

/* ---- 通道卡片 / 设计器微调 ---- */
.ch-card{border-radius:16px;border:1px solid #eaf0f8;box-shadow:var(--sh-sm);padding:16px 18px}
.ch-card.on-default{border-color:#bcd5fb;box-shadow:0 0 0 1px rgba(37,99,235,.12),var(--sh-sm)}
.ch-empty{border-radius:14px;background:#fff;border:1px dashed #d6e2f3;color:var(--ink-4);padding:20px}

/* ---- 登录页 ---- */
.login-wrap{background:
  radial-gradient(900px 500px at 12% 0%, #1e4b7a 0%, rgba(30,75,122,0) 60%),
  radial-gradient(800px 460px at 88% 100%, #0e6a7a 0%, rgba(14,106,122,0) 62%),
  linear-gradient(140deg,#081729 0%,#0d2b4a 55%,#0e3550 100%)}
.login-card{width:380px;border-radius:20px;padding:38px 34px 28px;box-shadow:0 28px 70px rgba(0,0,0,.38);border:1px solid rgba(255,255,255,.5)}
.login-card h1{font-size:21px;letter-spacing:.3px;color:var(--ink)}
.login-card .primary{height:42px;border-radius:10px;font-size:14px;letter-spacing:2px}

/* ---- 窄屏 ---- */
@media (max-width:760px){
  #app{grid-template-columns:0 1fr}
  .side{display:none}
  .tab{padding:14px 14px 32px}
}

@media (max-width:1100px){
  .appbar-brand b{font-size:13.5px}
  .appbar-date{display:none}
}


/* =====================================================================
   V2.13 侧栏底色与顶栏一致 + 三色主题（墨黑 / 深蓝 / 草绿）
   ===================================================================== */
:root, [data-theme="blue"]{
  --nav-1:#0a1b31; --nav-2:#102b4d; --nav-3:#15395f;
  --nav-accent:#60a5fa; --nav-active:rgba(96,165,250,.16);
  --logo-1:#3b82f6; --logo-2:#22d3ee;
  --glow-a:#e6f0ff; --glow-b:#e9f7ff; --page:#f4f8fe;
}
[data-theme="black"]{
  --nav-1:#0b0e12; --nav-2:#161c24; --nav-3:#1f2733;
  --nav-accent:#a3b3c7; --nav-active:rgba(255,255,255,.12);
  --logo-1:#64748b; --logo-2:#94a3b8;
  --glow-a:#eef1f5; --glow-b:#f1f4f8; --page:#f5f7fa;
}
[data-theme="green"]{
  --nav-1:#0a2317; --nav-2:#124a2c; --nav-3:#175f37;
  --nav-accent:#4ade80; --nav-active:rgba(74,222,128,.16);
  --logo-1:#10b981; --logo-2:#84cc16;
  --glow-a:#e8f7ee; --glow-b:#eefaf2; --page:#f4faf6;
}

body{background-color:var(--page);background-image:
  radial-gradient(1100px 520px at 15% -8%, var(--glow-a) 0%, rgba(255,255,255,0) 62%),
  radial-gradient(900px 480px at 92% 4%, var(--glow-b) 0%, rgba(255,255,255,0) 60%)}

/* 顶栏 */
.appbar{background:linear-gradient(90deg,var(--nav-1) 0%,var(--nav-2) 55%,var(--nav-3) 100%)}
.logo{background:linear-gradient(135deg,var(--logo-1),var(--logo-2));
  box-shadow:0 4px 12px color-mix(in srgb, var(--logo-2) 30%, transparent)}

/* 顶栏配色选择点 */
.theme-dots{display:flex;align-items:center;gap:6px;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.08)}
.theme-dots a{width:14px;height:14px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:.15s;display:block}
.theme-dots a[data-theme-set="black"]{background:#111827}
.theme-dots a[data-theme-set="blue"]{background:#2563eb}
.theme-dots a[data-theme-set="green"]{background:#16a34a}
.theme-dots a:hover{transform:scale(1.12)}
.theme-dots a.on{border-color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.28)}

/* 侧栏：与顶栏同一底色，纵向渐变 */
.side{
  background:linear-gradient(180deg,var(--nav-2) 0%,var(--nav-1) 58%,var(--nav-1) 100%);
  border-right:1px solid rgba(255,255,255,.06);
}
nav .nav-group{color:rgba(255,255,255,.42)}
nav a{color:rgba(233,240,248,.82)}
nav a::before{background:rgba(255,255,255,.28)}
nav a:hover{background:rgba(255,255,255,.07);color:#fff}
nav a:hover::before{background:rgba(255,255,255,.55)}
nav a.on{background:var(--nav-active);color:#fff;font-weight:600;box-shadow:inset 2px 0 0 var(--nav-accent)}
nav a.on::before{background:var(--nav-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--nav-accent) 22%, transparent)}
.side-foot{color:rgba(255,255,255,.4);border-top:1px solid rgba(255,255,255,.08)}

/* 面包屑栏与登录页跟随主题 */
.pagebar{background:color-mix(in srgb, #fff 88%, var(--nav-2))}
.login-wrap{background:
  radial-gradient(900px 500px at 12% 0%, var(--nav-3) 0%, rgba(20,60,90,0) 60%),
  radial-gradient(800px 460px at 88% 100%, color-mix(in srgb, var(--nav-3) 70%, #0b3a3a) 0%, rgba(14,106,122,0) 62%),
  linear-gradient(140deg,var(--nav-1) 0%,var(--nav-2) 55%,var(--nav-3) 100%)}

/* 主题色下保持强调蓝一致，避免按钮与顶栏撞色 */
button.primary{background:linear-gradient(135deg,#2563eb,#3b82f6)}

@media (max-width:760px){ .theme-dots{display:none} }


/* V2.18 弹窗在窄屏收窄，避免左右被裁 */
.modal-box{width:min(560px,94vw)}
.modal-box.wide{width:min(900px,94vw)}

/* 弹窗内页签横向滚动，避免窄屏挤成竖排 */
#modal-body .chips{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:4px;scrollbar-width:thin}
#modal-body .chips::-webkit-scrollbar{height:4px}
#modal-body .chips::-webkit-scrollbar-thumb{background:#cfd6e4;border-radius:2px}
#modal-body .chips>*{flex:0 0 auto;white-space:nowrap}

/* V2.77 换药计划行 */
.dress-plan{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12.5px;color:#475467;background:#f8fafd;border:1px solid #eef2f8;border-radius:8px;padding:7px 10px;margin-bottom:8px;flex-wrap:wrap}
.dress-plan b{color:#101828}
.dress-plan>a{margin-left:auto;flex:0 0 auto}

/* V2.76 创面照片时间轴 */
#tl-wrap{margin:0 0 12px}
.tl-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13px;font-weight:600;margin-bottom:8px;flex-wrap:wrap}
.tl-tip{font-weight:400;font-size:12px;color:#667085}
.tl-strip{display:flex;align-items:flex-start;gap:0;overflow-x:auto;padding:4px 2px 10px;scrollbar-width:thin}
.tl-strip::-webkit-scrollbar{height:6px}
.tl-strip::-webkit-scrollbar-thumb{background:#cfd6e4;border-radius:3px}
.tl-node{flex:0 0 auto;width:88px;text-align:center;cursor:pointer;border:2px solid transparent;border-radius:10px;padding:4px 3px;background:#fff;transition:border-color .15s,background .15s}
.tl-node:hover{background:#f6f9ff}
.tl-node.on{border-color:#1652c9;background:#eef4ff}
.tl-node img{width:78px;height:78px;object-fit:cover;border-radius:7px;display:block;margin:0 auto}
.tl-d{font-size:11px;color:#475467;margin-top:4px}
.tl-p{font-size:11px;color:#1652c9;font-weight:600}
.tl-site{display:inline-block;margin-top:3px;font-size:10.5px;color:#475467;background:#f1f4f9;border-radius:9px;padding:1px 6px;max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-site.empty{color:#98a2b3;background:#fafbfd;border:1px dashed #d8dfeb}
.tl-link{flex:0 0 auto;width:18px;height:2px;background:#dbe3f0;margin-top:44px}

.tl-edit{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#eef4ff;border:1px solid #d7e3fb;border-radius:8px;padding:7px 10px;font-size:12.5px;margin-bottom:8px}
.tl-edit select{padding:4px 8px;border:1px solid #cfd9ea;border-radius:6px;font-size:12.5px;background:#fff}

/* V2.74 创面预警处置表单 + 响应率小结 */
.wa-lb{display:block;font-size:12px;color:#667085;margin:12px 0 5px}
.wa-in{display:block;width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #dfe5ef;border-radius:8px;font-size:13px;background:#fff}
.wa-in:focus{outline:none;border-color:#1652c9;box-shadow:0 0 0 3px rgba(22,82,201,.08)}
#wd-resp{margin-top:10px;padding:12px 14px;border:1px solid #e7ecf5;border-radius:10px;background:#fbfcfe;font-size:12.5px;color:#475467;line-height:1.9}
#wd-resp b{color:#101828;font-weight:600}
#wd-resp .ok{color:#12805c}
#wd-resp .warn{color:#b54708}
#wd-resp .rate{font-size:15px;font-weight:700;color:#1652c9}

/* 系统设置：服务健康卡片 + 数据质量巡检 */
.hgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.hcard{background:#f7f9fc;border:1px solid #e6ebf3;border-radius:8px;padding:10px 12px}
.hcard b{display:block;font-size:18px;color:#1e293b;line-height:1.3}
.hcard span{font-size:12px;color:#8a94a6}
.hcard.warn{background:#fff7ed;border-color:#fbd9b5}
.dq-item{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px dashed #eceff5}
.dq-item:last-child{border-bottom:0}
.dq-n{min-width:52px;text-align:right;font-weight:600;font-size:15px}
.dq-n.ok{color:#12a06a}
.dq-n.bad{color:#e8833a}
.dq-t{flex:1;font-size:13px;color:#41506b}
.dq-t b{color:#1e293b;font-weight:600;display:block;margin-bottom:2px}
.dq-names{font-size:12px;color:#8a94a6}

/* 任务月历 */
.cal-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.cal-head b{font-size:15px;color:#1e293b;min-width:110px;text-align:center}
.cal-head .ghost{padding:3px 10px}
.cal-legend{margin-left:auto;font-size:11px;color:#8a94a6;display:flex;align-items:center;gap:6px}
.cal-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-left:6px}
.lg-od{background:#e8833a}.lg-pd{background:#3b82f6}.lg-dn{background:#12a06a}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.cal-dow{font-size:11px;color:#8a94a6;text-align:center;padding:2px 0}
.cal-cell{min-height:82px;border:1px solid #e9eef6;border-radius:8px;padding:5px 6px;background:#fff;cursor:pointer;transition:.12s}
.cal-cell:hover{border-color:#b9cdf0;box-shadow:0 2px 8px rgba(59,130,246,.1)}
.cal-cell.blank{background:#fafbfd;border-style:dashed;cursor:default}
.cal-cell.today{background:#eff6ff;border-color:#93b8f5}
.cal-cell .d{font-size:12px;color:#5b6474;margin-bottom:3px;display:flex;justify-content:space-between}
.cal-cell .d em{font-style:normal;font-size:11px;color:#8a94a6}
.cal-t{font-size:11px;line-height:1.5;color:#41506b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-t.od{color:#b45309}
.cal-t.dn{color:#12a06a;text-decoration:line-through;opacity:.75}
.cal-more{font-size:10px;color:#8a94a6}

/* 月历头部窄屏自适应 */
.cal-head{flex-wrap:wrap;row-gap:6px}
.cal-head b{white-space:nowrap}
.cal-head .ghost{white-space:nowrap}
.cal-legend{white-space:nowrap;margin-left:auto}
@media (max-width:760px){.cal-legend{margin-left:0}}

/* 医生随访质量表：不折字，窄屏横向滚动 */
#tb-docq th,#tb-docq td{white-space:nowrap}
#tb-docq .muted{white-space:nowrap}

/* 随访路径：排期方式标签 + 节点编辑器 */
.chip{display:inline-block;padding:1px 8px;border-radius:10px;font-size:11.5px;line-height:19px}
.chip.path{background:#e8f1ff;color:#1d6fd6}
.chip.cyc{background:#eef2f7;color:#5b6b82}
#eg-node-wrap .nrow{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
#eg-node-wrap .nrow input[type=number]{width:74px;flex:0 0 auto}
#eg-node-wrap .nrow input:not([type=number]){flex:1 1 160px;min-width:140px}
#eg-node-wrap .nrow select{width:170px;flex:1 1 150px;max-width:200px}
#eg-node-wrap .nrow .nunit{color:#8a94a6;font-size:12px;margin-left:-4px;flex:0 0 auto}
#eg-node-wrap .nrow .link{flex:0 0 auto;white-space:nowrap}
@media (max-width:820px){
  #eg-node-wrap .nrow input[type=number]{width:64px}
  #eg-node-wrap .nrow select{width:100%;max-width:none}
  #eg-node-wrap .nrow input:not([type=number]){flex:1 1 100px;min-width:100px}
}
.chk-inline{display:flex;align-items:center;gap:7px;font-size:13px;color:#475467;margin:6px 0 2px}
.chk-inline input{width:auto;margin:0}

/* 路径执行分析：三列表格不需要 780px 最小宽，窄屏也能一屏看完 */
#path-stats .table-wrap table{min-width:0}
#path-stats td,#path-stats th{padding:8px 9px}

/* 远程备份表只有 4 列，不需要桌面端最小宽度，避免窄屏横向滚动 */
#tb-offsite{min-width:0}

/* ============ 帮助中心（V2.54） ============ */
.hp-bar{margin:0 0 14px}
.hp-bar input{width:100%;max-width:520px;height:36px;padding:0 12px;border:1px solid #dfe5ee;border-radius:8px;font-size:13px;outline:none}
.hp-bar input:focus{border-color:#2f6fed;box-shadow:0 0 0 3px rgba(47,111,237,.10)}
.hp-wrap{display:grid;grid-template-columns:288px 1fr;gap:16px;align-items:start}
.hp-side{border:1px solid #eef1f6;border-radius:10px;padding:8px;max-height:calc(100vh - 260px);overflow:auto;background:#fbfcfe}
.hp-cat{font-size:11px;color:#8b95a6;padding:8px 8px 4px;letter-spacing:.5px}
.hp-item{display:block;padding:8px 10px;border-radius:7px;cursor:pointer;font-size:13px;color:#33415c;line-height:1.45}
.hp-item:hover{background:#f0f4fc}
.hp-item.on{background:#e8f0ff;color:#1d4ed8;font-weight:600}
.hp-main{border:1px solid #eef1f6;border-radius:10px;padding:20px 24px;background:#fff;min-height:320px;max-height:calc(100vh - 260px);overflow:auto}
.hp-main h3{margin:0 0 4px;font-size:18px}
.hp-main .hp-meta{font-size:12px;color:#8b95a6;margin-bottom:14px}
.hp-main h4{margin:18px 0 8px;font-size:14px;color:#1f2a44}
.hp-main p{margin:8px 0;font-size:13.5px;line-height:1.85;color:#3c4a63}
.hp-main li{font-size:13.5px;line-height:1.85;color:#3c4a63;margin:4px 0}
.hp-main ul,.hp-main ol{padding-left:20px;margin:8px 0}
.hp-main code{background:#f3f5f9;border-radius:4px;padding:1px 5px;font-size:12.5px;color:#8a4b00}
.hp-main table{width:100%;border-collapse:collapse;margin:10px 0;font-size:13px}
.hp-main th,.hp-main td{border:1px solid #eef1f6;padding:7px 10px;text-align:left;vertical-align:top}
.hp-main th{background:#f7f9fc;color:#33415c;font-weight:600;white-space:nowrap}
.hp-main .note{margin:12px 0 0;padding:10px 12px;background:#fff8ec;border-left:3px solid #f0a020;border-radius:6px;font-size:13px;line-height:1.8;color:#6b4a10}
.hp-main .hp-empty{color:#8b95a6;font-size:13px}
@media (max-width:900px){
  .hp-wrap{grid-template-columns:1fr}
  .hp-side{max-height:260px}
  .hp-main{max-height:none;padding:16px}
}

/* 顶栏通知铃铛（V2.56） */
/* 工单组件遮罩：强制相对视口铺满并居中，避免宽屏下弹窗贴左 */
body > .kzt-mask{position:fixed!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;width:100vw!important;height:100vh!important;padding:16px!important;box-sizing:border-box!important;align-items:center!important;justify-content:center!important}
body > .kzt-mask > .kzt-panel{margin:auto!important}
.kzy-top{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:8px;background:transparent;color:#c9dcf3;font-size:12.5px;cursor:pointer;transition:.15s;white-space:nowrap;text-decoration:none}
.kzy-top i{font-style:normal;font-size:13px}
.kzy-top:hover{background:rgba(255,255,255,.14);color:#fff}
.kzy-top.on{background:rgba(37,99,235,.85);color:#fff}
@media (max-width:1100px){ .kzy-top span{display:none} .kzy-top{padding:6px} }
@media (max-width:760px){ .kzy-top{display:none} }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.bell i { font-style: normal; font-size: 15px; filter: grayscale(0.2); }
.bell:hover { background: rgba(255,255,255,.12); }
.bell b { position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; text-align: center; }
.notice-panel { position: fixed; top: 54px; right: 14px; width: 360px; max-height: 70vh; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 14px 36px rgba(15,23,42,.16); z-index: 120; display: flex; flex-direction: column; overflow: hidden; }
.notice-panel.hidden { display: none; }
.np-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.np-head .link { margin-left: 10px; font-size: 12px; }
.np-list { overflow-y: auto; }
.np-item { padding: 10px 14px; border-bottom: 1px solid #f4f6fa; cursor: pointer; }
.np-item:hover { background: #f8fafc; }
.np-item b { display: block; font-size: 13px; color: #1f2a37; margin-bottom: 3px; }
.np-item span { display: block; font-size: 12px; color: #64748b; line-height: 1.6; }
.np-item em { display: block; font-style: normal; font-size: 11px; color: #94a3b8; margin-top: 4px; }
.np-item.unread b::after { content: " ·新"; color: #ef4444; font-size: 11px; }
.np-empty { padding: 26px 14px; text-align: center; color: #94a3b8; font-size: 12px; }

/* 月度汇总明细（V2.56） */
#mo-detail { margin-top: 14px; }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.mo-cell { border: 1px solid #e8edf5; border-radius: 8px; padding: 10px 12px; background: #fbfcfe; }
.mo-cell b { display: block; font-size: 20px; color: #2563eb; }
.mo-cell span { font-size: 12px; color: #8a94a6; }
.mo-cell i { font-style: normal; font-size: 11px; color: #94a3b8; }

/* 模拟拨号对话（V2.57） */
.sim-dlg { border: 1px solid #e8edf5; border-radius: 10px; padding: 12px; background: #f8fafc; max-height: 46vh; overflow-y: auto; }
.sim-line { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.sim-line b { flex: 0 0 34px; font-size: 11px; font-weight: 600; text-align: center; border-radius: 4px; padding: 2px 0; color: #fff; }
.sim-line span { flex: 1; font-size: 13px; line-height: 1.7; color: #1f2a37; background: #fff; border: 1px solid #e5e9f2; border-radius: 8px; padding: 6px 10px; }
.sim-line.ai b { background: #2563eb; }
.sim-line.pt b { background: #94a3b8; }
.sim-line.pt span { background: #eef6ff; }

/* 远程备份：公开空间风险提示 */
.off-warn.ok{margin-top:12px;padding:10px 12px;border-radius:8px;background:#eef7ff;border:1px solid #a9cdf0;color:#1b4f7d;font-size:12px;line-height:1.7}
.off-warn{margin-top:12px;padding:10px 12px;border-radius:8px;background:#fff8e6;border:1px solid #f2d08a;color:#8a5b00;font-size:12px;line-height:1.7}

/* V2.62 创面照片 */
.ph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
.ph-cell{position:relative;border:1px solid #e7ecf4;border-radius:10px;overflow:hidden;background:#0f1620;cursor:zoom-in}
.ph-cell img{display:block;width:100%;height:132px;object-fit:cover}
.ph-cap{background:#fff;font-size:11px;color:#5b6474;padding:4px 6px;display:flex;justify-content:space-between;gap:4px}
.ph-cap span{color:#98a2b3}
.ph-del{position:absolute;top:4px;right:4px;width:20px;height:20px;line-height:18px;text-align:center;border-radius:50%;
  background:rgba(15,22,32,.62);color:#fff;font-size:14px;text-decoration:none;opacity:0;transition:opacity .15s}
.ph-cell:hover .ph-del{opacity:1}
.ph-del:hover{background:#c0392b}

/* V2.67 创面照片前后对比 */
.cmp-wrap{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:720px){.cmp-wrap{grid-template-columns:1fr}}
.cmp-box{background:#f7f9fc;border:1px solid #e3e8f0;border-radius:8px;padding:8px}
.cmp-box select{width:100%;padding:6px 8px;border:1px solid #d5dce8;border-radius:6px;font-size:12px;margin-bottom:8px;background:#fff}
.cmp-img{background:#0f1620;border-radius:6px;height:320px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cmp-img img{max-width:100%;max-height:100%;object-fit:contain}
.cmp-meta{font-size:12px;margin-top:8px;line-height:1.6}
.cmp-sum{margin-top:10px;padding:8px 10px;background:#eef5ff;border-left:3px solid #2f6fed;border-radius:4px;font-size:13px}
.cmp-sum:empty{display:none}

/* V2.71 帮助中心问一句 */
.hp-ans{background:#f4f8ff;border:1px solid #d7e5fb;border-left:3px solid #2563eb;border-radius:8px;padding:12px 14px;margin-bottom:10px}
.hp-ans-warn{background:#fff8ec;border-color:#f2ddb8;border-left-color:#e8a33d;font-size:13px;padding:10px 12px;border-radius:8px;margin-bottom:10px}
.hp-ans-tag{display:inline-block;font-size:11px;color:#8a6d3b;background:#fdf3e0;border-radius:4px;padding:1px 6px;margin-right:6px}

/* V2.73 创面预警 */
.wound-alert{background:#fff8e8;border:1px solid #f4dfb0;border-left:4px solid #e8a33d;border-radius:8px;padding:10px 12px;margin:0 0 10px;font-size:13px;color:#6b5323}
.wound-alert b{font-size:13px}
.wound-alert>div{margin-top:6px;line-height:1.6}
.wound-alert>div>span{display:block;margin-top:2px;color:#8a6a2d;font-size:12px}
.wound-alert .wa-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px dashed #f0e2c2;padding-top:6px}
.wound-alert .wa-row:first-child{border-top:0}
.wa-lv{font-size:11px;padding:1px 6px;border-radius:4px;background:#fdeaea;color:#c0392b}
.wa-lv.mid{background:#fdf3e2;color:#a3701a}
.wa-t{color:#8a6a2d}
.wa-dept{color:#a08a5f;font-size:12px}

/* ===== V2.79 患者自报换药：来源标签 ===== */
.src-tag{display:inline-block;font-size:11px;line-height:16px;padding:0 5px;border-radius:3px;margin-left:3px;white-space:nowrap;vertical-align:1px}
.src-tag.wait{background:#fff2d6;color:#a5670a;border:1px solid #f0d49a}
.src-tag.ok{background:#eef7ee;color:#2f7a3d;border:1px solid #cfe6d2}

/* ===== V2.80 照片挂到换药记录 ===== */
.ph-cell{position:relative}
.ph-dress{position:absolute;left:6px;top:6px;z-index:5;font-style:normal;font-size:11px;line-height:17px;
  padding:0 6px;border-radius:4px;background:#2f6fed;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.ph-cell img{display:block;width:100%}

/* ===== V2.81 方案有效性 ===== */
.wd-eff-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px 0 4px;padding-top:14px;border-top:1px dashed #e7ecf4;flex-wrap:wrap}
.wd-eff-head .chips{margin:0}
.wd-eff-head .chip{font-size:12px;padding:3px 10px}

/* V2.86 愈合后处置标签 */
.tag-green{background:#12924a}
.tag-blue{background:#2563eb}

/* V2.95 顶栏授权临期提醒 */
.lic-warn{display:inline-flex;align-items:center;gap:5px;margin-right:8px;padding:5px 10px;border-radius:7px;
  background:#fff4e5;color:#b54708;font-size:12px;text-decoration:none;white-space:nowrap}
.lic-warn:hover{background:#ffe8cc;color:#93370d}
