﻿/* ============================================================
   简流CRM — Design System
   Sections: 1.Vars 2.Reset 3.Base 4.Buttons 5.Forms 6.Badges
   7.Cards 8.Tables 9.Modal 10.Toast 11.Misc UI 12.App Layout
   13.Landing 14.Auth 15.Charts 16.Timeline 17.Responsive
   ============================================================ */

/* ---------- 1. Variables ---------- */
:root {
  --teal-900: #134E4A;
  --teal-800: #115E59;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-100: #CCFBF1;
  --teal-50: #F0FDFA;
  --teal-ring: rgba(13, 148, 136, .25);
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;
  --green-600: #16A34A;
  --green-100: #DCFCE7;
  --red-600: #DC2626;
  --red-100: #FEE2E2;
  --orange-600: #EA580C;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --ink-4: #94A3B8;
  --line: #E2E8F0;
  --line-soft: #EEF2F4;
  --bg: #F5F7F8;
  --surface: #FFFFFF;
  --card: #FFFFFF; /* 实色卡片面：侧边栏/登录卡/顶栏胶囊依赖；此前未定义导致 background 回退透明 */
  --sidebar: #0F172A;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --amber-50: #FFFBEB;
  --amber-700: #B45309;
  --amber-800: #92400E;
  --green-600: #16A34A;
  --red-400: #F87171;
  --red-700: #B91C1C;
  --red-800: #991B1B;
  --teal-300: #99F6E4;
  --teal-400: #5EEAD4;
  --surface-2: #F8FAFC;
  --input-bg: #F1F5F9;
  --line-strong: #CBD5E1;
  --on-accent: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

/* ---------- 1b. Dark theme ----------
   Activated by <html data-theme="dark"> (see theme.js / index.html boot
   script). Only the token layer changes — components keep using var().
   The sidebar & landing footer stay dark in both themes (their own
   hard-coded palette is untouched on purpose). */
html[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #121C30;
  --card: #121C30; /* 深色下同为实色，避免移动端抽屉透视内容 */
  --surface-2: #0E1728;
  --input-bg: #1A2540;
  --line: #223050;
  --line-soft: #182440;
  --line-strong: #33456E;
  --ink: #E7EEF9;
  --ink-2: #C0CDE0;
  --ink-3: #8FA3BC;
  --ink-4: #64789A;
  --teal-50: rgba(45, 212, 191, .09);
  --teal-100: rgba(45, 212, 191, .17);
  --teal-300: rgba(94, 234, 212, .55);
  --teal-400: #5EEAD4;
  --teal-600: #14B8A6;
  --teal-700: #0F766E;
  --teal-800: #5EEAD4;
  --teal-900: #99F6E4;
  --teal-ring: rgba(45, 212, 191, .3);
  --amber-50: rgba(245, 158, 11, .08);
  --amber-100: rgba(245, 158, 11, .15);
  --amber-500: #F59E0B;
  --amber-600: #F59E0B;
  --amber-700: #FBBF24;
  --amber-800: #FCD34D;
  --green-100: rgba(34, 197, 94, .15);
  --green-600: #22C55E;
  --red-100: rgba(239, 68, 68, .16);
  --red-400: #F87171;
  --red-600: #EF4444;
  --red-700: #FCA5A5;
  --red-800: #FCA5A5;
  --orange-600: #FB923C;
  --sidebar: #0D1424;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 4px 16px -4px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

/* smooth cross-fade when switching themes */
html.theme-anim, html.theme-anim body, html.theme-anim .card, html.theme-anim .sidebar,
html.theme-anim .btn, html.theme-anim .input, html.theme-anim .select, html.theme-anim textarea {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--teal-700); text-decoration: none; }
/* :not(.btn) —— 锚点按钮(<a class="btn">)的文字色必须由按钮变体控制，
   否则 a:hover 会把白字按钮 hover 成与背景同色（文字消失） */
a:hover:not(.btn) { color: var(--teal-800); }
ul, ol { list-style: none; }

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--teal-100); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
::-webkit-scrollbar-track { background: transparent; }

.boot-loading { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--ink-3); }
.boot-spinner { width: 34px; height: 34px; border: 3px solid var(--teal-100); border-top-color: var(--teal-700); border-radius: 50%; animation: spin .8s linear infinite; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mono-num { font-variant-numeric: tabular-nums; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .2s ease; user-select: none; background: var(--surface); color: var(--ink);
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { flex: none; }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 1px 2px rgba(15,118,110,.4); }
.btn-primary:hover:not(:disabled) { background: var(--teal-800); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,118,110,.35); }
.btn-outline { border-color: var(--line); color: var(--ink-2); background: var(--surface); }
.btn-outline:hover:not(:disabled) { border-color: var(--teal-600); color: var(--teal-700); background: var(--teal-50); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--line-soft); color: var(--ink); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #B91C1C; color: #fff; }
.btn-danger-soft { background: var(--red-100); color: var(--red-600); }
.btn-danger-soft:hover:not(:disabled) { background: var(--red-100); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover:not(:disabled) { background: rgba(255,255,255,.24); color: #fff; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 0 28px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn .spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-outline .spinner, .btn-ghost .spinner { border-color: rgba(15,118,110,.3); border-top-color: var(--teal-700); }
.link-danger { color: var(--red-600); background: none; border: none; cursor: pointer; font-size: 13px; }
.link-danger:hover { text-decoration: underline; }
.link-teal { color: var(--teal-700); background: none; border: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.link-teal:hover { text-decoration: underline; }

/* ---------- 5. Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > label .req { color: var(--red-600); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 14px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-ring);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.select { appearance: none; 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='%2364748B' stroke-width='2.4' 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 12px center; padding-right: 34px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-hint { font-size: 12px; color: var(--ink-4); }
.form-error { font-size: 12.5px; color: var(--red-600); }
/* 逻辑删除的租户行：整体弱化，主名称加删除线，暗示「可恢复」而非「已消失」 */
tr.row-deleted td { opacity: .62; }
tr.row-deleted .cell-main { text-decoration: line-through; text-decoration-color: var(--red-600); text-decoration-thickness: 1.5px; }
tr.row-deleted:hover td { opacity: .92; }
.input-inline-search { position: relative; }
.input-inline-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.input-inline-search .input { padding-left: 34px; }

/* switch */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; min-height: 44px; gap: 8px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); transition: background .2s; flex: none; position: relative; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .track { background: var(--teal-600); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .switch-label { font-size: 13px; color: var(--ink-2); }

/* ---------- 6. Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.badge-teal { background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-300); }
.badge-green { background: var(--green-100); color: #15803D; border: 1px solid #BBF7D0; }
.badge-amber { background: var(--amber-100); color: var(--amber-700); border: 1px solid var(--amber-100); }
.badge-red { background: var(--red-100); color: #B91C1C; border: 1px solid var(--red-100); }
.badge-slate { background: var(--input-bg); color: var(--ink-3); border: 1px solid var(--line); }
.badge-orange { background: #FFEDD5; color: #C2410C; border: 1px solid #FED7AA; }
.badge-solid-teal { background: var(--teal-700); color: #fff; }
.badge-solid-amber { background: var(--amber-500); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* ---------- 7. Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title .title-side { display: flex; gap: 8px; align-items: center; }
.stat-card { padding: 20px 22px; display: flex; gap: 16px; align-items: center; transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.stat-icon.teal { background: var(--teal-50); color: var(--teal-700); }
.stat-icon.amber { background: var(--amber-100); color: var(--amber-600); }
.stat-icon.green { background: var(--green-100); color: var(--green-600); }
.stat-icon.slate { background: var(--input-bg); color: var(--ink-3); }
.stat-num { font-size: 26px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--ink-3); }
.stat-sub { font-size: 12px; color: var(--ink-4); margin-top: 1px; }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 16px 0; }

/* progress (quota) */
.progress { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--teal-700)); transition: width .4s ease; }
.progress.warn > span { background: linear-gradient(90deg, #F59E0B, #D97706); }
.progress.danger > span { background: linear-gradient(90deg, var(--red-400), #DC2626); }
.quota-row { display: flex; flex-direction: column; gap: 6px; }
.quota-row .quota-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.quota-row .quota-head b { font-variant-numeric: tabular-nums; }

/* ---------- 8. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
/* 首列（名称/租户类主标识列）保底宽度：移动端横向滚动时避免文字被挤成一字一行 */
.table th:first-child, .table td:first-child { min-width: 148px; }
.table thead th {
  text-align: left; padding: 11px 14px; background: var(--surface-2); color: var(--ink-3);
  font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--teal-50); }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--ink-4); }
.cell-actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; color: var(--ink-3); cursor: pointer; transition: all .15s; }
.icon-btn:hover { background: var(--teal-50); color: var(--teal-700); }
.icon-btn.danger:hover { background: var(--red-100); color: var(--red-600); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-100); color: var(--teal-800); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }

/* ---------- 9. Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s ease;
}
.modal {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column;
  animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.2);
}
.modal.modal-lg { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { font-size: 16px; }
.modal-x { width: 32px; height: 32px; border: none; background: transparent; border-radius: 8px; cursor: pointer; color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.modal-x:hover { background: var(--line-soft); color: var(--ink); }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
@keyframes modalIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 10. Toast ---------- */
#toast-root { position: fixed; top: 18px; right: 18px; z-index: 120; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 380px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal-600);
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 500; pointer-events: auto;
  animation: toastIn .25s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.out { animation: toastOut .25s ease forwards; }
