/* ============================================================
   山涂商品管理后台 · 样式
   设计基调：浅色、工业感、低饱和；主色深蓝，强调色橙
   ============================================================ */

:root {
  --brand: #0e4c7e;
  --brand-d: #0a3a61;
  --brand-l: #e8f1f9;
  --accent: #dd6a10;
  --accent-l: #fdf1e5;

  --ink: #1a1f26;
  --ink2: #5b6672;
  --ink3: #8b95a1;

  --line: #e3e8ee;
  --line2: #eef1f5;
  --bg: #f5f7fa;
  --card: #ffffff;

  --danger: #c8392f;
  --danger-l: #fdeeed;
  --ok: #2b7a4b;
  --ok-l: #eaf6ee;
  --warn: #a86a00;
  --warn-l: #fdf5e6;

  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 44px rgba(16, 24, 40, .16);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
code { font-family: Consolas, Menlo, monospace; font-size: 12.5px; background: var(--line2); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 400px at 15% -10%, #e8f1f9 0%, transparent 60%),
    radial-gradient(700px 380px at 95% 110%, #fdf1e5 0%, transparent 55%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 392px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px 26px;
  box-shadow: var(--shadow-md);
}
.login-brand { display: flex; gap: 13px; align-items: center; margin-bottom: 26px; }
.login-logo, .brand-logo {
  width: 42px; height: 42px; flex: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
  letter-spacing: -1px;
}
.login-brand h1 { font-size: 16.5px; }
.login-brand p { font-size: 12.5px; color: var(--ink3); margin-top: 2px; }
.login-error {
  background: var(--danger-l);
  border: 1px solid #f3cdca;
  color: var(--danger);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}
.login-tip { font-size: 12.5px; color: var(--ink3); margin-top: 16px; line-height: 1.65; }

/* ---------------- 表单基础 ---------------- */
.field { display: block; margin-bottom: 15px; }
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  margin-bottom: 6px;
}
.field > span .req { color: var(--danger); margin-left: 2px; }
.field .hint { display: block; font-size: 12px; color: var(--ink3); margin-top: 5px; font-weight: 400; }

input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 76, 126, .1);
}
input::placeholder, textarea::placeholder { color: #b3bcc6; }
textarea { resize: vertical; min-height: 84px; line-height: 1.65; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 8l3-3.5' fill='none' stroke='%238b95a1' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; padding-right: 30px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--line2); border-color: #d5dce4; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.93); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink2); }
.btn-ghost:hover { background: var(--line2); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; padding: 11px; font-size: 14.5px; }
.icon-btn {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent;
  border-radius: var(--r-sm); color: var(--ink3);
}
.icon-btn:hover { background: var(--line2); color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 224px; flex: none;
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 18px 16px; border-bottom: 1px solid var(--line2); }
.brand-logo { width: 36px; height: 36px; font-size: 17px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { font-size: 14px; }
.brand-text span { font-size: 11.5px; color: var(--ink3); white-space: nowrap; }

.nav { padding: 12px 10px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: none; background: transparent;
  border-radius: var(--r-sm);
  color: var(--ink2);
  font-size: 13.5px; font-weight: 500;
  text-align: left;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 17px; height: 17px; flex: none; fill: currentColor; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: var(--line2); color: var(--ink); }
.nav-item.is-active { background: var(--brand-l); color: var(--brand); }
.nav-item span { flex: 1; }
.nav-badge {
  font-style: normal; font-size: 11.5px; font-weight: 600;
  background: var(--line2); color: var(--ink2);
  padding: 1px 7px; border-radius: 99px;
}
.nav-item.is-active .nav-badge { background: #fff; color: var(--brand); }

.sidebar-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.side-link {
  font-size: 12.5px; color: var(--ink3); text-decoration: none;
  background: none; border: none; padding: 3px 0; text-align: left;
}
.side-link:hover { color: var(--brand); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 17px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 17px; }
.topbar p { font-size: 12.5px; color: var(--ink3); margin-top: 3px; }
.topbar-actions { display: flex; gap: 9px; align-items: center; }

.content { padding: 22px 28px 60px; max-width: 1240px; width: 100%; }

/* ---------------- 卡片 / 概览 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 16px;
}
.card-head h3 { font-size: 15px; }
.card-head p { font-size: 12.5px; color: var(--ink3); margin-top: 3px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.stat .k { font-size: 12.5px; color: var(--ink3); }
.stat .v { font-size: 26px; font-weight: 600; letter-spacing: -.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .m { font-size: 12px; color: var(--ink3); margin-top: 3px; }
.stat.is-warn .v { color: var(--warn); }
.stat.is-danger .v { color: var(--danger); }
.stat.is-ok .v { color: var(--ok); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  background: #fafbfc;
  text-align: left;
  font-size: 12.5px; font-weight: 600; color: var(--ink2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }
.col-check { width: 38px; }
.col-act { width: 1%; white-space: nowrap; }
.cell-name { font-weight: 500; }
.cell-sub { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

.thumb {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  object-fit: cover; background: var(--line2); border: 1px solid var(--line);
  display: block;
}
.thumb-ph {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: repeating-linear-gradient(45deg, #f2f5f8, #f2f5f8 5px, #e9eef3 5px, #e9eef3 10px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 10px; color: var(--ink3);
}

/* ---------------- 徽标 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 500;
  padding: 2px 8px; border-radius: 99px;
  background: var(--line2); color: var(--ink2);
  white-space: nowrap;
}
.tag-ok { background: var(--ok-l); color: var(--ok); }
.tag-warn { background: var(--warn-l); color: var(--warn); }
.tag-danger { background: var(--danger-l); color: var(--danger); }
.tag-brand { background: var(--brand-l); color: var(--brand); }
.tag-row { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar .grow { flex: 1; min-width: 140px; }
.search-box { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.search-box input { padding-left: 32px; }
.search-box svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; fill: none; stroke: var(--ink3); stroke-width: 1.6;
}

/* ---------------- 开关 ---------------- */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 38px; height: 22px; border-radius: 99px;
  background: #cfd8e3; position: relative; transition: background .18s;
  flex: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .18s;
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch .label { font-size: 13.5px; }

/* ---------------- 空状态 ---------------- */
.empty { padding: 52px 20px; text-align: center; color: var(--ink3); }
.empty svg { width: 44px; height: 44px; fill: none; stroke: #c6cfd8; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.empty h4 { font-size: 14.5px; color: var(--ink2); margin-bottom: 5px; }
.empty p { font-size: 13px; }

/* ---------------- 遮罩 / 动画（商品编辑已改整页，这里只留通用工具） ---------------- */
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.sub-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 18px; background: #fcfdfe; }
.sub-card > h4 { font-size: 13.5px; color: var(--ink2); margin-bottom: 13px; display: flex; align-items: center; gap: 7px; }
.sub-card > h4::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--brand); }

/* 动态行（卖点） */
.dyn-row { display: flex; gap: 8px; margin-bottom: 7px; align-items: center; }
.dyn-row input { flex: 1; }
.btn-add-row {
  border: 1px dashed #c3cdd8; background: transparent; color: var(--brand);
  padding: 7px; border-radius: var(--r-sm); width: 100%;
  font-size: 13px; font-weight: 500;
}
.btn-add-row:hover { background: var(--brand-l); border-color: var(--brand); }

/* SKU 规格行编辑器 —— 表格形态，列宽与表头 .spec-head 一致 */
.spec-head {
  display: grid;
  grid-template-columns: 2fr 1fr .8fr .8fr 1.4fr 74px 32px;
  gap: 6px;
  padding: 0 5px 6px;
  font-size: 11.5px;
  color: var(--ink3);
  font-weight: 500;
}
.spec-edit-row {
  display: grid;
  grid-template-columns: 2fr 1fr .8fr .8fr 1.4fr 74px 32px;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 5px;
  margin-bottom: 7px;
  background: #fff;
}
.spec-edit-row:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.spec-edit-row input { width: 100%; min-width: 0; }
.spec-edit-row .icon-btn { flex: none; }
.spec-edit-row .sr-img {
  position: relative; width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px dashed #c3cdd8; overflow: hidden; display: grid; place-items: center;
  background: var(--line2);
}
.spec-edit-row .sr-img img { width: 100%; height: 100%; object-fit: cover; }
.spec-edit-row .sr-img-ph { font-size: 10px; color: var(--ink3); }
.spec-edit-row .sr-img .icon-btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,.78); border: none; opacity: 0; transition: opacity .15s;
}
.spec-edit-row .sr-img:hover .icon-btn { opacity: 1; }
.pe-price-tip {
  margin-top: 10px; padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--brand-l); color: var(--brand-d); font-size: 12.8px; line-height: 1.6;
}
.pe-tip-warn { color: var(--danger); font-weight: 500; }

