@font-face { font-family: "Geist"; font-weight: 300 800; font-display: swap; src: url(/fonts/Geist.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400 500; font-display: swap; src: url(/fonts/GeistMono.woff2) format("woff2"); }

:root {
  --primary: #2B6CEE; --primary-hi: #5B8EFF; --primary-50: #EEF3FE; --primary-100: #DCE7FD;
  --bg: #F6F6F8; --surface: #fff; --surface-2: #F8FAFC;
  --t1: #0F172A; --t2: #475569; --t3: #64748B; --t4: #94A3B8;
  --line: #E2E8F0; --line-2: #EDF1F6;
  --ok: #10B981; --ok-50: #ECFDF5; --warn: #F59E0B; --warn-50: #FFFBEB; --err: #EF4444; --err-50: #FEF2F2;
  --nav-bg: #060A13; --nav-2: #0F172A; --nav-line: rgba(148,163,184,.13); --nav-t: #94A3B8; --nav-t1: #F1F5F9;
  --cyan: #22D3EE;
  --r: 12px; --r-sm: 8px;
  --sh: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --sh-lg: 0 20px 50px -12px rgba(15,23,42,.25);
  --font: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--t1); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
.mono { font-family: var(--mono); font-size: 12.5px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--nav-bg); color: var(--nav-t1); position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--nav-line) 1px, transparent 1px), linear-gradient(90deg, var(--nav-line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%); }
.login::after { content: ""; position: absolute; width: 760px; height: 760px; left: -160px; top: -240px; background: radial-gradient(circle, rgba(43,108,238,.35), transparent 62%); filter: blur(10px); }
.login-l { position: relative; z-index: 1; padding: 56px 64px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(148,163,184,.22), 0 6px 20px -6px rgba(43,108,238,.7); }
.login-l h1 { font-size: 44px; line-height: 1.15; letter-spacing: -.03em; margin: auto 0 18px; font-weight: 650; max-width: 560px; }
.login-l h1 em { font-style: normal; background: linear-gradient(90deg, var(--primary-hi), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-l p.lead { color: var(--nav-t); font-size: 16px; line-height: 1.7; max-width: 500px; margin: 0 0 36px; }
.feat { display: grid; gap: 14px; margin-bottom: auto; }
.feat div { display: flex; gap: 12px; align-items: center; color: #CBD5E1; font-size: 14px; }
.feat span.ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(43,108,238,.14); color: var(--primary-hi); border: 1px solid rgba(91,142,255,.25); }
.login-foot { color: #475569; font-size: 12.5px; margin-top: 40px; }
.login-r { position: relative; z-index: 1; display: grid; place-items: center; padding: 40px; }
.login-card { width: 100%; max-width: 400px; background: rgba(15,23,42,.72); border: 1px solid rgba(148,163,184,.18); border-radius: 20px; padding: 36px 32px; backdrop-filter: blur(14px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.login-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.login-card .sub { color: var(--nav-t); margin: 0 0 26px; font-size: 13.5px; }
.login-card label { display: block; font-size: 13px; color: #CBD5E1; margin: 0 0 7px; }
.login-card .fld { position: relative; margin-bottom: 18px; }
.login-card .fld svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #64748B; }
.login-card input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid rgba(148,163,184,.22); background: rgba(6,10,19,.6); color: #F1F5F9; padding: 0 14px 0 40px; outline: none; transition: border-color .15s, box-shadow .15s; }
.login-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,108,238,.25); }
.login-card .eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #64748B; cursor: pointer; padding: 4px; }
.login-card .eye svg { position: static; transform: none; }
.login-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--nav-t); margin: -4px 0 22px; }
.login-card .row label { margin: 0; display: flex; gap: 6px; align-items: center; color: var(--nav-t); cursor: pointer; }
.login-card .row input { width: auto; height: auto; }
.login-card .err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #FCA5A5; font-size: 13px; padding: 9px 12px; border-radius: 8px; margin-bottom: 16px; }
.login-card .btn { width: 100%; height: 44px; font-size: 15px; }
.login-card .sec { display: flex; align-items: center; gap: 8px; justify-content: center; color: #64748B; font-size: 12.5px; margin-top: 22px; }

/* ---------- 布局 ---------- */
.app { display: grid; grid-template-columns: 224px 1fr; height: 100vh; }
.side { background: var(--nav-bg); color: var(--nav-t); display: flex; flex-direction: column; border-right: 1px solid #0b1222; min-height: 0; }
.side .brand { color: var(--nav-t1); padding: 18px 18px 14px; font-size: 17px; }
.side .brand img { width: 28px; height: 28px; }
.side .brand small { font-size: 11px; font-weight: 500; color: var(--primary-hi); background: rgba(43,108,238,.15); border: 1px solid rgba(91,142,255,.25); padding: 1px 7px; border-radius: 99px; margin-left: 2px; }
.org { margin: 4px 12px 10px; padding: 10px 12px; border-radius: 10px; background: rgba(148,163,184,.06); border: 1px solid var(--nav-line); display: flex; gap: 10px; align-items: center; }
.org .lg { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 650; font-size: 13px; flex: none; }
.org b { display: block; color: var(--nav-t1); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org span { font-size: 11.5px; }
.nav { flex: 1; overflow: auto; padding: 4px 10px 14px; }
.nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #475569; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--nav-t); padding: 8px 10px; border-radius: 8px; font-size: 13.5px; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(148,163,184,.08); color: var(--nav-t1); }
.nav a.on { background: linear-gradient(90deg, rgba(43,108,238,.28), rgba(43,108,238,.08)); color: #fff; box-shadow: inset 2px 0 0 var(--primary-hi); }
.nav a .bd { margin-left: auto; background: var(--err); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.side-foot { padding: 12px 18px 16px; font-size: 11.5px; color: #475569; border-top: 1px solid var(--nav-line); display: flex; align-items: center; gap: 6px; }
.side-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: 58px; flex: none; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 22px; gap: 14px; }
.top h1 { font-size: 16px; margin: 0; font-weight: 620; letter-spacing: -.01em; }
.top .crumb { color: var(--t4); font-size: 13px; }
.top .sp { flex: 1; }
.live { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t3); padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.live.off i { background: var(--t4); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.status-sel { position: relative; }
.status-btn { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.sdot.online { background: var(--ok); } .sdot.busy { background: var(--warn); } .sdot.offline { background: var(--t4); }
.me-btn { display: flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.me-btn:hover { background: var(--surface-2); }
.me-btn b { font-size: 13px; font-weight: 600; display: block; text-align: left; }
.me-btn div span { font-size: 11.5px; color: var(--t3); display: block; text-align: left; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--t2); position: relative; }
.icon-btn:hover { background: var(--surface-2); color: var(--t1); }
.icon-btn .bd { position: absolute; top: -5px; right: -5px; background: var(--err); color: #fff; font-size: 10.5px; font-weight: 600; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-lg); min-width: 170px; padding: 6px; z-index: 50; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; text-align: left; font-size: 13px; color: var(--t1); }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.content { flex: 1; overflow: auto; min-height: 0; }
.page { padding: 22px; max-width: 1480px; margin: 0 auto; }

/* ---------- 通用组件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--t1); white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); border-color: #CBD5E1; }
.btn.pri { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(43,108,238,.8); }
.btn.pri:hover { background: #2460D8; }
.btn.danger { color: var(--err); border-color: #FECACA; }
.btn.danger:hover { background: var(--err-50); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg.i { width: 16px; height: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 620; }
.card-h .sub { color: var(--t3); font-size: 12.5px; }
.card-h .sp { flex: 1; }
.card-b { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); }
.g-21 { grid-template-columns: 2fr 1fr; } .g-12 { grid-template-columns: 1fr 2fr; }
.mb { margin-bottom: 16px; }
.kpi { padding: 16px 18px; }
.kpi .l { color: var(--t3); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; color: var(--t3); font-weight: 500; margin-left: 3px; }
.kpi .d { font-size: 12px; color: var(--t3); }
.up { color: #059669 !important; } .down { color: #DC2626 !important; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--t2); white-space: nowrap; }
.chip.c { border: 0; }
.chip .x { cursor: pointer; color: var(--t4); margin-left: 2px; }
.tag-ok { background: var(--ok-50); color: #047857; border-color: #A7F3D0; }
.tag-warn { background: var(--warn-50); color: #B45309; border-color: #FDE68A; }
.tag-err { background: var(--err-50); color: #B91C1C; border-color: #FECACA; }
.tag-pri { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }
.tag-gray { background: #F1F5F9; color: var(--t3); }
.vip { background: linear-gradient(90deg, #F59E0B, #F97316); color: #fff; border: 0; font-weight: 600; font-size: 10.5px; height: 17px; padding: 0 5px; border-radius: 4px; }
.av { color: #fff !important; line-height: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; flex: none; position: relative; }
.av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.xs { width: 22px; height: 22px; font-size: 10.5px; }
.av.lg { width: 52px; height: 52px; font-size: 20px; }
.av .sdot { position: absolute; right: -1px; bottom: -1px; border: 2px solid #fff; width: 11px; height: 11px; }
.input, .select, textarea.input { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; background: #fff; outline: none; font-size: 13px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,108,238,.14); }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--t4); width: 16px; height: 16px; }
.search .input { padding-left: 32px; width: 100%; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .sp { flex: 1; }
.seg { display: inline-flex; background: #EEF1F5; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 13px; color: var(--t2); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.seg button.on { background: #fff; color: var(--t1); box-shadow: var(--sh); font-weight: 550; }
.seg button .n { font-size: 11.5px; color: var(--t3); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 550; color: var(--t3); font-size: 12.5px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: #FAFBFD; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ell { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-u { display: flex; align-items: center; gap: 10px; }
.cell-u b { font-weight: 550; display: block; }
.cell-u > div > span { color: var(--t3); font-size: 12px; display: block; }
.muted { color: var(--t3); } .dim { color: var(--t4); }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--t3); }
.pager .sp { flex: 1; }
.empty { text-align: center; padding: 50px 20px; color: var(--t4); font-size: 13px; }
.empty svg { width: 40px; height: 40px; stroke-width: 1.3; color: #CBD5E1; margin-bottom: 8px; }
.stars { color: #F59E0B; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars i { color: #E2E8F0; font-style: normal; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CBD5E1; border-radius: 11px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(16px); }
.form-row { margin-bottom: 14px; }
.form-row > label { display: block; font-size: 13px; color: var(--t2); margin-bottom: 6px; font-weight: 500; }
.form-row .input, .form-row .select, .form-row textarea { width: 100%; }
.form-row .hint { font-size: 12px; color: var(--t4); margin-top: 5px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 9px 10px; font-size: 13px; }
.kv dt { color: var(--t3); } .kv dd { margin: 0; color: var(--t1); word-break: break-all; }
.bar { height: 6px; border-radius: 3px; background: #EEF1F5; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }

/* 弹窗 / 抽屉 / 提示 */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 100; display: grid; place-items: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; width: 480px; max-width: calc(100vw - 32px); max-height: calc(100vh - 60px); display: flex; flex-direction: column; box-shadow: var(--sh-lg); animation: pop .18s; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.modal-h h3 { margin: 0; font-size: 15.5px; flex: 1; }
.modal-b { padding: 18px 20px; overflow: auto; }
.modal-f { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; }
.drawer-mask { place-items: stretch end; }
.drawer { background: #fff; width: 720px; max-width: 100vw; height: 100vh; display: flex; flex-direction: column; box-shadow: var(--sh-lg); animation: slide .2s; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer .modal-b { flex: 1; padding: 0; display: flex; flex-direction: column; min-height: 0; }
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; }
.toast { background: #0F172A; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: var(--sh-lg); animation: pop .2s; display: flex; align-items: center; gap: 8px; }
.toast.err { background: #B91C1C; }
.notice { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 10px; }
.notice .n { width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); padding: 12px 14px; display: flex; gap: 10px; cursor: pointer; animation: slide .2s; }
.notice .n b { font-size: 13px; display: block; }
.notice .n p { margin: 3px 0 0; font-size: 12.5px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }

/* ---------- 工作台 ---------- */
.wb { display: grid; grid-template-columns: 316px 1fr 312px; height: 100%; min-height: 0; }
.wb-list { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.wb-list .hd { padding: 14px 14px 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line-2); }
.wb-list .seg { width: 100%; }
.wb-list .seg button { flex: 1; justify-content: center; padding: 0 6px; }
.conv-list { flex: 1; overflow: auto; padding: 6px; }
.ci { display: flex; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; position: relative; margin-bottom: 2px; }
.ci:hover { background: var(--surface-2); }
.ci.on { background: var(--primary-50); }
.ci .bd1 { flex: 1; min-width: 0; }
.ci .r1 { display: flex; align-items: center; gap: 6px; }
.ci .r1 b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci .r1 time { margin-left: auto; font-size: 11.5px; color: var(--t4); flex: none; }
.ci .r2 { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ci .r2 p { margin: 0; font-size: 12.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ci .un { background: var(--err); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; flex: none; }
.ci .r3 { display: flex; gap: 5px; margin-top: 6px; align-items: center; }
.ci .r3 .chip { height: 19px; font-size: 11px; padding: 0 6px; }
.ci .wait { font-size: 11.5px; color: #B45309; margin-left: auto; }
.wb-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.chat-h { height: 62px; flex: none; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.chat-h .t { flex: 1; min-width: 0; }
.chat-h .t b { font-size: 15px; font-weight: 620; display: flex; align-items: center; gap: 7px; }
.chat-h .t > span { font-size: 12px; color: var(--t3); display: flex; gap: 6px; align-items: center; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.chat-h .t > span svg { width: 13px; height: 13px; }
.chat-h .btn { flex: none; }
.enc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #047857; background: var(--ok-50); border: 1px solid #A7F3D0; padding: 0 7px; height: 20px; border-radius: 99px; }
.enc svg { width: 12px; height: 12px; }
.msgs { flex: 1; overflow: auto; padding: 18px 22px 10px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 9px; max-width: 74%; align-items: flex-end; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg .bub { background: #fff; border: 1px solid var(--line); padding: 9px 13px; border-radius: 14px 14px 14px 4px; line-height: 1.6; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; box-shadow: var(--sh); }
.msg.me .bub { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 14px 14px 4px 14px; }
.msg .meta { font-size: 11px; color: var(--t4); margin-bottom: 4px; }
.msg.me .meta { text-align: right; }
.msg .col { display: flex; flex-direction: column; min-width: 0; }
.msg .img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: #fff; display: block; max-width: 200px; box-shadow: var(--sh); }
.msg .img img { display: block; width: 100%; height: auto; }
.msg .file { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 230px; box-shadow: var(--sh); color: var(--t1); }
.msg .file .fi { width: 38px; height: 38px; border-radius: 9px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 700; font-family: var(--mono); }
.msg .file b { font-size: 13px; font-weight: 550; display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .file span { font-size: 11.5px; color: var(--t3); }
.sys { align-self: center; font-size: 12px; color: var(--t3); background: rgba(148,163,184,.14); padding: 4px 12px; border-radius: 99px; max-width: 80%; text-align: center; line-height: 1.5; }
.sys.welcome { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px; }
.day { align-self: center; font-size: 11.5px; color: var(--t4); }
.rate-card { align-self: center; background: #fff; border: 1px solid #FDE68A; border-radius: 12px; padding: 10px 16px; text-align: center; font-size: 12.5px; color: var(--t2); box-shadow: var(--sh); }
.rate-card .stars { font-size: 16px; display: block; margin: 3px 0; }
.typing { font-size: 12px; color: var(--t4); padding: 0 22px 6px; height: 22px; }
.composer { flex: none; background: #fff; border-top: 1px solid var(--line); padding: 8px 14px 12px; position: relative; }
.composer .tools { display: flex; gap: 4px; margin-bottom: 4px; align-items: center; }
.composer .tools .btn { height: 30px; padding: 0 9px; color: var(--t2); }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; height: 74px; font-size: 14px; line-height: 1.6; padding: 4px 2px; }
.composer .ft { display: flex; align-items: center; gap: 10px; }
.composer .ft span { font-size: 12px; color: var(--t4); flex: 1; }
.banner { flex: none; background: #fff; border-top: 1px solid var(--line); padding: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--t3); font-size: 13px; }
.qr-pop { position: absolute; left: 12px; bottom: calc(100% + 6px); width: 440px; max-height: 340px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); display: flex; flex-direction: column; z-index: 20; }
.qr-pop .hd { padding: 10px; border-bottom: 1px solid var(--line-2); }
.qr-pop .ls { overflow: auto; padding: 6px; }
.qr-pop .it { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.qr-pop .it:hover, .qr-pop .it.on { background: var(--primary-50); }
.qr-pop .it b { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.qr-pop .it p { margin: 3px 0 0; font-size: 12.5px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-info { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.wb-info .tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 10px; flex: none; }
.wb-info .tabs button { flex: 1; border: 0; background: none; height: 46px; cursor: pointer; font-size: 13px; color: var(--t3); border-bottom: 2px solid transparent; }
.wb-info .tabs button.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.wb-info .body { flex: 1; overflow: auto; padding: 16px; }
.prof { text-align: center; padding: 6px 0 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.prof .av { margin: 0 auto 8px; }
.prof b { font-size: 15px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.prof > span:not(.av) { font-size: 12px; color: var(--t3); }
.sec-t { font-size: 12px; color: var(--t3); font-weight: 600; margin: 16px 0 8px; display: flex; align-items: center; }
.sec-t .sp { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hist { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.hist:hover { border-color: var(--primary-100); background: #FAFBFF; }
.hist .r1 { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 550; }
.hist .r1 time { margin-left: auto; font-size: 11.5px; color: var(--t4); font-weight: 400; }
.hist p { margin: 5px 0 0; font-size: 12px; color: var(--t3); }
.note { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; font-size: 13px; line-height: 1.55; }
.note .m { font-size: 11.5px; color: #B45309; margin-bottom: 3px; }
.wb-empty { display: grid; place-items: center; height: 100%; color: var(--t4); text-align: center; }
.wb-empty .ill { width: 88px; height: 88px; border-radius: 24px; background: linear-gradient(135deg, var(--primary-50), #fff); border: 1px solid var(--primary-100); display: grid; place-items: center; margin: 0 auto 14px; color: var(--primary); }
.wb-empty .ill svg { width: 36px; height: 36px; }
.wb-empty b { color: var(--t2); display: block; font-size: 15px; margin-bottom: 4px; }
.lightbox { position: fixed; inset: 0; background: rgba(6,10,19,.85); z-index: 300; display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 80vw; max-height: 88vh; border-radius: 10px; background: #fff; }

/* 图表 */
.chart { width: 100%; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--t4); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--t3); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbar { display: grid; gap: 10px; }
.hbar .row { display: grid; grid-template-columns: 110px 1fr 52px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--t2); }
.hbar .row b { text-align: right; font-weight: 550; font-variant-numeric: tabular-nums; }
.hbar .bar { height: 8px; }
.tip { position: fixed; pointer-events: none; background: #0F172A; color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 7px; z-index: 400; white-space: nowrap; }

.m-head { display: flex; gap: 16px; align-items: center; padding: 18px; }
.m-head .lg { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 650; }
.m-head h2 { margin: 0 0 4px; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.m-head .sp { flex: 1; }
.code { background: #0F172A; color: #E2E8F0; font-family: var(--mono); font-size: 12.5px; border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; word-break: break-all; line-height: 1.65; position: relative; }
.code .cp { position: absolute; right: 8px; top: 8px; }
.code .k { color: #7DD3FC; } .code .s { color: #86EFAC; }

@media (max-width: 1280px) { .wb { grid-template-columns: 290px 1fr 270px; } .g6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .wb { grid-template-columns: 270px 1fr; } .wb-info { display: none; } .g4 { grid-template-columns: repeat(2, 1fr); } .g-21, .g-12 { grid-template-columns: 1fr; } .login { grid-template-columns: 1fr; } .login-l { display: none; } }