.toast.success { border-left-color: var(--green-600); }
.toast.error { border-left-color: var(--red-600); }
.toast.info { border-left-color: var(--amber-500); }
.toast svg { flex: none; margin-top: 1px; }
.toast.success svg { color: var(--green-600); }
.toast.error svg { color: var(--red-600); }
.toast.info svg { color: var(--amber-500); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ---------- 11. Misc UI ---------- */
.tabs { display: flex; gap: 4px; background: var(--line-soft); padding: 4px; border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { border: none; background: transparent; padding: 8px 18px; min-height: 38px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: all .2s; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--teal-700); box-shadow: var(--shadow-sm); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--teal-600); color: var(--teal-700); }
.chip.active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.chip b { font-variant-numeric: tabular-nums; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 0; flex-wrap: wrap; }
.pagination .page-info { font-size: 13px; color: var(--ink-3); }
.pagination .page-btns { display: flex; gap: 6px; }
.page-btn { min-width: 34px; height: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.page-btn:hover:not(:disabled) { border-color: var(--teal-600); color: var(--teal-700); }
.page-btn.active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-ellipsis { color: var(--ink-4); align-self: center; padding: 0 2px; }

.skeleton { position: relative; overflow: hidden; background: #EDF1F4; border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-row { display: flex; flex-direction: column; gap: 10px; }
.sk-row .skeleton { height: 14px; }
.sk-row > .skeleton:first-child { height: 44px; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px; gap: 6px; }
.empty .empty-icon { width: 72px; height: 72px; border-radius: 24px; background: var(--teal-50); color: var(--teal-600); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.empty h4 { font-size: 15px; }
.empty p { font-size: 13px; color: var(--ink-4); max-width: 320px; }
.empty .empty-action { margin-top: 12px; }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 500; margin-bottom: 18px; flex-wrap: wrap; }
.banner.warn { background: var(--amber-100); color: var(--amber-800); border: 1px solid var(--amber-100); }
.banner.danger { background: var(--red-100); color: var(--red-800); border: 1px solid var(--red-100); }
.banner .banner-action { margin-left: auto; }
.kv { display: flex; gap: 8px; font-size: 13.5px; }
.kv .k { color: var(--ink-4); flex: none; width: 72px; }
.kv .v { color: var(--ink-2); font-weight: 500; word-break: break-all; }
.section-gap > * + * { margin-top: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.page-head .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 180px; max-width: 320px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }

/* alert box in modal */
.pay-option { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: all .15s; font-weight: 600; font-size: 13.5px; }
.pay-option:hover { border-color: var(--teal-600); }
.pay-option.selected { border-color: var(--teal-600); background: var(--teal-50); color: var(--teal-800); }
.pay-option input { accent-color: var(--teal-700); }
/* 收银台空态：平台未启用任何支付渠道 */
.pay-none { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 18px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--input-bg, rgba(15,23,42,.02)); color: var(--ink-3); }
.pay-none svg { color: var(--amber-500, #F59E0B); }
.pay-none b { font-size: 13.5px; color: var(--ink); }
.pay-none span { font-size: 12px; line-height: 1.6; max-width: 320px; }
/* 对公转账收款信息卡（收银台内） */
.pay-bankinfo { border: 1px solid rgba(180, 83, 9, .25); background: linear-gradient(180deg, rgba(254, 243, 199, .35), rgba(254, 243, 199, .12)); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.pbi-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #92400E; margin-bottom: 9px; }
.pbi-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.pbi-row span { width: 64px; flex: none; color: var(--ink-3); }
.pbi-row b { font-weight: 600; color: var(--ink); word-break: break-all; }
.pbi-row .btn-xs { margin-left: auto; padding: 2px 9px; font-size: 11px; border-radius: 6px; }
.pbi-note { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); margin-top: 7px; padding-top: 7px; border-top: 1px dashed rgba(180, 83, 9, .2); line-height: 1.5; }
.pay-price { font-size: 30px; font-weight: 800; color: var(--ink); }
.pay-price small { font-size: 14px; font-weight: 600; color: var(--ink-4); }

/* ---------- Combobox 可搜索下拉（规范：过滤 + 敏捷新增） ---------- */
.combo { position: relative; min-width: 0; }
.combo .combo-input { width: 100%; cursor: pointer; }
.combo .combo-list {
  position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 240px; overflow-y: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 4px;
}
.combo-item { padding: 8px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.combo-item:hover { background: var(--input-bg); }
.combo-item.active { background: rgba(13, 148, 136, .1); color: var(--teal-700); font-weight: 600; }
.combo-item.combo-add-item { color: var(--teal-700); display: flex; align-items: center; gap: 6px; }
.combo-empty { padding: 10px; font-size: 12.5px; color: var(--ink-4); text-align: center; }

/* ---------- 12. App Layout ---------- */
/* 固定视口布局：整页不可上下拖动，仅 .app-content 内部滚动；
   侧栏 fixed 满高（inset 0 auto 0 0），菜单区 .side-nav 自行滚动 */
.app-mode {
  height: 100vh;
  height: 100dvh; /* 移动端动态视口，避免地址栏收展造成跳动 */
  overflow: hidden;
}
.app-shell { display: flex; height: 100vh; height: 100dvh; }
.sidebar {
  width: 240px; flex: none; background: var(--sidebar); color: var(--ink-4);
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 50;
}
.sidebar .side-logo { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.sidebar .side-logo .logo-mark { background: rgba(255,255,255,.16); box-shadow: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.sidebar .side-logo .logo-mark.logo-mark-emoji { font-size: 16px; }
.sidebar .side-logo .logo-mark.logo-mark-img { overflow: hidden; }
.sidebar .side-logo .logo-mark.logo-mark-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 12px; display: flex; flex-direction: column; gap: 4px; }
/* 分组可折叠：头部开关 + 条目缩进（树形参考线）+ grid-rows 平滑展开 */
.side-nav .nav-group { display: flex; flex-direction: column; }
.nav-group-toggle { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 34px; padding: 8px 10px 4px; border: none; background: transparent; cursor: pointer; text-align: left; border-radius: 8px; transition: background .15s; }
.nav-group-toggle:hover { background: var(--sidebar-hover); }
.nav-group-toggle:focus-visible { outline: 2px solid rgba(20, 184, 166, .55); outline-offset: 1px; }
.nav-group-label { flex: 1; font-size: 11px; color: #475569; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: color .18s; }
.nav-group-toggle:hover .nav-group-label { color: #94A3B8; }
.nav-group-count { flex: none; font-size: 10px; font-weight: 700; color: #55637A; background: rgba(148, 163, 184, .12); border-radius: 99px; padding: 1px 7px; line-height: 1.5; font-variant-numeric: tabular-nums; transition: color .18s, background .18s; }
.nav-group-toggle:hover .nav-group-count { color: #94A3B8; }
.nav-group-chev { flex: none; display: inline-flex; color: #475569; transition: transform .24s ease, color .18s; }
.nav-group-toggle:hover .nav-group-chev { color: #94A3B8; }
.nav-group.collapsed .nav-group-chev { transform: rotate(-90deg); }
.nav-group-items { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .26s ease; }
.nav-group.collapsed .nav-group-items { grid-template-rows: 0fr; }
.nav-group-inner { overflow: hidden; min-height: 0; margin-left: 19px; padding-left: 10px; border-left: 1px solid rgba(148, 163, 184, .15); display: flex; flex-direction: column; gap: 2px; }
@media (prefers-reduced-motion: reduce) { .nav-group-items, .nav-group-chev { transition: none; } }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 42px; border-radius: 10px; color: #94A3B8; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .18s; border: none; background: transparent; width: 100%; text-align: left; }
.nav-item:hover { background: var(--sidebar-hover); color: #E2E8F0; }
.nav-item.active { background: rgba(13, 148, 136, .18); color: #fff; box-shadow: inset 3px 0 0 0 var(--teal-600); }
.nav-item svg { flex: none; }
/* 整个菜单（侧边栏）收起/展开：桌面端收起为 68px 图标栏（≤1080px 抽屉模式不受影响） */
.side-foot { display: flex; justify-content: flex-end; padding: 10px 12px 14px; border-top: 1px solid rgba(148, 163, 184, .14); }
.side-collapse {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: none; border-radius: 8px; background: transparent; color: #94A3B8; cursor: pointer; transition: all .15s;
}
.side-collapse:hover { background: var(--sidebar-hover); color: #E2E8F0; }
@media (max-width: 1080px) { .side-foot { display: none; } }
@media (min-width: 1081px) {
  .sidebar { transition: width .22s ease; }
  .app-main { transition: margin-left .22s ease; }
  .sidebar.side-collapsed { width: 68px; }
  .sidebar.side-collapsed ~ .app-main { margin-left: 68px; }
  .sidebar.side-collapsed .side-logo { justify-content: center; padding: 20px 0 16px; }
  .sidebar.side-collapsed .side-logo-text { display: none; }
  .sidebar.side-collapsed .side-nav { padding: 6px 10px; }
  .sidebar.side-collapsed .side-foot { justify-content: center; padding: 10px 0 14px; }
  .sidebar.side-collapsed .side-collapse svg { transform: rotate(180deg); }
  .sidebar.side-collapsed .nav-item { position: relative; justify-content: center; gap: 0; padding: 10px 0; }
  .sidebar.side-collapsed .nav-item > span:not(.nav-badge) { display: none; }
  .sidebar.side-collapsed .nav-badge { position: absolute; top: 3px; right: 4px; }
  .sidebar.side-collapsed .nav-group-toggle { justify-content: center; padding: 8px 0 4px; }
  .sidebar.side-collapsed .nav-group-label, .sidebar.side-collapsed .nav-group-count, .sidebar.side-collapsed .nav-group-chev { display: none; }
  .sidebar.side-collapsed .nav-group::before { content: ''; display: block; height: 1px; margin: 8px 4px; background: rgba(148, 163, 184, .18); }
  .sidebar.side-collapsed .nav-group-inner { margin-left: 0; padding-left: 0; border-left: none; }
}
/* ---------- 内容区顶部导航栏 ---------- */
.app-topbar {
  position: sticky; top: 0; z-index: 30; height: 58px; flex: none;
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.tb-menu { display: none; }
.tb-brand { display: none; }
.tb-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-4); min-width: 0; white-space: nowrap; }
.tb-crumb b { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.tb-crumb-sep { opacity: .55; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-user {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tb-user .avatar { width: 30px; height: 30px; font-size: 12.5px; background: var(--teal-600); color: #fff; }
.tb-user .u-meta { line-height: 1.25; min-width: 0; }
.tb-user .u-name { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tb-user .u-company { font-size: 11px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.tb-user .badge { font-size: 10.5px; flex: none; }
.tb-logout {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.tb-logout:hover { color: var(--red-600); border-color: var(--red-100); background: rgba(220, 38, 38, .06); }
.app-topbar .theme-toggle { width: 34px; height: 34px; color: var(--ink-3); }
.app-topbar .theme-toggle:hover { background: var(--input-bg); border-color: var(--line); }
.app-main { flex: 1; margin-left: 240px; min-width: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.app-content { flex: 1; min-height: 0; overflow-y: auto; width: 100%; padding: 26px 28px 48px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dash-two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .dash-two-col { grid-template-columns: 1fr !important; }
}
.sidebar-backdrop { display: none; }

/* ---------- 13. Landing ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.lnav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: all .25s; }
html[data-theme="dark"] .lnav { background: rgba(11, 18, 32, .8); }
.lnav.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(15,23,42,.05); }
.lnav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 26px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--ink); flex: none; white-space: nowrap; }
.logo .logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 2px 6px rgba(15,118,110,.35); flex: none; }
/* 深色底上的 Logo 变体（登录/注册侧栏、营销页脚、平台顶栏等）：白字 + 玻璃感方块 */
.logo-light { color: #fff; }
.logo-light .logo-mark { background: rgba(255,255,255,.16); box-shadow: none; }
/* Logo 方块内容变体：emoji / 图片（平台系统设置 → 品牌设置） */
.logo .logo-mark.logo-mark-emoji { font-size: 15px; line-height: 1; font-weight: 700; }
.logo .logo-mark.logo-mark-emoji span { display: block; transform: translateY(-.5px); }
.logo .logo-mark.logo-mark-img { overflow: hidden; }
.logo .logo-mark.logo-mark-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.lnav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.lnav-links a { padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .18s; }
.lnav-links a:hover { color: var(--teal-700); background: var(--teal-50); }
.lnav-links a.active { color: var(--teal-700); background: var(--teal-50); font-weight: 600; }
html[data-theme="dark"] .lnav-links a.active { color: var(--teal-400, #2DD4BF); background: rgba(45, 212, 191, .1); }
.lnav-cta { display: flex; gap: 10px; align-items: center; }
/* 移动端显眼 App 下载入口：导航链接隐藏时以按钮形式出现在 CTA 区 */
.lnav-cta .lnav-app { display: none; }
/* 首页导航主按钮 hover 反白：白底 + 青色文字 + 细描边（与整页主按钮的加深色 hover 区分） */
.lnav-cta .btn-primary:hover:not(:disabled) { background: #fff; color: var(--teal-700); box-shadow: inset 0 0 0 1.5px var(--teal-600), 0 3px 10px rgba(15,118,110,.16); }
html[data-theme="dark"] .lnav-cta .btn-primary:hover:not(:disabled) { background: #F0FDFA; color: #0F766E; box-shadow: inset 0 0 0 1.5px var(--teal-500, #14B8A6), 0 3px 12px rgba(0,0,0,.4); }

/* 首页顶部菜单：汉堡按钮 + 下拉面板（≤1080 显示，桌面隐藏） */
.lnav-burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; align-items: center; justify-content: center; flex: none; transition: all .15s; }
.lnav-burger:hover { background: var(--input-bg); color: var(--teal-700); }
.lnav-burger[aria-expanded="true"] { background: var(--teal-50); color: var(--teal-700); border-color: var(--teal-200, #99F6E4); }
.lnav-drop {
  position: fixed; top: 66px; left: 0; right: 0; z-index: 39;
  display: none; flex-direction: column; padding: 8px 12px 12px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg); animation: fadeIn .18s ease;
}
.lnav-drop.open { display: flex; }
.lnav-drop a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.lnav-drop a:hover, .lnav-drop a.active { background: var(--teal-50); color: var(--teal-700); }
.lnav-drop a + a { margin-top: 2px; }
/* 页内锚点滚动定位：预留 sticky 导航高度，避免区块标题被遮挡 */
.lsection { scroll-margin-top: 78px; }

/* ---------- App 下载下拉面板（首页「App下载/下载手机 App」按钮触发） ---------- */
.app-dl-pop {
  position: fixed; z-index: 95; width: 232px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .18);
  padding: 16px; text-align: center;
  animation: appdl-in .18s ease;
}
@keyframes appdl-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.app-dl-pop .btn { width: 100%; }
.app-dl-qr { display: inline-flex; padding: 10px; margin-top: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.app-dl-qr svg { display: block; width: 132px; height: 132px; }
.app-dl-tip { margin-top: 10px; font-size: 12px; color: var(--ink-4); }

.hero { position: relative; overflow: hidden; padding: 84px 24px 90px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.14), transparent 65%); top: -220px; right: -120px; }
.hero-bg::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.12), transparent 65%); bottom: -200px; left: -140px; }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--teal-50); border: 1px solid var(--teal-300); color: var(--teal-800); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 46px; line-height: 1.18; letter-spacing: -.5px; }
.grad-text { background: linear-gradient(92deg, var(--teal-600), var(--amber-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; font-size: 16.5px; color: var(--ink-3); max-width: 480px; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-4); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--green-600); }

.hero-visual { position: relative; }
.dash-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.dash-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-body { display: grid; grid-template-columns: 132px 1fr; min-height: 300px; }
.dash-side { background: var(--sidebar); padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; }
.dash-side span { height: 24px; border-radius: 7px; background: rgba(255,255,255,.05); display: flex; align-items: center; padding: 0 9px; font-size: 10.5px; color: var(--ink-4); }
.dash-side span.on { background: rgba(13,148,136,.25); color: var(--teal-400); }
.dash-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-stat { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.dash-stat i { font-style: normal; font-size: 10.5px; color: var(--ink-4); display: block; }
.dash-stat b { font-size: 16px; }
.dash-chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; }
.dash-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--teal-600), var(--teal-800)); opacity: .85; }
.dash-row { height: 12px; border-radius: 6px; background: var(--line-soft); }
.float-chip { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 9px 14px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; animation: floaty 5s ease-in-out infinite; }
.float-chip svg { color: var(--teal-600); }
.float-chip.fc-1 { top: -18px; right: 6%; animation-delay: .8s; }
.float-chip.fc-2 { bottom: 26px; left: -26px; animation-delay: 1.6s; }
.float-chip small { display: block; font-weight: 500; color: var(--ink-4); font-size: 10.5px; }

.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--teal-50); }
.trust-inner { max-width: 1200px; margin: 0 auto; padding: 26px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust b { font-size: 24px; display: block; color: var(--teal-800); font-variant-numeric: tabular-nums; }
.trust span { font-size: 12.5px; color: var(--ink-3); }

.lsection { padding: 84px 24px; }
.lsection.alt { background: var(--bg); }
.lsection-inner { max-width: 1200px; margin: 0 auto; }
.lsec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.lsec-head .eyebrow { color: var(--teal-700); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.lsec-head h2 { font-size: 32px; margin-top: 10px; letter-spacing: -.4px; }
.lsec-head p { margin-top: 12px; color: var(--ink-3); font-size: 15px; }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; transition: all .25s ease; }
.adv-card:hover { transform: translateY(-4px); border-color: var(--teal-600); box-shadow: var(--shadow); }
.adv-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--teal-50); color: var(--teal-700); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.adv-card:nth-child(2n) .adv-icon { background: var(--amber-100); color: var(--amber-600); }
.adv-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.adv-card p { font-size: 13.5px; color: var(--ink-3); }

.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 34px 0; }
.feat-row + .feat-row { border-top: 1px dashed var(--line); }
.feat-copy h3 { font-size: 24px; margin-bottom: 14px; letter-spacing: -.3px; }
.feat-copy > p { color: var(--ink-3); font-size: 14.5px; margin-bottom: 18px; }
.feat-points { display: flex; flex-direction: column; gap: 11px; }
.feat-points li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.feat-points svg { color: var(--teal-600); flex: none; margin-top: 3px; }
.feat-visual { display: flex; justify-content: center; }

.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; width: 100%; max-width: 460px; }
.mock-line { height: 13px; border-radius: 6px; background: var(--line-soft); margin: 10px 0; }
.pipe { display: flex; gap: 8px; margin-top: 4px; }
.pipe .p-stage { flex: 1; border-radius: 9px; padding: 10px 6px; text-align: center; color: #fff; font-size: 11px; font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.step-num { position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 11px; background: var(--teal-700); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 4px 10px rgba(15,118,110,.4); }
.step-card h3 { margin: 10px 0 6px; font-size: 16px; }
.step-card p { font-size: 13.5px; color: var(--ink-3); }

/* pricing */
.bill-toggle { display: inline-flex; background: var(--line-soft); border-radius: 999px; padding: 5px; gap: 4px; margin: 0 auto 40px; }
.bill-toggle button { border: none; background: transparent; padding: 8px 22px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--ink-3); cursor: pointer; transition: all .2s; min-height: 38px; }
.bill-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.bill-toggle .save-tag { color: var(--amber-600); font-size: 11.5px; margin-left: 4px; }
/* 4 列套餐网格：4 个套餐一排放齐；列宽变窄后卡片内距/字号同步收紧 */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan-card { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 24px 20px; display: flex; flex-direction: column; transition: all .25s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.recommended { border-color: var(--teal-600); box-shadow: 0 12px 36px -8px rgba(15,118,110,.25); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal-700); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.plan-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.plan-price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .cur { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.plan-price .num { font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--ink-4); font-size: 13px; }
.plan-price-note { font-size: 12px; color: var(--ink-4); min-height: 18px; }
.plan-feats { margin: 16px 0 6px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-feats li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; }
.plan-feats svg { color: var(--teal-600); flex: none; margin-top: 3px; }
.plan-quotas { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.plan-quotas .badge { font-size: 11.5px; }
.plan-card .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--ink-4); font-size: 13px; margin-top: 26px; }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--teal-600); }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s; color: var(--ink-4); flex: none; }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--teal-700); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--ink-3); font-size: 13.5px; }

.cta-band { padding: 0 24px 84px; }
.cta-inner { max-width: 1200px; margin: 0 auto; border-radius: 24px; background: linear-gradient(120deg, var(--teal-800), var(--teal-600) 60%, var(--teal-600)); color: #fff; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); top: -120px; right: -60px; }
.cta-inner h2 { font-size: 30px; letter-spacing: -.4px; }
.cta-inner p { margin-top: 10px; opacity: .85; font-size: 15px; }
.cta-inner .hero-cta { justify-content: center; margin-top: 26px; }
.cta-inner .btn-primary { background: #fff; color: var(--teal-800); }
.cta-inner .btn-primary:hover { background: var(--teal-50); color: var(--teal-800); }
.cta-inner .btn-light { min-height: 48px; padding: 0 28px; border-radius: 12px; font-size: 15px; }

.lfooter { margin-top: auto; background: var(--sidebar); color: #94A3B8; }
.lfooter-inner { max-width: 1200px; margin: 0 auto; padding: 52px 24px 30px; }
.lfooter-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.lfooter .logo { color: #fff; }
.lfooter-brand p { font-size: 13px; margin-top: 12px; max-width: 260px; }
.lfooter h5 { color: #E2E8F0; font-size: 13.5px; margin-bottom: 14px; }
.lfooter-col a { display: block; color: #94A3B8; font-size: 13px; padding: 4px 0; }
.lfooter-col a:hover { color: #5EEAD4; }
.lfooter-bar { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }

/* ---------- 14. Auth ---------- */
.auth-shell { min-height: 100vh; display: flex; }
.auth-side { flex: 0 0 45%; background: linear-gradient(160deg, #134E4A, #0F766E 55%, var(--teal-600)); color: #fff; padding: 52px 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.12); top: -120px; right: -140px; }
.auth-side::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); bottom: -80px; left: -80px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; }
.auth-brand .logo-mark { background: rgba(255,255,255,.16); box-shadow: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.auth-slogan { margin-top: 64px; font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: -.4px; max-width: 400px; }
.auth-points { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; opacity: .94; }
.auth-points .pt-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex: none; }
.auth-points b { display: block; font-size: 14.5px; }
.auth-points span { opacity: .78; font-size: 12.5px; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card-pad { padding: 30px 28px; }
.auth-card h2 { font-size: 22px; margin-bottom: 4px; }
.auth-card .auth-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.pwd-wrap { position: relative; }
.pwd-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--ink-4); cursor: pointer; padding: 4px; display: flex; }

/* 手机号 / 邮箱账号输入框（前缀图标 + 实时校验提示） */
.acct-wrap { position: relative; }
.acct-wrap .acct-input { padding-left: 34px; }
.acct-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-4); display: flex; pointer-events: none; transition: color .15s; }
.acct-ico.is-email { color: #0E7490; }
.acct-ico.is-phone { color: var(--teal-600, #0f766e); }
.acct-hint { font-size: 12px; color: #B45309; margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.input.is-invalid { border-color: #F59E0B !important; }
.field label .opt { font-size: 12px; font-weight: 400; color: var(--ink-4); margin-left: 6px; }
.demo-hint { margin-top: 18px; background: var(--teal-50); border: 1px dashed var(--teal-300); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--teal-900); }
.demo-hint b { font-variant-numeric: tabular-nums; }
.demo-hint .dh-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 15. Charts ---------- */
/* 看板视图 */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; align-items: flex-start; }
.kb-col { min-width: 236px; width: 236px; flex: none; background: #EFF3F4; border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px; transition: background .2s, box-shadow .2s; }
.kb-col.drag-over { background: var(--teal-50); box-shadow: inset 0 0 0 2px var(--teal-600); }
.kb-head { display: flex; align-items: center; gap: 7px; padding: 4px 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.kb-head .dot { flex: none; }
.kb-meta { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kb-cards { display: flex; flex-direction: column; gap: 8px; min-height: 64px; }
.kb-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; cursor: grab; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, opacity .18s; }
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kb-card:active { cursor: grabbing; }
.kb-card.dragging { opacity: .4; transform: scale(.98); }
.kb-title { font-size: 13px; font-weight: 700; color: var(--ink); padding-right: 40px; line-height: 1.45; }
.kb-cust { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.kb-foot b { font-size: 13px; color: var(--ink); }
.kb-foot .badge { font-size: 10.5px; }
.kb-actions { position: absolute; top: 8px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: opacity .18s; }
.kb-card:hover .kb-actions { opacity: 1; }
.kb-actions .icon-btn { width: 26px; height: 26px; }
.kb-empty { border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px 10px; text-align: center; font-size: 12px; color: var(--ink-4); }

/* 滚动入场动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.adv-card.reveal:nth-child(2) { transition-delay: .06s; }
.adv-card.reveal:nth-child(3) { transition-delay: .12s; }
.adv-card.reveal:nth-child(4) { transition-delay: .18s; }
.adv-card.reveal:nth-child(5) { transition-delay: .24s; }
.adv-card.reveal:nth-child(6) { transition-delay: .3s; }
.faq-item.reveal:nth-child(2) { transition-delay: .05s; }
.faq-item.reveal:nth-child(3) { transition-delay: .1s; }
.faq-item.reveal:nth-child(4) { transition-delay: .15s; }
.faq-item.reveal:nth-child(5) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dash-mock, .float-chip { animation: none !important; }
}

/* 页面切换过渡 */
.page-enter { animation: pageIn .32s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 数字滚动过渡（由 JS 驱动） */
.stat-num { will-change: contents; }

.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut { --size: 148px; width: var(--size); height: var(--size); border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ""; position: absolute; inset: 24px; background: var(--surface); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-soft); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.donut-center b { font-size: 22px; }
.donut-center span { font-size: 11.5px; color: var(--ink-4); }
.donut-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 160px; }
.donut-legend .lg-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.donut-legend .lg-row .dot { flex: none; }
.donut-legend .lg-row .lg-num { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-col .bar-val { font-size: 12px; font-weight: 700; color: var(--teal-800); }
.bar-col .bar { width: 100%; max-width: 42px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--teal-500, #14B8A6), var(--teal-700)); min-height: 4px; transition: height .5s ease; }
.bar-col:hover .bar { filter: brightness(1.08); }
.bar-col .bar-label { font-size: 11.5px; color: var(--ink-4); }
.hbar-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.hbar-row .hbar-label { width: 76px; flex: none; color: var(--ink-2); font-weight: 600; }
/* TOP5 商机标题：自适应宽度 + 溢出省略（从 JS 内联样式迁移到 CSS，便于响应式覆写） */
.hbar-row .hbar-title { width: auto; max-width: 180px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.hbar-row .hbar-track { flex: 1; height: 12px; border-radius: 999px; background: var(--line-soft); overflow: hidden; min-width: 60px; }
.hbar-row .hbar-track > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--teal-800)); }
/* 金额列：min-width 自适应（原固定 34px 导致 ¥580,000 溢出被阶段标签遮挡）；nowrap + flex:none 确保完整展示 */
.hbar-row .hbar-num { min-width: 34px; flex: none; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-row .badge { flex: none; }
@media (max-width: 640px) {
  .hbar-row { flex-wrap: wrap; row-gap: 8px; }
  .hbar-row .hbar-title { flex: 1 1 100%; max-width: none; }
  .hbar-row .hbar-track { min-width: 96px; }
}

/* ---------- 26. 套餐功能门禁（锁标 / 升级引导） ---------- */
.feat-lock {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  padding: 1.5px 6px 1.5px 5px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(217, 119, 6, .14), rgba(245, 158, 11, .18));
  border: 1px solid rgba(217, 119, 6, .35);
  color: #B45309; font-size: 10px; font-weight: 800; line-height: 1.4;
  letter-spacing: .4px; vertical-align: middle;
}
html[data-theme="dark"] .feat-lock { background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .35); color: #FBBF24; }
.feat-lock i { font-style: normal; }
.nav-feat { display: inline-flex; flex: none; }
.nav-item.feat-locked { opacity: .82; }
.nav-item.feat-locked:hover { background: var(--sidebar-hover); }
/* 升级引导弹窗 */
.up-feature-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(20, 184, 166, .06)); border: 1px solid var(--line-soft); }
html[data-theme="dark"] .up-feature-head { background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(13, 148, 136, .08)); }
.up-feature-icon { width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--teal-700); color: #fff; }
.up-plan-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.up-plan-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.up-plan-row:hover { border-color: var(--teal-600); box-shadow: var(--shadow-sm); }
.up-plan-row > div:first-child { flex: 1; min-width: 0; }
.up-plan-price { font-weight: 700; color: var(--teal-800); white-space: nowrap; }
html[data-theme="dark"] .up-plan-price { color: var(--teal-400); }
/* 功能矩阵（平台管理） */
.feat-matrix { overflow-x: auto; }
.feat-matrix table { width: 100%; border-collapse: collapse; min-width: 640px; }
.feat-matrix th, .feat-matrix td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.feat-matrix th:first-child, .feat-matrix td:first-child { text-align: left; min-width: 220px; }
.feat-matrix tbody tr:hover { background: var(--teal-50); }
.feat-matrix .fm-feature b { display: block; font-size: 13.5px; }
.feat-matrix .fm-feature .muted { font-size: 12px; font-weight: 400; }
.feat-switch { position: relative; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--input-bg); cursor: pointer; transition: all .2s; display: inline-block; vertical-align: middle; }
.feat-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: all .2s; }
.feat-switch.on { background: var(--teal-600); border-color: var(--teal-600); }
.feat-switch.on::after { left: 20px; }
.feat-switch[disabled] { opacity: .5; cursor: not-allowed; }
.feat-tag-ovr { display: inline-flex; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: rgba(217, 119, 6, .12); color: #B45309; border: 1px solid rgba(217, 119, 6, .3); vertical-align: middle; }

/* ---------- 16. Timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.tl-item { position: relative; padding: 0 0 20px 34px; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line-soft); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.tl-dot.teal { background: var(--teal-600); } .tl-dot.amber { background: var(--amber-500); }
.tl-dot.green { background: var(--green-600); } .tl-dot.slate { background: var(--ink-4); }
.tl-dot.orange { background: var(--orange-600); }
.tl-card { background: #FAFBFC; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.tl-head .tl-cust { font-weight: 700; font-size: 13px; }
.tl-head .tl-time { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.tl-content { font-size: 13.5px; color: var(--ink-2); word-break: break-word; }
.tl-next { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; color: var(--amber-600); font-weight: 600; }

/* ---------- 17. Responsive ---------- */
/* 1081–1240px：4 列太挤，降为 2×2（需在 ≤1080px 单列规则之前声明，窄屏时被后者覆盖） */
@media (max-width: 1240px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
}
@media (max-width: 1080px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 45; animation: fadeIn .2s; }
  .app-main { margin-left: 0; }
  /* 移动端：顶栏切换为 汉堡 + 品牌 + 紧凑用户区 */
  .app-topbar { padding: 0 14px; gap: 10px; }
  .tb-menu { display: inline-flex; }
  .tb-brand { display: inline-flex; }
  .tb-brand .logo { font-size: 15.5px; white-space: nowrap; }
  .tb-crumb { display: none; }
  .tb-user { padding: 4px 9px 4px 5px; gap: 8px; }
  .tb-user .u-company { display: none; }
  .tb-logout { width: 34px; padding: 0; }
  .tb-logout span { display: none; }
  .app-content { padding: 20px 16px 40px; }
  .adv-grid, .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-card.recommended { transform: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .feat-row { grid-template-columns: 1fr; gap: 28px; }
  .feat-row .feat-copy { order: 1; } .feat-row .feat-visual { order: 2; }
  .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .auth-side { display: none; }
  .lnav-links { display: none; }
  .lnav-burger { display: inline-flex; }
  .lnav-cta .lnav-app { display: inline-flex; }
}
@media (min-width: 1081px) {
  /* 桌面端顶栏常驻，无额外处理 */
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  /* 窄屏导航紧凑化：收窄间距，保住 App下载+登录+主题（免费试用入口在 banner 内） */
  .lnav-inner { gap: 12px; padding: 0 16px; }
  .lnav-cta { gap: 8px; }
  .lnav-cta .btn { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
  .hero { padding: 56px 18px 64px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14.5px; }
  .lsection { padding: 60px 18px; }
  .lsec-head h2 { font-size: 25px; }
  .cta-inner { padding: 40px 22px; }
  .cta-inner h2 { font-size: 23px; }
  .stat-num { font-size: 22px; }
  .modal { max-width: 100%; }
  .plan-price .num { font-size: 32px; }
  .pagination { justify-content: center; }
}

/* ============================================================
   18. Conversion Funnel  19. Audit Logs  20. Import Modal
   21. Testimonials Carousel
   ============================================================ */

/* ---------- 18. 销售转化漏斗 ---------- */
.funnel-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.funnel-label { width: 64px; flex: none; font-size: 12.5px; color: var(--ink-2); text-align: right; }
.funnel-track {
  flex: 1; height: 24px; background: var(--line-soft); border-radius: 7px;
  position: relative; overflow: visible; display: flex; align-items: center;
}
.funnel-bar {
  height: 100%; border-radius: 7px; display: block; min-width: 0;
  transition: width .7s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.funnel-bar::after {
  content: ''; position: absolute; inset: 0; border-radius: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 55%, rgba(255,255,255,.28));
}
.funnel-rate { margin-left: 8px; font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.funnel-num { width: 34px; flex: none; text-align: right; font-size: 13px; color: var(--ink); }
.funnel-stats {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 18px;
}
.fs-cell { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fs-cell i { font-style: normal; font-size: 12px; color: var(--ink-4); }
.fs-cell b { font-size: 21px; color: var(--ink); }
.fs-cell span { font-size: 11.5px; color: var(--ink-4); }
.fs-divider { width: 1px; align-self: stretch; background: var(--line-soft); }

/* ---------- 19. 审计日志 / 操作日志 ---------- */
.audit-feed { display: flex; flex-direction: column; gap: 6px; }
.audit-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px; border-radius: 12px; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.audit-row:hover { background: var(--bg); border-color: var(--line-soft); }
.audit-main { flex: 1; min-width: 0; }
.audit-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.audit-target { font-weight: 600; color: var(--ink); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-detail { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; padding-left: 2px; }
.audit-time { font-size: 12px; color: var(--ink-4); white-space: nowrap; flex: none; margin-top: 2px; }

.logs-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.logs-side { position: sticky; top: 16px; }
.logs-side .field { margin-bottom: 12px; }
.logs-tip {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--teal-50); border: 1px solid var(--teal-100);
  display: flex; gap: 8px; font-size: 12px; color: var(--teal-800); line-height: 1.55;
}
.logs-tip svg { flex: none; margin-top: 2px; }
.logs-skeleton {
  display: flex; flex-direction: column; gap: 6px;
}
.logs-skeleton::before, .logs-skeleton::after {
  content: ''; height: 52px; border-radius: 12px;
  background: linear-gradient(90deg, var(--line-soft) 25%, #f7fafb 50%, var(--line-soft) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- 20. 批量导入弹窗 ---------- */
.import-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.import-step {
  font-size: 12.5px; color: var(--ink-4); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-soft);
  transition: all .2s ease;
}
.import-step.active { color: var(--teal-700); border-color: var(--teal-600); background: var(--teal-50); }
.import-step.done { color: var(--green-600); border-color: var(--green-100); background: var(--green-100); }
.import-sep { flex: 1; height: 1px; background: var(--line-soft); }
.import-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.import-hint { margin-top: 8px; font-size: 12px; color: var(--ink-4); }
.import-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 18px; border: 1.5px dashed var(--line); border-radius: 14px;
  color: var(--ink-3); cursor: pointer; text-align: center;
  transition: border-color .18s ease, background .18s ease;
}
.import-drop:hover, .import-drop.over { border-color: var(--teal-600); background: var(--teal-50); }
.import-drop.over { transform: scale(1.01); }
.import-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.imp-stat {
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.imp-stat b { font-size: 19px; color: var(--ink); }
.imp-stat span { font-size: 11.5px; color: var(--ink-4); }
.imp-stat.bad b { color: var(--red-600); }
.imp-stat.warn b { color: var(--amber-600); }
.import-note {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3);
  padding: 8px 12px; border-radius: 10px; background: var(--bg); margin-bottom: 12px;
}
.import-note.ok { color: var(--green-600); background: var(--green-100); }
.imp-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.import-result { text-align: center; padding: 18px 6px 6px; }
.import-result h3 { font-size: 19px; margin: 8px 0 4px; }
.ir-icon.ok { color: var(--green-600); }
.ir-icon.warn { color: var(--amber-600); }
.ir-errors {
  margin-top: 16px; text-align: left; border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 12px 14px; max-height: 190px; overflow-y: auto;
}
.ir-err-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
.ir-err-row:last-child { border-bottom: none; }

/* ---------- 21. 客户评价轮播 ---------- */
.tst-wrap { margin-top: 30px; }
.tst-viewport { overflow: hidden; }
.tst-track { display: flex; gap: 20px; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.tst-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 26px 24px; position: relative; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tst-quote { color: var(--teal-100); position: absolute; top: 18px; right: 20px; }
.tst-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.tst-stars .star { color: var(--line); }
.tst-stars .star.on { color: var(--amber-500); fill: var(--amber-500); }
.tst-text { font-size: 14px; line-height: 1.8; color: var(--ink-2); flex: 1; }
.tst-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tst-person .avatar { background: var(--teal-700); color: #fff; }
.tst-person b { font-size: 14px; display: block; }
.tst-role { font-size: 12px; color: var(--ink-4); }
.tst-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.tst-arrow {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .18s ease;
}
.tst-arrow:hover { border-color: var(--teal-600); color: var(--teal-700); background: var(--teal-50); }
.tst-dots { display: flex; gap: 7px; }
.tst-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0;
  background: var(--line); cursor: pointer; transition: all .25s ease;
}
.tst-dot.active { width: 22px; background: var(--teal-600); }
@media (max-width: 1240px) { .tst-card { flex: 0 0 calc((100% - 20px) / 2); } }
@media (max-width: 900px) {
  .tst-card { flex: 0 0 100%; }
  .logs-layout { grid-template-columns: 1fr; }
  .logs-side { position: static; }
  .import-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ================= 团队管理（设置页） ================= */
.team-invite-box {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: 12px;
  background: var(--surface-2); margin-bottom: 16px;
}
.team-invite-box.team-full {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  color: var(--amber-800); background: var(--amber-50); border-color: var(--amber-100); font-size: 13.5px;
}
.team-invite-box.team-full a { color: var(--amber-700); font-weight: 600; }
.team-invite-box.team-full svg { color: #D97706; }
.team-invite-box.team-readonly {
  color: var(--ink-2); background: var(--input-bg); border-color: var(--line);
  display: flex; gap: 8px; align-items: center; font-size: 13.5px;
}
.team-invite-box.team-readonly svg { color: #0F766E; }
.team-list { display: flex; flex-direction: column; }
.team-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 10px; border-radius: 12px;
  transition: background .18s ease;
}
.team-row:hover { background: var(--surface-2); }
.team-row + .team-row { border-top: 1px solid var(--input-bg); }
.avatar-lg {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ink-2), var(--ink-4));
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 1px;
}
.team-info { flex: 1; min-width: 0; }
.team-name { font-weight: 600; font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-stats { display: flex; gap: 14px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.team-stats span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.team-stats svg { color: var(--ink-4); }
/* 团队管理独立页补充 */
.card-title .ct { display: inline-flex; align-items: center; gap: 8px; }
.card-title .ct svg { color: var(--teal-600); }
.stat-icon.users { background: var(--teal-50); color: var(--teal-700); }
.stat-icon.contacts { background: var(--green-100); color: var(--green-600); }
.stat-icon.deals { background: var(--amber-100); color: var(--amber-600); }
.stat-max { font-size: 14px; font-weight: 600; color: var(--ink-4); }
.team-quota-bar { height: 6px; border-radius: 999px; background: var(--input-bg); margin-top: 8px; overflow: hidden; }
.team-quota-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-500, #14B8A6), var(--teal-600)); transition: width .5s ease; }
.btn-ghost-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; background: transparent; color: #DC2626; cursor: pointer;
  border-radius: 9px; font-weight: 600; font-size: 13px;
  padding: 7px 12px; transition: all .18s ease; white-space: nowrap;
}
.btn-ghost-danger:hover { background: var(--red-100); }
.btn-ghost-danger:disabled { opacity: .5; cursor: not-allowed; }

/* ================= 回收站弹窗 ================= */
.trash-tip {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800);
  padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6;
  margin-bottom: 14px;
}
.trash-tip svg { flex-shrink: 0; margin-top: 2px; color: var(--teal-600); }
.trash-toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.trash-list { display: flex; flex-direction: column; }
.trash-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px; border-radius: 12px; transition: background .18s ease;
}
.trash-row:hover { background: var(--surface-2); }
.trash-row + .trash-row { border-top: 1px solid var(--input-bg); }

/* ================= 销售预测（工作台） ================= */
.fc-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #0F766E 0%, var(--teal-600) 55%, #14B8A6 100%);
  color: #fff; position: relative; overflow: hidden;
}
.fc-head::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
/* 渐变深底上的徽章改为白玻璃样式，保证对比度（浅/深色主题一致） */
.fc-head .badge {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.fc-label { display: block; font-size: 12px; opacity: .85; letter-spacing: .5px; }
.fc-num { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.fc-sub { display: block; font-size: 11.5px; opacity: .8; margin-top: 3px; }
.fc-row { display: flex; align-items: center; gap: 10px; }
.fc-stage { width: 62px; font-size: 12.5px; color: var(--ink-2); flex-shrink: 0; }
.fc-track {
  flex: 1; height: 16px; background: var(--input-bg); border-radius: 8px;
  position: relative; overflow: hidden; min-width: 0;
}
.fc-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 8px; opacity: .28; transition: width .6s cubic-bezier(.22,1,.36,1);
}
.fc-wbar {
  position: absolute; left: 0; top: 3px; bottom: 3px;
  border-radius: 5px; background: linear-gradient(90deg, rgba(15,118,110,.75), rgba(15,118,110,.95));
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.fc-amt { width: 92px; text-align: right; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.fc-rate {
  width: 40px; text-align: center; font-size: 11.5px; font-weight: 700;
  color: var(--teal-600); background: var(--teal-50); border-radius: 6px; padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
.fc-note {
  display: flex; gap: 6px; align-items: center;
  margin-top: 12px; font-size: 11.5px; color: var(--ink-4);
}
.fc-note svg { flex-shrink: 0; }

/* ================= 首页更新日志时间线 ================= */
.cl-timeline { max-width: 820px; margin: 0 auto; position: relative; }
.cl-item { display: flex; gap: 22px; position: relative; }
.cl-marker { width: 20px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.cl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal-600); border: 3px solid var(--teal-100);
  margin-top: 6px; box-shadow: 0 0 0 4px rgba(13,148,136,.08);
}
.cl-item:not(:last-child) .cl-marker::after {
  content: ''; flex: 1; width: 2px; margin-top: 6px;
  background: linear-gradient(var(--teal-300), var(--line-strong)); border-radius: 1px;
}
.cl-card {
  flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 18px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cl-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.cl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-version {
  font-weight: 800; font-size: 15px; color: #0F766E;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
}
.cl-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.cl-date { margin-left: auto; font-size: 12.5px; color: var(--ink-4); }
.cl-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cl-list li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
}
.cl-list svg { flex-shrink: 0; color: var(--teal-600); margin-top: 2.5px; }

@media (max-width: 640px) {
  .cl-item { gap: 12px; }
  .cl-card { padding: 14px 16px; }
  .cl-date { width: 100%; margin-left: 0; }
  .fc-amt { width: 74px; font-size: 11.5px; }
  .team-row { flex-wrap: wrap; }
  .team-stats { width: 100%; padding-left: 56px; }
}

/* ============================================================
   18. 公海池 / 19. 管理端用户详情 360°
   ============================================================ */

/* ---------- 18. 公海池 ---------- */
.pool-tip {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 12px;
  background: var(--teal-50); border: 1px dashed var(--teal-600);
  color: var(--teal-800); font-size: 12.5px; line-height: 1.65;
}
.pool-tip svg { flex-shrink: 0; margin-top: 2px; }
.pool-avatar {
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  color: var(--teal-800);
  border: 1px solid var(--teal-100);
}
.trash-row .pool-claim { min-width: 84px; }
.trash-row:hover .pool-claim { box-shadow: var(--shadow-sm); }

/* 公海等级徽章微调 */
.trash-row .badge { margin-left: 2px; }

/* ---------- 19. 管理端用户详情（租户 360°） ---------- */
.ud-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--teal-50) 0%, var(--surface) 55%);
  border: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.ud-head::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, .1), transparent 70%);
  pointer-events: none;
}
.ud-avatar { width: 48px; height: 48px; font-size: 19px; background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); color: #fff; }
.ud-headinfo { flex: 1; min-width: 0; }
.ud-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ud-email { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.ud-meta { font-size: 12px; color: var(--ink-4); margin-top: 4px; }
.ud-plan {
  text-align: right; padding-left: 16px; border-left: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 3px; flex-shrink: 0;
}
.ud-planlabel { font-size: 11.5px; color: var(--ink-4); }
.ud-plan b { font-size: 15px; color: var(--teal-800); }
.ud-planexp { font-size: 11.5px; color: var(--ink-3); }

.ud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ud-card {
  border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 14px 16px; background: var(--surface);
}
.ud-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 12px; letter-spacing: .02em;
}
.ud-title svg { color: var(--teal-600); }

.ud-quota { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.ud-qlabel { width: 60px; font-size: 12.5px; color: var(--ink-3); flex-shrink: 0; }
.ud-qtrack {
  flex: 1; height: 7px; border-radius: 6px; background: var(--input-bg); overflow: hidden;
}
.ud-qtrack span {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-800));
  transition: width .5s cubic-bezier(.22, .8, .36, 1);
}
.ud-qval { width: 72px; text-align: right; font-size: 12px; color: var(--ink-2); flex-shrink: 0; }

.ud-members { display: flex; flex-direction: column; gap: 8px; max-height: 168px; overflow-y: auto; }
.ud-member {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 9px; transition: background .15s;
}
.ud-member:hover { background: var(--surface-2); }
.ud-mname { font-size: 13px; font-weight: 600; color: var(--ink); }
.ud-memail { font-size: 12px; color: var(--ink-4); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-sm { font-size: 10.5px; padding: 1px 7px; }

.ud-table { margin-top: -4px; }
.ud-table th { font-size: 11.5px; }
.ud-table td { padding: 7px 12px; }

.ud-logs { display: flex; flex-direction: column; max-height: 230px; overflow-y: auto; }
.ud-log {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 2px; position: relative;
}
.ud-log + .ud-log { border-top: 1px dashed var(--line-soft); }
.ud-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-600); margin-top: 7px; flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--teal-50);
}
.ud-logmain { flex: 1; min-width: 0; font-size: 12.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ud-logmain b { color: var(--ink); }
.ud-logdetail { width: 100%; font-size: 12px; color: var(--ink-3); padding-left: 2px; }
.ud-logtime { font-size: 11.5px; color: var(--ink-4); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 640px) {
  .ud-head { flex-direction: column; align-items: flex-start; }
  .ud-plan { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 10px; width: 100%; }
  .ud-grid { grid-template-columns: 1fr; }
  .ud-qlabel { width: 52px; }
  .ud-qval { width: 64px; }
}

/* ============================================================
   18. Today Reminder Center  (今日待办)
   ============================================================ */
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(234, 88, 12, .4);
  animation: badge-pop .3s ease-out;
}
@keyframes badge-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.nav-item.active .nav-badge { background: #fff; color: var(--teal-700); box-shadow: none; }

.td-refresh-wrap { display: flex; gap: 8px; }
.td-stats {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; margin-bottom: 14px;
}
.td-stat {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.td-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.td-stat-ic {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
}
.td-stat b { display: block; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.td-stat span:last-child, .td-stat div > span { font-size: 12px; color: var(--ink-3); }
.td-stat.danger .td-stat-ic { background: var(--red-100); color: var(--red-600); }
.td-stat.danger b { color: var(--red-600); }
.td-stat.primary .td-stat-ic { background: var(--teal-100); color: var(--teal-700); }
.td-stat.slate .td-stat-ic { background: var(--input-bg); color: var(--ink-3); }
.td-stat.tip {
  align-self: center;
  background: var(--teal-50); border-color: var(--teal-100);
  color: var(--teal-800); font-size: 12px;
  padding: 10px 14px; gap: 7px; max-width: 300px;
  box-shadow: none;
}

/* 今日待办三列等高：右列（或任意短列）底部顶尽，与最高列对齐 */
.td-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.td-col {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.td-col-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center; column-gap: 8px;
  padding: 12px 16px;
  border-bottom: 2px solid;
}
.td-col-head.overdue { border-color: var(--red-600); background: linear-gradient(180deg, var(--red-100), transparent); }
.td-col-head.today { border-color: var(--teal-600); background: linear-gradient(180deg, var(--teal-50), transparent); }
.td-col-head.upcoming { border-color: var(--ink-4); background: linear-gradient(180deg, var(--surface-2), transparent); }
.td-col-ic {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
}
.td-col-head.overdue .td-col-ic { background: linear-gradient(135deg, var(--red-400), #DC2626); }
.td-col-head.today .td-col-ic { background: linear-gradient(135deg, #2DD4BF, var(--teal-600)); }
.td-col-head.upcoming .td-col-ic { background: linear-gradient(135deg, var(--ink-4), var(--ink-3)); }
.td-col-title { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; }
.td-col-count {
  min-width: 21px; height: 21px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--input-bg); color: var(--ink-2);
}
.td-col-head.overdue .td-col-count { background: var(--red-100); color: var(--red-600); }
.td-col-head.today .td-col-count { background: var(--teal-100); color: var(--teal-800); }
.td-col-desc { font-size: 11.5px; color: var(--ink-4); text-align: right; grid-column: 2 / 4; grid-row: 2; }
.td-col-head { row-gap: 2px; }
.td-empty-ok {
  flex: 1;
  padding: 26px 16px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--ink-4); font-size: 12.5px;
}
.td-empty-ok svg { color: var(--green-600); }
/* 列表撑满列内剩余高度：短列卡片靠顶、容器底边与最高列对齐；超出 max-height 内部滚动 */
.td-list { flex: 1 1 auto; display: flex; flex-direction: column; padding: 10px; gap: 10px; max-height: 560px; overflow-y: auto; }
.td-list::-webkit-scrollbar { width: 6px; }
.td-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
/* ---------- 今日待办整页撑满（桌面 >1080px 三/四列横排）：
   看板拉伸至视口底部，页尾空白被看板利用；列内列表接管滚动，页面本身不滚。
   ≤1080px 双列/单列堆叠布局自动回退为自然内容流（沿用基础 max-height）。 ---------- */
@media (min-width: 1081px) {
  .app-content.page-today {
    display: flex; flex-direction: column;
    flex: none;                   /* 覆盖 .app-content 的 flex:1（basis 0%），否则 height 不生效 */
    height: calc(100vh - 58px);   /* 58px = 顶栏高度；内容区固定为一屏 */
    padding-bottom: 20px;         /* 收窄底边距，看板尽量贴底利用空白 */
    overflow-y: auto;             /* 兜底：极矮视口时容器自身可滚 */
  }
  .app-content.page-today .td-grid {
    flex: 1 1 auto;
    min-height: 480px;            /* 覆盖 flex 子项 min-height:auto，允许收缩 + 矮视口保底 */
    grid-template-rows: minmax(480px, 1fr);  /* 单行看板：拉伸填满剩余高度 */
  }
  .app-content.page-today .td-list { max-height: none; min-height: 0; }
}
.td-card {
  /* flex:none：卡片是 .td-list（max-height + overflow-y:auto）的 flex 子项，
     默认 flex-shrink:1 会在条目多时把卡片整体压扁，底部「完成跟进/延后」按钮区
     被卡片自身 overflow:hidden 裁掉，看起来像没有快速处理入口 */
  flex: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: var(--surface);
  transition: border-color .16s, box-shadow .16s, transform .16s;
  position: relative;
  overflow: hidden;
}
.td-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--line);
}
.td-col.overdue .td-card::before { background: linear-gradient(180deg, var(--red-400), #DC2626); }
.td-col.today .td-card::before { background: linear-gradient(180deg, #2DD4BF, var(--teal-600)); }
.td-col.upcoming .td-card::before { background: linear-gradient(180deg, var(--line-strong), var(--ink-4)); }
.td-card:hover { border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-1px); }
.td-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.td-cust { font-weight: 600; font-size: 13.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-cust:hover { color: var(--teal-700); }
.td-cust svg { color: var(--ink-4); flex-shrink: 0; }
.td-card-mid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.td-owner { display: inline-flex; align-items: center; gap: 4px; }
.td-content {
  font-size: 12.5px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px;
}
.td-foot { display: flex; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line-soft); }
.td-foot .btn { flex: 1; justify-content: center; }

.td-done-cust {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 14px;
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
}
.td-done-avatar {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface); color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}
.td-done-name { font-weight: 700; color: var(--ink); }
.td-done-name:hover { color: var(--teal-700); }

/* ============================================================
   19. Deal Detail Modal  (商机详情 + 阶段时间线)
   ============================================================ */
.dl-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, var(--teal-50), var(--surface) 65%);
  border: 1px solid var(--teal-100);
  margin-bottom: 12px;
}
.dl-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.dl-cust { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12.5px; }
.dl-amount { text-align: right; flex-shrink: 0; }
.dl-amount-label { display: block; font-size: 11.5px; color: var(--ink-4); margin-bottom: 2px; }
.dl-amount b { font-size: 21px; color: var(--teal-700); letter-spacing: -.02em; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.dl-meta-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.dl-meta-item > span:first-child { color: var(--ink-4); }
.dl-meta-item b { font-weight: 600; color: var(--ink-2); }
.dl-remark { width: 100%; align-items: flex-start; }
.dl-remark b { font-weight: 400; color: var(--ink-2); }
.dl-tl-head {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13.5px; margin-bottom: 10px;
  color: var(--ink);
}
.dl-tl-head svg { color: var(--teal-600); }
.stage-tl { position: relative; padding-left: 6px; max-height: 300px; overflow-y: auto; }
.stl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.stl-item:last-child { padding-bottom: 4px; }
.stl-item::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0;
  width: 2px; background: var(--line-soft);
}
.stl-item:last-child::before { display: none; }
.stl-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; z-index: 1;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line-soft);
}
.stl-item.current .stl-dot { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--teal-100); animation: stl-pulse 2s infinite; }
@keyframes stl-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--teal-100); }
  50% { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--teal-100); }
}
.stl-body { flex: 1; min-width: 0; padding-top: 2px; }
.stl-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stl-move { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; }
.stl-move svg { color: var(--ink-4); }
.stl-badge { font-weight: 700; }
.stl-meta { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

/* ============================================================
   20. Compare Table  (对比传统 CRM)
   ============================================================ */
.cmp-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow-x: auto;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.cmp-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: left; vertical-align: top; font-size: 13px; }
.cmp-table thead th {
  font-size: 13.5px; font-weight: 800;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
}
.cmp-table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.cmp-table tbody tr { transition: background .15s; }
.cmp-table tbody tr:hover { background: var(--teal-50); }
.cmp-table td { color: var(--ink-2); }
.cmp-dim { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cmp-kemei { background: var(--teal-50); }
.cmp-table thead .cmp-kemei { background: linear-gradient(180deg, var(--teal-100), var(--teal-50)); color: var(--teal-900); position: relative; }
.cmp-table thead .cmp-kemei .logo-mark { vertical-align: -2px; }
.cmp-table tbody .cmp-kemei { border-left: 1px solid var(--teal-100); border-right: 1px solid var(--teal-100); }
.cmp-table tbody tr:last-child .cmp-kemei { border-bottom: 2px solid var(--teal-600); }
.cmp-mark {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-right: 9px;
  border-radius: 7px; font-size: 12px; font-weight: 800;
  vertical-align: -4px;
}
.cmp-mark.yes { background: var(--green-100); color: var(--green-600); }
.cmp-mark.mid { background: var(--amber-100); color: var(--amber-600); }
.cmp-mark.no { background: var(--input-bg); color: var(--ink-4); }
.cmp-table thead .cmp-kemei::after {
  content: "推荐"; position: absolute; top: 8px; right: 10px;
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  border-radius: 999px; background: var(--teal-600); color: #fff;
}

/* ============================================================
   21. ROI Calculator  (首页投资回报计算器)
   ============================================================ */
.roi-wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px;
  align-items: stretch;
  margin-top: 34px;
}
.roi-panel { display: flex; flex-direction: column; gap: 24px; padding: 26px; }
.roi-slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.roi-slider-head label { font-weight: 700; font-size: 13.5px; }
.roi-slider-head output {
  font-size: 15px; font-weight: 800; color: var(--teal-700);
  font-variant-numeric: tabular-nums;
}
.roi-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); margin-top: 5px; }
.roi-wrap input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 7px; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-600) var(--fill, 20%), var(--line) var(--fill, 20%));
  outline: none; cursor: pointer;
}
.roi-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--teal-600);
  box-shadow: 0 2px 8px rgba(13, 148, 136, .35);
  cursor: grab;
  transition: transform .15s;
}
.roi-wrap input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.roi-wrap input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--teal-600);
  box-shadow: 0 2px 8px rgba(13, 148, 136, .35); cursor: grab;
}
.roi-note {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 12px; color: var(--ink-3);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-top: auto;
}
.roi-note svg { flex-shrink: 0; margin-top: 2px; color: var(--ink-4); }