.detail-area { min-height: 132px; line-height: 1.7; }

/* ---------------- 商品编辑页（整页） ---------------- */
.pedit { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.pedit-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 26px;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.pedit-head-l { display: flex; align-items: center; gap: 12px; }
.pedit-head h3 { font-size: 16px; }
.pedit-head p { font-size: 12px; color: var(--ink3); margin-top: 1px; }
.pedit-head-r { display: flex; align-items: center; gap: 9px; }
.pedit-back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pedit-dirty {
  font-size: 12px; color: var(--warn); background: var(--warn-l);
  padding: 3px 10px; border-radius: 999px;
}
.pedit-body { padding: 20px 26px 60px; }

.pe-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pe-main { min-width: 0; }
.pe-main .sub-card + .sub-card { margin-top: 16px; }
.pe-step {
  display: inline-grid; place-items: center;
  width: 19px; height: 19px; margin-right: 7px;
  border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 11.5px; font-style: normal; font-weight: 600;
  vertical-align: 1px;
}
.pe-side { position: sticky; top: 76px; display: grid; gap: 14px; }
.pe-side-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.pe-side-card h5 { font-size: 12.5px; color: var(--ink2); margin-bottom: 10px; }
.pe-side-danger { border-color: #f0c8c4; background: #fffafa; }

/* 右侧小程序卡片预览 */
.pe-pv-card {
  border: 1px solid var(--line2); border-radius: var(--r-md);
  overflow: hidden; background: #fff;
}
.pe-pv-img {
  aspect-ratio: 1; background: var(--line2);
  display: grid; place-items: center; color: var(--ink3); font-size: 12px;
}
.pe-pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pe-pv-name { padding: 9px 10px 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.pe-pv-price { padding: 5px 10px 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.pe-pv-sub { padding: 3px 10px 10px; font-size: 11.5px; color: var(--ink3); }
.pe-pv-specs { margin-top: 10px; border-top: 1px solid var(--line2); padding-top: 9px; }
.pe-pv-specs-h { font-size: 11.5px; color: var(--ink3); margin-bottom: 5px; }
.pe-pv-spec-row {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--ink2); padding: 3px 0;
}
.pe-pv-spec-row b { color: var(--accent); font-weight: 600; }

.pe-danger-zone {
  margin-top: 20px; display: flex; gap: 9px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px dashed var(--line);
}
.pe-danger-zone .btn-danger { margin-left: auto; }

/* 详情正文：富文本 / 纯文本切换 */
.pe-tabs { display: flex; gap: 6px; margin-bottom: 11px; }
.pe-tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink2);
  padding: 6px 13px; border-radius: var(--r-sm); font-size: 13px;
}
.pe-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.pe-rich-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pe-rich-toolbar {
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
  padding: 6px 8px; background: var(--line2); border-bottom: 1px solid var(--line);
}
.pe-rich-toolbar button {
  border: 1px solid transparent; background: transparent; color: var(--ink2);
  padding: 4px 8px; border-radius: 5px; font-size: 12.5px; line-height: 1.4;
}
.pe-rich-toolbar button:hover { background: #fff; border-color: var(--line); color: var(--brand); }
.pe-rich-toolbar button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pe-tb-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.pe-tb-spacer { flex: 1; }
.pe-rich {
  min-height: 260px; padding: 14px 16px; background: #fff;
  font-size: 14px; line-height: 1.8; color: var(--ink); outline: none;
  word-break: break-word;
}
.pe-rich:empty::before { content: attr(data-ph); color: var(--ink3); }
.pe-rich img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.pe-rich h2 { font-size: 18px; margin: 14px 0 8px; }
.pe-rich h3 { font-size: 15.5px; margin: 12px 0 6px; }
.pe-rich p { margin: 6px 0; }
.pe-rich ul, .pe-rich ol { margin: 6px 0; padding-left: 22px; }
.pe-rich table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.pe-rich td, .pe-rich th { border: 1px solid var(--line); padding: 5px 8px; font-size: 13px; }
.pe-source {
  width: 100%; min-height: 260px; border: none; outline: none; padding: 14px 16px;
  font-family: Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.7;
  background: #1e2530; color: #d7e2ee; resize: vertical;
}
.pe-text-wrap textarea { width: 100%; }
/* 富文本全屏 */
body.pe-rich-fs .pe-rich-wrap,
body.pe-rich-fs .pe-source {
  position: fixed; inset: 0; z-index: 90; border-radius: 0;
}
body.pe-rich-fs .pe-rich, body.pe-rich-fs .pe-source { min-height: 100vh; }
body.pe-rich-fs .pe-rich-toolbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 91;
}

/* 图片库选图弹窗 */
.imgpick-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16,24,40,.5); display: grid; place-items: center; padding: 30px;
}
.imgpick {
  width: min(880px, 100%); max-height: 84vh; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.imgpick header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.imgpick header h3 { font-size: 15px; }
.imgpick-body {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px;
}
.imgpick footer { padding: 12px 18px; border-top: 1px solid var(--line); text-align: right; }
.imgpick-item {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: #fff; padding: 0; text-align: left;
}
.imgpick-item:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.imgpick-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--line2); }
.imgpick-item span {
  display: block; padding: 5px 7px; font-size: 11px; color: var(--ink3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 区块字段：图片上传控件 */
.lf-size {
  display: block; font-size: 11.5px; color: var(--warn);
  background: var(--warn-l); border-radius: 4px;
  padding: 3px 8px; margin-bottom: 7px; font-style: normal;
}
.lf-imgfield { display: flex; gap: 11px; align-items: flex-start; }
.lf-imgfield-thumb {
  flex: none; width: 76px; height: 76px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--line2);
  display: grid; place-items: center; overflow: hidden;
  font-size: 11px; color: var(--ink3);
}
.lf-imgfield-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lf-imgfield-side { flex: 1; min-width: 0; }
.lf-imgfield-side .lf-inline { flex-wrap: wrap; }

/* 轮播项：图 + 文字并排 */
.lf-rep-img {
  flex: none; width: 62px; height: 62px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--line2);
  display: grid; place-items: center; overflow: hidden;
  font-size: 10.5px; color: var(--ink3);
}
.lf-rep-img img { width: 100%; height: 100%; object-fit: cover; }
.lf-rep-fields { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }

