/* 风湿免疫科患者管理 Demo — PC 医生端 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: #f2f5f8; color: #1f2937; font-size: 14px;
}
:root {
  --teal: #0d9488; --teal-d: #0f766e; --teal-l: #ccfbf1; --teal-bg: #f0fdfa;
  --ink: #1f2937; --sub: #64748b; --line: #e5eaf0;
  --red: #e11d48; --amber: #d97706; --blue: #2563eb;
  --navy: #0c2231; --navy-2: #10304a;
}

/* ========== 登录页 ========== */
#login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #0c2231 0%, #0f3d4a 45%, #0d9488 130%);
  position: relative; overflow: hidden;
}
#login::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, .25), transparent 65%); top: -180px; right: -120px;
}
#login::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .18), transparent 65%); bottom: -140px; left: -100px;
}
.login-card {
  width: 400px; background: #fff; border-radius: 18px; padding: 40px 38px 32px; position: relative; z-index: 2;
  box-shadow: 0 30px 80px rgba(4, 24, 36, .45);
}
.login-logo { width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(135deg, #0f766e, #14b8a6); display: flex; align-items: center; justify-content: center; color: #fff; margin: 0 auto 18px; }
.login-logo .ic { width: 30px; height: 30px; }
.login-card h1 { font-size: 21px; text-align: center; }
.login-card .sub { text-align: center; color: var(--sub); font-size: 12.5px; margin-top: 7px; letter-spacing: 2px; }
.login-form { margin-top: 26px; }
.lg-field { margin-bottom: 14px; }
.lg-field label { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 6px; }
.lg-field input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 13px; font-size: 14px;
  outline: none; font-family: inherit; background: #f8fafc; transition: border .15s;
}
.lg-field input:focus { border-color: var(--teal); background: #fff; }
.btn-login {
  width: 100%; border: none; background: linear-gradient(135deg, #0f766e, #0d9488); color: #fff; font-size: 15.5px;
  padding: 12px; border-radius: 9px; cursor: pointer; margin-top: 10px; font-family: inherit; letter-spacing: 6px; font-weight: 500;
  transition: filter .15s;
}
.btn-login:hover { filter: brightness(1.08); }
.login-tip { text-align: center; font-size: 11.5px; color: #94a3b8; margin-top: 16px; }

/* ========== 主框架 ========== */
#shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 224px; background: linear-gradient(180deg, var(--navy) 0%, #0a1c2b 100%); color: #cdd9e5;
  display: flex; flex-direction: column; flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand .lg { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0f766e, #14b8a6); display: flex; align-items: center; justify-content: center; color: #fff; }
.brand .lg .ic { width: 19px; height: 19px; }
.brand .t1 { font-size: 14.5px; color: #fff; font-weight: 600; }
.brand .t2 { font-size: 10.5px; color: #7d93a8; margin-top: 2px; letter-spacing: 1px; }
.nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 9px; cursor: pointer;
  color: #a7b8c9; margin-bottom: 3px; position: relative; transition: background .15s, color .15s; font-size: 14px;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.on { background: linear-gradient(90deg, rgba(13, 148, 136, .35), rgba(13, 148, 136, .12)); color: #fff; }
.nav-item.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #14b8a6; }
.nav-item .ic { width: 17px; height: 17px; flex-shrink: 0; }
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .07); padding: 12px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 9px; }
.side-user .av { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.side-user .nm { color: #fff; font-size: 13px; }
.side-user .rl { color: #7d93a8; font-size: 11px; margin-top: 1px; }
.side-ops { display: flex; gap: 6px; margin-top: 8px; }
.side-btn {
  flex: 1; border: none; background: rgba(255, 255, 255, .07); color: #a7b8c9; font-size: 11.5px; padding: 7px 0;
  border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: inherit;
}
.side-btn:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.side-btn .ic { width: 12px; height: 12px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 24px; gap: 16px; flex-shrink: 0;
}
.topbar .crumb { font-size: 16px; font-weight: 600; }
.topbar .crumb small { color: var(--sub); font-weight: 400; font-size: 12.5px; margin-left: 10px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mode-pill { font-size: 11.5px; color: var(--teal-d); background: var(--teal-bg); border: 1px solid #99f6e4; padding: 4px 11px; border-radius: 99px; display: flex; align-items: center; gap: 5px; }
.mode-pill.local { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.mode-pill .ic { width: 12px; height: 12px; }
.today-txt { color: var(--sub); font-size: 12.5px; }
.bell-wrap { position: relative; cursor: pointer; color: #475569; display: flex; }
.bell-wrap .ic { width: 19px; height: 19px; }
.bell-dot { position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.content { flex: 1; overflow-y: auto; padding: 22px 24px 30px; }

/* ========== 通用组件 ========== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 13px; padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 4px rgba(31, 55, 88, .06); border: 1px solid #eef2f6; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31, 55, 88, .1); }
.stat-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.stat-ic .ic { width: 22px; height: 22px; }
.stat-card .v { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat-card .k { font-size: 12.5px; color: var(--sub); margin-top: 3px; }
.stat-card.warn .v { color: var(--red); }
.stat-card.warn .stat-ic { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .35); } 50% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); } }
.panel { background: #fff; border-radius: 13px; box-shadow: 0 1px 4px rgba(31, 55, 88, .06); border: 1px solid #eef2f6; }
.panel-hd { padding: 15px 18px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-hd .t { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.panel-hd .t .ic { width: 16px; height: 16px; color: var(--teal); }
.panel-hd .more { font-size: 12.5px; color: var(--teal-d); cursor: pointer; }
.dash-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }

/* 待回复留言列表（工作台） */
.todo-msg { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; transition: background .12s; }
.todo-msg:hover { background: #f8fafc; }
.todo-msg:last-child { border-bottom: none; }
.todo-msg .avatar { width: 38px; height: 38px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.todo-msg .bd { flex: 1; min-width: 0; }
.todo-msg .r1 { display: flex; align-items: center; gap: 7px; }
.todo-msg .nm { font-weight: 600; font-size: 13.5px; }
.tag { font-size: 10.5px; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.tag-dx { color: #475569; background: #f1f5f9; }
.tag-red { color: #fff; background: var(--red); font-weight: 500; }
.tag-urgent { color: var(--red); background: #fff1f2; border: 1px solid #fecdd3; }
.todo-msg .tx { font-size: 12.5px; color: var(--sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-msg .tm { font-size: 11px; color: #94a3b8; margin-left: auto; flex-shrink: 0; }

/* 复诊表 */
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { text-align: left; font-size: 11.5px; color: #94a3b8; font-weight: 500; padding: 10px 18px 6px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 10px 18px; border-bottom: 1px solid #f2f5f8; font-size: 13px; }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table tr:hover td { background: #f8fafc; }

/* ========== 患者管理 ========== */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }
.search-box { position: relative; width: 260px; }
.search-box .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #94a3b8; }
.search-box input { width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 12px 9px 34px; font-size: 13.5px; outline: none; font-family: inherit; background: #fff; }
.search-box input:focus { border-color: var(--teal); }
.sel { border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13px; color: #475569; outline: none; background: #fff; font-family: inherit; cursor: pointer; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th { text-align: left; font-size: 12px; color: #94a3b8; font-weight: 500; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid #f2f5f8; font-size: 13.5px; vertical-align: middle; }
.tbl tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: #f6f9fb; }
.pt-cell { display: flex; align-items: center; gap: 10px; }
.pt-cell .avatar { width: 34px; height: 34px; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.pt-cell .nm { font-weight: 600; }
.pt-cell .sub { font-size: 11.5px; color: #94a3b8; margin-top: 1px; }
.stage-pill { font-size: 11.5px; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.st-act { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.st-mid { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }
.st-rem { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; }
.last-msg-cell { max-width: 260px; color: var(--sub); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-pending { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 5px; vertical-align: 1px; }
.act-link { color: var(--teal-d); font-size: 12.5px; cursor: pointer; margin-right: 12px; }
.act-link:hover { text-decoration: underline; }

/* ========== 患者详情 ========== */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--sub); font-size: 13px; cursor: pointer; margin-bottom: 14px; }
.back-link:hover { color: var(--teal-d); }
.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.detail-head { background: #fff; border-radius: 13px; border: 1px solid #eef2f6; padding: 20px; display: flex; gap: 14px; align-items: center; box-shadow: 0 1px 4px rgba(31, 55, 88, .06); margin-bottom: 16px; }
.detail-head .avatar { width: 56px; height: 56px; border-radius: 14px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; }
.detail-head .nm { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.detail-head .meta { color: var(--sub); font-size: 12.5px; margin-top: 5px; line-height: 1.7; }
.d-info-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-bottom: 1px dashed #eef2f6; font-size: 13px; }
.d-info-row:last-child { border: none; }
.d-info-row .k { color: #94a3b8; width: 62px; flex-shrink: 0; }
.d-info-row .v { color: #374151; flex: 1; line-height: 1.6; }
.med-item { background: #f8fafc; border-radius: 9px; padding: 9px 12px; margin-bottom: 8px; }
.med-item .n { font-weight: 600; font-size: 13px; }
.med-item .d { color: var(--sub); font-size: 12px; margin-top: 2px; }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ind-card { background: #fff; border: 1px solid #eef2f6; border-radius: 12px; padding: 14px 16px 10px; box-shadow: 0 1px 4px rgba(31, 55, 88, .05); }
.ind-card .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ind-card .nm { font-size: 13px; font-weight: 600; }
.ind-last { font-size: 17px; font-weight: 700; }
.ind-last small { font-size: 11px; color: #94a3b8; font-weight: 400; margin-left: 2px; }
.ind-date { font-size: 11px; color: #94a3b8; }
.timeline { padding: 6px 18px 14px; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: #e8edf2; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--teal); background: #fff; flex-shrink: 0; margin-top: 3px; z-index: 1; }
.tl-item.past .tl-dot { border-color: #cbd5e1; }
.tl-item .bd { flex: 1; }
.tl-item .t { font-size: 13px; font-weight: 600; }
.tl-item .m { font-size: 12px; color: var(--sub); margin-top: 2px; line-height: 1.6; }

/* ========== 留言中心 ========== */
.msg-layout { display: flex; height: calc(100vh - 60px - 52px); background: #fff; border-radius: 13px; overflow: hidden; border: 1px solid #eef2f6; box-shadow: 0 1px 4px rgba(31, 55, 88, .06); }
.conv-list { width: 330px; border-right: 1px solid var(--line); display: flex; flex-direction: column; flex-shrink: 0; background: #fbfcfe; }
.conv-tabs { display: flex; gap: 6px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); }
.conv-tab { font-size: 12.5px; padding: 5px 13px; border-radius: 99px; background: #f1f5f9; color: #64748b; cursor: pointer; border: none; font-family: inherit; }
.conv-tab.on { background: var(--teal-bg); color: var(--teal-d); font-weight: 600; border: 1px solid #99f6e4; }
.conv-tab .n { margin-left: 3px; }
.conv-items { flex: 1; overflow-y: auto; }
.conv-item { display: flex; gap: 11px; padding: 13px 14px; cursor: pointer; border-bottom: 1px solid #f2f5f8; transition: background .12s; position: relative; }
.conv-item:hover { background: #f4f8fb; }
.conv-item.on { background: #eef7f5; }
.conv-item.on::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--teal); }
.conv-item .avatar { width: 40px; height: 40px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.conv-item .bd { flex: 1; min-width: 0; }
.conv-item .r1 { display: flex; align-items: center; gap: 6px; }
.conv-item .nm { font-size: 14px; font-weight: 600; }
.conv-item .tm { margin-left: auto; font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.conv-item .tx { font-size: 12.5px; color: var(--sub); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item .tx.unread { color: var(--ink); font-weight: 500; }
.cv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.chat-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-top { padding: 13px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.chat-top .nm { font-size: 15.5px; font-weight: 700; }
.chat-top .sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.chat-top .ops { margin-left: auto; display: flex; gap: 8px; }
.btn-sm { border: 1px solid var(--line); background: #fff; color: #475569; font-size: 12.5px; padding: 6px 13px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 5px; font-family: inherit; }
.btn-sm:hover { border-color: var(--teal); color: var(--teal-d); background: var(--teal-bg); }
.btn-sm .ic { width: 13px; height: 13px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px 22px; background: #f7fafb; }
.cm-row { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.cm-row.me { flex-direction: row-reverse; }
.cm-row .avatar { width: 34px; height: 34px; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.cm-bw { max-width: 62%; display: flex; flex-direction: column; }
.cm-row.me .cm-bw { align-items: flex-end; }
.cm-bubble { padding: 10px 13px; font-size: 13.5px; line-height: 1.6; background: #fff; border-radius: 3px 10px 10px 10px; box-shadow: 0 1px 2px rgba(31, 55, 88, .06); word-break: break-word; white-space: pre-wrap; }
.cm-row.me .cm-bubble { border-radius: 10px 3px 10px 10px; background: linear-gradient(135deg, #0d9488, #10a396); color: #fff; }
.cm-bubble.urgent { border-left: 3px solid var(--red); }
.cm-time { font-size: 10.5px; color: #b0b7c3; margin-top: 4px; padding: 0 3px; }
.chat-input-wrap { border-top: 1px solid var(--line); padding: 10px 16px 12px; flex-shrink: 0; background: #fff; }
.quick-phrases { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 9px; scrollbar-width: none; }
.quick-phrases::-webkit-scrollbar { display: none; }
.qp { flex-shrink: 0; font-size: 12px; color: #0f766e; background: var(--teal-bg); border: 1px solid #b5ece2; padding: 4px 11px; border-radius: 99px; cursor: pointer; }
.qp:hover { background: #d9f7f1; }
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
#doc-input { flex: 1; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 13px; font-size: 13.5px; font-family: inherit; resize: none; height: 40px; line-height: 20px; outline: none; background: #f8fafc; max-height: 100px; }
#doc-input:focus { border-color: var(--teal); background: #fff; }
.btn-send2 { border: none; background: var(--teal); color: #fff; font-size: 14px; padding: 0 24px; height: 40px; border-radius: 9px; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px; }
.btn-send2:hover { background: var(--teal-d); }
.btn-send2 .ic { width: 15px; height: 15px; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; gap: 10px; }
.chat-empty .ic { width: 54px; height: 54px; color: #cdd9e5; }
.chat-empty .t { font-size: 14px; }
.chat-empty .s { font-size: 12px; }

/* ========== 复诊安排 ========== */
.visit-day { margin-bottom: 16px; }
.vd-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.vd-date { font-size: 14px; font-weight: 700; padding: 2px 12px; border-radius: 7px; background: var(--teal-bg); color: var(--teal-d); border: 1px solid #b5ece2; }
.vd-today { font-size: 11px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecdd3; border-radius: 99px; padding: 1px 9px; }
.vd-count { font-size: 12px; color: #94a3b8; margin-left: auto; }
.visit-row { display: flex; gap: 16px; padding: 13px 18px; background: #fff; border: 1px solid #eef2f6; border-radius: 12px; margin-bottom: 8px; align-items: center; box-shadow: 0 1px 3px rgba(31, 55, 88, .04); }
.visit-row .tm { font-size: 15px; font-weight: 700; width: 52px; color: #334155; flex-shrink: 0; }
.visit-row.done { opacity: .62; }
.visit-row .avatar { width: 36px; height: 36px; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.visit-row .bd { flex: 1; min-width: 0; }
.visit-row .r1 { display: flex; align-items: center; gap: 8px; }
.visit-row .nm { font-size: 14px; font-weight: 600; cursor: pointer; }
.visit-row .nm:hover { color: var(--teal-d); }
.visit-row .meta { font-size: 12px; color: var(--sub); margin-top: 3px; }
.visit-row .chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 11px; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.chip.warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.tag-done2 { font-size: 11px; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 99px; padding: 1px 9px; flex-shrink: 0; }

/* 空状态 */
.empty-tip { text-align: center; padding: 44px 0; color: #94a3b8; font-size: 13px; }
.empty-tip .ic { width: 40px; height: 40px; color: #cfe0d9; margin-bottom: 8px; }

/* 头像渐变 */
.avatar.g1 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.avatar.g2 { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.avatar.g3 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.avatar.g4 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.avatar.g5 { background: linear-gradient(135deg, #be185d, #ec4899); }
.avatar.g6 { background: linear-gradient(135deg, #0e7490, #22d3ee); }

/* ---------- 会话流中的报告卡片（医生端） ---------- */
.cm-report {
  background: #fff; border: 1px solid #dbeafe; border-radius: 10px; padding: 10px 13px; min-width: 230px;
  cursor: pointer; box-shadow: 0 1px 2px rgba(31, 55, 88, .05); transition: border-color .15s;
}
.cm-report:hover { border-color: #93c5fd; }
.cm-report .mr-t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.cm-report .mr-t .ic { width: 15px; height: 15px; color: #1d4ed8; }
.cm-report .mr-m { font-size: 12px; color: #64748b; margin-top: 4px; line-height: 1.55; }
.cm-report .mr-go { font-size: 11.5px; margin-top: 7px; color: #1d4ed8; }

/* ---------- 报告查看弹窗 ---------- */
.doc-modal-mask { position: fixed; inset: 0; background: rgba(12, 34, 49, .5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 30px; }
.doc-modal-mask.on { display: flex; }
.doc-modal {
  background: #fff; border-radius: 16px; width: 640px; max-width: 100%; max-height: calc(100vh - 60px);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(4, 24, 36, .4);
  animation: dmIn .2s ease;
}
@keyframes dmIn { from { transform: translateY(16px); opacity: .7; } to { transform: none; opacity: 1; } }
.dm-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dm-head .t { font-size: 16px; font-weight: 700; }
.dm-head .sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.dm-close { margin-left: auto; border: none; background: #f1f5f9; color: #64748b; width: 30px; height: 30px; border-radius: 99px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dm-close:hover { background: #e2e8f0; }
.dm-close .ic { width: 14px; height: 14px; }
.dm-body { padding: 18px 20px; overflow-y: auto; }
.dm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.dm-img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.ocr-table2 { border: 1px solid var(--line); border-radius: 10px; padding: 2px 14px; }
.ocr-row2 { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ocr-row2:last-child { border: none; }
.ocr-row2 .n { color: #475569; flex: 1; }
.ocr-row2 .v { font-weight: 700; }
.ocr-row2 .v .u { font-size: 10.5px; color: #94a3b8; font-weight: 400; margin-left: 2px; }
.ocr-row2 .r { font-size: 11px; color: #94a3b8; margin-left: 10px; white-space: nowrap; }
.ocr-flag { font-size: 10.5px; border-radius: 5px; padding: 1px 6px; margin-left: 8px; font-weight: 700; }
.ocr-flag.H { color: #fff; background: var(--red); }
.ocr-flag.L { color: #fff; background: var(--blue); }
.ocr-sum2 { margin-top: 14px; background: #f0fdfa; border: 1px solid #b5ece2; color: var(--teal-d); border-radius: 10px; padding: 11px 14px; font-size: 13px; line-height: 1.65; display: flex; gap: 8px; }
.ocr-sum2 .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.dm-spin { text-align: center; padding: 50px 0; color: #92400e; font-size: 13.5px; }
.dm-spin .spinner2 { width: 26px; height: 26px; border: 3px solid #fde68a; border-top-color: #d97706; border-radius: 50%; animation: spin2 .8s linear infinite; display: inline-block; margin-bottom: 12px; }
@keyframes spin2 { to { transform: rotate(360deg); } }

/* ---------- 详情页 / 工作台的上传报告列表 ---------- */
.upl-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px dashed #eef2f6; cursor: pointer; }
.upl-row:last-child { border-bottom: none; }
.upl-row:hover .un { color: var(--teal-d); }
.upl-ic { width: 36px; height: 36px; border-radius: 10px; background: #eff6ff; color: #1d4ed8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.upl-ic .ic { width: 17px; height: 17px; }
.upl-row .un { font-size: 13px; font-weight: 600; }
.upl-row .ut { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.upl-state { margin-left: auto; flex-shrink: 0; font-size: 11px; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.upl-state.proc { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.upl-state.bad { color: var(--red); background: #fff1f2; border: 1px solid #fecdd3; font-weight: 600; }
.upl-state.ok { color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; }
.upl-state .mini-spin { width: 9px; height: 9px; border: 2px solid #fde68a; border-top-color: #d97706; border-radius: 50%; display: inline-block; animation: spin2 .8s linear infinite; margin-right: 4px; vertical-align: -1px; }

/* 滚动条 */
.content::-webkit-scrollbar, .conv-items::-webkit-scrollbar, .chat-msgs::-webkit-scrollbar, .nav::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-thumb, .conv-items::-webkit-scrollbar-thumb, .chat-msgs::-webkit-scrollbar-thumb, .nav::-webkit-scrollbar-thumb { background: #d3dae3; border-radius: 6px; }
.dm-body::-webkit-scrollbar { width: 6px; }
.dm-body::-webkit-scrollbar-thumb { background: #d3dae3; border-radius: 6px; }