.roi-result {
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(150deg, var(--teal-800), var(--teal-900));
  color: #fff;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.roi-result::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .25), transparent 70%);
  pointer-events: none;
}
.roi-result::after {
  content: ""; position: absolute; left: -40px; bottom: -80px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .18), transparent 70%);
  pointer-events: none;
}
.roi-hero { text-align: center; padding: 8px 0 18px; border-bottom: 1px dashed rgba(255, 255, 255, .2); position: relative; z-index: 1; }
.roi-hero-label { font-size: 12.5px; opacity: .85; letter-spacing: .04em; }
.roi-hero-num {
  display: block; font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.2;
  margin: 6px 0 4px;
  background: linear-gradient(120deg, var(--teal-400), #FCD34D);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.roi-hero-sub { font-size: 11.5px; opacity: .65; }
.roi-rows { display: flex; flex-direction: column; margin: 14px 0 18px; position: relative; z-index: 1; }
.roi-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; font-size: 13px;
}
.roi-row + .roi-row { border-top: 1px dashed rgba(255, 255, 255, .14); }
.roi-row > span { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.roi-row b { font-variant-numeric: tabular-nums; font-weight: 700; }
.roi-row.total { background: rgba(255, 255, 255, .08); border: 0; border-radius: 10px; padding: 11px 12px; margin-top: 8px; }
.roi-row.total > span { font-weight: 700; }
.roi-row.total b { font-size: 17px; font-weight: 900; color: #FCD34D; }
.roi-cta { margin-top: auto; position: relative; z-index: 1; text-align: center; justify-content: center; background: #fff; color: var(--teal-800); }
/* 提升优先级盖过 .btn-primary:hover(0,3,0)，保持"白底→浅青底"的设计意图，并锁定文字色 */
.btn.roi-cta:hover:not(:disabled) { background: var(--teal-50); color: var(--teal-800); }

/* ---------- Responsive additions ---------- */
@media (max-width: 1080px) {
  .td-grid { grid-template-columns: 1fr 1fr; }
  .td-stats { grid-template-columns: repeat(3, 1fr); }
  .td-stat.tip { display: none; }
  .roi-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .td-grid { grid-template-columns: 1fr; }
  .td-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .td-stat { padding: 11px 13px; }
  .td-stat b { font-size: 17px; }
  .td-col-desc { display: none; }
  .roi-panel { padding: 18px; }
  .roi-result { padding: 20px; }
  .dl-head { flex-direction: column; }
  .dl-amount { text-align: left; }
}

/* ============================================================
   Additions: 21.Revenue Trend  22.Pool Quota  23.Theme Toggle
   24.Dark-theme patches
   ============================================================ */

/* ---------- 21. Admin revenue trend (12-month CSS bar chart) ---------- */
.rev-card .rev-chart { display: flex; align-items: stretch; gap: 6px; height: 190px; padding-top: 8px; }
.rev-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rev-col .rev-val { font-size: 11px; font-weight: 700; color: var(--teal-700); min-height: 16px; }
html[data-theme="dark"] .rev-col .rev-val { color: var(--teal-400); }
.rev-bar-track { width: 100%; max-width: 34px; flex: 1; display: flex; align-items: flex-end; background: var(--input-bg); border-radius: 8px; overflow: hidden; }
.rev-bar { display: block; width: 100%; background: linear-gradient(180deg, var(--teal-400), var(--teal-700)); border-radius: 8px 8px 0 0; transform-origin: bottom; animation: revGrow .7s cubic-bezier(.22,1,.36,1) backwards; }
.rev-col:nth-child(odd) .rev-bar { animation-delay: .04s; }
.rev-col:nth-child(3n) .rev-bar { animation-delay: .08s; }
@keyframes revGrow { from { transform: scaleY(0); } }
.rev-col:not(.has) .rev-bar-track { background: transparent; }
.rev-col .rev-month { font-size: 11px; color: var(--ink-4); }
.rev-col.has:hover .rev-bar { filter: brightness(1.12) saturate(1.1); }
@media (prefers-reduced-motion: reduce) { .rev-bar { animation: none; } }

/* ---------- 22. Pool quota chip + protection rows ---------- */
.pool-quota { display: flex; justify-content: flex-end; margin-top: 8px; min-height: 22px; }
.pq-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--teal-600); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 999px; padding: 3px 11px; }
.pq-chip b { font-variant-numeric: tabular-nums; }
.pq-chip.full { color: var(--amber-800); background: var(--amber-100); border-color: var(--amber-100); }
.trash-row.in-protect { opacity: .78; }
.trash-row.in-protect .pool-avatar { filter: grayscale(.4); }

/* ---------- 23. Theme toggle buttons ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: inherit; cursor: pointer; flex: none;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
}
.theme-toggle:hover { background: var(--sidebar-hover); border-color: rgba(255,255,255,.12); transform: rotate(12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
/* floating on auth pages & landing nav */
.theme-float { position: absolute; top: 18px; right: 18px; z-index: 30; color: var(--ink-3); }
.theme-float:hover { background: var(--input-bg); border-color: var(--line); }
.landing .nav-inner .theme-toggle { color: var(--ink-3); margin-left: 6px; }
.landing .nav-inner .theme-toggle:hover { background: var(--input-bg); border-color: var(--line); }

/* ---------- 24. Dark-theme component patches ---------- */
html[data-theme="dark"] .btn-primary { background: #0D9488; }
html[data-theme="dark"] .btn-primary:hover:not(:disabled) { background: #14B8A6; color: #fff; }
html[data-theme="dark"] .btn-outline:hover:not(:disabled) { color: var(--teal-400); }
html[data-theme="dark"] .btn-danger:hover:not(:disabled) { background: #DC2626; color: #fff; }
html[data-theme="dark"] a { color: var(--teal-400); }
html[data-theme="dark"] a:hover:not(.btn) { color: var(--teal-300); }
html[data-theme="dark"] .select {
  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='%238FA3BC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme="dark"] ::selection { background: rgba(45, 212, 191, .3); }
html[data-theme="dark"] .boot-spinner { border-color: var(--teal-100); border-top-color: var(--teal-400); }
/* landing gradient sections tinted for dark */
html[data-theme="dark"] .auth-side { background: linear-gradient(160deg, #042F2E, #115E59 55%, #0D9488); }
html[data-theme="dark"] .cta-inner { background: linear-gradient(120deg, #134E4A, #0F766E); }
html[data-theme="dark"] .cta-inner .btn-primary { background: #F0FDFA; color: #0F766E; }
/* forecast / hero gradient heads keep white text */
html[data-theme="dark"] .fc-head { background: linear-gradient(120deg, #0F766E, #115E59); }
/* sidebar in dark mode blends with the page bg */
html[data-theme="dark"] .sidebar { border-right: 1px solid var(--line); }
/* compare-table "our column" glow softened */
html[data-theme="dark"] .cmp-col-us { box-shadow: inset 0 0 0 1.5px rgba(45, 212, 191, .4); }

/* ============================================================
   v2.6 — 经营报告页 / 订阅健康 / 客户操作轨迹
   ============================================================ */

/* ---------- 报告页通用 ---------- */
.report-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.report-range {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 10px; margin-bottom: 14px;
  background: var(--teal-50); color: var(--teal-700);
  font-size: 12.5px; font-weight: 700; border: 1px solid rgba(15, 118, 110, .14);
}
html[data-theme="dark"] .report-range { background: rgba(45, 212, 191, .09); color: var(--teal-300); border-color: rgba(45, 212, 191, .2); }
.report-range svg { flex: none; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-grid .report-sources { grid-column: 1 / -1; }
@media (max-width: 980px) { .report-grid { grid-template-columns: 1fr; } }

/* 环比 delta 徽章 */
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
.delta.up { color: #047857; background: rgba(16, 185, 129, .12); }
.delta.down { color: #B91C1C; background: rgba(239, 68, 68, .1); }
html[data-theme="dark"] .delta.up { color: #6EE7B7; background: rgba(16, 185, 129, .16); }
html[data-theme="dark"] .delta.down { color: #FCA5A5; background: rgba(239, 68, 68, .14); }

/* ---------- 每日双柱趋势 ---------- */
.daily-chart { display: flex; align-items: flex-end; gap: 6px; height: 168px; padding-top: 10px; }
.daily-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.daily-col.is-weekend .daily-label { color: var(--ink-4); font-style: italic; }
.daily-bars { display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; height: 100%; }
.dbar { width: 42%; max-width: 16px; min-height: 3px; border-radius: 4px 4px 2px 2px; transition: height .45s cubic-bezier(.22,1,.36,1); }
.dbar-teal { background: linear-gradient(180deg, var(--teal-500, #14B8A6), var(--teal-700)); }
.dbar-amber { background: linear-gradient(180deg, #FCD34D, var(--amber-500)); }
.daily-col:hover .dbar { filter: brightness(1.1); }
.daily-label { font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.daily-sums { display: flex; gap: 18px; justify-content: flex-end; margin-top: 10px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.dot-teal { background: var(--teal-600); }
.dot-amber { background: var(--amber-500); }
.title-side .dot { display: inline-block; margin: 0 4px 0 10px; vertical-align: 1px; }

/* ---------- 分布横条（跟进方式 / 客户来源） ---------- */
.dist-list { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.dist-row { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; }
.dist-name { font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-track { height: 12px; border-radius: 999px; background: var(--input-bg); overflow: hidden; }
.dist-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-500, #14B8A6), var(--teal-700)); animation: distGrow .7s cubic-bezier(.22,1,.36,1); }
.dist-fill.fill-slate { background: linear-gradient(90deg, #94A3B8, #64748B); }
.dist-fill.fill-red { background: linear-gradient(90deg, #F87171, #DC2626); }
html[data-theme="dark"] .dist-fill.fill-slate { background: linear-gradient(90deg, #475569, #334155); }
@keyframes distGrow { from { width: 0 !important; } }
.dist-val { font-size: 11.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }

/* ---------- 成员贡献榜 ---------- */
.member-board { display: flex; flex-direction: column; gap: 4px; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 10px; transition: background .18s; }
.member-row:hover { background: var(--surface-2); }
.member-rank { width: 22px; height: 22px; border-radius: 7px; background: var(--input-bg); color: var(--ink-3); font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.member-rank.top { background: linear-gradient(135deg, var(--amber-500), #D97706); color: #fff; box-shadow: 0 2px 6px rgba(245, 158, 11, .35); }
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.member-track { height: 6px; border-radius: 999px; background: var(--input-bg); overflow: hidden; }
.member-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-500, #14B8A6), var(--teal-600)); animation: distGrow .7s cubic-bezier(.22,1,.36,1); }
.member-nums { display: flex; gap: 10px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.member-nums b { color: var(--ink-2); font-size: 12.5px; }
.member-nums .won b { color: #047857; }
html[data-theme="dark"] .member-nums .won b { color: #6EE7B7; }

/* ---------- 赢单 TOP5 ---------- */
.topdeal-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px dashed var(--line-soft); }
.topdeal-row:last-of-type { border-bottom: none; }
.topdeal-info { flex: 1; min-width: 0; }
.topdeal-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topdeal-cust { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.topdeal-amt { font-size: 13px; font-weight: 800; color: #047857; white-space: nowrap; }
html[data-theme="dark"] .topdeal-amt { color: #6EE7B7; }
.won-summary, .lost-summary { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.won-summary { color: #047857; background: rgba(16, 185, 129, .09); }
.lost-summary { color: #B91C1C; background: rgba(239, 68, 68, .07); margin-top: 8px; margin-bottom: 0; }
html[data-theme="dark"] .won-summary { color: #6EE7B7; background: rgba(16, 185, 129, .13); }
html[data-theme="dark"] .lost-summary { color: #FCA5A5; background: rgba(239, 68, 68, .11); }
.won-summary svg, .lost-summary svg { flex: none; }

/* ---------- 管理端：订阅健康 ---------- */
.sub-health .sh-grid { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; margin-top: 6px; }
@media (max-width: 900px) { .sub-health .sh-grid { grid-template-columns: 1fr; } }
.sh-ring-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sh-donut { --size: 132px; }
.sh-legend { display: flex; flex-direction: column; gap: 9px; }
.sh-churn { min-width: 0; }
.sh-churn-head { font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 10px; }
.sh-churn-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 11px; margin-bottom: 8px; background: var(--surface); }
.sh-empty { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #047857; background: rgba(16, 185, 129, .08); border-radius: 10px; padding: 10px 13px; }
html[data-theme="dark"] .sh-empty { color: #6EE7B7; }
.sh-tip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-4); margin-top: 10px; }
:root { --red-soft: #FEE2E2; }
html[data-theme="dark"] { --red-soft: rgba(239, 68, 68, .28); }

/* ---------- 客户详情：操作轨迹 ---------- */
.trail-card .trail-list { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.trail-card .trail-list::-webkit-scrollbar { width: 6px; }
.trail-card .trail-list::-webkit-scrollbar-thumb { background: var(--line-strong, #CBD5E1); border-radius: 999px; }

/* ================= v2.7 本轮新增样式 ================= */

/* ---------- 今日待办：周期跟进列 ---------- */
.td-stats.has-cycle { grid-template-columns: repeat(4, 1fr) auto; }
.td-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.td-stat.cycle .td-stat-ic { background: rgba(16, 185, 129, .12); color: #059669; }
.td-stat.cycle b { color: #059669; }
html[data-theme="dark"] .td-stat.cycle .td-stat-ic { background: rgba(16, 185, 129, .18); color: #6EE7B7; }
html[data-theme="dark"] .td-stat.cycle b { color: #6EE7B7; }
.td-col-head.cycle { background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(5, 150, 105, .05)); }
html[data-theme="dark"] .td-col-head.cycle { background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(5, 150, 105, .06)); }
.td-col-head.cycle .td-col-ic { color: #059669; }
html[data-theme="dark"] .td-col-head.cycle .td-col-ic { color: #6EE7B7; }
.td-card.cycle { border-left: 3px solid #10B981; }
.td-card.cycle:hover { border-left-color: #059669; }
@media (max-width: 1440px) {
  .td-stats.has-cycle { grid-template-columns: repeat(3, 1fr) auto; }
  .td-stats.has-cycle .td-stat.cycle { display: none; }
}
@media (max-width: 1080px) {
  .td-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .td-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---------- 工作台：成交时间轴分桶 ---------- */
.fc-timeline {
  display: flex; align-items: stretch; gap: 8px;
  margin-top: 14px; position: relative;
  padding-right: 26px;
}
.fc-bucket {
  flex: 1; min-width: 0; position: relative;
  padding: 10px 12px 9px; border-radius: 12px;
  background: var(--surface-2, #F6F8FA);
  border: 1px solid var(--line-soft, #E5EAF0);
  display: flex; flex-direction: column; gap: 2px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fc-bucket:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.fc-bucket i {
  position: absolute; left: 12px; right: 12px; top: 0; height: 3px;
  border-radius: 0 0 3px 3px;
}
.fc-bucket em { font-style: normal; font-size: 11px; color: var(--ink-3, #94A3B8); letter-spacing: .4px; margin-top: 3px; }
.fc-bucket b { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.fc-bucket > span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.fc-bucket u {
  text-decoration: none; font-size: 10.5px; color: var(--teal-600, #0D9488);
  background: rgba(13, 148, 136, .09); border-radius: 6px; padding: 1.5px 6px;
  width: fit-content; font-weight: 600; margin-top: 3px;
}
html[data-theme="dark"] .fc-bucket u { color: var(--teal-300, #5EEAD4); background: rgba(13, 148, 136, .16); }
.fc-timeline-arrow {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ink-3, #94A3B8);
  background: var(--surface-2, #F6F8FA); border: 1px solid var(--line-soft, #E5EAF0);
}

/* ---------- 商机：时间轴视图 ---------- */
.tl-note {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 12px;
  border-radius: 11px; font-size: 12.5px; color: var(--ink-2);
  background: rgba(13, 148, 136, .06); border: 1px solid rgba(13, 148, 136, .18);
}
.tl-note svg { color: var(--teal-600, #0D9488); flex: none; }
.tl-note b { color: var(--teal-700, #0F766E); }
html[data-theme="dark"] .tl-note { background: rgba(13, 148, 136, .09); border-color: rgba(13, 148, 136, .28); }
html[data-theme="dark"] .tl-note b { color: var(--teal-300, #5EEAD4); }
.tl-board {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 12px; align-items: flex-start;
}
.tl-col {
  flex: 0 0 252px; min-width: 0;
  border-radius: 14px;
  background: var(--surface-2, #F6F8FA);
  border: 1px solid var(--line-soft, #E5EAF0);
}
.tl-head { padding: 12px 14px 10px; border-radius: 14px 14px 0 0; background: var(--surface); border-bottom: 1px dashed var(--line-soft, #E5EAF0); }
.tl-month { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: var(--ink); }
.tl-month .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tl-sub { font-size: 11px; color: var(--ink-3, #94A3B8); margin-top: 2px; padding-left: 15px; }
.tl-meta { font-size: 12px; color: var(--ink-2); margin-top: 6px; padding-left: 15px; }
.tl-meta b { color: var(--ink); }
.tl-cards { display: flex; flex-direction: column; gap: 9px; padding: 11px; max-height: 460px; overflow-y: auto; }
.tl-card {
  background: var(--surface); border-radius: 11px; padding: 11px 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06); cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.tl-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, .12); }
.tl-card-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-card-cust { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3, #94A3B8); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-card-foot > b { font-size: 13px; color: var(--ink); }

/* ---------- 管理端：优惠码效果分析 ---------- */
.cp-funnel {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 6px;
}
.cp-funnel > svg { color: var(--ink-3, #94A3B8); flex: none; }
.cp-funnel-step {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 16px; border-radius: 12px; min-width: 118px;
  background: linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(15, 118, 110, .02));
  border: 1px solid rgba(15, 118, 110, .16);
  position: relative;
}
.cp-funnel-step i {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(15, 118, 110, .12); color: var(--teal-600, #0D9488);
  margin-bottom: 5px;
}
.cp-funnel-step b { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.cp-funnel-step span { font-size: 11px; color: var(--ink-3, #94A3B8); }
.cp-funnel-step.warm {
  background: linear-gradient(135deg, rgba(245, 158, 11, .13), rgba(245, 158, 11, .03));
  border-color: rgba(217, 119, 6, .28);
}
.cp-funnel-step.warm i { background: rgba(245, 158, 11, .16); color: var(--amber-700, #B45309); }
html[data-theme="dark"] .cp-funnel-step { background: rgba(15, 118, 110, .13); border-color: rgba(13, 148, 136, .3); }
html[data-theme="dark"] .cp-funnel-step.warm { background: rgba(245, 158, 11, .1); border-color: rgba(217, 119, 6, .4); }
html[data-theme="dark"] .cp-funnel-step i { color: var(--teal-300, #5EEAD4); }
html[data-theme="dark"] .cp-funnel-step.warm i { color: var(--amber-300, #FCD34D); }
.cp-funnel-side {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12px; color: var(--ink-3, #94A3B8);
}
.cp-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong, #CBD5E1); }
@media (max-width: 900px) {
  .fc-timeline { flex-wrap: wrap; padding-right: 0; }
  .fc-timeline-arrow { display: none; }
  .fc-bucket { flex: 1 1 40%; }
  .cp-funnel { align-items: stretch; }
  .cp-funnel-step { flex: 1 1 40%; }
}

/* ---------- 支付弹窗：优惠码 ---------- */
.coupon-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 9px 10px;
  border: 1.5px dashed var(--line-strong, #CBD5E1); border-radius: 12px;
  transition: border-color .15s;
}
.coupon-row:focus-within { border-color: var(--teal-600); }
.coupon-row .input { padding: 7px 10px; font-size: 13px; border: none; background: transparent; letter-spacing: .04em; }
.coupon-row .input:focus { box-shadow: none; }
.coupon-ic { color: var(--amber-600); display: inline-flex; flex: none; }
.coupon-tip { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; margin-top: 9px; line-height: 1.5; }
.coupon-tip.ok { color: #047857; }
.coupon-tip.bad { color: #B91C1C; }
html[data-theme="dark"] .coupon-tip.ok { color: #6EE7B7; }
html[data-theme="dark"] .coupon-tip.bad { color: #FCA5A5; }

/* ---------- 管理端：支付渠道配置（微信 / 支付宝） ---------- */
.pay-guard { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 13px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-50, #F0FDFA), rgba(20,184,166,.04)); border: 1px solid rgba(13,148,136,.18); }
.pay-guard-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--teal-600); color: #fff; box-shadow: 0 2px 8px rgba(15,118,110,.3); }
.pay-guard-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pay-guard-txt b { font-size: 13.5px; }
.pay-guard-txt span { font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pay-card { display: flex; flex-direction: column; gap: 14px; }
.pay-card-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 13px; border-bottom: 1px dashed var(--line); }
.pay-ch-ic { width: 42px; height: 42px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.pay-ch-ic.green { background: linear-gradient(135deg, #22C55E, #15803D); }
.pay-ch-ic.blue { background: linear-gradient(135deg, #38BDF8, #0369A1); }
.pay-ch-ic.amber { background: linear-gradient(135deg, #F59E0B, #B45309); }
.pay-ch-meta { flex: 1; min-width: 0; }
.pay-ch-meta h3 { font-size: 15px; font-weight: 700; margin: 0 0 3px; }
.pay-ch-meta p { font-size: 12px; color: var(--ink-3); line-height: 1.55; margin: 0; }
.pay-ch-badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex: none; }
.pay-form { display: flex; flex-direction: column; gap: 12px; }
.pay-switch-row { display: flex; gap: 22px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; background: var(--input-bg, rgba(15,23,42,.03)); border: 1px solid var(--line-soft); }
.pay-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; }
.pay-fields .field[data-pf="private_key"], .pay-fields .field[data-pf="api_v3_key"] { grid-column: 1 / -1; }
/* 对公转账卡片：线下渠道横跨整行，收款三字段一行三列（窄屏回退单列） */
#pay-bank_transfer { grid-column: 1 / -1; }
#pay-bank_transfer .pay-fields { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { #pay-bank_transfer .pay-fields { grid-template-columns: 1fr; } }
.field-tip { font-size: 11px; color: var(--ink-4); margin-top: 4px; line-height: 1.5; }
.pay-secret-now { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; font-size: 11.5px; color: var(--teal-700); background: var(--teal-50, #F0FDFA); border: 1px solid rgba(13,148,136,.2); border-radius: 7px; padding: 5px 9px; margin-bottom: 6px; line-height: 1.5; }
.pay-secret-now code { font-family: ui-monospace, monospace; font-weight: 600; letter-spacing: .04em; }
.pay-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pay-upd { font-size: 11.5px; color: var(--ink-4); }
.pay-foot-btns { display: flex; gap: 8px; }
.pay-test-result { border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2, rgba(15,23,42,.02)); padding: 11px 13px; display: flex; flex-direction: column; gap: 7px; }
.ptr-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.ptr-head.ok { color: #047857; }
.ptr-head.bad { color: #B91C1C; }
.ptr-tag { font-size: 10.5px; font-weight: 600; color: #92400E; background: #FEF3C7; border-radius: 99px; padding: 1.5px 8px; margin-left: auto; }
.ptr-step { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); padding-left: 3px; }
.ptr-step b { font-weight: 600; }
.ptr-step span { color: var(--ink-3); }
.ptr-note { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-4); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
html[data-theme="dark"] .pay-guard { background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(20,184,166,.04)); border-color: rgba(45,212,191,.25); }
html[data-theme="dark"] .pay-secret-now { color: #5EEAD4; background: rgba(45,212,191,.08); border-color: rgba(45,212,191,.25); }
html[data-theme="dark"] .ptr-head.ok { color: #6EE7B7; }
html[data-theme="dark"] .ptr-head.bad { color: #FCA5A5; }
html[data-theme="dark"] .ptr-tag { color: #FCD34D; background: rgba(251,191,36,.12); }

/* ---- 平台系统设置（品牌 / 注册开关） ---- */
.set-desc { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; background: var(--input-bg, rgba(15,23,42,.03)); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 12px; margin: 10px 0 14px; }
.set-desc svg { flex: none; margin-top: 2px; opacity: .8; }
.set-preview { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.set-pv-row { padding: 13px 16px; display: flex; align-items: center; background: var(--surface); }
.set-pv-row .logo { font-size: 16px; }
.set-pv-row.set-pv-dark { background: linear-gradient(90deg, #0b3d38, #14877d); }
.set-pv-dark .logo { color: #fff; }
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 14px; }
.set-upd { font-size: 11.5px; color: var(--ink-4); }
.set-switch-row { padding: 9px 12px; border-radius: 10px; background: var(--input-bg, rgba(15,23,42,.03)); border: 1px solid var(--line-soft); margin-bottom: 12px; }
.set-status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; border-radius: 10px; padding: 9px 12px; line-height: 1.55; }
.set-status.on { color: #047857; background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.22); }
.set-status.off { color: #B45309; background: rgba(245,158,11,.09); border: 1px solid rgba(245,158,11,.25); }
html[data-theme="dark"] .set-status.on { color: #6EE7B7; }
html[data-theme="dark"] .set-status.off { color: #FCD34D; }
.logo-mark-broken { background: var(--line-soft) !important; }
@media (max-width: 1080px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-fields { grid-template-columns: 1fr; }
}

/* ---------- 设置页：开关与通知偏好 ---------- */
.notify-row { display: flex; align-items: flex-start; gap: 18px; justify-content: space-between; }
.notify-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.notify-info b { font-size: 13.5px; }
.notify-note { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
/* 变体：设置页大号滑块开关（.slider 结构）；用 :has(.slider) 限定作用域，避免覆盖 .track 结构的通用 .switch */
.switch:has(.slider) { position: relative; display: inline-block; flex: none; cursor: pointer; }
.switch:has(.slider) input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider {
  display: block; width: 46px; height: 26px; border-radius: 999px;
  background: var(--input-bg); border: 1px solid var(--line);
  transition: background .22s, border-color .22s; position: relative;
}
.switch .slider-dot {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}
.switch input:checked + .slider { background: linear-gradient(135deg, var(--teal-500, #14B8A6), var(--teal-700)); border-color: transparent; }
.switch input:checked + .slider .slider-dot { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--teal-500, #14B8A6); outline-offset: 2px; }

/* ---------- 管理端：流失召回弹窗 ---------- */
.recall-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--teal-50), rgba(20, 184, 166, .05));
  border: 1px solid var(--teal-100);
}
html[data-theme="dark"] .recall-hero { background: rgba(20, 184, 166, .1); border-color: rgba(20, 184, 166, .22); }
.recall-hero > svg { flex: none; color: var(--teal-700); }
html[data-theme="dark"] .recall-hero > svg { color: var(--teal-300); }
.recall-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 4px; }
.rp-head {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; font-size: 12px; font-weight: 800; color: var(--ink-2);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.rp-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rp-line { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.rp-line b { color: var(--teal-700); }
html[data-theme="dark"] .rp-line b { color: var(--teal-300); }
.recall-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 4px 4px; }
.recall-done > svg { color: #059669; }
html[data-theme="dark"] .recall-done > svg { color: #6EE7B7; }
.recall-done p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.recall-code-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 13px 34px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(217, 119, 6, .06));
  border: 1.5px dashed rgba(217, 119, 6, .45);
}
.recall-code-box b { font-size: 21px; letter-spacing: .06em; color: var(--amber-700); }
html[data-theme="dark"] .recall-code-box b { color: var(--amber-300, #FCD34D); }

/* ---------- 管理端：优惠券 ---------- */
.coupon-code {
  display: inline-block; padding: 4px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px dashed var(--line-strong, #CBD5E1);
  font-size: 12.5px; font-weight: 800; letter-spacing: .05em;
  color: var(--teal-800); cursor: copy; transition: all .15s;
}
html[data-theme="dark"] .coupon-code { color: var(--teal-300); border-color: rgba(148, 163, 184, .3); }
.coupon-code:hover { border-color: var(--teal-600); background: var(--teal-50); }
html[data-theme="dark"] .coupon-code:hover { background: rgba(20, 184, 166, .1); }
.coupon-created-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 13px; padding: 13px 15px; border-radius: 12px;
  background: var(--teal-50); border: 1px solid var(--teal-100);
}
html[data-theme="dark"] .coupon-created-box { background: rgba(20, 184, 166, .09); border-color: rgba(20, 184, 166, .22); }
.coupon-created-box .coupon-code { background: var(--surface); }

/* ---------- 商机时间轴：拖拽改期 ---------- */
.tl-card { cursor: grab; }
.tl-card.dragging { opacity: .45; cursor: grabbing; transform: scale(.98) rotate(1.2deg); }
.tl-col.drag-over { background: var(--teal-50); box-shadow: inset 0 0 0 2px var(--teal-600); border-radius: 14px; }
html[data-theme="dark"] .tl-col.drag-over { background: rgba(20, 184, 166, .1); }
.tl-col.drag-over .tl-cards::after { content: '松开到此排期'; display: block; margin-top: 9px; text-align: center; font-size: 12px; font-weight: 700; color: var(--teal-700); border: 1.5px dashed var(--teal-600); border-radius: 10px; padding: 10px 6px; background: var(--surface); animation: fadeUp .25s ease; }
html[data-theme="dark"] .tl-col.drag-over .tl-cards::after { color: var(--teal-300); }
.tl-drop-hint {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 64px; padding: 12px 10px; border-radius: 12px;
  border: 1.5px dashed var(--line-strong, #CBD5E1);
  color: var(--ink-4); font-size: 12px; line-height: 1.5;
  background: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgba(148, 163, 184, .06) 7px, rgba(148, 163, 184, .06) 14px);
}
.tl-note b { color: var(--teal-700); }
html[data-theme="dark"] .tl-note b { color: var(--teal-300); }

/* ---------- 管理端：运营日报 ---------- */
.ops-grid { grid-template-columns: repeat(3, 1fr); }
.ops-today-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 13px 18px; border-radius: 14px;
  background: linear-gradient(120deg, var(--teal-50), var(--surface) 62%);
  border: 1px solid var(--teal-100);
}
html[data-theme="dark"] .ops-today-head { background: linear-gradient(120deg, rgba(20, 184, 166, .12), var(--surface) 62%); border-color: rgba(20, 184, 166, .2); }
.ops-date { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--teal-800); }
html[data-theme="dark"] .ops-date { color: var(--teal-300); }
.ops-date svg { color: var(--teal-600); }
.ops-chart { display: flex; align-items: stretch; gap: 5px; height: 168px; padding-top: 6px; }
.ops-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ops-bars { width: 100%; max-width: 30px; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.ops-bars.rev { align-items: flex-end; background: var(--input-bg); border-radius: 8px; overflow: hidden; }
.ops-b { display: block; flex: 1; max-width: 12px; border-radius: 4px 4px 0 0; transform-origin: bottom; animation: revGrow .6s cubic-bezier(.22,1,.36,1) backwards; }
.ops-b.users { background: linear-gradient(180deg, #2DD4BF, var(--teal-600)); }
.ops-b.subs { background: linear-gradient(180deg, #FCD34D, var(--amber-600, #D97706)); }
.ops-b.rev { max-width: 26px; width: 100%; background: linear-gradient(180deg, var(--teal-400), var(--teal-700)); }
.ops-col:nth-child(2n) .ops-b { animation-delay: .05s; }
.ops-col:nth-child(3n) .ops-b { animation-delay: .1s; }
.ops-col:hover .ops-b { filter: brightness(1.14) saturate(1.12); }
.ops-lab { font-size: 10px; color: var(--ink-4); white-space: nowrap; }
.ops-val { font-size: 10.5px; font-weight: 700; color: var(--teal-700); min-height: 14px; line-height: 14px; }
html[data-theme="dark"] .ops-val { color: var(--teal-400); }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: 1px; }
.legend-dot.teal { background: linear-gradient(180deg, #2DD4BF, var(--teal-600)); }
.legend-dot.amber { background: linear-gradient(180deg, #FCD34D, var(--amber-600, #D97706)); }
.legend-dot:first-child { margin-left: 0; }
.cp-code-mini:hover { border-style: solid; border-color: var(--teal-600); }

@media (max-width: 900px) {
  .ops-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ops-chart { height: 140px; }
}

/* ==================== 通知中心（tenant_message.db 站内通知） ==================== */
.nav-badge.ntf { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.ntf-row:hover { background: var(--hover, rgba(15, 118, 110, .045)); }
.ntf-unread { background: linear-gradient(90deg, rgba(15, 118, 110, .055), transparent 60%); }
.ntf-unread:hover { background: var(--hover, rgba(15, 118, 110, .09)); }
.ntf-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
  animation: ntfPulse 2.2s ease-in-out infinite;
}
@keyframes ntfPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
  50% { box-shadow: 0 0 0 5px rgba(15, 118, 110, .07); }
}
.ntf-icon-teal { background: rgba(15, 118, 110, .1); color: #0f766e; }
.ntf-icon-green { background: rgba(22, 163, 74, .1); color: #16a34a; }
.ntf-icon-amber { background: rgba(217, 119, 6, .12); color: #d97706; }
.ntf-icon-red { background: rgba(220, 38, 38, .1); color: #dc2626; }
.ntf-icon-slate { background: var(--hover, rgba(100, 116, 139, .12)); color: var(--ink-3, #64748b); }

/* 筛选按钮 active 态 */
#ntf-unread-filter.active {
  color: #0f766e; border-color: rgba(15, 118, 110, .4);
  background: rgba(15, 118, 110, .08);
}

/* 消息中心（平台公告 / 推送记录）微交互 */
.ann-row { transition: box-shadow .18s, transform .18s; }
.ann-row:hover { box-shadow: 0 4px 18px rgba(15, 40, 38, .08); transform: translateY(-1px); }
.ann-stats .badge { font-size: 11.5px; }

/* 深色模式适配 */
[data-theme="dark"] .ntf-unread { background: linear-gradient(90deg, rgba(45, 212, 191, .07), transparent 60%); }
[data-theme="dark"] .ntf-dot { background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .14); }
[data-theme="dark"] .ntf-icon-teal { background: rgba(45, 212, 191, .13); color: #2dd4bf; }
[data-theme="dark"] .ntf-icon-green { background: rgba(74, 222, 128, .12); color: #4ade80; }
[data-theme="dark"] .ntf-icon-amber { background: rgba(251, 191, 36, .13); color: #fbbf24; }
[data-theme="dark"] .ntf-icon-red { background: rgba(248, 113, 113, .13); color: #f87171; }
[data-theme="dark"] .ntf-icon-slate { background: rgba(148, 163, 184, .14); color: #94a3b8; }
[data-theme="dark"] #ntf-unread-filter.active {
  color: #2dd4bf; border-color: rgba(45, 212, 191, .35); background: rgba(45, 212, 191, .09);
}

/* 移动端 */
@media (max-width: 640px) {
  .ntf-row { padding: 12px 13px; gap: 10px; }
  .ntf-icon { width: 30px !important; height: 30px !important; }
}