/* 图片编辑区 */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 10px; }
.img-item { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--line2); }
.img-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.img-item .cover-flag {
  position: absolute; left: 5px; top: 5px;
  background: var(--brand); color: #fff;
  font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
}
.img-item .img-ops {
  position: absolute; inset: auto 0 0 0;
  display: flex; gap: 3px; justify-content: center;
  padding: 5px; background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0; transition: opacity .15s;
}
.img-item:hover .img-ops { opacity: 1; }
.img-ops button {
  width: 24px; height: 24px; border-radius: 5px; border: none;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; font-size: 13px; line-height: 1;
}
.img-ops button:hover { background: #fff; }
.img-add {
  aspect-ratio: 1; border: 1px dashed #c3cdd8; border-radius: var(--r-md);
  background: #fcfdfe; display: grid; place-items: center; gap: 2px;
  color: var(--ink3); font-size: 12px; text-align: center;
}
.img-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-l); }
.img-add span { font-size: 19px; line-height: 1; }

/* 附件（图片库） */
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.att { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.att img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--line2); }
.att .meta { padding: 9px 10px; font-size: 11.5px; color: var(--ink3); }
.att .meta b { display: block; color: var(--ink2); font-size: 12px; font-weight: 500; word-break: break-all; }
.att .ops { display: flex; gap: 5px; padding: 0 10px 10px; }

