/* ==========================================================================
   feature.css —— 新增模块样式（AI 外呼 / 客户运营 / 电子名片 / 落地页 / 数据大屏）
   加载顺序：theme.css 之后，因此可以直接用主题变量。
   规矩：这里只写新模块类 + 少量此前缺失的基础类（link-btn / card-hd / form-grid / seg）。
        不要写布局性全局选择器（如 .app-sidebar 的 position），避免覆盖 mobile.css 的抽屉定位。
   ========================================================================== */

/* ---------- 此前缺失的基础类 ---------- */
.link-btn {
  color: var(--brand-600);
  cursor: pointer;
  font-size: 13px;
  transition: color .15s;
  user-select: none;
}
.link-btn:hover { color: var(--brand); }
.link-btn + .link-btn { margin-left: 10px; }
table.tbl .link-btn { color: #475467; }
table.tbl .link-btn:hover { color: var(--brand); }

.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.card-hd h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.1px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.fi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fi > span {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .1px;
}
.fi > span i { color: #dc2626; font-style: normal; margin-left: 2px; }
.fi-full { grid-column: 1 / -1; }
.fi-ck {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
}
.fi-ck > span { order: 2; color: var(--ink-2); font-size: 13px; }
.fi-ck input[type="checkbox"] { order: 1; width: 15px; height: 15px; accent-color: var(--brand); }
.fi textarea.inp { resize: vertical; font-family: inherit; line-height: 1.6; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}
.toolbar .spacer { flex: 1 1 auto; }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f2f4f7;
  border-radius: 8px;
}
.seg button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.seg button.on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

/* 统计卡别名：新模块用 .stat / .stat-k / .stat-sub 的写法，视觉对齐现有 .stat-card。
   （现有卡片仍用 .stat-card/.stat-top/.stat-note，这里只是给新页面补一套等价类，互不影响） */
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-k {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}
.stat-sub { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.stat-unit { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 1px; }

/* 表格里的摘要文字：单行截断，别把行高撑爆 */
.ob-sum {
  display: block;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}

/* ==========================================================================
   一、AI 外呼
   ========================================================================== */
.ob-bar {
  height: 6px;
  border-radius: 999px;
  background: #eef0f4;
  overflow: hidden;
  margin-bottom: 5px;
}
.ob-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb37a, var(--brand));
  transition: width .4s;
}
.ob-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ob-sec { margin-bottom: 22px; }
.ob-sec h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .1px;
}
.ob-note {
  background: #fbf7f3;
  border: 1px solid #f2e6da;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.ob-next {
  margin-top: 10px;
  font-size: 13px;
  color: var(--brand-600);
  background: #fff8f2;
  border-left: 3px solid var(--brand);
  padding: 9px 12px;
  border-radius: 0 6px 6px 0;
}
.ob-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}
.ob-line { display: flex; flex-direction: column; gap: 5px; max-width: 86%; }
.ob-line.ai { align-self: flex-start; }
.ob-line.user { align-self: flex-end; align-items: flex-end; }
.ob-who { font-size: 11.5px; color: var(--muted-2); padding: 0 4px; }
.ob-bubble {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.65;
}
.ob-line.ai .ob-bubble { background: #f4f6f9; color: var(--ink-2); border-top-left-radius: 4px; }
.ob-line.user .ob-bubble { background: #fff3e9; color: #7a3d0c; border-top-right-radius: 4px; }
.ob-at { font-size: 11px; color: var(--muted-2); padding: 0 4px; }

.ob-est {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fbf7f3;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.ob-est b { color: var(--brand-600); font-size: 17px; margin: 0 3px; }

/* 每日柱状 */
.ob-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  padding: 10px 0 0;
}
.ob-barcol { flex: 1; display: flex; flex-direction: column; height: 100%; }
.ob-barcol-in {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  position: relative;
}
.ob-barcol-total {
  flex: 1;
  background: #f3e3d6;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height .4s;
}
.ob-barcol-conn {
  flex: 1;
  background: var(--brand);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height .4s;
}
.ob-barcol-lb {
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
  padding-top: 8px;
}

/* 横向条 */
.ob-rows { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.ob-row { display: flex; align-items: center; gap: 12px; }
.ob-row-k { width: 86px; font-size: 12.5px; color: var(--ink-2); flex: none; }
.ob-row-bar {
  flex: 1;
  height: 8px;
  background: #f2f4f7;
  border-radius: 999px;
  overflow: hidden;
}
.ob-row-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffc59a, var(--brand));
  border-radius: 999px;
}
.ob-row-bar > i.warn { background: linear-gradient(90deg, #fdd9a8, #d97706); }
.ob-row-v { width: 120px; text-align: right; font-size: 12px; color: var(--muted); flex: none; }

.ob-balance { padding: 8px 0 18px; }
.ob-balance-n {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ob-state { margin-top: 22px; border-top: 1px solid var(--line-soft); padding-top: 6px; }
.ob-state-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line-soft);
}
.ob-state-row span { color: var(--muted); }
.ob-state-row b { color: var(--ink-2); font-weight: 600; }
.ob-state-row b.ok { color: #067647; }
.ob-state-row b.warn { color: #b54708; }

/* ==========================================================================
   二、客户运营：标签 / 分群 / 群发 / 模板
   ========================================================================== */
.tag-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.tag-group-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.tag-group {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .14s;
}
.tag-group:hover { background: #f8f9fb; }
.tag-group.on { background: #fff4ec; color: var(--brand-600); font-weight: 600; }
.tag-group .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tag-group .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-group .x {
  color: var(--muted-2);
  font-size: 15px;
  padding: 0 2px;
  opacity: 0;
  transition: opacity .14s;
}
.tag-group:hover .x { opacity: 1; }
.tag-group .x:hover { color: #dc2626; }

.tag-add { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.tag-add .inp { width: 100%; margin-bottom: 10px; }
.tag-colors { display: flex; gap: 7px; margin-bottom: 10px; }
.tag-colors i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .14s, border-color .14s;
}
.tag-colors i:hover { transform: scale(1.12); }
.tag-colors i.on { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid;
  border-radius: 999px;
  padding: 6px 8px 6px 13px;
  font-size: 13px;
  background: #fff;
}
.tag-chip b { font-size: 11.5px; font-weight: 600; opacity: .78; }
.tag-chip i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted-2);
  cursor: pointer;
  padding: 0 3px;
}
.tag-chip i:hover { color: var(--brand); text-decoration: underline; }
.tag-chip em {
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: .5;
}
.tag-chip em:hover { opacity: 1; }
.tag-chip-add { display: flex; gap: 8px; flex: 1 1 100%; margin-top: 6px; }
.tag-chip-add .inp { flex: 1; }

/* 分群条件 */
.seg-cond { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.seg-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  align-items: flex-start;
}
.seg-k {
  width: 78px;
  flex: none;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 5px;
}
.seg-others { display: flex; gap: 10px; flex-wrap: wrap; }
.seg-prev {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fbf7f3;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seg-prev-n { font-size: 13.5px; color: var(--ink-2); }
.seg-prev-n b { font-size: 22px; color: var(--brand-600); margin: 0 4px; font-variant-numeric: tabular-nums; }
.seg-prev-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ==========================================================================
   三、电子名片
   ========================================================================== */
.nc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.nc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.nc-card:hover { box-shadow: 0 6px 20px -12px rgba(16, 24, 40, .28); transform: translateY(-2px); }
.nc-mini {
  padding: 22px 18px 20px;
  text-align: center;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.nc-ava {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}
.nc-nm { font-size: 16px; font-weight: 650; letter-spacing: .5px; }
.nc-tt { font-size: 12px; }
.nc-co { font-size: 11.5px; opacity: .8; }
.nc-meta { padding: 12px 14px 13px; border-top: 1px solid var(--line-soft); }
.nc-num { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.nc-num b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.nc-num i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); margin: 0 7px; vertical-align: middle; }
.nc-ops { display: flex; flex-wrap: wrap; gap: 12px; }

.nc-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.nc-phone {
  position: sticky;
  top: 16px;
  border-radius: 26px;
  padding: 10px;
  background: #1c1512;
  box-shadow: 0 18px 40px -24px rgba(16, 24, 40, .6);
}
.nc-phone-in {
  border-radius: 18px;
  padding: 26px 18px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.nc-view-ava {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 600;
  border: 1.5px solid;
  margin-bottom: 6px;
}
.nc-view-nm { font-size: 19px; font-weight: 650; letter-spacing: 1px; }
.nc-view-tt { font-size: 12px; opacity: .9; }
.nc-view-intro { font-size: 12.5px; line-height: 1.65; text-align: center; margin: 10px 0 4px; opacity: .92; }
.nc-view-prods { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nc-view-prod {
  border: 1px solid;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nc-view-prod b { font-size: 13px; }
.nc-view-prod span { font-size: 13px; font-weight: 600; }
.nc-view-prod em { font-style: normal; font-size: 11.5px; opacity: .85; }
.nc-view-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.nc-prod { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }

/* 对外名片页（手机） */
.nc-page {
  min-height: 100vh;
  background: #f2efec;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 30px;
}
.nc-view {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  padding: 56px 26px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.nc-view-ava.lg { width: 76px; height: 76px; font-size: 30px; }
.nc-view-nm.lg { font-size: 25px; letter-spacing: 2px; margin-top: 4px; }
.nc-view-intro.lg { font-size: 13.5px; margin-top: 14px; }
.nc-view-prods.lg { margin-top: 18px; gap: 10px; }
.nc-view-info { width: 100%; margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 16px; }
.nc-info-row {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  font-size: 13px;
  opacity: .92;
}
.nc-info-row span { width: 44px; flex: none; opacity: .62; }
.nc-view-actions { width: 100%; display: flex; gap: 12px; margin-top: auto; padding-top: 26px; }
.nc-act {
  flex: 1;
  padding: 13px;
  border-radius: 11px;
  border: 1px solid;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}
.nc-tip {
  font-size: 12px;
  color: #9c8f85;
  padding: 16px 10px 0;
  text-align: center;
}

/* 活码 */
.qr-box { text-align: center; padding: 8px 0 4px; }
.qr-svg { border-radius: 8px; border: 1px solid var(--line); }
.qr-stat {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.qr-stat > div { display: flex; flex-direction: column; gap: 4px; }
.qr-stat b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.qr-stat span { font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   四、落地页搭建
   ========================================================================== */
.lp-wrap { display: flex; flex-direction: column; gap: 14px; }
.lp-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 0;
  z-index: 5;
}
.lp-topbar .spacer { flex: 1; }

.lp-editor {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.lp-lib, .lp-props {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  position: sticky;
  top: 74px;
}
.lp-lib-h {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.lp-lib-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fbfbfc;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .14s, border-color .14s;
}
.lp-lib-btn:hover { background: #fff4ec; border-color: #f7d5b8; color: var(--brand-600); }
.lp-lib-btn i {
  font-style: normal;
  width: 20px;
  text-align: center;
  color: var(--muted-2);
  flex: none;
}
.lp-lib-tip { font-size: 11px; color: var(--muted-2); margin-top: 10px; line-height: 1.6; }

.lp-canvas {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lp-canvas-hd {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  background: #fbfbfc;
}
.lp-canvas-body {
  padding: 0;
  min-height: 560px;
  display: flex;
  justify-content: center;
  background: #f4f5f7;
}
.lp-canvas-body .lp-body { width: 100%; max-width: 430px; min-height: 560px; }

.lp-tools { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.lp-tools button {
  flex: 1;
  padding: 6px 4px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-2);
  font-family: inherit;
}
.lp-tools button:hover { border-color: var(--brand); color: var(--brand-600); }
.lp-tools button.danger:hover { border-color: #dc2626; color: #dc2626; }

/* 渲染器 */
.lp-body { padding: 22px 18px 26px; display: flex; flex-direction: column; gap: 12px; }
.lp-blk { position: relative; border-radius: 8px; }
.lp-blk.ed { cursor: pointer; padding: 4px; margin: -4px; transition: outline .12s; }
.lp-blk.ed:hover { outline: 1px dashed #f0b98f; }
.lp-blk.sel { outline: 2px solid var(--brand); background: rgba(242, 118, 29, .04); }
.lp-tag {
  position: absolute;
  top: -8px;
  left: 0;
  font-size: 10px;
  background: var(--brand);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .12s;
  pointer-events: none;
}
.lp-blk.ed:hover > .lp-tag, .lp-blk.sel > .lp-tag { opacity: 1; }
.lp-title { font-weight: 700; line-height: 1.35; letter-spacing: -.4px; }
.lp-text { line-height: 1.75; }
.lp-img { border-radius: 9px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lp-field { display: flex; flex-direction: column; gap: 6px; }
.lp-lb { font-size: 12.5px; font-weight: 500; }
.lp-lb i { color: #dc2626; font-style: normal; margin-left: 3px; }
.lp-inp {
  width: 100%;
  border: 1px solid;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.lp-inp:focus { border-color: var(--brand) !important; }
.lp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-opt {
  border: 1px solid;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background .14s, border-color .14s;
}
.lp-opt.on { font-weight: 600; }
.lp-div { height: 1px; width: 100%; }
.lp-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}
.lp-foot { text-align: center; font-size: 11px; opacity: .55; padding-top: 14px; }

/* 手机预览 */
.lp-phonebox { display: flex; gap: 26px; align-items: flex-start; }
.lp-phone {
  width: 390px;
  flex: none;
  border-radius: 30px;
  background: #1c1512;
  padding: 9px;
  box-shadow: 0 20px 46px -26px rgba(16, 24, 40, .7);
}
.lp-phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 10px;
  color: #f0e7df;
  font-size: 12px;
}
.lp-phone-bar i { font-style: normal; letter-spacing: 1px; }
.lp-phone-body {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  max-height: 700px;
  overflow-y: auto;
}
.lp-phone-tip { padding-top: 20px; max-width: 320px; }
.lp-link {
  display: block;
  margin-top: 8px;
  padding: 9px 12px;
  background: #fbf7f3;
  border: 1px solid #f0e3d8;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--brand-600);
  word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* 对外落地页 */
.lp-public {
  min-height: 100vh;
  background: #f2efec;
  display: flex;
  justify-content: center;
}
.lp-public-in { width: 100%; max-width: 440px; background: #fff; min-height: 100vh; }
.lp-public-in .lp-body { min-height: 100vh; }
.lp-done {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px;
}
.lp-done-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.lp-done h3 { margin: 0; font-size: 18px; color: #1b1410; }
.lp-err {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, .92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  margin: 0;
}

/* ==========================================================================
   五、数据大屏（独立全屏，深色，不受主题变量影响）
   ========================================================================== */
.ds-root {
  position: fixed;
  inset: 0;
  z-index: 900;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(242, 118, 29, .16), transparent 62%),
    radial-gradient(700px 420px at 100% 110%, rgba(226, 89, 13, .1), transparent 60%),
    #0c0907;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ds-stage {
  width: 1920px;
  height: 1080px;
  flex: none;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  color: #f4ece5;
  font-variant-numeric: tabular-nums;
}
.ds-hd {
  height: 86px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
  border-bottom: 1px solid rgba(242, 118, 29, .16);
}
.ds-hd-l { display: flex; align-items: center; gap: 12px; flex: 1; }
.ds-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffa451;
  box-shadow: 0 0 0 4px rgba(255, 164, 81, .18);
  animation: dsPulse 2.4s infinite;
}
@keyframes dsPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 164, 81, .18); }
  50% { box-shadow: 0 0 0 9px rgba(255, 164, 81, .04); }
}
.ds-hd h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: 2px;
  background: linear-gradient(92deg, #fff4ea, #ffa451);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ds-hd-c { font-size: 15px; color: #a8917f; letter-spacing: 1px; flex: none; }
.ds-hd-r { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: flex-end; }
.ds-live { font-size: 12px; color: #d9a06a; letter-spacing: .5px; }
.ds-exit {
  background: transparent;
  border: 1px solid rgba(242, 118, 29, .42);
  color: #ffc59a;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}
.ds-exit:hover { background: rgba(242, 118, 29, .14); }

.ds-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 452px minmax(0, 1fr) 452px;
  gap: 16px;
  padding: 16px 24px 22px;
  min-height: 0;
}
.ds-col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.ds-col-mid { gap: 16px; }
.ds-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .016));
  border: 1px solid rgba(242, 118, 29, .17);
  border-radius: 10px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ds-panel-map { flex: 1; }
.ds-panel-feed { flex: 1; }
.ds-pt {
  font-size: 13px;
  color: #d8b394;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.ds-pt::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffa451, #e2590d);
}
.ds-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-left: auto;
  animation: dsPulse 1.8s infinite;
}

.ds-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ds-kpi {
  background: rgba(255, 255, 255, .035);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ds-kpi b {
  font-size: 27px;
  font-weight: 650;
  color: #fff3e8;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.ds-kpi b i { font-size: 13px; font-style: normal; color: #c99a75; margin-left: 2px; }
.ds-kpi span { font-size: 11.5px; color: #9c8674; }

.ds-plats { display: flex; flex-direction: column; gap: 11px; }
.ds-plat { display: flex; align-items: center; gap: 10px; }
.ds-plat-n { width: 82px; font-size: 12px; color: #c9b3a2; flex: none; }
.ds-plat-bar { flex: 1; height: 7px; background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; }
.ds-plat-bar > i { display: block; height: 100%; border-radius: 999px; transition: width .5s; }
.ds-plat-v { width: 42px; text-align: right; font-size: 12.5px; color: #ede0d5; flex: none; }

.ds-line { width: 100%; height: 132px; display: block; }
.ds-x {
  display: flex;
  justify-content: space-between;
  padding: 6px 18px 0;
  font-size: 10.5px;
  color: #8d7a6b;
}

.ds-mapwrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}
.ds-map {
  width: calc(100% - 20px);
  height: auto;
  max-height: 100%;
  display: block;
}
/* 累计线索做成地图左上角的角标，不压住城市点 */
.ds-map-center {
  position: absolute;
  left: 10px;
  top: 4px;
  text-align: left;
  pointer-events: none;
}
.ds-map-center b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 0 22px rgba(242, 118, 29, .55);
  line-height: 1.1;
}
.ds-map-center span { font-size: 11px; color: #b08a6c; letter-spacing: 1.2px; }
.ds-citys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; padding-top: 10px; flex: none; }
.ds-city { display: flex; align-items: center; gap: 8px; }
.ds-city > span { width: 42px; font-size: 11.5px; color: #c2ab9a; flex: none; }
.ds-city-bar { flex: 1; height: 5px; background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; }
.ds-city-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #ffb37a, #e2590d); border-radius: 999px; }
.ds-city b { width: 26px; text-align: right; font-size: 11.5px; color: #f0dfd0; flex: none; }

.ds-funnel { display: flex; flex-direction: column; gap: 9px; }
.ds-fn { display: flex; align-items: center; gap: 12px; }
.ds-fn-lab { width: 62px; font-size: 11.5px; color: #c2ab9a; flex: none; }
.ds-fn-bar {
  flex: 1;
  height: 26px;
  background: rgba(255, 255, 255, .05);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.ds-fn-bar > i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 164, 81, .85), rgba(226, 89, 13, .68));
  border-radius: 5px;
  transition: width .5s;
}
.ds-fn-bar > span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 12px;
  gap: 10px;
  font-size: 12.5px;
  color: #fff;
}
.ds-fn-bar em { font-style: normal; font-size: 11px; color: #e8c9ae; }

.ds-rank { display: flex; flex-direction: column; gap: 9px; }
.ds-rk { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.ds-rk-no {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .09);
  color: #c9b3a2;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ds-rk-no.no1 { background: linear-gradient(135deg, #ffb347, #e2590d); color: #fff; font-weight: 700; }
.ds-rk-no.no2 { background: linear-gradient(135deg, #d5c3b4, #9a8578); color: #fff; }
.ds-rk-no.no3 { background: linear-gradient(135deg, #d9a06a, #a8703c); color: #fff; }
.ds-rk-nm { flex: 1; color: #ede0d5; }
.ds-rk-v { color: #ffc59a; font-size: 12.5px; }
.ds-rk-m { width: 66px; text-align: right; color: #9c8674; font-size: 12px; }

.ds-feed { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ds-fi {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .032);
  border-radius: 7px;
  animation: dsIn .4s ease;
}
@keyframes dsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.ds-fi-plat { width: 3px; height: 26px; border-radius: 2px; flex: none; }
.ds-fi-body { flex: 1; min-width: 0; }
.ds-fi-top { display: flex; align-items: baseline; gap: 9px; }
.ds-fi-top b { font-size: 13px; color: #f6ece3; font-weight: 600; }
.ds-fi-top em { font-style: normal; font-size: 11px; color: #9c8674; }
.ds-fi-sub { font-size: 11px; color: #8d7a6b; margin-top: 2px; }
.ds-fi-t { font-size: 11px; color: #8d7a6b; flex: none; }

.ds-big { text-align: center; padding: 8px 0 4px; }
.ds-big b { font-size: 46px; font-weight: 700; letter-spacing: -2px; color: #ffb37a; line-height: 1; }
.ds-big b i { font-size: 20px; font-style: normal; }
.ds-big span { display: block; font-size: 11.5px; color: #9c8674; margin-top: 8px; letter-spacing: 1px; }
.ds-none { text-align: center; font-size: 12px; color: #7d6b5d; padding: 20px 0; }

/* ==========================================================================
   六、响应式（只调排布，不动定位）
   ========================================================================== */
@media (max-width: 1200px) {
  .lp-editor { grid-template-columns: 148px minmax(0, 1fr) 260px; }
  .nc-edit { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .fi-full { grid-column: auto; }
  .fi-ck { padding-top: 0; }
  .tag-layout { grid-template-columns: 1fr; }
  .tag-group .x { opacity: 1; }
  .seg-row { flex-direction: column; gap: 10px; }
  .seg-k { width: auto; padding-top: 0; }
  .seg-others { width: 100%; }
  .seg-others .inp { flex: 1 1 100%; width: 100% !important; }
  .seg-prev-list { flex-wrap: wrap; }
  .nc-edit { grid-template-columns: 1fr; }
  .nc-phone { position: static; max-width: 380px; margin: 0 auto; width: 100%; }
  .nc-prod { flex-wrap: wrap; }
  .nc-prod .inp { flex: 1 1 100% !important; }
  .ob-row-k { width: 68px; }
  .ob-row-v { width: 96px; }
  .ob-sum { max-width: 200px; }
  .lp-editor { grid-template-columns: 1fr; }
  .lp-lib, .lp-props { position: static; }
  .lp-lib { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .lp-lib-h { width: 100%; margin-bottom: 6px; }
  .lp-lib-btn { width: auto; flex: 1 1 calc(33% - 6px); margin-bottom: 0; }
  .lp-lib-tip { width: 100%; }
  .lp-phonebox { flex-direction: column; align-items: center; }
  .lp-phone { width: 100%; max-width: 390px; }
  .lp-phone-tip { max-width: 100%; }
  .lp-topbar { flex-wrap: wrap; }
  .lp-topbar .inp { width: 100% !important; }
  .lp-topbar .spacer { display: none; }
  .nc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .nc-mini { min-height: 140px; padding: 18px 12px 16px; }
}

/* 标签管理：两栏卡片等高，避免右侧短卡片下方一大片空 */
.tag-layout > .card { min-height: 340px; }

/* 大屏模式下隐藏左下角的同步状态小圆点（投屏时会露出一个白点） */
body:has(.ds-root) #dlk-sync-dot { display: none !important; }

/* 对外分享页（名片 / 落地页 / 短链 / 领取页）也隐藏同步角标，客户看到「已同步 21:04」不合适 */
body.is-share #dlk-sync-dot { display: none !important; }
