:root {
  --bg: #f5f7fa;            /* 页面底色（中性低饱和） */
  --panel: #ffffff;          /* 卡片/面板 */
  --line: #e3e8ef;           /* 分割线/边框 */
  --text: #1c2b3e;           /* 主文字（与白底对比 13.2:1） */
  --muted: #6b7c93;          /* 次要文字 */

  /* 主品牌色（取自中国移动 logo：#2980d6 蓝 / #8bc53f 绿） */
  --brand: #2980d6;
  --brand-d: #1e6cb8;        /* hover/active 加深 */
  --brand-l: #5b9ce0;        /* 浅蓝背景/淡边框 */
  --brand-50: #eaf3fc;       /* 极浅蓝着色背景 */
  --brand-15: rgba(41,128,214,.15);
  --brand-08: rgba(41,128,214,.08);
  --accent: #8bc53f;         /* logo 绿（成功/强调） */
  --accent-d: #6fa82a;

  --ok: #34c759;
  --warn: #ff9500;
  --danger: #ff3b30;

  --radius-sm: 10px;         /* 输入框、小按钮、tag */
  --radius: 14px;            /* 卡片、面板、主按钮 */
  --radius-lg: 18px;         /* 弹窗、登录玻璃卡 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --shadow: 0 1px 2px rgba(28,43,62,.04), 0 8px 24px rgba(28,43,62,.06);
  --shadow-sm: 0 1px 3px rgba(28,43,62,.06);
  --blur: saturate(180%) blur(20px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶栏（iOS 毛玻璃 + 科技感） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.72);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: .5px solid rgba(0,0,0,.08);
}
.topbar-inner {
  max-width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 28px; height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; letter-spacing: -.5px; white-space: nowrap;
  text-decoration: none; color: var(--text);
}
.brand-logo { height: 28px; width: auto; max-width: 92px; object-fit: contain; }
.brand-text {
  background: linear-gradient(90deg, #1565c0, #0d47a1);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand:hover .brand-text { filter: brightness(1.1); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a {
  color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  font-size: 15px; transition: all .18s ease; font-weight: 500;
}
.nav a:hover { background: rgba(41,128,214,.10); color: var(--brand); }
.nav a.active { background: rgba(41,128,214,.16); color: var(--brand); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-user { color: var(--muted); font-size: 14px; padding: 0 10px; }
.nav-toggle {
  display: none; background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--text);
}

/* ---------- 布局 ---------- */
.app { max-width: 100%; margin: 0 auto; padding: 18px 24px 48px; }
.loading { text-align: center; color: var(--muted); padding: 48px 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.page-title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.5px; }
.page-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }

/* ---------- 通用卡片 / 表单 ---------- */
.card {
  background: var(--panel); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); border: .5px solid var(--line);
}
.card .k { font-size: 12px; color: var(--muted); }
.card .v { font-size: 24px; font-weight: 700; margin-top: 4px; }

input, select, textarea, button {
  font-family: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; background: #fff; color: var(--text); width: 100%;
  transition: border-color .2s, box-shadow .2s, background .15s;
}
textarea { resize: vertical; min-height: 76px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(41,128,214,.14);
}

