/* admin.css — 平台总控中心（站长专属）深墨蓝 + 琥珀金 */
.admin-body { background: #f4f7fb; min-height: 100vh; }

/* 顶部条 */
.ad-header { position: sticky; top: 0; z-index: 50; background: #0b1c30; border-bottom: 1px solid rgba(230,180,90,.22); }
.ad-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; }
.ad-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.ad-logo-mark { display: flex; align-items: center; }
.ad-logo-text { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.ad-logo-text b { color: #e6b45a; }
.ad-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ad-master-tag { font-size: 11px; font-weight: 700; color: #f0cd8a; background: rgba(230,180,90,.12); border: 1px solid rgba(230,180,90,.28); border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.ad-back { font-size: 12px; color: #a9bdd4; text-decoration: none; white-space: nowrap; }
.ad-back:hover { color: #fff; }
.ad-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; }
.ad-header-right .lang-toggle:hover { border-color: #e6b45a; color: #fff; }
.ad-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; }
.ad-logout:hover { background: rgba(255,120,120,.12); }

/* 登录页 */
.ad-login-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.ad-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); }
.ad-login-brand { background: linear-gradient(160deg,#0b1c30 0%,#122a47 100%); color: #fff; padding: 40px 38px; display: flex; flex-direction: column; justify-content: space-between; min-height: 560px; position: relative; overflow: hidden; }
.ad-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; }
.ad-brand-top { display: flex; align-items: center; gap: 9px; color: #e6b45a; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }
.ad-brand-mark { display: flex; align-items: center; }
.ad-brand-eyebrow { font-size: 11px; letter-spacing: 2.4px; color: #e6b45a; font-weight: 700; margin-bottom: 14px; }
.ad-brand-body h2 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.35; margin-bottom: 10px; }
.ad-brand-sub { font-size: 13px; color: #a9bdd4; line-height: 1.7; margin-bottom: 26px; }
.ad-brand-list { list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.ad-brand-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ad-brand-list .num { font-size: 11px; color: #e6b45a; font-family: var(--font-mono, monospace); padding-top: 3px; letter-spacing: .5px; flex-shrink: 0; }
.ad-brand-list b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.ad-brand-list small { font-size: 11.5px; color: #93a9c2; line-height: 1.5; }
.ad-brand-foot { font-size: 10px; letter-spacing: 1.6px; color: #9a8a6a; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }

.ad-login-panel { padding: 40px 40px 34px; display: flex; flex-direction: column; justify-content: center; }
.ad-login-icon { width: 44px; height: 44px; border-radius: 10px; background: #fdf3e0; color: #a9761a; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ad-form-eyebrow { font-size: 11px; letter-spacing: 1.8px; color: #a9761a; font-weight: 700; margin-bottom: 8px; }
.ad-login-panel h1 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ad-login-sub { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-bottom: 22px; }
.ad-login-form { display: flex; flex-direction: column; }
.ad-login-form .field-label { margin: 12px 0 6px; }
.ad-login-form .svc-input { width: 100%; }
.ad-login-btn { width: 100%; justify-content: center; margin-top: 22px; padding: 13px; font-size: 15px; background: #0b1c30; }
.ad-login-btn:hover { background: #163353; }
.ad-fill-btn { width: 100%; justify-content: center; margin-top: 10px; }
.ad-demo-hint { font-size: 12px; color: #8a5a08; background: #fff7ed; border: 1px solid #f0dcae; border-radius: 9px; padding: 10px 12px; margin-top: 16px; line-height: 1.6; }
.ad-login-safe { font-size: 11.5px; color: var(--ink-3); border-left: 3px solid #e6b45a; background: #fcfaf5; border-radius: 0 8px 8px 0; padding: 10px 12px; margin-top: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 3px; }
.ad-login-safe span:first-child { font-weight: 700; color: #6b3a08; }

/* 工作台 */
.ad-workspace { padding: 30px 0 70px; }
.ad-accountbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid #e2d5b8; border-radius: 14px; padding: 16px 20px; margin-bottom: 8px; }
.ad-account-left { display: flex; align-items: center; gap: 14px; }
.ad-account-left .dash-avatar { background: linear-gradient(135deg,#0b1c30,#a9761a); }
.ad-account-name { font-size: 14px; color: var(--ink-2); }
.ad-account-name b { color: var(--ink); font-family: var(--font-mono, monospace); }
.ad-account-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.ad-role-tag { font-size: 11px; font-weight: 700; color: #a9761a; background: #fdf3e0; border-radius: 20px; padding: 3px 10px; }
.ad-account-note { font-size: 12px; color: var(--ink-3); margin: 0 0 18px; padding-left: 2px; }

/* 全局指标 */
.ad-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
.ad-stat { background: #fff; border: 1px solid var(--line, #e4ebf4); border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.ad-stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ad-stat-warn .ad-stat-icon { background: #fff4e0; }
.ad-stat-blue .ad-stat-icon { background: #eaf2ff; }
.ad-stat-green .ad-stat-icon { background: #e6f7f1; }
.ad-stat-gold .ad-stat-icon { background: #fdf3e0; }
.ad-stat-purple .ad-stat-icon { background: #f0eaff; }
.ad-stat-body { min-width: 0; }
.ad-stat-label { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-stat-value { display: block; font-size: 20px; font-weight: 800; color: var(--ink); margin: 3px 0; }
.ad-stat-body small { font-size: 10.5px; color: var(--ink-3); }

/* 标签页 */
.ad-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line, #e4ebf4); margin-bottom: 20px; overflow-x: auto; }
.ad-tab { position: relative; border: 0; background: none; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.ad-tab:hover { color: var(--ink); }
.ad-tab.active { color: #0b1c30; }
.ad-tab.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: #e6b45a; border-radius: 3px 3px 0 0; }
.ad-tab-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center; background: #d9483b; color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; margin-left: 5px; padding: 0 5px; }

/* 面板 */
.ad-panel { background: #fff; border: 1px solid var(--line, #e4ebf4); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.ad-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ad-panel-head h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.ad-panel-head p { font-size: 12px; color: var(--ink-3); }
.ad-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-filter-btn { border: 1px solid var(--line, #e4ebf4); background: #fff; color: var(--ink-2); border-radius: 18px; padding: 6px 13px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ad-filter-btn:hover { border-color: #e6b45a; }
.ad-filter-btn.active { background: #0b1c30; border-color: #0b1c30; color: #fff; }
.ad-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 40px 16px; }

/* 入驻申请卡 */
.ad-app-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ad-app-card { border: 1px solid var(--line, #e4ebf4); border-radius: 12px; padding: 18px; }
.ad-app-top { display: flex; align-items: center; gap: 12px; }
.ad-app-avatar { width: 42px; height: 42px; border-radius: 50%; background: #eaf2ff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ad-app-main { flex: 1; min-width: 0; }
.ad-app-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.ad-app-id { font-size: 10.5px; color: var(--ink-3); font-family: var(--font-mono, monospace); font-weight: 500; margin-left: 6px; }
.ad-app-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.ad-app-status { font-size: 11px; font-weight: 700; border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.ad-app-status.st-wait { background: #fff4e0; color: #a9761a; }
.ad-app-status.st-ok { background: #e6f7f1; color: #157a54; }
.ad-app-status.st-no { background: #fdecec; color: #a32d2d; }
.ad-app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line, #e4ebf4); border-bottom: 1px solid var(--line, #e4ebf4); }
.ad-app-grid div { min-width: 0; }
.ad-app-grid span { display: block; font-size: 10.5px; color: var(--ink-3); margin-bottom: 2px; }
.ad-app-grid b { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono, monospace); }
.ad-app-actions { display: flex; gap: 10px; }
.ad-app-reviewed { font-size: 11px; color: var(--ink-3); }

/* 表格 */
.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ad-table th { text-align: left; font-size: 11px; color: var(--ink-3); font-weight: 600; padding: 10px 12px; background: #f7f9fc; border-bottom: 1px solid var(--line, #e4ebf4); white-space: nowrap; }
.ad-table td { padding: 12px; border-bottom: 1px solid #eef2f7; color: var(--ink-2); vertical-align: middle; }
.ad-table tr:hover td { background: #fafcff; }
.ad-mono { font-family: var(--font-mono, monospace); font-size: 11.5px; }
.ad-status-tag { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 14px; padding: 3px 9px; white-space: nowrap; background: #eef2f7; color: #65738a; }
.ad-status-tag.consulting, .ad-status-tag.quoted_ready { background: #eaf2ff; color: #185fa5; }
.ad-status-tag.pending_pay { background: #fff4e0; color: #a9761a; }
.ad-status-tag.designing { background: #e6f7f1; color: #157a54; }
.ad-status-tag.delivered { background: #eef5ff; color: #1b4f8c; }
.ad-status-tag.completed { background: #e6f7f1; color: #157a54; }
.ad-status-tag.aftersale, .ad-status-tag.jury, .ad-status-tag.disputing { background: #f0eaff; color: #6a4bb5; }
.ad-status-tag.refunded, .ad-status-tag.part_refunded { background: #fdecec; color: #a32d2d; }
.ad-status-tag.type-pay { background: #eaf2ff; color: #185fa5; }
.ad-status-tag.type-settle { background: #e6f7f1; color: #157a54; }
.ad-status-tag.type-refund { background: #fdecec; color: #a32d2d; }

/* 模型管理 */
.ad-model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ad-model-card { display: flex; flex-direction: column; border: 1px solid var(--line, #e4ebf4); border-radius: 12px; padding: 16px; gap: 12px; }
.ad-model-card.is-off { opacity: .62; background: #fafbfd; }
.ad-model-thumb { height: 84px; border-radius: 9px; background: linear-gradient(135deg,#eef4fc,#e6edf6); display: flex; align-items: center; justify-content: center; font-size: 38px; }
.ad-model-info { flex: 1; }
.ad-model-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ad-featured { font-size: 10px; color: #a9761a; background: #fdf3e0; border-radius: 10px; padding: 2px 7px; margin-left: 5px; }
.ad-model-meta { font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.ad-model-price { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.ad-model-price b { font-size: 14px; color: #d9483b; }
.ad-model-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ad-model-state { font-size: 10.5px; font-weight: 700; border-radius: 12px; padding: 3px 8px; margin-right: auto; }
.ad-model-state.on { background: #e6f7f1; color: #157a54; }
.ad-model-state.off { background: #eef2f7; color: #65738a; }

/* 交易流水 */
.ad-fin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.ad-fin-card { border-radius: 12px; padding: 16px 18px; }
.ad-fin-card span { display: block; font-size: 11px; opacity: .85; }
.ad-fin-card b { display: block; font-size: 22px; font-weight: 800; margin-top: 5px; }
.ad-fin-card.blue { background: #eaf2ff; color: #16509b; }
.ad-fin-card.green { background: #e6f7f1; color: #137a52; }
.ad-fin-card.gold { background: #fdf3e0; color: #9a6a12; }
.ad-fin-card.red { background: #fdecec; color: #a32d2d; }

/* 规则总控 */
.ad-settings { display: flex; flex-direction: column; }
.ad-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #eef2f7; }
.ad-setting-info { flex: 1; }
.ad-setting-info b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.ad-setting-info small { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.ad-setting-ctrl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ad-setting-ctrl .svc-input { width: 82px; text-align: center; }
.ad-setting-ctrl > span { font-size: 12px; color: var(--ink-3); }
.ad-settings-actions { padding-top: 20px; }
.ad-switch { position: relative; width: 44px; height: 24px; display: inline-block; cursor: pointer; }
.ad-switch input { opacity: 0; width: 0; height: 0; }
.ad-switch-track { position: absolute; inset: 0; background: #c8d2e0; border-radius: 24px; transition: .2s; }
.ad-switch-track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ad-switch input:checked + .ad-switch-track { background: #0b1c30; }
.ad-switch input:checked + .ad-switch-track::before { transform: translateX(20px); }

/* 操作日志 */
.ad-log-list { display: flex; flex-direction: column; }
.ad-log-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef2f7; }
.ad-log-dot { width: 8px; height: 8px; border-radius: 50%; background: #e6b45a; margin-top: 6px; flex-shrink: 0; }
.ad-log-body b { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.ad-log-body small { font-size: 10.5px; color: var(--ink-3); }

/* 确认弹窗 */
.ad-confirm-modal .modal-overlay { position: absolute; inset: 0; background: rgba(9,20,38,.6); }
.ad-confirm-dialog h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.ad-confirm-dialog .cli-dialog-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin-bottom: 16px; }
.ad-field { display: block; }
.ad-confirm-actions { display: flex; gap: 10px; margin-top: 20px; }

@media (max-width: 1080px) {
  .ad-stats { grid-template-columns: repeat(3, 1fr); }
  .ad-model-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ad-header-inner { padding: 0 16px; height: 58px; }
  .ad-master-tag, .ad-logo-text, .ad-back { display: none; }
  .ad-login-brand { display: none; }
  .ad-login-shell { grid-template-columns: 1fr; max-width: 480px; }
  .ad-login-panel { padding: 30px 24px; }
  .ad-login-wrap { padding: 28px 16px; }
  .ad-workspace { padding: 20px 0 50px; }
  .ad-accountbar { padding: 14px 16px; }
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
  .ad-app-list { grid-template-columns: 1fr; }
  .ad-model-grid { grid-template-columns: 1fr; }
  .ad-fin-summary { grid-template-columns: repeat(2, 1fr); }
  .ad-setting-row { flex-direction: column; align-items: flex-start; }
}

/* 模型上传审核 */
.ad-pending { margin-bottom: 20px; padding: 16px; background: #f7f9fd; border: 1px solid #e4eaf4; border-radius: 12px; }
.ad-pending h4 { font-size: 14px; font-weight: 700; color: #1c2e4a; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ad-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 20px; background: #c8912f; color: #fff; font-size: 11px; }
.ad-upload-row { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 14px; padding: 12px; background: #fff; border: 1px solid #e4eaf4; border-radius: 10px; margin-bottom: 8px; }
.ad-upload-thumb { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #eef3fa; font-size: 26px; overflow: hidden; }
.ad-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-upload-info b { display: block; font-size: 13px; color: #1c2e4a; margin-bottom: 3px; }
.ad-upload-info small { display: block; font-size: 11px; color: #8b99ad; }
.ad-upload-info p { font-size: 11.5px; color: #5a6b82; margin: 5px 0; line-height: 1.5; }
.ad-upload-files { font-size: 10.5px; color: #9aa8bd; }
.ad-upload-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 860px) {
  .ad-upload-row { grid-template-columns: 48px 1fr; }
  .ad-upload-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* 客服跟进 */
.ad-service-summary { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.ad-svc-stat { display:flex; flex-direction:column; gap:4px; min-width:130px; padding:12px 16px; background:#f7f9fd; border:1px solid #e4eaf4; border-radius:12px; }
.ad-svc-stat span { font-size:11px; color:#8b99ad; }
.ad-svc-stat b { font-size:20px; color:#1c2e4a; }
.ad-svc-warn b { color:#c0392b; } .ad-svc-blue b { color:#2f6fd0; } .ad-svc-green b { color:#16794f; }
.ad-service-list { display:flex; flex-direction:column; gap:12px; }
.ad-svc-card { padding:16px 18px; background:#fff; border:1px solid #e4eaf4; border-radius:12px; }
.ad-svc-card.is-overdue { border-color:#e8b4ae; background:#fffafa; }
.ad-svc-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ad-svc-id { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ad-svc-flag { font-size:11px; font-weight:700; color:#c0392b; background:#fdece9; border-radius:20px; padding:3px 9px; }
.ad-svc-contacted { font-size:11px; font-weight:700; color:#16794f; background:#e6f7ef; border-radius:20px; padding:3px 9px; }
.ad-svc-wait { text-align:right; white-space:nowrap; }
.ad-svc-wait b { font-size:18px; color:#2f6fd0; }
.ad-svc-wait.late b { color:#c0392b; }
.ad-svc-wait small { display:block; font-size:10px; color:#8b99ad; }
.ad-svc-title { font-size:14px; font-weight:700; color:#1c2e4a; margin:10px 0; }
.ad-svc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px 16px; margin-bottom:12px; }
.ad-svc-grid > div { display:flex; flex-direction:column; gap:2px; }
.ad-svc-grid span { font-size:10.5px; color:#8b99ad; }
.ad-svc-grid b { font-size:12px; color:#1c2e4a; }
.ad-svc-phone { color:#c8912f !important; }
.ad-svc-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ad-chat-dialog { width:min(560px,94vw); }
.ad-chat-msgs { display:flex; flex-direction:column; gap:10px; max-height:50vh; overflow:auto; padding:14px; background:#f7f9fd; border-radius:10px; margin:12px 0; }
.ad-chat-msg { max-width:85%; padding:9px 12px; border-radius:10px; font-size:12px; line-height:1.6; color:#1c2e4a; background:#fff; border:1px solid #e4eaf4; }
.ad-chat-msg.sys { align-self:center; max-width:95%; background:#eef5ff; color:#5a6b82; text-align:center; font-size:11px; }
.ad-chat-msg.expert { align-self:flex-start; }
.ad-chat-msg.client { align-self:flex-end; background:#eaf3ff; }
.ad-chat-who { font-size:10px; color:#8b99ad; display:block; }
.ad-chat-msg small { display:block; font-size:10px; color:#9aa8bd; text-align:right; }
.ad-chat-contact { display:flex; flex-direction:column; gap:4px; font-size:12px; color:#5a6b82; margin-bottom:14px; }
.ad-chat-contact b { color:#1c2e4a; }
@media (max-width: 860px) { .ad-svc-grid { grid-template-columns:repeat(2,1fr); } }

/* 客服发言 + @求助提醒 */
.ad-svc-stat.ad-svc-call b { color:#b8860b; }
.ad-svc-call { display:inline-flex; align-items:center; font-size:11px; font-weight:700; color:#b8860b; background:#fff5de; border:1px solid #f0d9a8; border-radius:20px; padding:3px 9px; }
.ad-svc-card.is-called { border-color:#e8cf9a; background:#fffdf7; }
.ad-chat-msg.support { align-self:center; max-width:92%; background:#fff8e9; border-color:#f0d9a8; }
.ad-chat-msg.support .ad-chat-who { color:#a6701c; font-weight:700; }
.ad-chat-reply { border-top:1px solid #e4eaf4; padding-top:12px; margin-top:4px; }
.ad-chat-quick { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.ad-quick-btn { font-size:11px; color:#5a6b82; background:#f7f9fd; border:1px solid #e4eaf4; border-radius:20px; padding:5px 10px; cursor:pointer; font-family:inherit; }
.ad-quick-btn:hover { color:#2f6fd0; border-color:#b9d2f5; background:#eef5ff; }
.ad-chat-input-row { display:flex; gap:8px; }
.ad-chat-input-row .svc-input { flex:1; min-width:0; }
.ad-svc-tip { font-size:12px; line-height:1.6; color:#7c6a45; background:#fff9ec; border:1px solid #f0d9a8; border-radius:10px; padding:9px 12px; margin-bottom:14px; }

/* 单号直达查询 + 客户留言 */
.ad-lookup { padding:16px; background:#f7f9fd; border:1px solid #e4eaf4; border-radius:12px; margin-bottom:16px; }
.ad-lookup-bar { display:flex; gap:10px; }
.ad-lookup-bar .svc-input { flex:1; min-width:0; border:1px solid #dce5f2; border-radius:9px; padding:10px 12px; font-size:13px; font-family:inherit; }
.ad-lookup-bar .svc-input:focus { outline:none; border-color:#c8912f; box-shadow:0 0 0 3px rgba(200,145,47,.12); }
.ad-lk-card { background:#fff; border:1px solid #e4eaf4; border-radius:10px; padding:16px 18px; margin-top:14px; }
.ad-lk-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.ad-lk-top h4 { font-size:16px; color:#1c2e4a; margin-top:4px; }
.ad-lk-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px 16px; }
.ad-lk-grid > div { display:flex; flex-direction:column; gap:2px; }
.ad-lk-grid span { font-size:10.5px; color:#8b99ad; }
.ad-lk-grid b { font-size:12.5px; color:#1c2e4a; }
.ad-lk-section { margin-top:16px; }
.ad-lk-section h5 { font-size:12px; font-weight:700; color:#5a6b82; margin-bottom:6px; }
.ad-lk-section p { font-size:12px; color:#1c2e4a; line-height:1.6; }
.ad-lk-alert { margin-top:14px; font-size:12px; color:#b13535; background:#fdeaea; border-radius:8px; padding:8px 10px; }
.ad-lk-msgs { display:flex; flex-direction:column; gap:6px; }
.ad-lk-msg { font-size:11.5px; padding:7px 10px; border-radius:8px; background:#f7f9fd; }
.ad-lk-msg.support { background:#fff8e9; } .ad-lk-msg.system { background:#eef5ff; text-align:center; color:#5a6b82; }
.ad-lk-msg span { font-size:10px; color:#8b99ad; }
.ad-lk-msg p { margin:2px 0 0; color:#1c2e4a; }
.ad-lk-card .ad-svc-actions { margin-top:16px; }
.ad-svc-msgs { padding:16px; background:#fff; border:1px solid #e4eaf4; border-radius:12px; margin-bottom:16px; }
.ad-svc-msgs h4 { font-size:14px; font-weight:700; color:#1c2e4a; margin-bottom:10px; }
.ad-smsg { padding:11px 13px; border:1px solid #e4eaf4; border-radius:9px; margin-bottom:8px; }
.ad-smsg-top { display:flex; gap:10px; align-items:center; }
.ad-smsg-top b { font-size:12.5px; color:#1c2e4a; }
.ad-smsg-top span { font-size:11px; color:#5a6b82; }
.ad-smsg-top small { font-size:10px; color:#9aa8bd; margin-left:auto; }
.ad-smsg p { font-size:12px; color:#1c2e4a; margin:6px 0; line-height:1.6; }
.ad-smsg-foot { font-size:11px; color:#9aa8bd; }
@media (max-width: 860px) { .ad-lk-grid { grid-template-columns:repeat(2,1fr); } }
.ad-chat-moderate { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 0; border-bottom:1px solid #eef1f6; margin-bottom:12px; }
.ad-chat-risk { font-size:11px; font-weight:700; color:#b13535; background:#fdeaea; border-radius:20px; padding:4px 10px; }

/* ---------- 图纸销售对账 ---------- */
.dr-fin-panel { margin-top:18px; }
.dr-fin-panel .ad-fin-summary { margin-bottom:12px; }
