:root {
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --primary-soft: #eff5ff;
  --ink: #172033;
  --muted: #6b7280;
  --line: #e6eaf2;
  --bg: #f4f6fb;
  --card: #ffffff;
  --green: #059669;
  --orange: #ea580c;
  --red: #dc2626;
  --shadow: 0 12px 40px rgba(15, 23, 42, .1);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; line-height: 1.6; }
.inline { display: inline; }

.alert {
  margin: 12px 16px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.alert.error { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; }
.alert.success { background: #ecfdf5; color: #067647; border: 1px solid #bbf7d0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  transition: .18s ease;
}
.btn:hover { border-color: #c7d2fe; color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .24); }
.btn.primary:hover { background: var(--primary-deep); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: #fff; color: var(--red); border-color: #fecaca; }
.btn.danger:hover { background: #fef2f2; color: var(--red); }
.btn.small { min-height: 32px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 6px;
}
.text-btn.danger { color: var(--red); font-weight: 600; }
.text-btn:hover { opacity: .8; }
.small-link { color: var(--primary); font-size: 13px; }
.small-link:hover { text-decoration: underline; }

.input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  transition: .18s ease;
}
.input:focus { border-color: #93c5fd; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
textarea { resize: none; }

.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 13px; color: #344054; font-weight: 600; margin-top: 8px; }
.form .input { margin-bottom: 2px; }
.form .btn { margin-top: 16px; }
.form.narrow { max-width: 520px; }
.field-tip { font-size: 12px; color: var(--muted); line-height: 1.6; }
.field-tip code { color: var(--ink); background: #f2f4f7; padding: 2px 6px; border-radius: 5px; }

/* 登录页 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #eef4ff;
}
.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .18), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(14, 165, 233, .16), transparent 32%),
    linear-gradient(135deg, #f3f7ff 0%, #eef2f9 50%, #f7f4ff 100%);
}
.auth-bg::before, .auth-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.auth-bg::before { width: 180px; height: 180px; left: 8%; bottom: 10%; background: rgba(37, 99, 235, .10); }
.auth-bg::after { width: 260px; height: 260px; right: 4%; top: 4%; background: rgba(124, 58, 237, .08); }
.auth-card {
  position: relative;
  width: min(92vw, 420px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 34px 28px 24px;
}
.auth-card h1 { font-size: 24px; margin: 14px 0 6px; letter-spacing: -.5px; }
.auth-card > .muted { font-size: 13px; margin: 0 0 18px; }
.auth-card .form { margin-top: 8px; }
.brand-mark {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff; font-size: 24px; font-weight: 800;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .26);
}
.brand-mark.admin { background: linear-gradient(135deg, #0f172a, #334155); box-shadow: 0 10px 22px rgba(15, 23, 42, .2); }
.auth-foot { text-align: center; color: #98a2b3; font-size: 11px; margin-top: 20px; line-height: 1.6; }

/* 客服端 */
.agent-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #e9edf5;
}
.agent-shell {
  position: relative;
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(15, 23, 42, .12);
}
@media (min-width: 700px) {
  .agent-page { padding: 24px 0; }
  .agent-shell { min-height: calc(100vh - 48px); height: calc(100vh - 48px); border-radius: 22px; overflow: hidden; }
}
.topbar {
  height: 58px; flex: 0 0 58px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
}
.topbar-title { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.topbar-user { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.dot.online { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.page-body { flex: 1; overflow-y: auto; padding: 14px 14px 88px; }
.conv-list { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #fff; border-bottom: 1px solid #f1f4f9; transition: background .16s; }
.conv-item:last-child { border-bottom: 0; }
.conv-item:hover { background: #f8faff; }
.conv-item.unread .conv-preview { color: #344054; font-weight: 600; }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 700; }
.conv-main { flex: 1; min-width: 0; }
.conv-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conv-line strong { font-size: 14px; }
.conv-time { font-size: 11px; color: #98a2b3; white-space: nowrap; }
.conv-preview { margin-top: 4px; font-size: 12px; color: #98a2b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.tag.gray { color: #667085; background: #f2f4f7; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.empty-state { padding: 56px 26px; text-align: center; color: var(--muted); }
.empty-state.compact { padding: 36px 20px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.empty-icon { font-size: 44px; margin-bottom: 10px; opacity: .7; }
.empty-state h3 { color: var(--ink); font-size: 16px; margin: 0 0 8px; }
.empty-state p { font-size: 13px; line-height: 1.7; margin: 0 auto; max-width: 300px; }

.bottom-nav {
  position: sticky; bottom: 0;
  height: 66px; flex: 0 0 66px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 5px 18px 8px;
  z-index: 30;
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; color: #98a2b3; font-size: 11px; font-weight: 600; padding: 5px 0; border-radius: 10px; }
.nav-item.active { color: var(--primary); }
.nav-ico { font-size: 21px; line-height: 1.2; filter: grayscale(20%); }

/* 聊天 */
.chat-topbar {
  height: 58px; flex: 0 0 58px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 6px;
  z-index: 20;
}
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: #475467; font-size: 28px; line-height: 1; }
.chat-person { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-person strong { font-size: 15px; }
.chat-person small { font-size: 10px; color: var(--muted); }
.chat-person.with-avatar { flex-direction: row; align-items: center; gap: 10px; }
.chat-person.with-avatar .avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 14px; }
.end-form { margin: 0; }
.chat-main { flex: 1; overflow-y: auto; padding: 14px 12px 10px; background: #eef2f8; }
.chat-messages { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.msg-row { display: flex; align-items: flex-end; gap: 7px; max-width: 100%; }
.msg-row.mine { justify-content: flex-end; }
.msg-avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; background: #64748b !important; }
.bubble {
  max-width: 76%;
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  padding: 9px 11px 6px;
  box-shadow: 0 1px 1px rgba(16, 24, 40, .04);
}
.msg-row.mine .bubble {
  background: var(--primary);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.msg-text { font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg-media { max-width: 250px; max-height: 270px; border-radius: 9px; display: block; }
.voice-msg { display: flex; align-items: center; gap: 7px; min-width: 180px; }
.voice-msg audio { height: 32px; max-width: 200px; }
.voice-msg small { font-size: 10px; opacity: .75; }
.msg-meta { font-size: 9px; color: #98a2b3; text-align: right; margin-top: 3px; }
.msg-row.mine .msg-meta { color: rgba(255, 255, 255, .68); }
.msg-system { align-self: center; background: rgba(15, 23, 42, .07); color: #667085; font-size: 11px; padding: 4px 10px; border-radius: 20px; text-align: center; max-width: 86%; }
.msg-system.call-line { background: rgba(37, 99, 235, .09); color: #1d4ed8; }

.composer {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.composer-tools { display: flex; align-items: center; gap: 2px; }
.tool-btn {
  width: 38px; height: 34px; border: 0; background: transparent; border-radius: 8px;
  display: grid; place-items: center; font-size: 19px; color: #475467;
}
.tool-btn:hover { background: #f2f6ff; }
.tool-btn.recording { background: #fef2f2; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.emoji-panel {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 2px;
  border-bottom: 1px solid #f2f4f7;
}
.emoji-item { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; font-size: 20px; }
.emoji-item:hover { background: #f2f6ff; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; padding-top: 5px; }
#text-input {
  flex: 1;
  min-height: 40px; max-height: 110px;
  border: 1px solid #edf0f5;
  background: #f7f9fc;
  border-radius: 11px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px; line-height: 1.5;
  color: var(--ink);
  transition: .16s;
}
#text-input:focus { background: #fff; border-color: #bfdbfe; }
.send-btn {
  height: 40px; padding: 0 18px;
  border: 0; border-radius: 10px;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 13px;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .22);
}
.send-btn:hover { background: var(--primary-deep); }
.recording-tip { display: none; font-size: 12px; color: var(--red); padding: 7px 4px 0; }
.ended-bar {
  flex: 0 0 auto;
  min-height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff; border-top: 1px solid var(--line);
  color: #98a2b3; font-size: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}

/* 我的 */
.profile-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 12px; }
.profile-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 25px; font-weight: 800; }
.profile-avatar.large { width: 84px; height: 84px; flex-basis: 84px; font-size: 32px; margin: 0 auto; }
.profile-card h2 { margin: 0 0 4px; font-size: 21px; }
.profile-card p { margin: 0; font-size: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.panel-title { font-size: 15px; margin: 0 0 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head .panel-title { margin: 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-size: 12px; height: 42px; }
.copy-row .btn { flex: 0 0 auto; min-height: 42px; }
.danger-zone { background: transparent; border: 0; padding: 0 2px; }

/* 访客 */
.visitor-page { min-height: 100vh; background: #e6ebf4; display: flex; justify-content: center; }
.visitor-shell { width: 100%; max-width: 720px; height: 100vh; height: 100dvh; background: #eef2f8; display: flex; flex-direction: column; box-shadow: 0 0 70px rgba(15, 23, 42, .16); }
.visitor-topbar { background: #fff; }
.visitor-login-wrap { min-height: 100vh; width: 100%; max-width: 460px; display: flex; flex-direction: column; justify-content: center; padding: 24px 18px; }
.visitor-agent-card { text-align: center; padding: 18px 0 26px; }
.visitor-agent-card h1 { margin: 14px 0 5px; font-size: 25px; }
.visitor-login-card { background: #fff; border-radius: 20px; padding: 22px 20px 18px; box-shadow: 0 12px 34px rgba(15, 23, 42, .08); }
.visitor-login-card h3 { font-size: 17px; margin: 0 0 14px; }
.visitor-login-card .tiny { margin: 12px 0 0; }

/* 通话 */
.call-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(5px);
}
.call-modal.show { display: flex; }
.call-card {
  width: min(86vw, 330px);
  background: linear-gradient(160deg, #ffffff, #f4f7ff);
  border-radius: 24px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .34);
  animation: callIn .24s ease;
}
@keyframes callIn { from { transform: translateY(10px) scale(.97); opacity: .6; } }
.call-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-size: 28px; font-weight: 800; box-shadow: 0 0 0 7px rgba(37, 99, 235, .12); }
.call-card h3 { font-size: 17px; margin: 0 0 5px; }
.call-card .muted { font-size: 12px; margin: 0; min-height: 18px; }
.call-timer { font-size: 22px; font-weight: 700; color: #344054; margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.call-actions { display: flex; gap: 12px; justify-content: center; min-height: 46px; }
.call-btn { border: 0; border-radius: 12px; min-width: 92px; height: 44px; color: #fff; font-weight: 700; font-size: 13px; }
.call-btn.accept { background: #16a34a; }
.call-btn.decline { background: #ef4444; }
.call-btn:hover { opacity: .9; }

/* 管理后台 */
.admin-auth { background: #eef1f6; }
.admin-page { min-height: 100vh; background: #f3f5f9; }
.admin-topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; position: sticky; top: 0; z-index: 40;
}
.admin-brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; }
.brand-dot { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; display: grid; place-items: center; font-size: 14px; }
.admin-brand small { font-size: 11px; color: #98a2b3; font-weight: 500; }
.admin-top-actions { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.admin-layout { display: flex; min-height: calc(100vh - 58px); }
.admin-sidebar { width: 210px; flex: 0 0 210px; background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; }
.side-item { display: block; padding: 11px 14px; border-radius: 10px; font-size: 13px; color: #475467; margin-bottom: 4px; font-weight: 600; }
.side-item:hover { background: #f6f8fc; color: var(--ink); }
.side-item.active { background: var(--primary-soft); color: var(--primary); }
.admin-main { flex: 1; min-width: 0; padding: 24px 28px 45px; }
.admin-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.admin-page-head h1 { font-size: 25px; margin: 0 0 5px; letter-spacing: -.5px; }
.admin-page-head p { font-size: 12px; margin: 0; }
@media (max-width: 760px) {
  .admin-sidebar { width: 58px; flex-basis: 58px; padding: 12px 6px; }
  .side-item { text-align: center; padding: 12px 2px; font-size: 0; }
  .side-item span { font-size: 12px; writing-mode: vertical-rl; letter-spacing: 2px; }
  .admin-main { padding: 16px 12px 30px; }
  .admin-page-head h1 { font-size: 21px; }
  .admin-page-head .btn { display: none; }
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 1000px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: -20px; bottom: -24px; opacity: .1; }
.stat-card.blue::after { background: #2563eb; }
.stat-card.green::after { background: #059669; }
.stat-card.orange::after { background: #ea580c; }
.stat-card.purple::after { background: #7c3aed; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 31px; font-weight: 800; letter-spacing: -1px; margin: 8px 0 3px; }
.stat-sub { font-size: 11px; color: #98a2b3; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { text-align: left; font-size: 12px; color: #667085; background: #f8fafc; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #f1f4f9; font-size: 13px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.mini-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; margin-right: 7px; }
.pwd-cell { background: #f8fafc; border: 1px solid #edf0f5; border-radius: 6px; padding: 2px 7px; font-size: 12px; color: #475467; }
.row-actions { white-space: nowrap; }
.row-actions .btn { margin-right: 6px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .quick-grid { grid-template-columns: 1fr; } }
.quick-item { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: #fbfcfe; display: block; }
.quick-item:hover { border-color: #bfdbfe; background: #f7faff; }
.quick-item span { font-size: 21px; color: var(--primary); }
.quick-item b { display: block; margin: 7px 0 3px; font-size: 13px; }
.quick-item small { color: var(--muted); font-size: 11px; }

/* 消息气泡以外的提示 */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 10px);
  background: rgba(15, 23, 42, .9); color: #fff; padding: 9px 16px; border-radius: 20px;
  font-size: 12px; z-index: 120; opacity: 0; transition: .25s; pointer-events: none;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 更自然的线性图标与导航 ---------- */
.ui-icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.nav-ico { width: 24px; height: 24px; display: grid; place-items: center; filter: none; }
.bottom-nav {
  background: #fff;
  backdrop-filter: none;
  height: 62px;
  flex-basis: 62px;
  border-top: 1px solid #e5e7eb;
  padding: 4px 16px calc(4px + env(safe-area-inset-bottom));
}
.nav-item { gap: 3px; color: #667085; font-size: 12px; font-weight: 500; padding: 4px 0; border-radius: 8px; }
.nav-item.active { color: #1f2937; }
.nav-item.active .nav-ico { background: #f1f3f6; border-radius: 8px; }
.tool-btn { color: #4b5563; font-size: 0; }
.tool-btn .ui-icon { width: 21px; height: 21px; }
.tool-btn:hover { background: #f3f4f6; }
.empty-icon { font-size: 0; opacity: .55; }
.empty-icon .ui-icon { width: 38px; height: 38px; }
.quick-item span { font-size: 0; }
.quick-item span .ui-icon { width: 21px; height: 21px; }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .quick-grid { grid-template-columns: 1fr; } }

/* 登录/注册辅助 */
.auth-switch { text-align: center; margin: 14px 0 0; font-size: 13px; color: #667085; }
.auth-switch a { color: #1f2937; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.register-card { width: min(92vw, 470px); }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .code-btn { flex: 0 0 auto; min-height: 46px; padding: 0 12px; font-size: 12px; }
.form-note { min-height: 18px; margin-top: 3px; font-size: 12px; line-height: 1.5; color: #667085; }
.form-note.error { color: #b42318; }
.admin-page-head.banned-head { align-items: center; flex-wrap: wrap; }
.inline-add { display: flex; gap: 8px; align-items: center; }
.inline-add .input { width: 180px; height: 40px; }
.status-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; background: #f2f4f7; color: #667085; }
.status-pill.ok { background: #ecfdf3; color: #067647; }
.btn-row { display: flex; gap: 8px; margin-top: 14px; }
.btn-row .btn { margin-top: 0; }
.tag.blue { color: #175cd3; background: #eff8ff; }
.banned-list { display: flex; flex-direction: column; }
.banned-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #f1f4f9; font-size: 14px; }
.banned-item:last-child { border-bottom: 0; }
.banned-item span { word-break: break-word; }
@media (max-width: 640px) {
  .inline-add { width: 100%; }
  .inline-add .input { flex: 1; width: auto; }
}

/* 减少装饰性渐变，保持干净 */
.btn.primary, .send-btn { box-shadow: none; }
.call-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 16px 44px rgba(15, 23, 42, .2); }
.brand-dot, .brand-mark.admin { background: #334155; }
.voice-msg .voice-label { font-size: 12px; color: #475467; min-width: 26px; text-align: center; }

/* 登录页也去掉大面积渐变，整体更接近普通后台 */
.auth-page { background: #f3f5f8; }
.auth-bg { background: #f3f5f8; }
.auth-bg::before, .auth-bg::after { display: none; }
.auth-card {
  background: #fff;
  backdrop-filter: none;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  border-radius: 16px;
}
.brand-mark, .brand-mark.admin { background: #334155; box-shadow: none; border-radius: 12px; }