/* ---------- iOS 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; background: var(--brand); color: #fff; cursor: pointer;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; width: auto;
  box-shadow: 0 1px 2px rgba(41,128,214,.25); transition: transform .12s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 4px 14px rgba(41,128,214,.3); }
.btn:active { transform: scale(.96); }
.btn.ghost { background: rgba(41,128,214,.10); color: var(--brand); box-shadow: none; }
.btn.ghost:hover { background: rgba(41,128,214,.18); }
.btn.danger { background: #fff; color: var(--danger); box-shadow: none; border: 1px solid #ffd9d6; }
.btn.danger:hover { background: #fff0ef; }
.btn.sm { padding: 7px 13px; font-size: 14px; border-radius: 10px; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-d)); box-shadow: 0 2px 8px rgba(41,128,214,.30); }
.btn.primary:hover { filter: brightness(1.06); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }

/* ---------- 工具栏 / 筛选（精致） ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.toolbar input, .toolbar select { flex: 1; min-width: 140px; }
.toolbar .btn { white-space: nowrap; padding: 11px 20px; transition: all .2s ease; position: relative; overflow: hidden; }
.toolbar .btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent); pointer-events: none;
}
.toolbar .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(41,128,214,.3); }
.toolbar .btn:active { transform: translateY(0) scale(.98); }
.toolbar .btn.ghost { border: 1px solid rgba(41,128,214,.25); background: rgba(41,128,214,.08); }
.toolbar .btn.ghost:hover { background: rgba(41,128,214,.16); }
.toolbar .chk {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; white-space: nowrap;
  padding: 8px 14px; background: #fafbff; border: 1px solid #e5e5ea;
  border-radius: 12px; cursor: pointer; user-select: none; transition: all .2s ease;
}
.toolbar .chk:hover { background: #eef4ff; border-color: rgba(41,128,214,.3); color: var(--brand); }
.toolbar .chk:has(input:checked) {
  background: rgba(41,128,214,.12); border-color: var(--brand);
  color: var(--brand-d); font-weight: 600;
}
.toolbar .chk input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

/* ---------- 看板：指标卡（iOS 浅色 + 科技点缀） ---------- */
.badge-scope { background: rgba(41,128,214,.12); color: var(--brand); padding: 6px 16px; border-radius: 999px; font-size: 17px; font-weight: 700; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.dash-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
.dash-card {
  position: relative; overflow: hidden; background: var(--panel);
  border: .5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.dash-card.c1 { --accent: var(--brand); }
.dash-card.c2 { --accent: var(--accent); }
.dash-card.c3 { --accent: #FF9500; }
.dash-card.c4 { --accent: #FF3B30; }
.dash-card.c5 { --accent: var(--brand-d); }
.dash-card .dash-glow {
  position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .10; filter: blur(4px);
}
.dash-k { font-size: 12px; color: var(--muted); position: relative; font-weight: 500; }
.dash-v {
  font-size: 30px; font-weight: 800; margin: 4px 0 2px; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.dash-sub { font-size: 11px; color: var(--muted); position: relative; }
.dash-tip { margin-top: 6px; font-size: 13px; }

/* ---------- iOS 区块卡片（工作台主体） ---------- */
.ios-card {
  background: var(--panel); border: .5px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.ios-card-title { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.ios-card-sub { margin: 2px 0 8px; color: var(--muted); font-size: 12px; }
.ws-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 12px; }

/* 看板 2×2 紧凑网格：四图等高、视觉协调 */
.chart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.chart-grid .ios-card { margin-bottom: 0; display: flex; flex-direction: column; }
.chart-box { width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.chart-box svg { max-height: 250px; width: 100%; height: auto; }
.chart-empty, .fu-empty { text-align: center; color: var(--muted); padding: 28px 0; font-size: 14px; }

/* 系统管理：分段标签 */
.admin-tabs { display: flex; gap: 6px; background: #f2f4f8; padding: 5px; border-radius: 14px; margin-bottom: 12px; width: fit-content; max-width: 100%; }
.admin-tabs button {
  border: none; background: transparent; padding: 9px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.admin-tabs button:hover { color: var(--brand); }
.admin-tabs button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* 关键词配置：明亮主题全宽卡片 */
.kw-card {
  background: linear-gradient(135deg, #f0f5ff 0%, #fafbff 100%);
  border: 1px solid #dce3f0;
  border-radius: var(--radius-lg); padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(41,128,214,.06);
}
.kw-card-title { font-size: 20px; font-weight: 800; margin: 0; color: #1c2b3e; }
.kw-card-sub { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }

/* ---------- 饼图图例 ---------- */
.pie-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pie-legend { display: flex; flex-direction: column; gap: 7px; min-width: 110px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-label { flex: 1; color: var(--text); }
.legend-val { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 最新跟进动态（列表） ---------- */
.fu-list { list-style: none; margin: 0; padding: 0; }
.fu-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 4px;
  border-bottom: .5px solid var(--line);
}
.fu-row:last-child { border-bottom: none; }
.fu-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e6cb8, var(--brand-d)); color: #fff;
  font-weight: 700; font-size: 17px;
}
.fu-main { flex: 1; min-width: 0; }
.fu-line1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fu-company { color: var(--muted); font-size: 14px; }
.fu-content {
  color: #3a3a3c; font-size: 14px; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fu-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.fu-time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- 表格（iOS 分组感） ---------- */
.table-wrap {
  background: var(--panel); border: .5px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; overflow-y: hidden;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.table-wrap.dragging { cursor: grabbing; user-select: none; }
.table-wrap.dragging * { pointer-events: none; }
/* 让「操作」列的操作按钮可继续被点击（拖拽期间除外） */
.table-wrap.dragging button { pointer-events: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; border-bottom: .5px solid var(--line); vertical-align: top; }
th { background: #fafafa; font-weight: 600; color: var(--muted); font-size: 13px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f7f9ff; }
.summary-cell { max-width: 420px; min-width: 300px; color: #3a3a3c; font-size: 13px; line-height: 1.55; vertical-align: top; }
.summary-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  cursor: zoom-in;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background .15s ease, color .15s ease;
}
.summary-text:hover { background: rgba(41,128,214,.08); color: var(--brand-d); }
.summary-text.more::after {
  content: "···";
  color: var(--brand);
  font-weight: 600;
  margin-left: 4px;
}
.summary-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  cursor: zoom-out;
  background: rgba(41,128,214,.06);
}
/* 悬停浮层：完整内容预览（不溢出视口） */
.summary-popover {
  position: fixed;
  z-index: 70;
  max-width: min(560px, calc(100vw - 32px));
  max-height: min(60vh, 360px);
  overflow: auto;
  padding: 12px 14px;
  background: rgba(28,28,30,.96);
  color: #f2f2f7;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.32), 0 2px 8px rgba(0,0,0,.18);
  white-space: pre-wrap;
  word-break: break-word;
  backdrop-filter: blur(8px);
  animation: popIn .14s ease-out;
}
.summary-popover::after {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  bottom: -7px;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(28,28,30,.96);
  box-shadow: 2px 2px 4px rgba(0,0,0,.18);
}
.summary-popover.above::after {
  bottom: auto;
  top: -7px;
  box-shadow: -2px -2px 4px rgba(0,0,0,.18);
}
.summary-popover .popover-hint {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: .5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.55);
  font-size: 11px;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(4px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}
/* 线索来源超链接：紧随内容摘要之后，清晰可点击 */
.src-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  color: var(--brand); text-decoration: none;
  background: rgba(41,128,214,.10); border: 1px solid rgba(41,128,214,.30);
  border-radius: 999px; white-space: nowrap;
  transition: background .15s ease, box-shadow .15s ease;
}
.src-link::before { content: "\1F517"; font-size: 12px; }
.src-link:hover { background: rgba(41,128,214,.18); box-shadow: 0 2px 8px rgba(41,128,214,.25); }
.src-link:active { transform: translateY(1px); }

/* 操作列：按钮间距 */
.ops { white-space: nowrap; }
.ops .btn { margin: 2px 3px; }

/* 突出「分配」操作按钮（橙色渐变） */
.btn.warn { background: linear-gradient(135deg, #FF9500, #FFCC00); color: #3a2400; box-shadow: 0 2px 8px rgba(255,149,0,.3); }
.btn.warn:hover { filter: brightness(1.05); }

/* 商机跟进 Top5 排行 */
.top-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.top-row { display: flex; align-items: center; gap: 12px; }
.top-rank { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; background: #8e8e93; flex-shrink: 0; }
.top-rank.rank-1 { background: linear-gradient(135deg, #FFD60A, #FF9500); color: #3a2400; }
.top-rank.rank-2 { background: linear-gradient(135deg, #c7c7cc, #8e8e93); }
.top-rank.rank-3 { background: linear-gradient(135deg, #FF9F0A, #C77B00); }
.top-name { width: 92px; flex-shrink: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-bar { flex: 1; height: 10px; background: rgba(41,128,214,.10); border-radius: 999px; overflow: hidden; }
.top-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1e6cb8, var(--brand-d)); border-radius: 999px; }
.top-count { width: 38px; text-align: right; font-weight: 700; color: var(--brand); }

/* ---------- iOS 胶囊标签 ---------- */
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.new { background: rgba(41,128,214,.14); color: var(--brand); }
.tag.contacted { background: rgba(255,149,0,.16); color: #c77700; }
.tag.won { background: rgba(52,199,89,.18); color: #1a8a3c; }
.tag.lost { background: rgba(255,59,48,.14); color: #d23b30; }
.tag.cat { background: rgba(41,128,214,.12); color: var(--brand); }
.tag.locked { background: rgba(255,59,48,.12); color: #d23b30; }
.tag.claimed { background: rgba(52,199,89,.16); color: #1a8a3c; }
.tag.unclaimed { background: rgba(41,128,214,.14); color: var(--brand); }
.tag.dup { background: rgba(134,65,244,.14); color: #7a31c9; }
.tag.overdue { background: rgba(255,59,48,.14); color: #d23b30; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }
.tag.role-admin { background: rgba(41,128,214,.16); color: var(--brand-d); }
.tag.role-user { background: rgba(142,142,147,.16); color: #6b6b70; }

/* ---------- 分页（页码按钮 + 跳转输入） ---------- */
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pager-summary { margin-right: auto; }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }
.pager-pages { display: inline-flex; gap: 4px; align-items: center; }
.pager .page-btn {
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--text);
  font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.pager .page-btn:hover { background: rgba(41,128,214,.10); border-color: var(--brand); color: var(--brand); }
.pager .page-btn.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 1px 4px rgba(41,128,214,.32);
  cursor: default;
}
.pager-input {
  width: 60px; height: 32px; padding: 0 8px;
  text-align: center; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--text);
}
.pager-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41,128,214,.14); }
.pager-input::-webkit-outer-spin-button,
.pager-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pager-input { -moz-appearance: textfield; }
.pager-jump-lbl { font-size: 13px; }

/* ---------- 弹窗（iOS 表单卡片） ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 18px; backdrop-filter: blur(4px); }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 580px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: .5px solid var(--line); font-weight: 700; font-size: 17px; }
.modal-head button { width: auto; border: none; background: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

/* ---------- Toast（iOS 底部药丸） ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: rgba(28,28,30,.92); color: #fff; padding: 12px 22px; border-radius: 14px;
  z-index: 60; box-shadow: 0 8px 28px rgba(0,0,0,.32); font-size: 14px; backdrop-filter: blur(8px);
}
.toast.err { background: rgba(255,59,48,.95); }
.toast.ok { background: rgba(52,199,89,.96); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .ws-grid { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; background: rgba(255,255,255,.96);
    backdrop-filter: var(--blur); flex-direction: column; align-items: stretch; padding: 10px; gap: 2px;
    border-bottom: .5px solid var(--line); display: none; box-shadow: 0 10px 24px rgba(0,0,0,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
  .nav-spacer { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
  .brand { font-size: 18px; }
  .topbar-inner { height: 56px; padding: 0 18px; }
  .app { padding: 18px 16px 48px; }
}
@media (max-width: 540px) {
  .dash-grid, .dash-grid-5 { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 680px; }
  .fu-row { flex-wrap: wrap; }
  .fu-meta { flex-direction: row; align-items: center; }
}

/* ---------- 补充响应式：窄屏表格滚动 + 弹窗适配 ---------- */
@media (max-width: 860px) {
  .table-wrap { overflow-x: auto; }
  .modal { max-width: 100%; }
}
@media (max-width: 540px) {
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 16px 16px 0 0; }
  .modal-body { padding: 16px; }
  .toolbar .btn { padding: 10px 14px; }
  input[type="date"] { min-width: 120px; }
}

/* ---------- 弹窗过渡动画 ---------- */
.modal-mask { animation: fadeIn .18s ease; }
.modal { animation: modalIn .22s cubic-bezier(.2,.8,.3,1); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
}

/* ---------- 深色模式（跟随系统） ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e12;
    --panel: #1c1c1e;
    --line: rgba(255,255,255,.12);
    --text: #f2f2f7;
    --muted: #98989f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  }
  .topbar { background: rgba(28,28,30,.72); border-bottom-color: rgba(255,255,255,.1); }
  input, select, textarea { background: #2c2c2e; color: var(--text); }
  input::placeholder, textarea::placeholder { color: var(--muted); }
  .btn.danger { background: #3a1a18; color: #ff6b5e; border-color: #5c2b28; }
  .btn.danger:hover { background: #4a221f; }
  th { background: #26262a; }
  tbody tr:hover { background: #26262c; }
  .modal { background: #1c1c1e; }
  .nav { background: rgba(28,28,30,.96); }
  .fu-content, .summary-cell { color: #d1d1d6; }
  .summary-text:hover { background: rgba(91,156,224,.16); color: var(--brand-l); }
  .summary-text.more::after { color: var(--brand-l); }
  .pager .page-btn { background: #2c2c2e; border-color: rgba(255,255,255,.12); color: var(--text); }
  .pager .page-btn:hover { background: rgba(91,156,224,.18); border-color: var(--brand); color: var(--brand-l); }
  .pager-input { background: #2c2c2e; border-color: rgba(255,255,255,.12); color: var(--text); }
  .toolbar .chk:hover { background: rgba(255,255,255,.08); border-color: rgba(91,156,224,.4); }
  .toolbar .chk:has(input:checked) { background: rgba(91,156,224,.18); }
  .tag.cat, .tag.unclaimed { background: rgba(91,156,224,.2); }
  .src-link { color: var(--brand-l); background: rgba(91,156,224,.15); border-color: rgba(91,156,224,.4); }
  .src-link:hover { background: rgba(91,156,224,.28); }
  .btn.warn { background: linear-gradient(135deg, #FF9F0A, #FFB340); color: #3a2400; }
}

/* ============================================================
   登录页：深空科幻风格 · 左文 + 右卡 · 4K 适配
   ------------------------------------------------------------
   触发条件：body.login-mode（由 login.js / register.js / forgot.js 添加）
   布局：左上角主品牌 + 左侧大标题/简介/4 张功能卡 2×2 / 右侧登录卡
   质感：深空渐变 + 网格 + 径向光晕 + 颗粒噪点 + 玻璃拟态
   尺寸：全面使用 rem/vw 适配 4K（3840×2160）→ 1080p 自动缩放
   ============================================================ */
body.login-mode { background: #f0f4fb; overflow: hidden; }
body.login-mode .topbar { display: none; }
body.login-mode .app { padding: 0; max-width: none; min-height: 100vh; }

.login-page {
  display: flex; align-items: stretch; justify-content: center;
  width: 100%; min-height: 100vh;
  background-color: #f0f4fb;
  background-image:
    linear-gradient(rgba(99,128,208,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,128,208,.06) 1px, transparent 1px),
    radial-gradient(1000px 620px at 8% 6%, rgba(99,128,208,.12) 0%, transparent 62%),
    radial-gradient(820px 560px at 96% 92%, rgba(59,130,246,.12) 0%, transparent 62%),
    radial-gradient(1300px 760px at 50% 50%, rgba(99,128,208,.06) 0%, transparent 72%),
    linear-gradient(158deg, #e8eff9 0%, #f0f4fb 48%, #f5f7fa 100%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  overflow-y: auto; padding: 32px 32px;
  position: relative; gap: 32px;
}
/* 4K 超宽屏加宽间距 */
@media (min-width: 2560px) {
  .login-page { padding: 48px 80px; gap: 64px; }
}
/* 浮动光晕 */
.login-page::before, .login-page::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(110px); pointer-events: none; z-index: 0;
  animation: loginFloat 18s ease-in-out infinite;
}
.login-page::before { width: 420px; height: 420px; background: rgba(99,128,208,.18); top: -140px; left: 3%; }
.login-page::after  { width: 380px; height: 380px; background: rgba(59,130,246,.14); bottom: -110px; right: 5%; animation-delay: -9s; }
@keyframes loginFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -46px) scale(1.16); }
}
/* 颗粒质感层（SVG feTurbulence 噪点，浅色底用 multiply） */
.login-grain {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: .14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift 8s steps(10) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* 左上角主品牌 —— 整页 Logo，大字体 + 紫蓝渐变 + 发光 */
.login-brand-topleft {
  position: absolute; top: 28px; left: 38px; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  animation: loginCardIn .6s .05s cubic-bezier(.2,.8,.3,1) backwards;
}
.login-brand-icon { display: inline-flex; filter: drop-shadow(0 0 10px rgba(59,130,246,.35)); }
.login-brand-name {
  font-size: 32px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.1;
  background: linear-gradient(92deg, #3b82f6 0%, #2563eb 34%, #6366f1 68%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(59,130,246,.28));
}
/* 4K 品牌放大 */
@media (min-width: 2560px) {
  .login-brand-topleft { top: 48px; left: 72px; gap: 22px; }
  .login-brand-name { font-size: 48px; letter-spacing: 2.5px; }
  .login-brand-icon svg { width: 44px; height: 44px; }
}

/* 左侧：大标题 + 简介 + 2×2 卡片 */
.login-side {
  position: relative; z-index: 2;
  flex: 1.2; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 104px 20px 28px 40px; max-width: 780px;
}
.login-headline {
  margin: 0 0 16px; color: #1a1a2e;
  font-size: 46px; line-height: 1.16; font-weight: 800; letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(59,130,246,.12);
  animation: loginCardIn .65s .1s cubic-bezier(.2,.8,.3,1) backwards;
}
.login-headline .grad {
  background: linear-gradient(92deg, #3b82f6 0%, #2563eb 42%, #6366f1 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-sub {
  margin: 0 0 34px; color: #5a6a88;
  font-size: 14.5px; line-height: 1.8; max-width: 580px;
  animation: loginCardIn .7s .15s cubic-bezier(.2,.8,.3,1) backwards;
}
/* 4K 左侧放大 */
@media (min-width: 2560px) {
  .login-side { padding: 140px 32px 40px 72px; max-width: 1100px; }
  .login-headline { font-size: 68px; margin-bottom: 24px; }
  .login-sub { font-size: 20px; max-width: 780px; margin-bottom: 48px; }
}

/* 4 张功能卡片 2×2 网格（浅色 iOS 科幻玻璃卡） */
.login-showcase {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 13px; max-width: 580px;
  animation: loginCardIn .75s .2s cubic-bezier(.2,.8,.3,1) backwards;
}
.sc-tile {
  position: relative;
  padding: 12px 14px 12px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(99,128,208,.12);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.sc-tile::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.32), transparent);
}
.sc-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(59,130,246,.28);
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 32px rgba(59,130,246,.12), 0 0 0 1px rgba(59,130,246,.14), 0 2px 6px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.95);
}
.sc-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .3px;
  color: #3b82f6; padding: 3px 9px; border-radius: 999px;
  background: rgba(59,130,246,.10); border: 1px solid rgba(59,130,246,.20);
  margin-bottom: 9px;
}
.sc-img { position: relative; height: 84px; border-radius: 10px; background: rgba(59,130,246,.04); border: 1px solid rgba(59,130,246,.08); overflow: hidden; }
/* 4K 卡片放大 */
@media (min-width: 2560px) {
  .login-showcase { gap: 20px; max-width: 820px; }
  .sc-tile { padding: 18px 22px 18px; border-radius: 20px; }
  .sc-tag { font-size: 15px; padding: 5px 14px; margin-bottom: 14px; }
  .sc-img { height: 130px; border-radius: 14px; }
}

/* 多源抓取：堆叠三个平台卡片 */
.mock-stacks { display: flex; flex-direction: column; gap: 5px; padding: 8px 9px; height: 100%; box-sizing: border-box; justify-content: center; }
.mock-stack { display: flex; align-items: center; gap: 6px; padding: 5px 7px; background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.08); border-radius: 6px; }
.mock-stack .ico { width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; padding: 0; }
.mock-stack .ico svg { width: 100%; height: 100%; display: block; }
.mock-stack .nm { color: #1a1a2e; font-size: 11px; font-weight: 600; flex: 1; }
.mock-stack .ct { color: #8899aa; font-size: 10px; }

/* 看板柱状图 */
.mock-chart { position: relative; height: 100%; padding: 8px 9px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; }
.mock-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.mock-bars i { flex: 1; background: linear-gradient(180deg, #3b82f6, #6366f1); border-radius: 3px 3px 0 0; opacity: .9; transition: height .8s cubic-bezier(.2,.8,.3,1); box-shadow: 0 0 8px rgba(59,130,246,.20); }
.mock-bars i.h { background: linear-gradient(180deg, #2563eb, #4f46e5); }
.mock-stat { position: absolute; top: 8px; right: 9px; font-size: 9px; color: #8899aa; text-align: right; }
.mock-stat b { color: #3b82f6; font-size: 14px; display: block; line-height: 1; }
.mock-foot { margin-top: 4px; font-size: 9.5px; color: #8899aa; text-align: center; }

/* 线索列表 */
.mock-leads { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; justify-content: center; }
.mock-lead { display: flex; align-items: center; justify-content: space-between; padding: 4px 7px; background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.06); border-radius: 6px; transition: background .2s; }
.mock-lead:hover { background: rgba(59,130,246,.12); }
.mock-lead .nm { color: #1a1a2e; font-size: 10.5px; font-weight: 500; }
.mock-lead .tg { padding: 1px 7px; font-size: 9px; border-radius: 999px; background: rgba(59,130,246,.14); color: #3b82f6; }
.mock-lead .tg.ok { background: rgba(52,199,89,.14); color: #2d9e50; }
.mock-lead .tg.wait { background: rgba(255,149,0,.14); color: #c47700; }

/* 跟进时间线 */
.mock-timeline { padding: 6px 9px; display: flex; flex-direction: column; gap: 5px; height: 100%; box-sizing: border-box; justify-content: center; }
.mock-step { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #5a6a88; }
.mock-step .ico { width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); flex-shrink: 0; }
.mock-step.done .ico { background: linear-gradient(135deg, #34c759, #6fe39b); }
.mock-step.cur .ico { background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 0 0 2px rgba(59,130,246,.20); animation: stepPulse 1.6s ease-in-out infinite; }
@keyframes stepPulse {
  50% { box-shadow: 0 0 0 5px rgba(59,130,246,.10); }
}

/* 登录卡片（浅色 iOS 科幻玻璃卡） */
.login-card-wrap {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 40px 32px 16px;
}
.login-card {
  width: 400px; max-width: 100%;
  padding: 32px 36px 28px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(99,128,208,.12);
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04), 0 0 0 1px rgba(59,130,246,.06), inset 0 1px 0 rgba(255,255,255,.95);
  animation: loginCardIn .55s .1s cubic-bezier(.2,.8,.3,1) backwards;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.48), transparent);
  border-radius: inherit;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* 4K 登录卡放大 */
@media (min-width: 2560px) {
  .login-card { width: 560px; padding: 48px 52px 42px; border-radius: 28px; }
  .login-card-title { font-size: 32px; }
  .login-guide { font-size: 18px; margin-bottom: 32px; }
  .lf-field { margin-bottom: 22px; }
  .lf-label { font-size: 15px; margin-bottom: 10px; }
  .lf-input { padding: 16px 56px 16px 52px; font-size: 18px; border-radius: 14px; }
  .lf-submit { padding: 18px 24px; font-size: 20px; border-radius: 14px; }
  .lf-row { margin: 22px 0 28px; }
  .lf-check { font-size: 16px; }
  .lf-link { font-size: 16px; }
  .lf-foot { font-size: 16px; }
}

/* 卡片内标题 */
.login-card-title {
  margin: 0 0 4px; text-align: center; color: #1a1a2e;
  font-size: 22px; font-weight: 700; letter-spacing: -.4px;
}

/* 注册页品牌行（顶部“新余移动 · 客满堂”）—— 与登录卡标题同色、居中 */
.login-brand-new {
  margin: 0 0 2px; text-align: center;
}
.login-brand-badge {
  display: inline-block; color: #1a1a2e;
  font-size: 22px; font-weight: 700; letter-spacing: -.4px;
  line-height: 1.2;
}

/* 引导语（表单上方） */
.login-guide {
  text-align: center; color: #5a6a88; font-size: 14px;
  margin: 4px 0 22px; letter-spacing: .3px;
}

/* 移除旧有 tab 样式 */
.lf-tabs { display: none; }
.lf-pane[data-pane="qr"] { display: none; }

/* 表单字段（浅色 iOS 科幻） */
.lf-field { position: relative; margin-bottom: 14px; }
.lf-label { display: block; color: #3a4a68; font-size: 12px; margin-bottom: 7px; font-weight: 600; }
.lf-input-wrap { position: relative; display: flex; align-items: center; }
.lf-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8899aa; pointer-events: none; }
.lf-input {
  width: 100%; padding: 12px 42px 12px 40px;
  background: rgba(59,130,246,.04);
  border: 1px solid rgba(99,128,208,.16);
  border-radius: var(--radius-sm);
  color: #1a1a2e;
  font-size: 14.5px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.lf-input::placeholder { color: #aab8c8; }
.lf-input:hover { border-color: rgba(59,130,246,.32); background: rgba(59,130,246,.07); }
.lf-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59,130,246,.07);
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}
.lf-input.is-error {
  border-color: #ff5b52;
  box-shadow: 0 0 0 4px rgba(255,91,82,.14);
  background: rgba(255,91,82,.04);
  animation: shake .35s ease;
}
.lf-input.is-success {
  border-color: #34c759;
  box-shadow: 0 0 0 4px rgba(52,199,89,.14);
}
.lf-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7a90' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.lf-err {
  display: none;
  color: var(--danger); font-size: 12px; margin-top: 6px; padding-left: 2px;
}
.lf-err.show { display: flex; align-items: center; gap: 4px; }
.lf-err::before { content: "\26A0"; font-size: 12px; }

/* 密码显示/隐藏切换 */
.lf-toggle-pw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px 8px; border-radius: 8px;
  color: #8899aa; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s ease, background .15s ease;
}
.lf-toggle-pw:hover { color: #3b82f6; background: rgba(59,130,246,.10); }
.lf-toggle-pw:active { transform: translateY(-50%) scale(.92); }

/* 记住我 + 忘记密码 行 */
.lf-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 20px; }
.lf-check { display: flex; align-items: center; gap: 8px; color: #3a4a68; font-size: 13px; cursor: pointer; user-select: none; position: relative; }
.lf-check input { position: absolute; opacity: 0; pointer-events: none; }
.lf-check .box {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(99,128,208,.28);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
  background: rgba(59,130,246,.04);
}
.lf-check input:checked + .box {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(59,130,246,.30);
}
.lf-check input:checked + .box::after {
  content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.lf-check:hover .box { border-color: #3b82f6; }
.lf-link { color: #3b82f6; text-decoration: none; font-size: 13px; transition: color .15s; }
.lf-link:hover { color: #2563eb; text-decoration: underline; }

/* 登录按钮：蓝紫渐变 */
.lf-submit {
  position: relative; width: 100%;
  padding: 13px 20px; border-radius: 11px; border: none;
  background: linear-gradient(110deg, #3b82f6 0%, #6366f1 50%, #3b82f6 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 6px 22px rgba(59,130,246,.28);
  transition: background-position .4s ease, transform .12s ease, box-shadow .25s ease;
}
.lf-submit:hover {
  background-position: 100% 50%;
  box-shadow: 0 10px 30px rgba(59,130,246,.40);
}
.lf-submit:active { transform: translateY(1px) scale(.99); }
.lf-submit[disabled] { opacity: .65; cursor: not-allowed; }
.lf-submit::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 120%, rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.lf-submit:hover::after { opacity: 1; }
.lf-submit.loading .lf-submit-text { opacity: 0; }
.lf-submit .lf-submit-loader {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  border-radius: 50%; display: none; animation: spin .8s linear infinite;
}
.lf-submit.loading .lf-submit-loader { display: block; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* 分割线 + 注册入口 */
.lf-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: #8899aa; font-size: 12px; }
.lf-divider::before, .lf-divider::after { content: ""; flex: 1; height: 1px; background: rgba(99,128,208,.14); }
.lf-foot { text-align: center; color: #5a6a88; font-size: 13px; }
.lf-foot a { color: #3b82f6; text-decoration: none; font-weight: 600; transition: color .15s; }
.lf-foot a:hover { color: #2563eb; text-decoration: underline; }

/* 表单状态：提交成功一闪 */
.lf-success-flash {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(167,139,255,.34) 50%, transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.lf-success-flash.show { animation: successFlash .9s ease-out; }
@keyframes successFlash {
  0%   { opacity: 0; transform: translateX(-30%); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(30%); }
}

/* 响应式：≤980px 隐藏左侧介绍区，卡片居中（品牌仍固定左上角）；≤480px 品牌居中缩小 */
@media (max-width: 980px) {
  body.login-mode { overflow-y: auto; }
  body.login-mode .app { min-height: 100vh; }
  .login-page { flex-direction: column; gap: 18px; padding: 24px 16px; align-items: center; justify-content: center; }
  .login-side { display: none; }
  .login-card-wrap { padding: 90px 4px 32px; }
  .login-card { padding: 28px 26px 24px; border-radius: 18px; }
  .login-card-title { font-size: 20px; }
}
@media (max-width: 480px) {
  .login-brand-topleft { top: 18px; left: 18px; gap: 10px; }
  .login-brand-name { font-size: 21px; letter-spacing: .5px; }
  .login-brand-icon svg { width: 25px; height: 25px; }
  .login-card-wrap { padding: 84px 12px 28px; }
  .login-card { padding: 24px 18px 20px; border-radius: 16px; }
  .login-card-title { font-size: 20px; }
  .login-guide { font-size: 12.5px; margin-bottom: 18px; }
  .lf-field { margin-bottom: 12px; }
  .lf-input { padding: 11px 38px 11px 38px; font-size: 14px; }
  .lf-submit { padding: 12px 18px; border-radius: 10px; }
}