/* ---------------- 提示条 ---------------- */
.note {
  display: flex; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: 13.2px; line-height: 1.65;
  border: 1px solid;
}
.note + .note { margin-top: 10px; }
.note .ico { flex: none; font-weight: 700; }
.note-info { background: var(--brand-l); border-color: #cfe0ef; color: #0a3f6e; }
.note-warn { background: var(--warn-l); border-color: #efdcb4; color: #7a4e00; }
.note-danger { background: var(--danger-l); border-color: #f0cbc7; color: #8d2620; }
.note-ok { background: var(--ok-l); border-color: #c9e5d3; color: #1f5b38; }

/* 禁用词高亮 */
.hl-word { background: #ffe0e0; color: #a32323; border-radius: 3px; padding: 0 3px; font-weight: 600; }
.word-hit-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.word-hit { font-size: 12px; background: var(--danger-l); color: var(--danger); border: 1px solid #f0cbc7; border-radius: 5px; padding: 1px 7px; }

/* ---------------- 模态框 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,28,38,.42);
  display: grid; place-items: center; z-index: 80; padding: 20px;
  animation: fade .15s ease;
}
.modal {
  background: var(--card); border-radius: var(--r-lg);
  padding: 22px 24px 18px; width: 100%; max-width: 396px;
  box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 16px; margin-bottom: 8px; }
.modal p { font-size: 13.5px; color: var(--ink2); line-height: 1.65; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 20px; }

/* ---------------- 轻提示 ---------------- */
.toasts {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
}
.toast {
  background: #22303e; color: #fff;
  padding: 10px 15px; border-radius: var(--r-md);
  font-size: 13.4px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .2s ease;
  max-width: 380px;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.toast.is-ok { background: #1f5b38; }
.toast.is-err { background: #8d2620; }
.toast.is-warn { background: #7a4e00; }

/* ---------------- 小工具 ---------------- */
.muted { color: var(--ink3); }
.small { font-size: 12.5px; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
hr.sep { border: none; border-top: 1px solid var(--line2); margin: 20px 0; }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 13.4px; padding: 5px 0; }
.checkline .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex: none; background: var(--ink3); }
.checkline.ok .dot { background: var(--ok); }
.checkline.todo .dot { background: var(--accent); }
.loading { padding: 40px; text-align: center; color: var(--ink3); font-size: 13px; }

/* ============================================================
   外观主题 / 首页排版
   ------------------------------------------------------------
   .pv-* 是「手机预览」，里面的颜色全部走 --c-* 变量，
   变量由 app.js 的 themeStyleAttr() 从主题 tokens 注入到 .pv-phone 上，
   所以预览和微信小程序用的是同一套变量名、同一套语义。
   ============================================================ */

.ap-wrap, .ly-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1180px) {
  .ap-wrap, .ly-wrap { grid-template-columns: minmax(0, 1fr); }
}

.ap-note, .ly-note {
  background: var(--brand-l);
  border: 1px solid #d3e2f0;
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13px;
  color: #17456b;
  margin-bottom: 16px;
  line-height: 1.7;
}
.ly-dirty {
  display: inline-block;
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  background: var(--accent-l);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 9px;
}

/* ---------------- 动效档位 ---------------- */
.ap-level { margin-bottom: 18px; }
.ap-level-title { font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.ap-level-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) { .ap-level-list { grid-template-columns: repeat(2, 1fr); } }
.ap-level-item {
  display: block;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  padding: 11px 12px;
  cursor: pointer;
  transition: .15s;
}
.ap-level-item input { display: none; }
.ap-level-item b { display: block; font-size: 13.5px; }
.ap-level-item span { display: block; font-size: 11.8px; color: var(--ink3); line-height: 1.5; margin-top: 3px; }
.ap-level-item.on { border-color: var(--brand); background: var(--brand-l); box-shadow: 0 0 0 3px rgba(14, 76, 126, .08); }

/* ---------------- 主题卡片 ---------------- */
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 14px; }
.ap-card {
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  transition: .15s;
  box-shadow: var(--shadow-sm);
}
.ap-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ap-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 76, 126, .12); }

.ap-thumb {
  height: 118px;
  padding: 10px 12px;
  background-color: var(--c-bg, #fff);
  background-image: var(--c-bg-img, none);
  background-size: cover;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.ap-thumb-hero {
  height: 34px;
  border-radius: var(--c-r, 8px);
  background: var(--c-brand, #0e4c7e);
  opacity: .92;
}
.ap-thumb-row { display: flex; gap: 6px; }
.ap-thumb-row i {
  flex: 1;
  height: 20px;
  border-radius: var(--c-rsm, 5px);
  background: var(--c-chip, #eef1f5);
  border: 1px solid var(--c-card-bd, transparent);
}
.ap-thumb-card {
  flex: 1;
  border-radius: var(--c-r, 8px);
  background: var(--c-card, #fff);
  border: 1px solid var(--c-card-bd, transparent);
  box-shadow: var(--c-shadow, none);
}

.ap-card-b { padding: 11px 13px 13px; border-top: 1px solid var(--line2); }
.ap-card-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.ap-on-tag {
  font-style: normal;
  font-size: 11px;
  background: var(--ok-l);
  color: var(--ok);
  border-radius: 999px;
  padding: 1px 8px;
}
.ap-card-desc { font-size: 12.2px; color: var(--ink2); line-height: 1.55; margin-top: 4px; min-height: 38px; }
.ap-card-fx { font-size: 11.4px; color: var(--ink3); margin-top: 6px; letter-spacing: .2px; }

/* ---------------- 预览 ---------------- */
.ap-right, .ly-right { position: sticky; top: 18px; }
.ap-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}
.ap-preview-head span { font-size: 12px; color: var(--ink3); }
.ap-preview-foot { font-size: 11.8px; color: var(--ink3); line-height: 1.65; margin-top: 12px; }

.pv-phone {
  width: 100%;
  height: 620px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg, #fff);
  background-image: var(--c-bg-img, none);
  background-size: cover;
  background-position: center top;
  color: var(--c-tx, #111);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .18);
  border: 1px solid rgba(0, 0, 0, .08);
  font-size: 12.5px;
}
.pv-nav {
  flex: none;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13.5px;
}
.pv-body { flex: 1; overflow-y: auto; padding-bottom: 14px; }
.pv-body::-webkit-scrollbar { width: 6px; }
.pv-body::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, .3); border-radius: 3px; }
.pv-tab {
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--c-line, #eee);
  font-size: 11.5px;
}
.pv-empty { padding: 60px 20px; text-align: center; color: var(--c-tx3, #999); }

.pv-hero {
  padding: 20px 18px 24px;
  border-bottom: 1px solid var(--c-card-bd, transparent);
  background-image: var(--c-bg-img, none);
  background-size: cover;
  background-position: center;
}
.pv-hero-name { font-size: 21px; font-weight: 700; color: var(--c-tx, #111); letter-spacing: .5px; }
.pv-hero-sub { font-size: 13px; color: var(--c-tx2, #555); margin-top: 5px; }
.pv-hero-line { font-size: 11px; color: var(--c-tx3, #999); margin-top: 12px; letter-spacing: .5px; }

.pv-sec { padding: 14px 14px 0; }
.pv-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.pv-sec-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-tx, #111);
  display: flex;
  align-items: center;
  margin-bottom: 9px;
}
.pv-sec-t::before {
  content: "";
  width: 3px; height: 13px; border-radius: 2px;
  background: var(--c-brand, #0e4c7e);
  margin-right: 7px;
}
.pv-sec-h .pv-sec-t { margin-bottom: 0; }
.pv-more { font-size: 11.5px; color: var(--c-tx3, #999); }

.pv-hl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--c-card, #fff);
  border: 1px solid var(--c-card-bd, transparent);
  border-radius: var(--c-r, 8px);
  padding: 12px 6px;
  box-shadow: var(--c-shadow, none);
}
.pv-hl2 { grid-template-columns: repeat(2, 1fr); }
.pv-hl-i { text-align: center; padding: 0 4px; }
.pv-hl-k { font-size: 12px; font-weight: 600; color: var(--c-brand, #0e4c7e); }
.pv-hl-v { font-size: 10px; color: var(--c-tx3, #999); line-height: 1.45; margin-top: 3px; }

.pv-banner {
  height: 92px;
  border-radius: var(--c-r, 8px);
  background: linear-gradient(120deg, var(--c-brand, #0e4c7e) 0%, var(--c-accent, #dd6a10) 130%);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.pv-banner-t { color: #fff; font-size: 15px; font-weight: 600; }
.pv-banner-s { color: rgba(255, 255, 255, .82); font-size: 11.5px; margin-top: 4px; }
.pv-banner-dots { position: absolute; right: 12px; bottom: 8px; display: flex; gap: 4px; }
.pv-banner-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.pv-banner-dots i.on { background: #fff; }

.pv-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 4px;
  background: var(--c-card, #fff);
  border: 1px solid var(--c-card-bd, transparent);
  border-radius: var(--c-r, 8px);
  padding: 14px 6px 8px;
  box-shadow: var(--c-shadow, none);
}
.pv-cat { text-align: center; }
.pv-cat-i {
  width: 40px; height: 40px;
  border-radius: var(--c-rsm, 8px);
  background: var(--c-chip, #eef1f5);
  color: var(--c-brand, #0e4c7e);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  font-size: 13px; font-weight: 600;
}
.pv-cat-n { font-size: 11.5px; color: var(--c-tx, #111); }

.pv-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; }
.pv-row .pv-pc { flex: none; width: 116px; }
.pv-grid { display: grid; gap: 9px; }
.pv-grid2 { grid-template-columns: repeat(2, 1fr); }
.pv-grid3 { grid-template-columns: repeat(3, 1fr); }
.pv-pc {
  background: var(--c-card, #fff);
  border: 1px solid var(--c-card-bd, transparent);
  border-radius: var(--c-r, 8px);
  overflow: hidden;
  box-shadow: var(--c-shadow, none);
}
.pv-pc-img { height: 76px; background: var(--c-chip, #eef1f5); }
.pv-pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--c-tx3, #bbb); font-size: 11px; }
.pv-pc-name { font-size: 11.5px; color: var(--c-tx, #111); padding: 7px 8px 0; line-height: 1.4; }
.pv-pc-price { font-size: 12px; font-weight: 700; color: var(--c-accent, #c94f12); padding: 3px 8px 8px; }

.pv-it {
  display: flex;
  background: var(--c-card, #fff);
  border: 1px solid var(--c-card-bd, transparent);
  border-radius: var(--c-r, 8px);
  overflow: hidden;
  box-shadow: var(--c-shadow, none);
}
.pv-it-top { flex-direction: column; }
.pv-it-img { width: 96px; height: 76px; flex: none; background: var(--c-chip, #eef1f5); }
.pv-it-top .pv-it-img { width: 100%; height: 84px; }
.pv-it-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-it-b { padding: 10px 12px; min-width: 0; }
.pv-it-t { font-size: 13px; font-weight: 600; color: var(--c-tx, #111); }
.pv-it-x { font-size: 11px; color: var(--c-tx2, #666); line-height: 1.6; margin-top: 4px; }

.pv-notice {
  display: flex; gap: 7px;
  background: var(--c-chip, #eef1f5);
  border: 1px solid var(--c-card-bd, transparent);
  border-radius: var(--c-rsm, 6px);
  padding: 9px 11px;
  font-size: 11px;
  color: var(--c-chip-ink, #567);
  line-height: 1.6;
}
.pv-notice b { color: var(--c-brand, #0e4c7e); }

.pv-card {
  background: var(--c-card, #fff);
  border: 1px solid var(--c-card-bd, transparent);
  border-radius: var(--c-r, 8px);
  padding: 11px 13px;
  box-shadow: var(--c-shadow, none);
}
.pv-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; padding: 4px 0; }
.pv-kv span { color: var(--c-tx3, #999); flex: none; }
.pv-kv b { color: var(--c-tx, #111); font-weight: 500; text-align: right; }

.pv-legal { text-align: center; font-size: 10.5px; color: var(--c-tx3, #aaa); line-height: 1.8; padding: 10px 4px 4px; }
.pv-legal-no { color: var(--c-brand, #0e4c7e); }
.pv-line { height: 1px; background: var(--c-line, #eee); margin: 6px 0; }

/* ---------------- 排版：区块列表 ---------------- */
.ly-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.ly-item {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: .15s;
}
.ly-item.open { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 76, 126, .08); }
.ly-item.off { opacity: .58; background: var(--line2); }
.ly-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
.ly-ico {
  width: 30px; height: 30px; flex: none;
  border-radius: var(--r-sm);
  background: var(--brand-l);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.ly-main { flex: 1; min-width: 0; }
.ly-title { font-size: 13.6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly-type { font-size: 11.5px; color: var(--ink3); margin-top: 1px; }
.ly-ops { display: flex; gap: 3px; flex: none; }
.ly-ops .icon-btn { width: 27px; height: 27px; font-size: 13px; }
.icon-danger:hover { color: var(--danger); background: var(--danger-l); }
.ly-empty { padding: 30px; text-align: center; color: var(--ink3); font-size: 13px; border: 1px dashed var(--line); border-radius: var(--r-md); }

.ly-editor {
  border-top: 1px solid var(--line2);
  padding: 13px 14px 15px;
  background: #fafbfc;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.ly-add-title { font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 9px; }
.ly-add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
.ly-add-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px dashed var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  padding: 11px 6px;
  font-size: 12px;
  color: var(--ink2);
  transition: .15s;
}
.ly-add-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-l); }
.ly-add-btn b { font-size: 15px; }

/* ---------------- 排版：字段表单 ---------------- */
.lf-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lf-col { flex-direction: column; align-items: stretch; gap: 6px; }
.lf-label { font-size: 12.5px; color: var(--ink2); flex: none; width: 132px; }
.lf-col .lf-label { width: auto; }
.lf-label em { font-style: normal; color: var(--ink3); font-size: 11.4px; margin-left: 5px; }
.lf-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-size: 13px;
  background: #fff;
}
.lf-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 76, 126, .09); }
.lf-textarea { resize: vertical; line-height: 1.6; }
.lf-inline { display: flex; gap: 8px; }
.lf-pick { flex: none; width: 168px; }
.lf-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.lf-switch input { display: none; }
.lf-switch span {
  position: absolute; inset: 0; border-radius: 999px; background: #d3dae1; transition: .18s; cursor: pointer;
}
.lf-switch span::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.lf-switch input:checked + span { background: var(--brand); }
.lf-switch input:checked + span::after { transform: translateX(18px); }

.lf-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lf-chips-scroll { max-height: 168px; overflow-y: auto; padding: 2px; }
.lf-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.2px;
  color: var(--ink2);
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: .12s;
}
.lf-chip input { display: none; }
.lf-chip.on { border-color: var(--brand); background: var(--brand-l); color: var(--brand); font-weight: 500; }
.lf-tip { font-style: normal; font-size: 11.4px; color: var(--ink3); }
.lf-empty { font-size: 12px; color: var(--ink3); }

.lf-repeat { display: flex; flex-direction: column; gap: 7px; }
.lf-rep-row { display: flex; gap: 7px; align-items: center; }
.lf-rep-banner { flex-wrap: wrap; }
.lf-rep-banner .lf-input { flex: 1 1 150px; }
.lf-del { width: 28px; height: 28px; flex: none; font-size: 15px; color: var(--ink3); }
.lf-del:hover { color: var(--danger); background: var(--danger-l); }

/* ---- 站点设置 · 业务员名单 ---- */
.staff-rows { display: flex; flex-direction: column; gap: 8px; }
.staff-row {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.staff-row [data-staff-id] { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.staff-row .btn-ghost { color: var(--ink3); }
.staff-row .btn-ghost:hover { color: var(--danger); background: var(--danger-l); border-color: var(--danger-l); }
@media (max-width: 860px) {
  .staff-row { grid-template-columns: 1fr 1fr; }
  .staff-row [data-staff-phone] { grid-column: 1 / -1; }
}
