/* ============================================================
   找找客智能获客 · 私域增长中台  —  Design System
   ============================================================ */
:root {
  --brand: #6152f5;
  --brand-600: #5443e8;
  --brand-700: #4433cc;
  --violet: #8b7cff;
  --cyan: #22c7e0;
  --green: #12b76a;
  --amber: #f79009;
  --red: #f04438;

  --ink: #17162b;
  --ink-2: #3c3a56;
  --muted: #75728d;
  --muted-2: #a5a2b9;
  --line: #ececf6;
  --line-2: #f3f2fa;
  --bg: #f7f7fc;
  --surface: #ffffff;

  --nav-bg: #ffffff;
  --nav-bg-2: #f7f6ff;
  --nav-text: #6f6c88;
  --nav-text-strong: #17162b;

  --radius: 16px;
  --radius-sm: 10px;
  --sbw: 200px;
  --shadow-sm: 0 1px 2px rgba(26, 22, 70, .04), 0 1px 1px rgba(26, 22, 70, .03);
  --shadow: 0 16px 36px -24px rgba(35, 28, 90, .22);
  --shadow-lg: 0 30px 64px -30px rgba(25, 20, 70, .3);
  --font: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
::selection { background: rgba(97, 82, 245, .2); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd8e8; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #b3c2d8; background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- utilities ---------- */
.g2 > *, .g3 > *, .g4 > *, .g5 > *, .stats > *, .split-2-1 > *, .split-1-2 > *, .split-3-2 > * { min-width: 0; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.w100 { width: 100%; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }

.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.g5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.split-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.split-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.split-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: all .18s ease;
}
.btn:hover { border-color: #c9d6ea; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(135deg, #7b6cff, #5b4af0);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 22px -10px rgba(97, 82, 245, .7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 24px -10px rgba(97, 82, 245, .8); filter: brightness(1.03); border-color: transparent; }
.btn-dark { background: #0e1b33; border-color: #0e1b33; color: #fff; }
.btn-dark:hover { color: #fff; background: #16264a; border-color: #16264a; }
.btn-soft { background: rgba(97, 82, 245, .08); border-color: transparent; color: var(--brand-600); }
.btn-soft:hover { background: rgba(97, 82, 245, .13); border-color: transparent; color: var(--brand-700); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5fb; border-color: transparent; color: var(--ink); }
.btn-danger { background: #fff1f0; border-color: transparent; color: var(--red); }
.btn-danger:hover { background: #ffe4e1; border-color: transparent; color: #d92d20; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.btn-icon { width: 34px; padding: 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { border: 0; background: none; color: var(--brand); font-size: 12.5px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.link-btn:hover { background: rgba(97, 82, 245, .08); }

/* ---------- forms ---------- */
.input, .select, textarea.input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid #dde6f2; border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 13px; color: var(--ink); outline: none;
  transition: border-color .16s, box-shadow .16s;
}
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.input::placeholder { color: #a4b2c6; }
.input:focus, .select:focus, textarea.input:focus { border-color: #a99cff; box-shadow: 0 0 0 3px rgba(97, 82, 245, .12); }
.select {
  appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8aa3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .form-label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #93a1b8; pointer-events: none; }
.search-box .input { padding-left: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }

/* switch */
.switch { position: relative; width: 40px; height: 22px; border-radius: 20px; background: #d8e2f0; cursor: pointer; border: 0; padding: 0; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .16); transition: transform .2s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

/* checkbox */
.check { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #c6d3e6; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.check.checked { background: var(--brand); border-color: var(--brand); }
.check.checked::after { content: ""; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(0, -1px); }

/* chips / tags / badges */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; background: #f2f6fc; color: #4d5f7a; border: 1px solid #e7eef8; white-space: nowrap; }
.tag-blue { background: #eef4ff; color: #2456d8; border-color: #dbe7ff; }
.tag-green { background: #eafaf1; color: #087443; border-color: #d1f2e0; }
.tag-amber { background: #fff7e8; color: #b54708; border-color: #ffe8bd; }
.tag-red { background: #fff0ef; color: #b42318; border-color: #ffd9d5; }
.tag-violet { background: #f3efff; color: #5f3dc4; border-color: #e6dcff; }
.tag-gray { background: #f4f6fa; color: #66758d; border-color: #e9eef6; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: #12b76a; box-shadow: 0 0 0 3px rgba(18, 183, 106, .14); }
.dot-blue { background: #6152f5; box-shadow: 0 0 0 3px rgba(97, 82, 245, .14); }
.dot-gray { background: #b6c2d2; }
.dot-red { background: #f04438; box-shadow: 0 0 0 3px rgba(240, 68, 56, .14); }
.dot-amber { background: #f79009; box-shadow: 0 0 0 3px rgba(247, 144, 9, .15); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: #cfc6ff; color: var(--brand-600); }
.chip.on { background: rgba(97, 82, 245, .08); border-color: #cfc6ff; color: var(--brand-600); font-weight: 500; }
.chip-x { color: var(--muted-2); font-size: 13px; margin-left: 2px; }

/* segmented & tabs */
.seg { display: inline-flex; padding: 3px; background: #f0f4fa; border-radius: 9px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .16s; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(16, 35, 70, .1); }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 0 0 12px; font-size: 14px; color: var(--muted); cursor: pointer; position: relative; }
.tabs button.on { color: var(--ink); font-weight: 600; }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sbw); z-index: 60;
  display: flex; flex-direction: column;
  background: var(--nav-bg);
  color: var(--nav-text);
  transition: width .22s ease, transform .22s ease;
  border-right: 1px solid var(--line);
  box-shadow: none;
}
.sb-brand { display: flex; align-items: center; height: 80px; padding: 16px 18px; flex: none; }
.brand-plate { width: 100%; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: flex-start; padding: 0; overflow: hidden; }
.brand-plate img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-mini { display: none; font-size: 20px; font-weight: 700; color: var(--brand); letter-spacing: 0; }
.sb-brand .brand-txt { min-width: 0; }
.sb-brand .brand-name { font-size: 14.5px; font-weight: 650; color: var(--ink); letter-spacing: .2px; line-height: 1.2; }
.sb-brand .brand-sub { font-size: 10.5px; color: var(--muted-2); letter-spacing: 1.6px; margin-top: 3px; }
.sb-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 12px 18px; }
.sb-scroll::-webkit-scrollbar { width: 4px; }
.sb-scroll::-webkit-scrollbar-thumb { background: #e4e2ef; border: 0; }

.nav-group { margin-top: 8px; }
.nav-group-hd { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; color: #5f5c78; font-size: 13px; letter-spacing: 0; cursor: pointer; border-radius: 8px; transition: background .15s, color .15s; }
.nav-group-hd:hover { color: var(--brand-600); background: var(--nav-bg-2); }
.nav-group-hd .arrow { margin-left: auto; width: 12px; height: 12px; transition: transform .2s; opacity: .7; }
.nav-group.collapsed .arrow { transform: rotate(-90deg); }
.nav-group.collapsed .nav-items { display: none; }
.nav-group-hd .ico { width: 16px; height: 16px; color: #8f8ca8; }
.nav-items { display: flex; flex-direction: column; gap: 2px; }
.nav-sub { padding: 11px 10px 3px 12px; font-size: 13px; letter-spacing: 0; color: #5f5c78; }
body.sb-collapsed .nav-sub { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 14px;
  border-radius: 9px; color: #5f5c78; font-size: 13px; cursor: pointer;
  position: relative; transition: background .15s, color .15s;
}
.nav-item .ico { width: 16px; height: 16px; flex: none; opacity: .85; color: #8f8ca8; }
.nav-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .mini { font-size: 10px; padding: 1px 5px; border-radius: 5px; background: #efeaff; color: var(--brand-600); }
.nav-item:hover { background: var(--nav-bg-2); color: var(--ink); }
.nav-item:hover .ico { color: var(--brand-600); }
.nav-item.active { background: #f0edff; color: var(--brand-600); font-weight: 600; box-shadow: none; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px; border-radius: 3px; background: var(--brand); }
.nav-item.active .ico { opacity: 1; color: var(--brand-600); }
.nav-top { margin-top: 2px; }
.nav-top .ico { color: #938fab; }
.nav-item.nav-top.active .ico { color: var(--brand-600); }

.sb-foot { flex: none; padding: 14px; border-top: 1px solid var(--line-2); }
.sb-plan { background: #f7f6ff; border: 1px solid #ebe6ff; border-radius: 11px; padding: 12px; }
.sb-plan .t { font-size: 12px; color: var(--ink); font-weight: 600; }
.sb-plan .v { font-size: 11px; color: var(--muted); margin-top: 5px; }
.sb-plan .bar { height: 4px; border-radius: 4px; background: #e8e3ff; margin-top: 9px; overflow: hidden; }
.sb-plan .bar i { display: block; height: 100%; width: 68%; border-radius: 4px; background: linear-gradient(90deg, #8b7cff, #6152f5); }

.main { flex: 1; min-width: 0; margin-left: var(--sbw); display: flex; flex-direction: column; transition: margin-left .22s ease; }
body.sb-collapsed .sidebar { width: 74px; }
body.sb-collapsed .main { margin-left: 74px; }
body.sb-collapsed .sb-brand { padding: 16px 10px; height: 86px; }
body.sb-collapsed .brand-txt, body.sb-collapsed .nav-group-hd span, body.sb-collapsed .nav-group-hd .arrow,
body.sb-collapsed .nav-item .label, body.sb-collapsed .nav-item .mini, body.sb-collapsed .sb-plan { display: none; }
body.sb-collapsed .brand-plate { width: 54px; height: 54px; padding: 0; flex: none; }
body.sb-collapsed .brand-plate img { display: none; }
body.sb-collapsed .brand-mini { display: block; }
body.sb-collapsed .nav-group-hd { justify-content: center; padding: 9px 0; }
body.sb-collapsed .nav-item { justify-content: center; padding: 0; }
body.sb-collapsed .nav-item.active::before { top: 8px; bottom: 8px; }
body.sb-collapsed .nav-group { margin-top: 6px; }
body.sb-collapsed .sb-foot { padding: 10px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: 64px; flex: none;
  display: flex; align-items: center; gap: 14px; padding: 0 26px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: #f1f5fb; color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted-2); min-width: 0; }
.crumb .cur { color: var(--ink); font-weight: 550; }
.crumb .sep { color: #c3cfdf; }
.top-search { position: relative; width: 240px; margin-left: auto; }
.top-search .input { height: 34px; background: #f4f7fc; border-color: transparent; font-size: 12.5px; padding-left: 32px; }
.top-search .input:focus { background: #fff; border-color: #d6cfff; }
.top-search svg { width: 14px; height: 14px; }
.top-search .kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; color: #8fa0b8; border: 1px solid #e1e8f3; background: #fff; border-radius: 5px; padding: 1px 5px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-divider { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.user-chip:hover { background: #f4f7fc; }
.avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #8b7cff, #6152f5); flex: none; }
.avatar.sm { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }
.avatar.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.avatar.green { background: linear-gradient(135deg, #34d399, #12b76a); }
.avatar.amber { background: linear-gradient(135deg, #fbbf24, #f79009); }
.avatar.pink { background: linear-gradient(135deg, #f472b6, #ec4899); }
.avatar.cyan { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.avatar.violet { background: linear-gradient(135deg, #a78bfa, #7c5cf0); }
.user-chip .u-name { font-size: 12.5px; font-weight: 550; line-height: 1.2; }
.user-chip .u-org { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }

.popover {
  position: absolute; top: 54px; right: 0; min-width: 220px; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.popover.show { display: block; animation: pop .16s ease; }
.popover .pop-hd { padding: 8px 10px; font-size: 11.5px; color: var(--muted-2); }
.pop-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.pop-item:hover { background: #f4f7fc; color: var(--ink); }
.pop-item svg { width: 15px; height: 15px; color: var(--muted); }
.pop-item.danger { color: var(--red); }
.pop-item.danger svg { color: var(--red); }
.pop-sep { height: 1px; background: var(--line-2); margin: 5px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.notice-list { width: 320px; }
.notice { display: flex; gap: 10px; padding: 10px; border-radius: 9px; cursor: pointer; }
.notice:hover { background: #f6f9fe; }
.notice .n-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.notice .n-ico svg { width: 15px; height: 15px; }
.notice .n-title { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.notice .n-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.notice .n-time { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; }

/* ---------- content ---------- */
.content { flex: 1; padding: 24px 26px 40px; width: 100%; max-width: 1680px; margin: 0 auto; }
.page { animation: fadeUp .22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head h1 { font-size: 21px; font-weight: 650; letter-spacing: -.3px; }
.page-head .desc { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.6; max-width: 820px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px 0; }
.card-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.1px; }
.card-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; font-weight: 400; }
.card-bd { padding: 18px 20px 20px; }
.card-bd.flush { padding: 14px 0 0; }
.card-ft { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }

.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px;
  background: radial-gradient(800px 340px at 88% -30%, rgba(163, 148, 255, .55), transparent 60%), radial-gradient(600px 300px at 10% 130%, rgba(139, 124, 255, .4), transparent 60%), linear-gradient(120deg, #6152f5, #6d5cf7 55%, #8b7cff);
  color: #fff; box-shadow: 0 22px 44px -26px rgba(70, 50, 190, .55);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(600px 300px at 80% 20%, #000, transparent 75%);
}
.hero .h-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.hero .hello { font-size: 12px; color: #ddd6ff; letter-spacing: 1px; }
.hero h2 { font-size: 24px; font-weight: 650; margin-top: 9px; letter-spacing: -.3px; }
.hero .h-sub { font-size: 12.5px; color: #e2dcff; margin-top: 9px; line-height: 1.65; max-width: 600px; }
.hero .h-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hero .h-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #efeaff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); padding: 5px 10px; border-radius: 7px; }
.hero .h-stats { display: flex; gap: 28px; }
.hero .h-stat .v { font-size: 22px; font-weight: 650; letter-spacing: -.4px; }
.hero .h-stat .l { font-size: 11px; color: #ddd6ff; margin-top: 5px; }
.hero .h-stat + .h-stat { border-left: 1px solid rgba(255,255,255,.12); padding-left: 28px; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.stat {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px 14px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat .s-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat .s-label { font-size: 12.5px; color: var(--muted); }
.stat .s-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.stat .s-ico svg { width: 16px; height: 16px; }
.stat .s-val { font-size: 26px; font-weight: 650; letter-spacing: -.8px; margin-top: 10px; }
.stat .s-val small { font-size: 12px; font-weight: 500; color: var(--muted-2); margin-left: 4px; letter-spacing: 0; }
.stat .s-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 8px; }
.stat .delta { font-size: 11.5px; display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.delta.up { color: var(--brand); }
.delta.down { color: var(--red); }
.stat .vs { font-size: 11px; color: var(--muted-2); }
.stat .spark { position: absolute; right: 12px; bottom: 42px; opacity: .9; }

.tint-blue { background: #eef1ff; color: #5b6cfa; }
.tint-violet { background: #f2edff; color: #7c5cf0; }
.tint-green { background: #e9f9f0; color: #12b76a; }
.tint-amber { background: #fff5e4; color: #f59e0b; }
.tint-red { background: #fff0ef; color: #f04438; }
.tint-cyan { background: #e9f7ff; color: #0ea5e9; }

/* section heading */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.sec-title { font-size: 15px; font-weight: 600; }
.sec-title span { font-size: 11.5px; font-weight: 400; color: var(--muted-2); margin-left: 8px; }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.toolbar .input, .toolbar .select { width: auto; height: 34px; font-size: 12.5px; }
.toolbar .search-box { width: 220px; }
.toolbar .search-box .input { width: 100%; }
.toolbar .spacer { flex: 1; }
.toolbar .divider { width: 1px; height: 20px; background: var(--line); }

.filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filterbar .select { width: 132px; }
.filterbar .input { width: 180px; height: 34px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.tbl thead th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: var(--muted-2);
  padding: 11px 16px; background: #f8fafd; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.tbl thead th:first-child { padding-left: 20px; }
.tbl thead th:last-child { padding-right: 20px; }
.tbl tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.tbl tbody td:first-child { padding-left: 20px; }
.tbl tbody td:last-child { padding-right: 20px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .13s; }
.tbl tbody tr:hover { background: #f8fbff; }
.tbl .cell-main { font-size: 13px; color: var(--ink); font-weight: 500; }
.tbl .cell-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.tbl .ops { display: flex; gap: 6px; align-items: center; }
.tbl .num { color: var(--ink); }
.tbl-empty { padding: 46px; text-align: center; color: var(--muted-2); font-size: 13px; }

.pager { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.pager .pg { display: flex; gap: 4px; }
.pager .pg button { min-width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); cursor: pointer; padding: 0 7px; }
.pager .pg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .pg button:hover:not(.on) { border-color: #c2d2ea; color: var(--ink); }
.pager .pg button:disabled { opacity: .4; cursor: default; }
.pager .pg button:disabled:hover { border-color: var(--line); color: var(--muted); }

/* charts */
.chart { width: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.chart-empty { padding: 40px; text-align: center; color: var(--muted-2); }

.progress { height: 6px; border-radius: 6px; background: #eef3fa; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6152f5, #6b9bff); transition: width .4s ease; }
.progress.green > i { background: linear-gradient(90deg, #34d399, #0e9f6e); }
.progress.amber > i { background: linear-gradient(90deg, #fbbf24, #f79009); }

.hbars { display: flex; flex-direction: column; gap: 13px; }
.hbar { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.hbar .l { width: 78px; color: var(--muted); flex: none; }
.hbar .track { flex: 1; height: 8px; background: #f1f5fb; border-radius: 6px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6152f5, #6b9bff); }
.hbar .v { width: 62px; text-align: right; color: var(--ink); font-weight: 550; font-variant-numeric: tabular-nums; }

/* list / timeline / misc */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #f9fbff; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 12.8px; color: var(--ink); }
.list-item .li-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 18px 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot { position: absolute; left: -17px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #c8d5e7; }
.tl-item.blue .dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(97, 82, 245, .12); }
.tl-item.green .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, .12); }
.tl-item.amber .dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(247, 144, 9, .12); }
.tl-item.red .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(240, 68, 56, .12); }
.tl-item .tl-title { font-size: 12.5px; color: var(--ink); }
.tl-item .tl-time { font-size: 11px; color: var(--muted-2); margin-top: 4px; }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 12.5px; border-bottom: 1px dashed var(--line-2); }
.kv:last-child { border: 0; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); font-weight: 500; text-align: right; }

.todo { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: all .16s; cursor: pointer; }
.todo:hover { border-color: #bcd0f0; box-shadow: var(--shadow); transform: translateY(-1px); }
.todo .t-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.todo .t-ico svg { width: 17px; height: 17px; }
.todo .t-num { font-size: 19px; font-weight: 650; letter-spacing: -.4px; }
.todo .t-label { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.kbd-tip { font-size: 11px; color: var(--muted-2); }
.kbd-tip b { font-weight: 500; background: #f1f5fb; border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; }

/* device / robot cards */
.mini-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: #fff; transition: all .16s; }
.mini-card:hover { border-color: #c4d5ef; box-shadow: var(--shadow); }
.device-status { display: flex; gap: 18px; }
.status-cell .sv { font-size: 18px; font-weight: 650; }
.status-cell .sl { font-size: 11px; color: var(--muted); margin-top: 3px; }

.robot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.material { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: all .16s; }
.material:hover { box-shadow: var(--shadow); border-color: #c4d5ef; transform: translateY(-2px); }
.material .m-body { padding: 13px; }
.material .m-title { font-size: 12.8px; font-weight: 500; }
.material .m-meta { font-size: 11px; color: var(--muted-2); margin-top: 6px; display: flex; justify-content: space-between; }
.m-thumb { height: 92px; display: grid; place-items: center; color: #fff; font-size: 12px; letter-spacing: .5px; }

.work-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: all .16s; }
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c4d5ef; }
.work-cover { height: 118px; background-size: cover; position: relative; display: flex; align-items: flex-end; padding: 10px 12px; }
.work-cover .dur { position: absolute; right: 9px; top: 9px; background: rgba(7, 16, 32, .55); color: #fff; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; }
.work-cover .w-title { color: #fff; font-size: 12px; text-shadow: 0 1px 6px rgba(0,0,0,.35); position: relative; z-index: 2; line-height: 1.45; }
.work-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(4, 12, 26, .55)); }
.work-meta { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.work-meta .wm { display: flex; gap: 12px; }

.flow-strip { display: flex; align-items: center; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; overflow-x: auto; }
.flow-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.flow-step .n { width: 24px; height: 24px; border-radius: 7px; background: rgba(97, 82, 245, .1); color: var(--brand-600); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; }
.flow-arrow { color: #b9c8dd; margin: 0 14px; font-size: 13px; }

/* map */
.map-panel { position: relative; height: 320px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 30% 40%, #eaf1fb, #dfeaf8); border: 1px solid var(--line); }
.map-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 150, 190, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 190, .13) 1px, transparent 1px); background-size: 34px 34px; }
.map-pin { position: absolute; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); box-shadow: 0 0 0 5px rgba(97, 82, 245, .16); }
.map-pin.g { background: #12b76a; box-shadow: 0 0 0 5px rgba(18, 183, 106, .15); }
.map-pin.a { background: #f79009; box-shadow: 0 0 0 5px rgba(247, 144, 9, .16); }
.map-legend { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border-radius: 9px; padding: 9px 12px; font-size: 11px; color: var(--muted); display: flex; gap: 14px; }
.map-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* modal / drawer / toast */
.overlay { position: fixed; inset: 0; background: rgba(7, 18, 38, .45); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.overlay.show { display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 2; border-radius: 16px 16px 0 0; }
.modal-hd h3 { font-size: 15.5px; font-weight: 600; }
.modal-bd { padding: 20px 22px; }
.modal-ft { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line-2); position: sticky; bottom: 0; background: #fff; border-radius: 0 0 16px 16px; }
.close-x { width: 30px; height: 30px; border: 0; background: #f4f7fc; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.close-x:hover { background: #eaf0f9; color: var(--ink); }

.drawer-overlay { position: fixed; inset: 0; background: rgba(7, 18, 38, .38); z-index: 200; display: none; }
.drawer-overlay.show { display: block; animation: fade .18s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 94vw; background: #fff; z-index: 201; box-shadow: -20px 0 60px rgba(9, 25, 55, .2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .24s ease; }
.drawer.show { transform: none; }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.drawer-bd { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-ft { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; background: #0e1b33; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 12.8px; box-shadow: 0 14px 34px -12px rgba(3, 12, 28, .6); animation: toastIn .22s ease; }
.toast svg { width: 15px; height: 15px; color: #7ef0b0; }
.toast.err svg { color: #ff9b93; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* misc page blocks */
.note { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; background: #f5f9ff; border: 1px solid #e3edff; font-size: 12px; color: #45608a; line-height: 1.65; }
.note svg { width: 15px; height: 15px; flex: none; color: #6d94d6; margin-top: 1px; }
.note.warn { background: #fffbf0; border-color: #ffedc4; color: #8a5a12; }
.note.warn svg { color: #e9a23b; }

.chat-box { background: #f6f9fd; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.65; }
.bubble.customer { background: #fff; border: 1px solid var(--line); border-top-left-radius: 3px; align-self: flex-start; color: var(--ink-2); }
.bubble.ai { background: linear-gradient(135deg, #6152f5, #8b7cff); color: #fff; border-top-right-radius: 3px; align-self: flex-end; box-shadow: 0 6px 16px -8px rgba(97, 82, 245, .6); }
.bubble .b-time { font-size: 10px; opacity: .6; margin-top: 5px; }

.presence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

.empty { padding: 48px 20px; text-align: center; color: var(--muted-2); }
.empty svg { width: 34px; height: 34px; margin: 0 auto 10px; color: #c6d4e6; }
.empty .e-t { font-size: 13px; color: var(--muted); }
.empty .e-d { font-size: 11.5px; margin-top: 6px; }

.code-input { letter-spacing: 3px; font-weight: 600; }
.divider-h { height: 1px; background: var(--line-2); margin: 16px 0; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.stat-strip > div { background: #fff; padding: 14px 16px; }
.stat-strip .v { font-size: 20px; font-weight: 650; }
.stat-strip .l { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ---------- 龙虾智投：平台投放卡 ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.pf-grid b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.3px; font-variant-numeric: tabular-nums; color: var(--ink); }
.pf-grid span { display: block; font-size: 10px; color: #93a1b8; margin-top: 4px; }
.pf-bar { height: 5px; border-radius: 4px; background: #eef3fa; margin-top: 14px; overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6152f5, #6b9bff); }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr; background: #06101f; }
.login-left {
  position: relative; overflow: hidden; padding: 44px 56px 36px;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(124, 92, 255, .5), transparent 62%),
    radial-gradient(700px 520px at 90% 100%, rgba(236, 72, 153, .22), transparent 62%),
    linear-gradient(145deg, #241b52, #1d1745 60%, #161132);
  color: #fff; display: flex; flex-direction: column;
}
.login-left::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(900px 700px at 45% 40%, #000, transparent 80%);
}
.login-left::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: 8%;
  border-radius: 50%; border: 1px solid rgba(170, 150, 255, .18);
  box-shadow: 0 0 0 80px rgba(170, 150, 255, .04), 0 0 0 160px rgba(170, 150, 255, .025);
  pointer-events: none;
}
.brand-line { display: flex; align-items: center; gap: 12px; position: relative; z-index: 3; }
.brand-line .logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #8b7cff, #6152f5); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(139, 124, 255, .8); }
.brand-line .logo svg { width: 23px; height: 23px; }
.brand-line .bn { font-size: 17px; font-weight: 650; letter-spacing: .4px; }
.brand-line .bs { font-size: 10.5px; color: #b3a8d8; letter-spacing: 2.4px; margin-top: 3px; }
.login-hero { position: relative; z-index: 3; margin-top: 54px; max-width: 560px; }
.login-hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: #d6ccff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 6px 11px; border-radius: 20px; letter-spacing: .5px; }
.login-hero .eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 8px #5eead4; }
.login-hero h1 { font-size: 34px; line-height: 1.35; font-weight: 650; letter-spacing: -.6px; margin-top: 18px; }
.login-hero h1 em { font-style: normal; background: linear-gradient(100deg, #7fb0ff, #a78bfa 60%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero p { font-size: 13px; line-height: 1.9; color: #c3b9e8; margin-top: 16px; max-width: 500px; }

.orbit { position: relative; width: 100%; max-width: 520px; height: 300px; margin-top: 26px; }
.orbit .ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(130, 165, 235, .22); }
.orbit .ring.r1 { width: 300px; height: 300px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit .ring.r2 { width: 190px; height: 190px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-color: rgba(130, 165, 235, .1); }
.orbit .core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 26px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(145deg, rgba(64, 116, 255, .28), rgba(124, 92, 255, .16));
  border: 1px solid rgba(140, 175, 255, .34); backdrop-filter: blur(8px);
  box-shadow: 0 0 60px rgba(60, 110, 255, .35), inset 0 1px 0 rgba(255,255,255,.16);
}
.orbit .core .c-t { font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.orbit .core .c-s { font-size: 9.5px; color: #9dbdf0; margin-top: 4px; letter-spacing: 1px; }
.orbit .node {
  position: absolute; display: flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 9px; font-size: 11.5px; color: #cfe0ff;
  background: rgba(15, 35, 68, .72); border: 1px solid rgba(120, 160, 230, .2);
  backdrop-filter: blur(6px); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .6); white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.orbit .node i { width: 6px; height: 6px; border-radius: 2px; background: #5d8dff; }
.orbit .node:nth-child(4) { left: 2%; top: 12%; animation-delay: 0s; }
.orbit .node:nth-child(5) { right: 0%; top: 20%; animation-delay: .7s; }
.orbit .node:nth-child(6) { left: 0%; bottom: 20%; animation-delay: 1.4s; }
.orbit .node:nth-child(7) { right: 3%; bottom: 12%; animation-delay: 2.1s; }
.orbit .node:nth-child(8) { left: 20%; top: 0%; animation-delay: 1s; }
.orbit .node:nth-child(9) { right: 18%; bottom: 0%; animation-delay: 1.8s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.login-metrics { position: relative; z-index: 3; margin-top: auto; padding-top: 28px; display: flex; gap: 40px; border-top: 1px solid rgba(255,255,255,.08); }
.login-metrics .v { font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
.login-metrics .l { font-size: 11px; color: #b3a8d8; margin-top: 5px; }

.login-right { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 40px; background: linear-gradient(160deg, #fafaff 0%, #f2f0fd 100%); }
.login-right .top-tip { position: absolute; top: 26px; right: 32px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.login-card { width: 100%; max-width: 396px; margin: 0 auto; }
.login-card .lc-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.login-card .lc-mark { width: 38px; height: 38px; border-radius: 11px; flex: none; background: linear-gradient(135deg, #8b7cff, #6152f5); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; letter-spacing: .5px; box-shadow: 0 12px 26px -14px rgba(97, 82, 245, .95); }
.login-card .lc-name { font-size: 14.5px; font-weight: 650; color: var(--ink); letter-spacing: .2px; }
.login-card .lc-eyebrow { font-size: 10.5px; letter-spacing: 2px; color: var(--brand-600); font-weight: 600; margin-top: 3px; }
.login-card h2 { font-size: 25px; font-weight: 650; letter-spacing: -.4px; margin-top: 10px; }
.login-card .lc-sub { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 9px; }
.login-form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.login-form .field > label { display: flex; align-items: center; justify-content: space-between; }
.login-form .field > label .forgot { font-size: 11.5px; color: var(--brand); cursor: pointer; font-weight: 400; }
.login-input { position: relative; }
.login-input > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #8fa2bd; pointer-events: none; }
.login-input .input { height: 46px; padding-left: 40px; border-radius: 10px; font-size: 13.5px; background: #fff; border-color: #dfe8f4; }
.login-input .input:focus { border-color: #a99cff; box-shadow: 0 0 0 4px rgba(97, 82, 245, .1); }
.login-input .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: #93a1b8; display: grid; place-items: center; cursor: pointer; border-radius: 7px; }
.login-input .eye:hover { background: #f2f6fc; }
.login-input .eye svg { width: 16px; height: 16px; }
.login-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.login-row label { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.login-btn { position: relative; height: 48px; border-radius: 11px; font-size: 14.5px; font-weight: 550; margin-top: 4px; overflow: hidden; }
.login-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transform: skewX(-20deg); animation: sheen 3.6s infinite; }
@keyframes sheen { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.login-btn.loading { pointer-events: none; }
.login-btn.loading .lb-text { opacity: .6; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.login-btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-box { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; background: #fff; border: 1px dashed #cfdcf0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.demo-box b { color: var(--ink-2); font-weight: 500; }
.demo-box .fill { margin-left: auto; flex: none; font-size: 11.5px; color: var(--brand); background: rgba(97, 82, 245, .08); border: 0; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.demo-box .fill:hover { background: rgba(97, 82, 245, .14); }
.login-alt { margin-top: 22px; display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: 11px; }
.login-alt::before, .login-alt::after { content: ""; flex: 1; height: 1px; background: #dfe7f2; }
.login-alt-btns { display: flex; gap: 10px; margin-top: 14px; }
.login-alt-btns button { flex: 1; height: 40px; border-radius: 9px; border: 1px solid #dfe8f4; background: #fff; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: all .16s; }
.login-alt-btns button:hover { border-color: #cfc6ff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.login-alt-btns svg { width: 16px; height: 16px; }
.login-foot { margin-top: 26px; font-size: 11px; color: #8b9ab0; line-height: 1.9; text-align: center; }
.login-foot a { color: #6a7f9d; }
.login-error { display: none; align-items: center; gap: 7px; font-size: 12px; color: var(--red); background: #fff2f1; border: 1px solid #ffd9d5; padding: 9px 11px; border-radius: 8px; }
.login-error.show { display: flex; }
.login-error svg { width: 14px; height: 14px; flex: none; }

/* command palette */
.cmdk { max-width: 620px; width: 100%; align-self: flex-start; margin-top: 12vh; }
.cmdk .modal-bd { padding: 0; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.cmdk-input svg { width: 17px; height: 17px; color: var(--muted-2); }
.cmdk-input input { flex: 1; border: 0; outline: none; font-size: 14px; background: transparent; }
.cmdk-list { max-height: 340px; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.cmdk-item:hover, .cmdk-item.on { background: #f2f7ff; color: var(--brand-700); }
.cmdk-item svg { width: 15px; height: 15px; color: var(--muted-2); }
.cmdk-empty { padding: 26px; text-align: center; font-size: 12.5px; color: var(--muted-2); }

/* ---------- command center / tech dashboard ---------- */
.login-brand { background: #fff; border-radius: 11px; padding: 7px 14px; display: flex; align-items: center; box-shadow: 0 18px 44px -26px rgba(0, 8, 28, .9); }
.login-brand img { height: 46px; width: auto; display: block; }
.login-logo-sm { height: 26px; width: auto; display: block; margin-bottom: 16px; }

/* ---------- 首页核心业务模块 ---------- */
.mods-head { margin: 16px 0 10px; }
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mods > * { min-width: 0; }
.mod {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px 0; min-height: 154px; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.mod:hover { transform: translateY(-2px); border-color: #b8cdf0; box-shadow: 0 18px 36px -24px rgba(16, 45, 100, .45); }
.mod-top { display: flex; align-items: center; justify-content: space-between; }
.mod-code { font-size: 8.5px; letter-spacing: 1.4px; color: #9aa9be; font-weight: 600; }
.mod-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: linear-gradient(180deg, #f5f9ff, #e9f1ff); color: #6152f5; box-shadow: inset 0 0 0 1px #dfeaff; }
.mod-ic svg { width: 16px; height: 16px; }
.mod-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 11px; display: flex; flex-direction: column; gap: 3px; letter-spacing: -.2px; }
.mod-en { font-size: 8px; font-weight: 600; letter-spacing: 1.4px; color: #9aa9be; }
.mod-desc { font-size: 11.5px; line-height: 1.65; color: var(--muted); margin-top: 8px; }
.mod-foot { margin-top: auto; padding: 10px 0; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #93a1b8; }
.mod-metric-sm b { font-size: 17px; font-weight: 650; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.mod-go { display: inline-flex; align-items: center; gap: 4px; color: #6b7b96; font-size: 10.5px; white-space: nowrap; }
.mod-go svg, .mod-wide-go svg { width: 12px; height: 12px; }
.mod:hover .mod-go { color: var(--brand-600); }

.mod.feature {
  background: radial-gradient(520px 220px at 92% 0%, rgba(108, 158, 255, .42), transparent 65%), linear-gradient(135deg, #19408f, #102f6a);
  border-color: #1f4a8c; color: #fff; min-height: 176px;
}
.mod.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(360px 220px at 90% 0%, #000, transparent 75%);
}
.mod.feature > * { position: relative; z-index: 2; }
.mod.feature .mod-code { color: #a9c4ea; }
.mod.feature .mod-ic { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.mod.feature .mod-name { color: #fff; }
.mod.feature .mod-en { color: #a9c4ea; }
.mod.feature .mod-desc { color: #b2c8e6; }
.mod.feature .mod-foot { border-color: rgba(255, 255, 255, .13); color: #a9c0dd; }
.mod.feature .mod-live { display: inline-flex; align-items: center; gap: 6px; color: #8fb6ff; font-size: 10px; letter-spacing: .6px; }
.mod.feature .mod-live i { width: 5px; height: 5px; border-radius: 50%; background: #7fb2ff; box-shadow: 0 0 0 3px rgba(127, 178, 255, .18); }
.mod-feature-body { display: flex; align-items: flex-end; gap: 18px; margin-top: auto; padding-top: 10px; }
.mod-metric { flex: none; }
.mod-metric b { display: block; font-size: 31px; font-weight: 650; letter-spacing: -1.2px; line-height: 1; font-variant-numeric: tabular-nums; }
.mod-metric span { display: block; font-size: 9.5px; color: #a9c3e6; margin-top: 6px; letter-spacing: .4px; }
.mod-spark { flex: 1; min-width: 0; opacity: .9; margin-bottom: 2px; }
.mod-spark svg { width: 100%; height: 46px; display: block; }
.mod-trend { display: flex; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 12px; }
.mod-trend svg { flex: 1; min-width: 0; width: 100%; height: 28px; opacity: .85; }
.mod-delta { font-size: 10px; font-weight: 550; color: #6152f5; flex: none; padding-bottom: 2px; }

.mod-wechat { grid-column: span 3; flex-direction: row; gap: 16px; align-items: stretch; }
.mod-wx-left { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mod-chat { width: 190px; flex: none; background: #f3f8ff; border: 1px solid #dfeaff; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.mini-bubble { font-size: 9.5px; line-height: 1.5; padding: 6px 8px; border-radius: 8px; max-width: 100%; }
.mini-bubble.c { background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-top-left-radius: 2px; align-self: flex-start; }
.mini-bubble.a { background: linear-gradient(135deg, #6152f5, #8b7cff); color: #fff; border-top-right-radius: 2px; align-self: flex-end; }

.mod-half { grid-column: span 2; }
.mod-half-stats { display: flex; align-items: flex-end; gap: 22px; margin-top: auto; padding: 11px 0 12px; border-top: 1px solid var(--line-2); }
.mod-half-stats > div b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.mod-half-stats > div span { display: block; font-size: 9.5px; color: #93a1b8; margin-top: 4px; }
.mod-half-stats .mod-go { margin-left: auto; padding-bottom: 3px; }
.mod-wide { grid-column: span 4; flex-direction: row; align-items: center; gap: 24px; padding: 18px 20px; min-height: 0; }.mod-wide-main { flex: 1; min-width: 0; }
.mod-wide .mod-name { margin-top: 10px; }
.mod-wide-name { flex-direction: row !important; align-items: center; gap: 10px; flex-wrap: wrap; }
.mod-wide-name .mod-ic { width: 28px; height: 28px; border-radius: 7px; }
.mod-wide-name .mod-ic svg { width: 15px; height: 15px; }
.mod-wide-name .mod-en { margin-left: 2px; }
.mod-wide-stats { display: flex; flex: none; border-left: 1px solid var(--line); padding-left: 6px; }
.mod-wide-stats > div { padding: 0 18px; border-right: 1px solid var(--line-2); }
.mod-wide-stats > div:last-child { border-right: 0; padding-right: 0; }
.mod-wide-stats b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.mod-wide-stats span { display: block; font-size: 10px; color: #93a1b8; margin-top: 5px; }
.mod-wide-go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #fff; background: #17418f; border: 1px solid #17418f; padding: 9px 13px; border-radius: 8px; }
.mod-wide:hover .mod-wide-go { background: #1d4fa8; border-color: #1d4fa8; }

@media (max-width: 1200px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-wechat { grid-column: span 2; }
  .mod-wide { grid-column: span 2; flex-direction: column; align-items: flex-start; gap: 14px; }
  .mod-wide-stats { width: 100%; border-left: 0; border-top: 1px solid var(--line-2); padding-left: 0; padding-top: 13px; }
  .mod-wide-stats > div:first-child { padding-left: 0; }
  .mod-wide-go { align-self: flex-start; }
}
@media (max-width: 640px) {
  .mods { grid-template-columns: 1fr; }
  .mod.feature, .mod-wechat, .mod-wide, .mod-half { grid-column: span 1; }
  .mod.feature { min-height: 196px; }
  .mod-wechat { flex-direction: column; }
  .mod-chat { display: none; }
  .mod-wide-stats { flex-wrap: wrap; gap: 14px 0; }
  .mod-wide-stats > div { padding: 0 16px 0 0; border-right: 0; flex: 1 1 50%; }
  .mods-head .presence { display: none; }
  .console-ticker { overflow-x: auto; }
  .console-ticker::-webkit-scrollbar { display: none; }
}


.console {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16);
  background: radial-gradient(520px 220px at 92% 0%, rgba(196, 181, 253, .45), transparent 65%), linear-gradient(112deg, #5b4af0 0%, #6d5cf7 55%, #8b7cff 100%);
  color: #fff; padding: 18px 22px 0;
  box-shadow: 0 24px 48px -30px rgba(70, 50, 190, .6);
}
.console::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(720px 320px at 82% 8%, #000, transparent 78%);
}
.console::after {
  content: ""; position: absolute; top: -40px; right: -30px; width: 300px; height: 200px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .3), transparent);
  pointer-events: none;
}
.console-top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 26px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 18px; }
.console-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 600; letter-spacing: 2px; color: #e2dcff; }
.console-eyebrow .c-div { color: #c4b5fd; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.console h2 { font-size: 21px; font-weight: 650; letter-spacing: .2px; margin-top: 9px; }
.console .console-main p { font-size: 11.5px; color: #e6e1ff; margin-top: 9px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.console .c-tag { font-size: 9px; letter-spacing: 1.2px; color: #f1edff; border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .12); padding: 3px 7px; border-radius: 5px; font-weight: 600; }
.console-kpis { display: flex; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .1); border-radius: 10px; overflow: hidden; }
.console-kpis > div { padding: 9px 16px; min-width: 106px; }
.console-kpis > div + div { border-left: 1px solid rgba(255, 255, 255, .2); }
.console-kpis span { display: block; font-size: 9px; letter-spacing: 1.2px; color: #ddd6ff; font-weight: 600; }
.console-kpis b { display: block; font-size: 18px; font-weight: 650; margin-top: 6px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.console-kpis em { font-style: normal; font-size: 10px; color: #fff; margin-left: 6px; font-weight: 500; }
.console-ticker {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 20px;
  margin: 0 -22px; padding: 9px 22px; border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 10.5px; color: #ece7ff; white-space: nowrap; overflow: hidden;
}
.tk-live { font-size: 9px; letter-spacing: 1.6px; color: #fff; font-weight: 700; flex: none; }
.tk-item b { color: #fff; font-weight: 600; margin-left: 3px; }
.tk-right { margin-left: auto; color: #ddd6ff; font-size: 9.5px; letter-spacing: .6px; }

.tech-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tech-stats > * { min-width: 0; }
.tstat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 15px 16px 0; overflow: hidden; transition: border-color .16s, box-shadow .16s; }
.tstat::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 2px; background: linear-gradient(90deg, #6152f5, #6b9bff); }
.tstat:hover { border-color: #c6d6ee; box-shadow: var(--shadow-sm); }
.tstat-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tstat-label { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.tstat-label em { display: block; font-style: normal; font-size: 8.5px; font-weight: 600; letter-spacing: 1.4px; color: #9aa9be; margin-top: 5px; }
.tstat-ic { width: 26px; height: 26px; border-radius: 7px; background: #f4f8ff; color: #4a76d8; display: grid; place-items: center; flex: none; }
.tstat-ic svg { width: 14px; height: 14px; }
.tstat-val { font-size: 27px; font-weight: 650; letter-spacing: -1px; margin-top: 9px; font-variant-numeric: tabular-nums; color: var(--ink); }
.tstat-val small { font-size: 11px; font-weight: 500; color: var(--muted-2); margin-left: 3px; letter-spacing: 0; }
.tstat-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; padding-bottom: 12px; font-size: 10.5px; color: #93a1b8; }
.tstat-spark { height: 32px; margin: 0 -16px; overflow: hidden; }
.tstat-spark svg { width: 100%; height: 32px; display: block; }

.en { font-size: 8.5px; font-weight: 600; letter-spacing: 1.3px; color: #9aa9be; margin-left: 8px; }
.ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ch-cell { background: #fff; padding: 13px 15px; transition: background .15s; }
.ch-cell:hover { background: #f8fbff; }
.ch-hd { display: flex; align-items: center; justify-content: space-between; }
.ch-code { font-size: 8.5px; letter-spacing: 1.4px; color: #9aa9be; font-weight: 600; }
.ch-live { display: flex; align-items: center; gap: 4px; font-size: 8px; letter-spacing: .8px; color: #0e9f6e; font-weight: 600; }
.ch-live i { width: 5px; height: 5px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px rgba(18, 183, 106, .14); }
.ch-name { font-size: 12.5px; font-weight: 550; color: var(--ink); margin-top: 7px; }
.ch-bottom { display: flex; align-items: baseline; justify-content: space-between; margin-top: 5px; }
.ch-bottom b { font-size: 20px; font-weight: 650; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.ch-bottom span { font-size: 10px; color: #0e9f6e; }
.ch-bar { height: 3px; border-radius: 3px; background: #eef3fa; margin-top: 9px; overflow: hidden; }
.ch-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6152f5, #6b9bff); }
.ch-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 13px; font-size: 10.5px; color: #93a1b8; }
.ch-foot b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-foot .link-btn { margin-left: auto; padding: 0; }

.queue-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); }
.queue-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.queue-item:hover .q-name { color: var(--brand-600); }
.q-code { font-size: 8.5px; letter-spacing: 1px; color: #9aa9be; font-weight: 600; width: 30px; flex: none; }
.q-name { font-size: 12.5px; font-weight: 500; transition: color .15s; }
.q-sub { font-size: 10.5px; color: #9aa9be; margin-top: 3px; }
.q-num { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); width: 32px; text-align: right; flex: none; }
.queue-item > svg { width: 14px; height: 14px; color: #b3c1d5; flex: none; }

@media (max-width: 1200px) {
  .tech-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .console { padding: 18px 18px 0; }
  .console-ticker { margin: 0 -18px; padding: 10px 18px; gap: 14px; }
  .tk-right { display: none; }
  .console-kpis { width: 100%; }
  .console-kpis > div { flex: 1; min-width: 0; padding: 10px 12px; }
  .tech-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tech-stats { gap: 10px; }
  .console h2 { font-size: 20px; }
  .console-kpis { flex-wrap: wrap; }
  .console-kpis > div { flex: 1 1 50%; }
  .console-kpis > div + div { border-left: 0; }
  .console-kpis > div:nth-child(2) { border-left: 1px solid rgba(124, 166, 232, .16); }
  .ch-grid { grid-template-columns: 1fr 1fr; }
  .login-brand img { height: 38px; }
}

@media (max-width: 1440px) {
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
  .stat .s-val { font-size: 23px; }
  .material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-2-1, .split-1-2, .split-3-2 { grid-template-columns: 1fr; }
  .robot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-search { width: 190px; }
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { min-height: 100vh; }
}
@media (max-width: 960px) {
  :root { --sbw: 200px; }
  .sidebar { transform: translateX(-100%); box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  body.sb-open .sidebar { transform: none; }
  .main, body.sb-collapsed .main { margin-left: 0; }
  .mobile-mask { position: fixed; inset: 0; background: rgba(7,18,38,.4); z-index: 55; display: none; }
  body.sb-open .mobile-mask { display: block; }
  .top-search { display: none; }
  .content { padding: 18px 16px 32px; }
  .topbar { padding: 0 16px; }
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .robot-grid, .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .page-head { flex-direction: column; }
  .hero .h-stats { width: 100%; justify-content: space-between; }
  .hero .h-stat + .h-stat { padding-left: 16px; }
  .page-actions { flex-wrap: wrap; }
  .login-right { padding: 26px; }
}
/* ---------- 电销 AI 机器人 · 展示广告页 ---------- */
.tb-hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .85fr; gap: 30px; align-items: center; }
.tb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.4px; color: #ddd6ff; text-transform: uppercase; }
.tb-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #7ef0b0; box-shadow: 0 0 0 4px rgba(126, 240, 176, .18); }
.hero .tb-h1 { font-size: 30px; line-height: 1.35; font-weight: 700; letter-spacing: -.6px; margin-top: 14px; }
.hero .tb-h1 em { display: block; font-style: normal; font-size: 17px; font-weight: 500; color: #e4deff; margin-top: 8px; letter-spacing: 0; }
.tb-lead { font-size: 12.5px; color: #e6e1ff; line-height: 1.85; margin-top: 12px; max-width: 520px; }
.tb-cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.tb-btn-light { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 10px; border: 0; background: #fff; color: #4b3bd6; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(10, 0, 60, .5); }
.tb-btn-light:hover { background: #f6f4ff; }
.tb-btn-ghost { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.tb-btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.tb-trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: #d8d2ff; margin-top: 16px; }
.tb-trust span { display: inline-flex; align-items: center; gap: 6px; }
.tb-call { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 16px; backdrop-filter: blur(8px); box-shadow: 0 20px 40px -24px rgba(10, 0, 60, .45); }
.tb-call-hd { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #ece8ff; }
.tb-live { display: inline-flex; align-items: center; gap: 7px; }
.tb-live i { width: 7px; height: 7px; border-radius: 50%; background: #7ef0b0; animation: tbPulse 1.6s infinite; }
@keyframes tbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(126, 240, 176, .5); } 50% { box-shadow: 0 0 0 6px rgba(126, 240, 176, 0); } }
.tb-timer { font-variant-numeric: tabular-nums; color: #cfc8ff; }
.tb-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin: 12px 0; }
.tb-wave i { flex: 1; max-width: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); animation: tbWave 1.1s ease-in-out infinite; }
@keyframes tbWave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.tb-bubble { background: #fff; color: var(--ink-2); border-radius: 12px 12px 12px 3px; padding: 9px 12px; font-size: 11.5px; line-height: 1.7; margin-bottom: 8px; }
.tb-bubble.ai { background: rgba(255, 255, 255, .16); color: #fff; border-radius: 12px 12px 3px 12px; margin-left: 24px; }

/* ============================================================
   顶部导航（替代左侧栏）：一级横排 + 悬停下拉二级
   ============================================================ */
body.no-sidebar .sidebar { display: none !important; }
body.no-sidebar .main { margin-left: 0 !important; }
body.no-sidebar .mobile-mask { display: none !important; }

.top-logo { flex: none; display: flex; align-items: center; height: 100%; margin-right: 6px; }
.top-logo .brand-plate { width: 132px; height: 40px; padding: 0; display: flex; align-items: center; }
.top-logo .brand-plate img { display: block; max-height: 100%; width: auto; }

.top-nav {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: stretch; gap: 2px;
  overflow-x: auto; overflow-y: visible;
  scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }

.tn-item { position: relative; display: flex; align-items: center; flex: none; }
.tn-leaf {
  display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px;
  color: #5f5c78; font-size: 13.5px; white-space: nowrap; border-radius: 8px;
}
.tn-leaf .ico { width: 16px; height: 16px; color: #8f8ca8; }
.tn-leaf:hover { color: var(--brand-600); background: var(--nav-bg-2); }
.tn-leaf:hover .ico { color: var(--brand-600); }
.tn-leaf.active { color: var(--brand-600); font-weight: 600; background: #f0edff; }
.tn-leaf.active .ico { color: var(--brand-600); }

.tn-hd {
  display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px;
  border: 0; background: none; color: #5f5c78; font-size: 13.5px; white-space: nowrap; cursor: pointer;
  border-radius: 8px;
}
.tn-hd .ico { width: 16px; height: 16px; color: #8f8ca8; flex: none; }
.tn-hd .arrow { width: 11px; height: 11px; opacity: .55; transition: transform .2s; color: #8f8ca8; }
.tn-hd:hover { color: var(--brand-600); background: var(--nav-bg-2); }
.tn-hd:hover .ico { color: var(--brand-600); }
.tn-item.active > .tn-hd { color: var(--brand-600); font-weight: 600; background: #f0edff; }
.tn-item.active > .tn-hd .ico { color: var(--brand-600); }
.tn-item.has-sub:hover .tn-hd .arrow,
.tn-item.has-sub.open .tn-hd .arrow { transform: rotate(180deg); }

.tn-panel {
  display: none; position: fixed; z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 12px 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 22px;
  width: fit-content; min-width: 0;
  max-width: min(980px, calc(100vw - 40px));
}
.tn-item.has-sub.open > .tn-panel { display: grid; }

.tn-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tn-sub-title { font-size: 11.5px; color: var(--muted-2); font-weight: 600; padding: 6px 8px 4px; letter-spacing: .3px; }
.tn-link {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px;
  color: #475467; font-size: 13px; white-space: nowrap;
}
.tn-link .ico { width: 15px; height: 15px; color: #98a2b3; flex: none; }
.tn-link .mini { font-size: 10px; padding: 1px 5px; border-radius: 5px; background: #efeaff; color: var(--brand-600); }
.tn-link:hover { background: #f4f7fc; color: var(--brand-600); }
.tn-link:hover .ico { color: var(--brand-600); }
.tn-link.active { background: #f0edff; color: var(--brand-600); font-weight: 600; }
.tn-link.active .ico { color: var(--brand-600); }

@media (max-width: 1280px) {
  .tn-hd, .tn-leaf { padding: 0 10px; font-size: 13px; }
  .top-logo .brand-plate { width: 110px; }
}
@media (max-width: 960px) {
  .inst-switch { display: none !important; }
}
.tb-bubble .who { display: block; font-size: 10px; opacity: .65; margin-bottom: 3px; }
.tb-call-ft { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tb-call-ft .tag { background: rgba(255, 255, 255, .14); color: #efebff; border-color: rgba(255, 255, 255, .2); }
.tb-call-status { font-size: 10.5px; color: #cfc8ff; margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; }
.tb-sec { margin-top: 30px; }
.tb-sec-hd { text-align: center; max-width: 640px; margin: 0 auto 18px; }
.tb-sec-hd h3 { font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
.tb-sec-hd p { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 9px; }
.tb-feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.tb-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tb-feature .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #f1eeff; color: var(--brand); margin-bottom: 12px; }
.tb-feature h4 { font-size: 14px; font-weight: 600; }
.tb-feature p { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
.tb-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tb-step .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #f1eeff; color: var(--brand); font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.tb-step h4 { font-size: 13px; font-weight: 600; }
.tb-step p { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.tb-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tb-price { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); position: relative; }
.tb-price.hot { border-color: #b6aaff; box-shadow: 0 20px 46px -28px rgba(97, 82, 245, .55); }
.tb-price .hot-tag { position: absolute; top: -11px; left: 20px; background: linear-gradient(120deg, #6152f5, #8b7cff); color: #fff; font-size: 10.5px; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px; }
.tb-price h4 { font-size: 14px; font-weight: 600; }
.tb-price .amt { font-size: 27px; font-weight: 700; letter-spacing: -.8px; margin-top: 10px; }
.tb-price .amt small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.tb-price ul { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.tb-price li { display: flex; gap: 8px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.tb-price li svg { color: #12b76a; flex: none; margin-top: 2px; }
.tb-quote { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.tb-quote p { font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }
.tb-quote .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.tb-quote .who .n { font-size: 12px; font-weight: 600; }
.tb-quote .who .r { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tb-faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.tb-faq summary { cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 500; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after { content: "+"; color: var(--muted-2); font-size: 16px; }
.tb-faq[open] summary::after { content: "–"; color: var(--brand); }
.tb-faq p { font-size: 12px; color: var(--muted); line-height: 1.85; padding: 0 0 14px; margin: 0; }
.tb-final { margin-top: 30px; text-align: center; }
.tb-final h3 { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.tb-final p { font-size: 12.5px; color: #e2dcff; margin-top: 10px; }
.tb-final .tb-cta { justify-content: center; }
@media (max-width: 1200px) {
  .tb-hero-in { grid-template-columns: 1fr; }
  .tb-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tb-flow { grid-template-columns: 1fr; }
  .hero .tb-h1 { font-size: 24px; }
  .hero .tb-h1 em { font-size: 15px; }
}
@media (max-width: 640px) {
  .tb-h1 { font-size: 21px; }
  .tb-price .amt { font-size: 24px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .robot-grid, .material-grid { grid-template-columns: 1fr; }
  .top-actions .top-divider, .top-actions .quick-entry { display: none; }
  .user-chip .u-name, .user-chip .u-org { display: none; }
  .content { padding: 14px 12px 30px; }
  .hero { padding: 20px; }
  .hero h2 { font-size: 20px; }
  .hero .h-stats { flex-wrap: wrap; gap: 14px; }
  .tbl thead th, .tbl tbody td { padding-left: 12px; padding-right: 12px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .login-card h2 { font-size: 22px; }
  .login-metrics { gap: 20px; }
}

/* ---------- 微信 AI 销冠 · 共驾会话 ---------- */
/* 高度固定：取「一屏多一点」——自适应填满可视区域，但不超过 860px；三列在各自内部滚动，不再把整页往下撑 */
.wx-inbox { display: grid; grid-template-columns: 252px minmax(0, 1fr) 286px; grid-template-rows: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: min(860px, calc(100vh - var(--inbox-top, 200px) - 16px)); }
.wx-col + .wx-col { border-left: 1px solid var(--line); }
.wx-col { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
#wxConvList { flex: 1; min-height: 0; overflow-y: auto; }
#wxSideBody { flex: 1; min-height: 0; overflow-y: auto; }
.wx-list-hd { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.wx-conv { padding: 11px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.wx-conv:hover { background: #faf9ff; }
.wx-conv.on { background: #f4f1ff; box-shadow: inset 3px 0 0 var(--brand); }
.wx-conv .row.between { min-width: 0; }
.wx-conv .n { font-size: 12.5px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wx-conv .m { font-size: 11px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-conv .t { font-size: 10px; color: var(--muted-2); }
.wx-chat { display: flex; flex-direction: column; min-height: 0; }
.wx-chat-hd { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wx-msg-flow { flex: 1; min-height: 0; padding: 16px; overflow-y: auto; background: #fbfbfe; }
.wx-msg { display: flex; gap: 8px; margin-bottom: 14px; }
.wx-msg .b { max-width: 76%; padding: 9px 12px; border-radius: 10px 10px 10px 3px; font-size: 12.5px; line-height: 1.75; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
#wxChatTitle { flex: 1; min-width: 0; }
.wx-chat-hd .cell-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-msg .b .src { display: block; font-size: 10px; color: var(--muted-2); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-msg.me { flex-direction: row-reverse; }
.wx-msg.me .b { background: #ece8ff; border-color: #ded7ff; border-radius: 10px 10px 3px 10px; }
.wx-composer { border-top: 1px solid var(--line); padding: 12px; background: #fff; }
.wx-side { padding: 14px; min-height: 0; display: flex; flex-direction: column; }
.wx-side .blk { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.wx-side .blk:last-child { border: 0; margin-bottom: 0; }
.wx-side-tabs { display: flex; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.wx-side-tabs button { flex: 1; padding: 7px 4px; border: 0; background: transparent; font-size: 12.5px; color: var(--muted); cursor: pointer; border-radius: 7px; }
.wx-side-tabs button.on { background: var(--surface-2); color: var(--brand); font-weight: 600; }
.wx-msg-ops { display: none; gap: 4px; margin-top: 6px; }
.wx-msg:hover .wx-msg-ops { display: flex; flex-wrap: wrap; }
.wx-msg-ops .btn-xs { font-size: 10.5px; padding: 2px 7px; }
.wx-side .kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.wx-side .kv .k { color: var(--muted); white-space: nowrap; }
.wx-side .kv .v { text-align: right; word-break: break-all; }
.wx-rich { display: flex; gap: 8px; align-items: flex-start; padding: 2px 0; }
.wx-rich-ico { font-size: 18px; line-height: 1.4; flex: none; }
.wx-rich-main { min-width: 0; }
.wx-rich-title { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-rich-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.wx-rich-quote { padding: 2px 0; }
.wx-rich-quote-body { white-space: pre-wrap; word-break: break-word; }
.wx-rich-quote-ref { margin-top: 5px; padding: 5px 9px; background: rgba(0,0,0,.04); border-left: 3px solid var(--brand); border-radius: 4px; font-size: 11.5px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.link-btn { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 12px; padding: 0; }
@media (max-width: 1280px) {
  .wx-inbox { grid-template-columns: 220px minmax(0, 1fr) 260px; }
  .wx-inbox .wx-side { display: flex; }
}
@media (max-width: 960px) {
  .wx-inbox { grid-template-columns: 1fr; min-height: auto; }
  .wx-inbox .wx-list { display: none; }
  .wx-chat { min-height: 0; }
}

/* ---------- 微信实例 · 扫码添加 ---------- */
.inst-create { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.inst-qr { background: #fafaff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-box { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-placeholder { text-align: center; color: var(--muted); width: 100%; }
.qr-ph-icon { width: 96px; height: 96px; border-radius: 18px; border: 1.5px dashed #c9c3f5; display: grid; place-items: center; color: #9a90e8; font-weight: 700; letter-spacing: 1px; background: #fff; margin: 0 auto 14px; font-size: 15px; }
.qr-ph-t { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.qr-steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.qr-steps li { font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; }
.qr-img { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.qr-stage { font-size: 12.5px; color: var(--ink-2); font-weight: 500; text-align: center; }
.qr-countdown { font-size: 12px; color: var(--amber); font-variant-numeric: tabular-nums; }
.qr-meta { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.7; }
.qr-skel { width: 200px; height: 200px; border-radius: 12px; background: linear-gradient(90deg, #f1effc 25%, #faf9ff 37%, #f1effc 63%); background-size: 400% 100%; animation: qrShine 1.3s infinite; }

/* ---------- 套餐菜单勾选树 ---------- */
.plan-menu-tree { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fafbfd; }
.pmt-group { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.pmt-group:last-child { border-bottom: 0; }
.pmt-grp-hd { position: sticky; top: 0; background: #fafbfd; padding: 2px 0; z-index: 1; }
.pmt-grp-lab { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.pmt-grp-lab b { font-weight: 600; }
.pmt-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 14px; margin-top: 6px; }
.pmt-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); padding: 2px 0; cursor: pointer; }
.pmt-item:hover { color: var(--primary); }
.pmt-sec { grid-column: 1 / -1; font-size: 11px; color: var(--muted); font-weight: 600; padding-top: 6px; border-top: 1px solid #eef0f4; margin-top: 2px; }
.pmt-sec:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
@media (max-width: 720px) { .pmt-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@keyframes qrShine { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.qr-success { text-align: center; padding: 10px 0; }
.qr-success .ok { width: 52px; height: 52px; border-radius: 50%; background: #eafaf1; color: #087443; display: grid; place-items: center; margin: 0 auto 12px; font-size: 24px; font-weight: 700; }

/* ===== 钱包收入统计（红包实领 / 转账到账）===== */
.wallet-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.6; background: #f2f4f7; color: #344054; }
.wallet-note.wallet-warn { background: #fff4e5; color: #b54708; border: 1px solid #ffd9a8; }
.wallet-note.wallet-ok { background: #ecfdf3; color: #027a48; border: 1px solid #a6f4c5; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.wallet-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.wallet-card-hd { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.wallet-big { font-size: 26px; font-weight: 700; color: #0f172a; }
.wallet-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.wallet-tabs button { border: 0; background: transparent; padding: 8px 14px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.wallet-tabs button.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.wallet-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.wallet-tbl th { text-align: left; padding: 8px 6px; background: #f7f8fa; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.wallet-tbl td { padding: 8px 6px; border-bottom: 1px solid #f0f1f5; vertical-align: middle; }
.wallet-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.wallet-notes { margin-top: 14px; padding: 10px 12px; background: #fafbfd; border-radius: 8px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.wallet-notes ul { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 640px) { .wallet-grid { grid-template-columns: 1fr; } }
.code-chip { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11.5px; }
@media (max-width: 860px) {
  .inst-create { grid-template-columns: 1fr; }
  .inst-qr { min-height: 300px; }
}

/* ---------- 实例网络出口 / 设置 / 企微验证 ---------- */
.net-block { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfe; }
.block-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.int-row .input { width: 84px; }
.qr-verify { width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qr-verify .row .input { flex: 1; min-width: 0; }
.event-grid { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0; }
.event-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.set-static { font-size: 12.5px; color: var(--ink-2); padding: 9px 0; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid #fecdca; background: #fffbfa; border-radius: 10px; }
.btn-danger { color: #b42318; border-color: #fecdca; background: #fff; }
.btn-danger:hover { background: #fef3f2; }
.btn-danger-solid { background: #d92d20; color: #fff; border-color: #d92d20; }
.secret-box { padding: 10px 12px; background: #f7f6ff; border: 1px solid #e6e2ff; border-radius: 8px; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
@media (max-width: 860px) {
  .danger-zone { flex-direction: column; align-items: flex-start; }
}

/* ---------- 能力中心 / 能力页通用 ---------- */
.cap-layout { display: grid; grid-template-columns: 320px 1fr; min-height: 620px; }
.cap-left { border-right: 1px solid var(--line); overflow-y: auto; max-height: 78vh; }
.cap-right { padding: 16px 18px; overflow-y: auto; max-height: 78vh; }
.cap-grp-hd { display: flex; align-items: center; gap: 6px; padding: 10px 12px 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); position: sticky; top: 0; background: #fff; }
.cap-grp-hd .tiny { margin-left: auto; }
.cap-grp-hd svg { width: 13px; height: 13px; color: #8b7cff; }
.cap-ep { padding: 8px 12px; border-bottom: 1px solid #f1f3f7; cursor: pointer; }
.cap-ep:hover { background: #faf9ff; }
.cap-ep.on { background: #f0edff; }
.cap-ep-t { font-size: 12.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cap-ep-p { font-size: 10.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; margin-top: 2px; }
.cap-r-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cap-r-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cap-r-path { font-size: 11px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; margin-top: 4px; }
.cap-r-bd { background: #fafbfe; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.cap-r-resp { margin-top: 14px; }
.cap-r-resp-hd { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
#capResp { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 12px; max-height: 480px; overflow: auto; font-size: 12px; line-height: 1.65; }
#capResp:empty::before { content: '尚未调用'; color: #94a3b8; }
/* JSON 树 */
details.json { margin: 2px 0; }
details.json > summary.jsum { cursor: pointer; font-size: 11px; color: #93c5fd; list-style: none; padding: 1px 0; }
details.json > summary.jsum::-webkit-details-marker { display: none; }
.jbody { padding-left: 14px; border-left: 1px solid #334155; margin-left: 4px; }
.jrow { display: flex; gap: 10px; padding: 1px 0; }
.jk { color: #fcd34d; min-width: 80px; word-break: break-all; }
.jv { color: #e2e8f0; word-break: break-all; flex: 1; }
.muted .jrow, .muted .jk { color: inherit; }
/* 能力域页通用 */
.cap-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cap-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cap-kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 12.5px; }
.cap-kv .k { color: var(--muted); }
.cap-kv .v { color: var(--ink); word-break: break-all; }
.cap-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.cap-tabs button { border: 0; background: transparent; padding: 8px 14px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.cap-tabs button.on { color: #6152f5; border-bottom-color: #6152f5; font-weight: 600; }
.cap-list .item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.cap-list .item:hover { border-color: #c9c3f5; }
.cap-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-code { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; background: #f4f3ff; padding: 2px 6px; border-radius: 5px; color: #4c3fc0; }
.cap-warn-strong { border: 1px solid #fecdca; background: #fffbfa; border-radius: 10px; padding: 12px 14px; color: #b42318; font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; }
.cap-resp { margin-top: 12px; }
.mt10 { margin-top: 10px; }
.cap-sections { padding-bottom: 24px; }
.cap-resp .empty { padding: 18px; }
@media (max-width: 900px) {
  .cap-layout { grid-template-columns: 1fr; }
  .cap-left { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cap-grid2, .cap-grid3 { grid-template-columns: 1fr; }
}

/* ---- 微信自定义表情（雪碧图渲染 [微笑] 等短码） ---- */
.wechat-emoji { display: inline-block; margin: 0 1px; vertical-align: text-bottom; position: relative; top: -1px; background-repeat: no-repeat; }
.wx-conv .m .wechat-emoji { top: 0; vertical-align: middle; }
.wx-emoji-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; max-height: 320px; overflow-y: auto; padding: 8px; border: 1px solid #f0f0f0; border-radius: 8px; background: #fafafa; }
.wx-emoji-cell { width: 36px; height: 36px; border: none; background: #fff; padding: 0; cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: background .15s; box-sizing: border-box; }
.wx-emoji-cell:hover { background: #07c160; }
