/* ============================================================
   超级员工 · 设计系统
   设计令牌全部来自对享乐兔AI 打包代码与 UI 资源的逆向提取
   ============================================================ */
:root {
  /* 品牌 */
  --brand-blue: #158EFF;
  --brand-purple: #9735FF;
  --grad-brand: linear-gradient(87deg, #158EFF 0%, #9735FF 100%);
  --grad-brand-soft: linear-gradient(87deg, rgba(21,142,255,.10) 0%, rgba(151,53,255,.10) 100%);

  /* 文本 */
  --t1: #1D2129;
  --t2: #4E5969;
  --t3: #86909C;
  --t4: #C9CDD4;

  /* 面 */
  --bg: #F5F6FA;
  --panel: #FFFFFF;
  --line: #EBEDF0;
  --line-2: #F2F3F5;

  /* 卡片浅底（逆向所得） */
  --tint-blue: #F0F9FF;
  --tint-orange: #FFF3EA;
  --tint-teal: #E7F7F6;
  --tint-purple: #EEF0FE;
  --tint-indigo: #EEF1FB;
  --tint-pink: #FFF0F4;

  /* 语义 */
  --ok: #00B42A;
  --warn: #FF7D00;
  --err: #F53F3F;

  /* 尺寸 */
  --titlebar-h: 46px;
  --sidebar-w: 208px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-1: 0 2px 10px rgba(29, 33, 41, .05);
  --shadow-2: 0 8px 26px rgba(29, 33, 41, .10);
  --shadow-brand: 0 8px 22px rgba(94, 66, 219, .28);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--t1);
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D8DCE3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #C2C7D0; }
::-webkit-scrollbar-track { background: transparent; }

/* ================= 应用外壳 ================= */
.app { display: flex; flex-direction: column; height: 100vh; }

/* ---- 标题栏（还原自截图：白→浅紫渐变 + 右侧信息区 + 窗口控制） ---- */
.titlebar {
  height: var(--titlebar-h); flex: 0 0 var(--titlebar-h);
  display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px;
  background: linear-gradient(90deg, #FFFFFF 0%, #FAF8FF 45%, #F4F0FF 100%);
  border-bottom: 1px solid #EDEBF5;
  -webkit-app-region: drag; user-select: none;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: -.4px; box-shadow: 0 3px 8px rgba(94, 66, 219, .3);
}
.brand-name { font-size: 13.5px; font-weight: 700; letter-spacing: .2px; }
.brand-name span { font-weight: 400; color: var(--t3); font-size: 11.5px; margin-left: 6px; }

.tb-right { margin-left: auto; display: flex; align-items: center; gap: 16px; padding-right: 4px; }
.tb-meta { font-size: 12px; color: var(--t3); white-space: nowrap; }
.tb-meta b { color: var(--t2); font-weight: 600; }
.tb-account {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px;
  background: #fff; border: 1px solid #E6E2F5; border-radius: 13px; font-size: 12px; color: var(--t2);
}
.tb-avatar {
  width: 18px; height: 18px; border-radius: 50%; background: var(--grad-brand);
  color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 700;
}
.tb-update {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border-radius: 11px; background: #FFF1E8; color: #E8590C; font-size: 11px; font-weight: 600;
  border: 1px solid #FFD9BF; cursor: pointer;
}
.tb-icon {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  color: var(--t2); cursor: pointer; transition: background .15s;
}
.tb-icon:hover { background: rgba(151,53,255,.08); color: var(--brand-purple); }
.win-controls { display: flex; align-items: center; height: 100%; -webkit-app-region: no-drag; }
.win-btn {
  width: 44px; height: var(--titlebar-h); display: grid; place-items: center;
  color: var(--t2); cursor: pointer; transition: background .15s;
}
.win-btn:hover { background: rgba(29,33,41,.06); }
.win-btn.close:hover { background: #F53F3F; color: #fff; }

/* ---- 主体 ---- */
.body { display: flex; flex: 1; min-height: 0; }

/* ---- 侧边栏（白色，还原截图） ---- */
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: #fff;
  border-right: 1px solid var(--line); overflow-y: auto; padding: 8px 0 20px;
}
.nav-group {
  padding: 15px 18px 6px; font-size: 11px; color: #B0B5BE; letter-spacing: .3px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; height: 38px; margin: 1px 10px;
  padding: 0 10px; border-radius: var(--r-sm); color: var(--t2); font-size: 13px;
  cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.nav-item .ni { width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; opacity: .75; }
.nav-item:hover { background: #F6F7F9; color: var(--t1); }
.nav-item:hover .ni { opacity: 1; }
.nav-item.active {
  background: var(--grad-brand); color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(94, 66, 219, .26);
}
.nav-item.active .ni { opacity: 1; }
.nav-sub { margin-left: 6px; }
.nav-sub .nav-item { height: 34px; font-size: 12.5px; color: var(--t3); padding-left: 16px; }
.nav-sub .nav-item.active { color: #fff; }
.nav-badge {
  margin-left: auto; height: 17px; min-width: 17px; padding: 0 5px; border-radius: 9px;
  background: #FFF1E8; color: #E8590C; font-size: 10.5px; display: grid; place-items: center; font-weight: 600;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,.26); color: #fff; }

/* ---- 内容区 ---- */
.main { flex: 1; min-width: 0; overflow-y: auto; padding: 16px 20px 28px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.page-title { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.page-sub { font-size: 12px; color: var(--t3); margin-top: 2px; }
.page-head .spacer { margin-left: auto; }

/* 面板 */
.panel {
  background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow-1);
  padding: 16px 18px; margin-bottom: 14px; border: 1px solid rgba(235,237,240,.9);
}
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-title { font-size: 14px; font-weight: 700; }
.panel-title.none-mb { margin-bottom: 0; }
.panel-head .spacer { margin-left: auto; }

/* 分区标题（左侧竖条，还原截图 ▎拓客专区） */
.section-title {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;
  margin: 2px 0 12px;
}
.section-title::before {
  content: ""; width: 3.5px; height: 15px; border-radius: 3px; background: var(--grad-brand);
}

/* 栅格 */
.grid { display: grid; gap: 12px; }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 1280px) { .g-5, .g-6 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .g-5, .g-6, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* 统计卡 */
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  position: relative; overflow: hidden; transition: box-shadow .18s, transform .18s;
}
.stat:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.stat .n { font-size: 23px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.stat .l { font-size: 12px; color: var(--t3); margin-top: 5px; }
.stat .ico { position: absolute; right: 12px; top: 12px; opacity: .16; }

/* 功能卡（浅色底 + 右侧插画） */
.feature {
  position: relative; border-radius: var(--r); padding: 15px 16px; min-height: 104px;
  cursor: pointer; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s;
  border: 1px solid rgba(255,255,255,.7);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.feature h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; position: relative; z-index: 1; }
.feature p { margin: 0; font-size: 11.5px; line-height: 1.65; color: #6B7280; max-width: 70%; position: relative; z-index: 1; }
.feature .art {
  position: absolute; right: 10px; bottom: 8px; width: 46px; height: 46px;
  opacity: .34; pointer-events: none; color: var(--art-c, #6B3FE0);
  transition: transform .25s, opacity .25s;
}
.feature .art svg { width: 100%; height: 100%; stroke-width: 1.35; }
.feature:hover .art { transform: translateY(-3px) scale(1.06); opacity: .5; }
.feature .badge {
  position: absolute; right: 10px; top: 10px; font-size: 10.5px; padding: 1px 7px;
  border-radius: 9px; background: rgba(255,255,255,.75); color: var(--t2);
}
.t-blue { background: linear-gradient(140deg, #F0F9FF 0%, #E3F2FF 100%); --art-c: #158EFF; }
.t-orange { background: linear-gradient(140deg, #FFF6EC 0%, #FFEBD9 100%); --art-c: #F5822B; }
.t-teal { background: linear-gradient(140deg, #E9F9F7 0%, #DDF4F1 100%); --art-c: #12A594; }
.t-purple { background: linear-gradient(140deg, #F2F0FF 0%, #E9E5FF 100%); --art-c: #7B52F0; }
.t-indigo { background: linear-gradient(140deg, #EEF1FB 0%, #E3E9FA 100%); --art-c: #4E6BD6; }
.t-pink { background: linear-gradient(140deg, #FFF0F4 0%, #FFE4EC 100%); --art-c: #E8557F; }

/* 平台磁贴（还原截图顶部 某音/小某书/某手/数据总览） */
.platform-tile {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  border-radius: 10px; background: #fff; border: 1px solid var(--line);
  cursor: pointer; transition: all .16s; font-weight: 600; font-size: 13.5px;
}
.platform-tile:hover { border-color: #D6CDFF; box-shadow: 0 4px 14px rgba(94,66,219,.10); }
.platform-tile.on { border-color: transparent; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.platform-tile .lg {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff; flex: 0 0 26px;
}
.platform-tile .lg.dy { background: #161823; }
.platform-tile .lg.xhs { background: #FF2E4D; }
.platform-tile .lg.ks { background: #FF5000; }
.platform-tile .lg.data { background: #00B42A; }
.platform-tile .lg.warn { background: #F53F3F; }

/* 提示条 */
.notice {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm);
  background: #FFF8F0; border: 1px solid #FFE4C4; color: #B25E09; font-size: 12px; line-height: 1.6;
}
.notice.info { background: #F2F7FF; border-color: #D6E4FF; color: #1D5FCC; }
.notice.ok { background: #F0FBF2; border-color: #C9F0D2; color: #0A7A2C; }
.notice .x { margin-left: auto; cursor: pointer; opacity: .6; }

/* 按钮 */
button { border: 0; cursor: pointer; font-size: 13px; border-radius: var(--r-sm); transition: all .15s; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn {
  height: 34px; padding: 0 15px; background: var(--grad-brand); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(94,66,219,.22);
}
.btn:hover { box-shadow: 0 6px 18px rgba(94,66,219,.32); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--t2); border: 1px solid #E1E4EA; box-shadow: none; font-weight: 500; }
.btn.ghost:hover { border-color: #C9BFFF; color: var(--brand-purple); background: #FBFAFF; transform: none; }
.btn.soft { background: #F2F0FF; color: #6B3FE0; box-shadow: none; font-weight: 600; }
.btn.soft:hover { background: #E9E5FF; transform: none; }
.btn.danger { background: #FFF1F0; color: #D93026; box-shadow: none; font-weight: 600; }
.btn.danger:hover { background: #FFE4E1; transform: none; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn.xs { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 5px; }
.btn.link { background: transparent; color: var(--brand-blue); box-shadow: none; padding: 0 4px; height: auto; }
.btn.link:hover { text-decoration: underline; transform: none; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; color: var(--t3); }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  height: 34px; padding: 0 11px; border: 1px solid #E1E4EA; border-radius: var(--r-sm);
  background: #fff; font-size: 13px; color: var(--t1); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 84px; padding: 9px 11px; line-height: 1.65; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #A98BFF; box-shadow: 0 0 0 3px rgba(151,53,255,.10); }
select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%2386909C' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 9px center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.grow { flex: 1; min-width: 0; }

/* 表格 */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
th {
  text-align: left; font-weight: 600; color: var(--t3); background: #FAFBFC;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
th:first-child { border-top-left-radius: 8px; }
th:last-child { border-top-right-radius: 8px; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); color: var(--t2); vertical-align: middle; }
tbody tr:hover td { background: #FAFBFF; }
tbody tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow: auto; border-radius: 8px; }
.tbl-wrap.scroll { max-height: 60vh; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 5px;
  background: #F2F3F5; color: #5C6570; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag.blue { background: #EAF4FF; color: #1668DC; }
.tag.purple { background: #F2F0FF; color: #6B3FE0; }
.tag.green { background: #EAFBF0; color: #0A8A34; }
.tag.orange { background: #FFF6EC; color: #C25E00; }
.tag.red { background: #FFF1F0; color: #D93026; }
.tag.gray { background: #F2F3F5; color: #6B7280; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot.ok { background: var(--ok); } .dot.off { background: #C9CDD4; } .dot.warn { background: var(--warn); }

/* 空状态 */
.empty { padding: 40px 0; text-align: center; color: var(--t3); font-size: 12.5px; }
.empty .ic { font-size: 26px; opacity: .35; margin-bottom: 8px; }

/* 开关 */
.switch { width: 36px; height: 20px; border-radius: 10px; background: #DDE1E7; position: relative; cursor: pointer; transition: background .18s; }
.switch.on { background: var(--grad-brand); }
.switch::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on::after { left: 18px; }

/* 弹窗 */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 22, 30, .45); backdrop-filter: blur(2px);
  display: grid; place-items: center; z-index: 60; animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985) } to { opacity: 1; transform: none } }
.dialog {
  width: min(760px, calc(100vw - 48px)); max-height: 84vh; background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 24px 70px rgba(17,19,26,.28); display: flex; flex-direction: column; animation: pop .18s ease;
}
.dialog.wide { width: min(1000px, calc(100vw - 48px)); }
.dialog-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.dialog-title { font-size: 15px; font-weight: 700; }
.dialog-head .x { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; color: var(--t3); border-radius: 6px; cursor: pointer; }
.dialog-head .x:hover { background: #F2F3F5; color: var(--t1); }
.dialog-body { padding: 18px 20px; overflow-y: auto; }
.dialog-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; }

/* 聊天气泡 */
.chat-layout { display: grid; grid-template-columns: 268px 1fr; gap: 12px; height: calc(100vh - var(--titlebar-h) - 40px); }
.chat-list { background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow-y: auto; }
.chat-peer { padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .15s; }
.chat-peer:hover { background: #FAFBFF; }
.chat-peer.on { background: var(--grad-brand-soft); border-left: 3px solid var(--brand-purple); }
.chat-peer .nm { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.chat-peer .pv { font-size: 11.5px; color: var(--t3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { background: #fff; border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.chat-top { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; background: linear-gradient(180deg, #FCFCFF 0%, #FAFAFD 100%); }
.bubble { max-width: 66%; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.6; margin-bottom: 9px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.bubble.in { background: #fff; border: 1px solid var(--line); border-top-left-radius: 3px; }
.bubble.out { background: var(--grad-brand); color: #fff; margin-left: auto; border-top-right-radius: 3px; }
.chat-input { border-top: 1px solid var(--line-2); padding: 10px 14px; display: flex; gap: 8px; }

/* 图表 */
.chart-wrap { width: 100%; overflow-x: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--t2); }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* 进度条 */
.bar { height: 8px; border-radius: 4px; background: #F2F3F5; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--grad-brand); }

/* 工具 */
.muted { color: var(--t3); font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); }
.hide { display: none !important; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* 轻提示 */
.toast-wrap { position: fixed; top: 58px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: rgba(29,33,41,.92); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 12.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22); animation: pop .18s ease;
}
.toast.ok { background: rgba(0,150,60,.94); }
.toast.err { background: rgba(210,45,45,.94); }

/* 首页 hero */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 26px 28px;
  background:
    radial-gradient(1100px 320px at 12% -10%, rgba(60,120,255,.55) 0%, rgba(60,120,255,0) 62%),
    radial-gradient(900px 300px at 88% 120%, rgba(151,53,255,.55) 0%, rgba(151,53,255,0) 60%),
    linear-gradient(120deg, #0B1030 0%, #131A44 48%, #1B1145 100%);
  color: #fff; box-shadow: 0 16px 40px rgba(23, 20, 70, .32);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 180px at 50% 120%, rgba(120,80,255,.5), transparent 70%);
  pointer-events: none;
}
.hero h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: .5px; }
.hero h1 span { background: linear-gradient(90deg,#7DD3FC,#C4B5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 8px 0 0; font-size: 13px; color: rgba(255,255,255,.72); }
.hero .hero-actions { margin-top: 18px; display: flex; gap: 10px; position: relative; z-index: 1; }
.hero .btn { background: #fff; color: #2B1E63; box-shadow: 0 8px 20px rgba(0,0,0,.24); }
.hero .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.hero .glow { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(124,77,255,.55), transparent 68%); filter: blur(8px); }

/* ================= 登录页（未登录只显示这一屏） ================= */
.login-page {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 15% 10%, #EEF2FF 0%, #F7F8FC 45%, #F2F4FA 100%);
}
.login-page .lg-card {
  width: 380px; background: #fff; border-radius: 16px; padding: 30px 30px 22px;
  box-shadow: 0 18px 50px rgba(31, 41, 90, .12), 0 2px 8px rgba(31, 41, 90, .06);
}
.login-page .lg-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.login-page .lg-mark {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .5px;
}
.login-page .lg-title { font-size: 18px; font-weight: 700; color: #111827; line-height: 1.2; }
.login-page .lg-sub { font-size: 12px; color: #6B7280; margin-top: 2px; }
.login-page .lg-hint { font-size: 12.5px; color: #4B5563; background: #F5F7FF; border-radius: 8px; padding: 9px 11px; margin-bottom: 16px; line-height: 1.5; }
.login-page .lg-label { display: block; font-size: 12px; color: #6B7280; margin: 12px 0 6px; }
.login-page .lg-input {
  width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; font-size: 14px;
  border: 1px solid #E3E6EE; border-radius: 9px; outline: none; background: #FBFBFD; color: #111827;
}
.login-page .lg-input:focus { border-color: #7C87FF; background: #fff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
.login-page .lg-err { min-height: 18px; font-size: 12.5px; color: #DC2626; margin-top: 8px; }
.login-page .lg-btn {
  width: 100%; height: 42px; margin-top: 6px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #2563EB, #6D28D9); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: 2px;
}
.login-page .lg-btn:hover { filter: brightness(1.05); }
.login-page .lg-btn:disabled { opacity: .7; cursor: default; }
.login-page .lg-foot { margin-top: 16px; font-size: 11.5px; color: #9CA3AF; line-height: 1.7; }
.login-page .lg-foot code { background: #F3F4F6; border-radius: 4px; padding: 1px 5px; color: #4B5563; }

/* 全局提醒条：任务疑似卡住时贴在内容区上方。
   用「占位下发」而不是 fixed 浮层——浮层会盖住页面大标题，实测遮住了首页 hero 卡。
   外层 .app 是 flex column，这里 flex:0 0 auto 就能把 .body 自然压下去。 */
#global-alert {
  flex: 0 0 auto; margin: 8px 20px 0; box-sizing: border-box;
  background: #FFF7E6; border: 1px solid #FFD591; color: #874d00;
  border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.6;
  display: flex; align-items: flex-start; gap: 10px;
}
#global-alert .ga-msg { flex: 1; min-width: 0; }
#global-alert .ga-btn {
  border: 1px solid #FFC069; background: #fff; color: #874d00; border-radius: 7px;
  padding: 3px 9px; font-size: 12px; cursor: pointer; flex: none;
}
#global-alert .ga-x { border: 0; background: transparent; color: #ad6800; cursor: pointer; font-size: 14px; flex: none; }

/* ================= 地图获客 ================= */
.poi-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.poi-filter select { width: 168px; flex: none; }
.poi-filter input { flex: 1 1 220px; min-width: 180px; max-width: 460px; }
.poi-filter .btn { flex: none; }
.poi-state { display: flex; align-items: center; gap: 12px; padding: 26px 4px; color: var(--t2); font-size: 13px; }
.poi-spin {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid #E6E1FF; border-top-color: var(--brand-purple);
  animation: poi-spin .8s linear infinite;
}
@keyframes poi-spin { to { transform: rotate(360deg); } }
.poi-error {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #FFF1F0; border: 1px solid #FFD4D1; border-radius: var(--r-sm);
  color: #B42318; font-size: 12.5px; line-height: 1.65;
}
.poi-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poi-tbl .poi-name { max-width: 190px; }
.poi-tbl .poi-addr { max-width: 240px; }
/* 操作列固定在右侧：表格横向滚动时「删除」也不会被挤出去 */
.poi-tbl th:last-child, .poi-tbl td:last-child { position: sticky; right: 0; background: #fff; white-space: nowrap; }
.poi-tbl th:last-child { background: #FAFBFC; }
.poi-tbl tbody tr:hover td:last-child { background: #FAFBFF; }
.poi-hist { display: flex; flex-direction: column; }
.poi-hist-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 2px;
  border-bottom: 1px solid var(--line-2); font-size: 12.5px;
}
.poi-hist-row:last-child { border-bottom: 0; }

/* 视频创作表单：不能用 .poi-filter（那是固定宽筛选条，flex 会把多行文本挤窄） */
.vs-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.vs-form select, .vs-form input, .vs-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.vs-form textarea { min-height: 92px; resize: vertical; line-height: 1.6; font-family: inherit; }
.vs-form .full { grid-column: 1 / -1; }
@media (max-width: 820px) { .vs-form { grid-template-columns: 1fr; } }
