/* support.css — 客服工作台：深墨蓝 + 琥珀金，与总控中心一致 */
.support-body { background: #f4f7fb; min-height: 100vh; }

/* 顶部 */
.sp-header { position: sticky; top: 0; z-index: 50; background: #0b1c30; border-bottom: 1px solid rgba(230,180,90,.22); }
.sp-header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.sp-logo-mark { display: flex; align-items: center; color: #e6b45a; }
.sp-logo-text { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.sp-logo-text b { color: #e6b45a; }
.sp-logo-tag { font-size: 11px; font-weight: 700; color: #f0cd8a; background: rgba(230,180,90,.14); border: 1px solid rgba(230,180,90,.28); border-radius: 20px; padding: 4px 10px; margin-left: 4px; white-space: nowrap; }
.sp-header-right { display: flex; align-items: center; gap: 12px; }
.sp-private-tag { font-size: 11px; color: #a9bdd4; white-space: nowrap; }
.sp-back { font-size: 12px; color: #a9bdd4; text-decoration: none; white-space: nowrap; }
.sp-back:hover { color: #fff; }
.sp-header-right .lang-toggle { border: 1px solid rgba(255,255,255,.24); background: transparent; color: #cfe2fa; border-radius: 20px; padding: 6px 13px; font-size: 12px; font-weight: 700; cursor: pointer; }
.sp-logout { border: 1px solid rgba(255,120,120,.42); background: transparent; color: #ffb4b4; border-radius: 20px; padding: 6px 13px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sp-logout:hover { background: rgba(255,120,120,.12); }

/* 登录 */
.sp-login-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.sp-login-shell { width: min(920px,94vw); display: grid; grid-template-columns: 1.06fr 1fr; background: #fff; border: 1px solid #dce5f0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(9,28,54,.16); }
.sp-login-brand { background: linear-gradient(160deg,#0b1c30 0%,#122a47 100%); color: #fff; padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; min-height: 520px; position: relative; overflow: hidden; }
.sp-login-brand::after { content:''; position:absolute; width:320px; height:320px; border:1px solid rgba(230,180,90,.14); border-radius:50%; right:-120px; bottom:-120px; }
.sp-brand-eyebrow { font-size: 11px; letter-spacing: 2.4px; color: #e6b45a; font-weight: 700; margin-bottom: 14px; }
.sp-login-brand h2 { font-size: 27px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.sp-brand-sub { font-size: 13px; color: #a9bdd4; line-height: 1.8; margin-bottom: 26px; }
.sp-brand-list { list-style: none; border-top: 1px solid rgba(255,255,255,.12); margin:0; padding:0; }
.sp-brand-list li { font-size: 12.5px; color: #cfe2fa; padding: 12px 0 12px 22px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.sp-brand-list li::before { content:'✓'; position:absolute; left:0; color:#e6b45a; font-weight:800; }
.sp-login-form-wrap { padding: 46px 40px; display: flex; flex-direction: column; justify-content: center; }
.sp-login-form-wrap h1 { font-size: 24px; color: #1c2e4a; margin-bottom: 6px; }
.sp-login-sub { font-size: 12px; color: #8b99ad; margin-bottom: 26px; }
.sp-login-form-wrap .field-label { font-size: 12px; font-weight: 700; color: #5a6b82; margin: 14px 0 6px; display: block; }
.sp-login-form-wrap .svc-input { width: 100%; box-sizing: border-box; border: 1px solid #dce5f2; border-radius: 9px; padding: 11px 12px; font-size: 13px; font-family: inherit; }
.sp-login-form-wrap .svc-input:focus { outline: none; border-color: #c8912f; box-shadow: 0 0 0 3px rgba(200,145,47,.12); }
.sp-login-btn { width: 100%; margin-top: 22px; background: #c8912f; border-color: #c8912f; }
.sp-login-btn:hover { background: #b27f24; border-color: #b27f24; }
.sp-fill-btn { width: 100%; margin-top: 10px; }
.sp-demo-hint { text-align: center; font-size: 11px; color: #9aa8bd; margin-top: 12px; }
.sp-login-safe { margin-top: 26px; padding: 14px; background: #f7f9fd; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.sp-login-safe span { font-size: 11px; color: #7c8ba1; line-height: 1.6; }
.sp-login-safe span:first-child { color: #1c2e4a; font-weight: 700; }

/* 工作台 */
.sp-workspace { padding: 22px 24px 40px; }
.sp-shell { max-width: var(--maxw); margin: 0 auto; }
.sp-accountbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid #e4eaf4; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.sp-account-left { display: flex; align-items: center; gap: 12px; }
.sp-avatar { width: 42px; height: 42px; border-radius: 50%; background: #c8912f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.sp-account-name { font-size: 14px; color: #1c2e4a; }
.sp-account-meta { display: flex; gap: 10px; margin-top: 3px; }
.sp-role-tag { font-size: 10px; font-weight: 700; color: #b8860b; background: #fff5de; border-radius: 20px; padding: 2px 9px; }
.sp-synced { font-size: 11px; color: #8b99ad; }
.sp-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.sp-stat { background: #fff; border: 1px solid #e4eaf4; border-radius: 12px; padding: 14px 16px; }
.sp-stat span { display: block; font-size: 11px; color: #8b99ad; margin-bottom: 4px; }
.sp-stat b { font-size: 22px; color: #1c2e4a; }
.sp-stat.warn b { color: #c0392b; } .sp-stat.gold b { color: #c8912f; } .sp-stat.blue b { color: #2f6fd0; }
.sp-main { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.sp-list-panel, .sp-chat-panel, .sp-box { background: #fff; border: 1px solid #e4eaf4; border-radius: 12px; overflow: hidden; }
.sp-panel-head { padding: 14px 16px; border-bottom: 1px solid #eef1f6; }
.sp-panel-head h3 { font-size: 14px; color: #1c2e4a; margin-bottom: 10px; }
.sp-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-filter { font-size: 11px; padding: 4px 10px; border: 1px solid #e4eaf4; background: #f7f9fd; color: #5a6b82; border-radius: 20px; cursor: pointer; font-family: inherit; }
.sp-filter.active { color: #fff; background: #c8912f; border-color: #c8912f; }
.sp-conv-list { max-height: 560px; overflow: auto; }
.sp-conv { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #eef1f6; background: #fff; padding: 12px 14px; cursor: pointer; font-family: inherit; }
.sp-conv:hover { background: #f7faff; }
.sp-conv.active { background: #fff8e9; border-left: 3px solid #c8912f; }
.sp-conv-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.sp-conv-id { font-size: 11px; font-weight: 700; color: #2f6fd0; }
.sp-conv-flag { font-size: 10px; font-weight: 700; border-radius: 20px; padding: 2px 7px; }
.sp-conv-flag.risk { color: #b13535; background: #fdeaea; }
.sp-conv-flag.closed { color: #7c8ba1; background: #eef1f6; }
.sp-conv-title { font-size: 12.5px; color: #1c2e4a; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-conv-meta { font-size: 10.5px; color: #9aa8bd; }
.sp-chat-head { padding: 14px 16px; border-bottom: 1px solid #eef1f6; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-chat-head h3 { font-size: 14px; color: #1c2e4a; }
.sp-chat-head p { font-size: 11px; color: #8b99ad; margin-top: 3px; }
.sp-chat-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sp-risk-banner { padding: 10px 16px; background: #fdeaea; color: #b13535; font-size: 12px; line-height: 1.6; border-bottom: 1px solid #f5cfca; }
.sp-chat-msgs { height: 420px; overflow: auto; padding: 16px; background: #f7f9fd; display: flex; flex-direction: column; gap: 10px; }
.sp-empty { margin: auto; color: #9aa8bd; font-size: 13px; }
.sp-msg { max-width: 82%; }
.sp-msg.system { align-self: center; max-width: 95%; text-align: center; font-size: 11px; color: #5a6b82; background: #eef5ff; border-radius: 8px; padding: 6px 10px; }
.sp-msg.client { align-self: flex-end; }
.sp-msg.expert { align-self: flex-start; }
.sp-msg.support { align-self: center; max-width: 90%; }
.sp-msg-who { font-size: 10px; color: #8b99ad; margin-bottom: 3px; }
.sp-msg.client .sp-msg-who { text-align: right; }
.sp-bubble { font-size: 12.5px; line-height: 1.6; color: #1c2e4a; background: #fff; border: 1px solid #e4eaf4; border-radius: 10px; padding: 8px 12px; word-break: break-word; }
.sp-msg.client .sp-bubble { background: #eaf3ff; border-color: #d6e6fb; }
.sp-msg.support .sp-bubble { background: #fff8e9; border-color: #f0d9a8; }
.sp-msg.risk .sp-bubble { border-color: #e8a79f; background: #fff1ef; }
.sp-msg-time { font-size: 10px; color: #9aa8bd; margin-top: 3px; }
.sp-msg.client .sp-msg-time { text-align: right; }
.sp-chat-reply { padding: 12px 16px; border-top: 1px solid #eef1f6; }
.sp-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sp-quick-btn { font-size: 11px; color: #5a6b82; background: #f7f9fd; border: 1px solid #e4eaf4; border-radius: 20px; padding: 5px 10px; cursor: pointer; font-family: inherit; }
.sp-reply-row { display: flex; gap: 8px; }
.sp-reply-row .svc-input { flex: 1; min-width: 0; border: 1px solid #dce5f2; border-radius: 9px; padding: 10px 12px; font-size: 13px; font-family: inherit; }
.sp-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.sp-box { padding: 16px; }
.sp-box h3 { font-size: 14px; color: #1c2e4a; margin-bottom: 12px; }
.sp-item { padding: 10px 12px; border: 1px solid #e4eaf4; border-radius: 9px; margin-bottom: 8px; }
.sp-item-top { display: flex; gap: 8px; align-items: center; }
.sp-item-top b { font-size: 12.5px; color: #1c2e4a; }
.sp-item-top span { font-size: 11px; color: #5a6b82; }
.sp-item-top small { font-size: 10px; color: #9aa8bd; margin-left: auto; }
.sp-item p { font-size: 12px; color: #1c2e4a; line-height: 1.6; margin: 6px 0; }

@media (max-width: 1000px) {
  .sp-stats { grid-template-columns: repeat(2,1fr); }
  .sp-main { grid-template-columns: 1fr; }
  .sp-bottom { grid-template-columns: 1fr; }
  .sp-login-shell { grid-template-columns: 1fr; }
  .sp-login-brand { min-height: auto; }
}
