/* ============================================================
   盛森养老 · 运营管理台
   B 端设计系统：暖白底 / 品牌橙点缀 / 13px 数据密度
   ============================================================ */
:root {
  --brand: #f0821e;
  --brand-deep: #c4600c;
  --brand-soft: #fff4e8;
  --brand-line: #f6cfaa;
  --green: #2e7d6b;
  --green-soft: #e8f3ef;
  --blue: #3e6fe0;
  --blue-soft: #edf2fe;
  --red: #d93a3d;
  --red-soft: #fdecec;
  --ink: #1d2126;
  --ink2: #5a6470;
  --ink3: #8e97a3;
  --ink4: #b4bbc4;
  --line: #e8e5df;
  --line2: #f1eee9;
  --bg: #f5f3ef;
  --card: #ffffff;
  --r-lg: 16px;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 33, 38, 0.04), 0 10px 26px -18px rgba(29, 33, 38, 0.22);
  --shadow-lg: 0 24px 60px -28px rgba(29, 33, 38, 0.38);
  --side-w: 230px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: #ffdcb8; }
.num, b.num { font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d8d4cc; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c5c0b6; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid rgba(240, 130, 30, 0.5); outline-offset: 2px; }

/* ==================== 登录 ==================== */
.login { display: flex; min-height: 100vh; background: #fff; }
.login-left {
  position: relative; width: 52%; min-width: 520px; padding: 56px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #191d21; color: #fff; overflow: hidden;
}
.login-left:before {
  content: ""; position: absolute; width: 780px; height: 780px; right: -300px; top: -320px;
  background: radial-gradient(circle, rgba(240, 130, 30, 0.55), rgba(240, 130, 30, 0) 62%);
}
.login-left:after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 20%, #000, transparent 72%);
}
.ll-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.ll-top .mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, #f9a04c, #d9700d); box-shadow: 0 8px 22px -10px rgba(240, 130, 30, .9);
}
.ll-top b { font-size: 15px; letter-spacing: .04em; }
.ll-top span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .5); letter-spacing: .16em; }
.ll-body { position: relative; z-index: 2; max-width: 520px; }
.ll-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .18em;
  color: #f6b877; border: 1px solid rgba(246, 184, 119, .32); border-radius: 999px; padding: 6px 12px;
}
.ll-body h1 { font-size: 38px; line-height: 1.28; margin: 22px 0 16px; letter-spacing: -.5px; font-weight: 700; }
.ll-body h1 em { font-style: normal; color: #f9a04c; }
.ll-body p { color: rgba(255, 255, 255, .58); font-size: 13.5px; line-height: 1.85; max-width: 430px; margin: 0; }
.ll-stats { display: flex; gap: 34px; margin-top: 42px; }
.ll-stats b { display: block; font-size: 24px; font-weight: 650; letter-spacing: -.4px; }
.ll-stats span { font-size: 11.5px; color: rgba(255, 255, 255, .45); letter-spacing: .06em; }
.ll-foot { position: relative; z-index: 2; font-size: 11.5px; color: rgba(255, 255, 255, .32); display: flex; gap: 18px; }

.login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 344px; }
.login-box h2 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.2px; }
.login-box > p { margin: 0 0 34px; color: var(--ink3); font-size: 13px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--ink2); margin-bottom: 7px; font-weight: 500; }
.field .wrap { position: relative; }
.field .wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink4); }
.field input {
  width: 100%; height: 44px; border-radius: 11px; border: 1px solid var(--line);
  background: #fcfbf9; padding: 0 12px 0 38px; transition: .16s; font-size: 13.5px;
}
.field input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(240, 130, 30, .13); outline: 0; }
.login-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 22px; font-size: 12px; color: var(--ink2); }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check i { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line); display: grid; place-items: center; }
.check.on i { background: var(--brand); border-color: var(--brand); color: #fff; }
.login-btn {
  width: 100%; height: 46px; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #f79a3f, #e27509); box-shadow: 0 12px 26px -14px rgba(226, 117, 9, .95);
  transition: .18s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(226, 117, 9, .95); }
.login-btn:disabled { opacity: .6; transform: none; cursor: default; }
.demo-tip {
  margin-top: 24px; padding: 12px 14px; border-radius: 11px; background: var(--brand-soft);
  border: 1px dashed var(--brand-line); font-size: 12px; color: #8b5220; line-height: 1.7;
}
.demo-tip b { font-family: ui-monospace, Menlo, monospace; }
.demo-tip a { color: var(--brand-deep); font-weight: 600; border-bottom: 1px solid var(--brand-line); cursor: pointer; }

/* ==================== 外壳 ==================== */
.shell { display: flex; min-height: 100vh; }
.side {
  width: var(--side-w); flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { height: 70px; display: flex; align-items: center; gap: 11px; padding: 0 18px; border-bottom: 1px solid var(--line2); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, #f9a04c, #d9700d); box-shadow: 0 6px 16px -8px rgba(240, 130, 30, .95);
}
.brand h1 { font-size: 14.5px; margin: 0; letter-spacing: .02em; }
.brand span { display: block; font-size: 10.5px; color: var(--ink3); letter-spacing: .14em; margin-top: 1px; }

.nav { flex: 1; overflow-y: auto; padding: 6px 10px 14px; }
.nav-grp { margin-top: 16px; }
.nav-grp:first-child { margin-top: 8px; }
.nav-grp > em {
  display: block; font-style: normal; font-size: 10.5px; letter-spacing: .12em; color: var(--ink4);
  padding: 0 10px; margin-bottom: 7px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; margin-bottom: 2px;
  border-radius: 10px; color: var(--ink2); font-size: 13.5px; transition: .14s; cursor: pointer;
}
.nav-item svg { flex: none; opacity: .85; }
.nav-item:hover { background: #f8f6f2; color: var(--ink); }
.nav-item.on {
  background: var(--brand-soft); color: var(--brand-deep); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}
.nav-item.on svg { opacity: 1; color: var(--brand); }
.nav-item .cnt {
  margin-left: auto; min-width: 19px; height: 18px; padding: 0 5px; border-radius: 6px;
  background: #f0eee9; color: var(--ink2); font-size: 10.5px; font-weight: 600;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.nav-item.on .cnt { background: #ffe2c4; color: var(--brand-deep); }
.nav-item .cnt.alert { background: #fdecec; color: var(--red); }

.side-foot { padding: 12px; border-top: 1px solid var(--line2); }
.support {
  border-radius: 12px; padding: 13px 13px 12px; background: linear-gradient(150deg, #fff7ee, #fdf1e2);
  border: 1px solid #f7e3cc;
}
.support b { font-size: 12.5px; display: block; }
.support p { margin: 4px 0 9px; font-size: 11.5px; color: #96633a; line-height: 1.6; }
.support a { font-size: 11.5px; color: var(--brand-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.ver { text-align: center; font-size: 10.5px; color: var(--ink4); margin-top: 10px; letter-spacing: .04em; }

/* ---- 侧栏收起（点顶栏三横杠切换，状态存 localStorage） ---- */
.side { transition: width .2s cubic-bezier(.2, .8, .2, 1); }
.shell.mini { --side-w: 68px; }
.shell.mini .brand { padding: 0; justify-content: center; }
.shell.mini .brand > div:not(.mark) { display: none; }
.shell.mini .nav { padding: 6px 8px 14px; }
.shell.mini .nav-grp { margin-top: 10px; }
.shell.mini .nav-grp > em { display: none; }
.shell.mini .nav-item { justify-content: center; padding: 0; position: relative; }
.shell.mini .nav-item span { display: none; }
.shell.mini .nav-item .cnt {
  position: absolute; top: 3px; right: 3px; margin: 0; min-width: 15px; height: 15px;
  padding: 0 4px; border-radius: 5px; font-size: 9.5px;
}
.shell.mini .side-foot { padding: 10px 8px; }
.shell.mini .support, .shell.mini .ver { display: none; }
.hamb { flex: none; }
.shell.mini .hamb { color: var(--brand-deep); background: var(--brand-soft); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 24px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.crumb h1 { font-size: 15.5px; margin: 0; letter-spacing: .01em; }
.crumb p { margin: 1px 0 0; font-size: 11.5px; color: var(--ink3); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tsearch { position: relative; margin-right: 6px; }
.tsearch svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink4); }
.tsearch input {
  width: 216px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #faf9f6; padding: 0 10px 0 32px; font-size: 12.5px; transition: .16s;
}
.tsearch input:focus { width: 260px; border-color: var(--brand); background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(240, 130, 30, .1); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink2); position: relative; transition: .14s;
}
.icon-btn:hover { background: #f5f2ed; color: var(--ink); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; margin-left: 4px; cursor: pointer; transition: .14s; }
.user-chip:hover { background: #f5f2ed; }
.user-chip .ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ffe3c6; color: var(--brand-deep); font-size: 12px; font-weight: 700; }
.user-chip b { display: block; font-size: 12.5px; line-height: 1.2; }
.user-chip span { display: block; font-size: 10.5px; color: var(--ink3); }

.view { padding: 20px 24px 40px; max-width: 1560px; width: 100%; animation: fade .26s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ==================== 通用块 ==================== */
/* 页面标题统一放在顶栏面包屑里，内容区不再重复大标题 */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-hd { display: flex; align-items: center; gap: 10px; padding: 15px 18px 12px; }
.card-hd h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.card-hd small { font-size: 11.5px; color: var(--ink3); }
.card-hd .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-bd { padding: 0 18px 18px; }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; } .span-12 { grid-column: span 12; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 9px; font-size: 12.5px; font-weight: 500;
  border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn svg { margin-left: -1px; }
.btn.primary { background: linear-gradient(135deg, #f79a3f, #e27509); color: #fff; box-shadow: 0 8px 18px -12px rgba(226, 117, 9, .9); }
.btn.primary:hover { filter: brightness(1.03); box-shadow: 0 10px 22px -12px rgba(226, 117, 9, .95); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink2); }
.btn.ghost:hover { border-color: #d9d3c9; color: var(--ink); background: #fcfbf9; }
.btn.soft { background: var(--brand-soft); color: var(--brand-deep); }
.btn.soft:hover { background: #ffe9d2; }
.btn.danger { background: #fff; border-color: #f0c9c9; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* 表单 */
.inp, .sel {
  height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fcfbf9;
  padding: 0 11px; font-size: 12.5px; transition: .15s; min-width: 0;
}
.sel { padding-right: 26px; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e97a3' stroke-width='2.4' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 9px center; }
.inp:focus, .sel:focus { border-color: var(--brand); background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(240, 130, 30, .11); }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink4); pointer-events: none; }
.search-box .inp { padding-left: 31px; width: 230px; }
textarea.inp { height: auto; padding: 9px 11px; line-height: 1.7; resize: vertical; }

.seg { display: inline-flex; padding: 3px; background: #efede8; border-radius: 10px; gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; color: var(--ink2); transition: .14s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(29, 33, 38, .12); }

.switch { width: 34px; height: 20px; border-radius: 999px; background: #dedad3; position: relative; transition: .18s; flex: none; }
.switch:after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .18s; }
.switch.on { background: var(--brand); }
.switch.on:after { left: 16px; }

/* 表格 */
.tb-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; }
.tb th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink3); letter-spacing: .02em;
  padding: 10px 12px; background: #fbfaf7; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}
.tb th:first-child, .tb td:first-child { padding-left: 18px; }
.tb th:last-child, .tb td:last-child { padding-right: 18px; }
.tb td { padding: 12px; border-bottom: 1px solid var(--line2); font-size: 12.5px; vertical-align: middle; }
.tb tbody tr { transition: background .12s; }
.tb tbody tr:hover { background: #fdfbf8; }
.tb tbody tr:last-child td { border-bottom: 0; }
.tb .t-right { text-align: right; }
.tb .t-center { text-align: center; }
.tb .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; letter-spacing: -.02em; }
.tb .sub { display: block; color: var(--ink3); font-size: 11px; margin-top: 2px; }
.tb .strong { font-weight: 600; }
.tb .muted { color: var(--ink3); }

.thumb { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; overflow: hidden; }
.thumb img { width: 78%; height: 78%; object-fit: contain; }
.thumb.lg { width: 52px; height: 52px; border-radius: 12px; }
.cell-flex { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-flex .txt { min-width: 0; }
.cell-flex .txt b { display: block; font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.cell-flex .txt span { display: block; font-size: 11px; color: var(--ink3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.tag:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .9; }
.tag.plain:before { display: none; }
.tag.orange { background: var(--brand-soft); color: #b5650d; }
.tag.blue { background: var(--blue-soft); color: #2f5cc4; }
.tag.green { background: var(--green-soft); color: #26695a; }
.tag.grey { background: #f2f0ec; color: #78818c; }
.tag.red { background: var(--red-soft); color: #b93336; }
.tag.gold { background: linear-gradient(135deg, #fff4dc, #ffe9bf); color: #96660f; }

.link { color: var(--brand-deep); font-weight: 500; cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.link.mute { color: var(--ink2); }
.link.danger { color: var(--red); }
.row-acts { display: flex; align-items: center; gap: 12px; white-space: nowrap; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.pager .total { font-size: 12px; color: var(--ink3); }
.pager .pages { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pager .pg { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 7px; font-size: 12px; color: var(--ink2); display: grid; place-items: center; transition: .13s; }
.pager .pg:hover { background: #f5f2ed; }
.pager .pg.on { background: var(--ink); color: #fff; font-weight: 600; }
.pager .pg:disabled { opacity: .35; cursor: default; }
.pager select { height: 28px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 12px; padding: 0 4px; color: var(--ink2); }

/* ==================== 看板 ==================== */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { position: relative; overflow: hidden; }
.kpi .in { padding: 16px 18px 14px; }
.kpi .label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
.kpi .label i { font-style: normal; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--ink4); color: var(--ink4); font-size: 9px; display: grid; place-items: center; cursor: help; }
.kpi .val { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; }
.kpi .val b { font-size: 27px; font-weight: 650; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.kpi .val b small { font-size: 14px; font-weight: 500; color: var(--ink3); margin-left: 2px; }
.kpi .delta { font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 5px; }
.kpi .delta.up { color: #26695a; background: #eaf4f0; }
.kpi .delta.down { color: #b93336; background: #fdeeee; }
.kpi .delta.flat { color: var(--ink3); background: #f3f1ec; }
.kpi .foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink3); }
.kpi .spark { margin-left: auto; }
.kpi .progress { height: 5px; border-radius: 4px; background: #f1eee8; margin-top: 10px; overflow: hidden; }
.kpi .progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f9a04c, #e27509); }
.kpi.accent { background: linear-gradient(150deg, #fffaf4, #fff); border-color: #f7e3cc; }
.kpi.accent:after { content: ""; position: absolute; right: -40px; top: -60px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 130, 30, .13), transparent 68%); }

.chart-legend { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--ink2); }
.chart-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; }
.legend-list { display: flex; flex-direction: column; gap: 2px; }
.legend-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12px; }
.legend-row .dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.legend-row .nm { color: var(--ink2); }
.legend-row .vl { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.legend-row .pc { width: 42px; text-align: right; color: var(--ink3); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 18px; padding: 4px 0 2px; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { display: block; font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.donut-center span { font-size: 11px; color: var(--ink3); }

.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--line2); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .idx { width: 18px; font-size: 11.5px; font-weight: 700; color: var(--ink4); font-variant-numeric: tabular-nums; text-align: center; flex: none; }
.rank-row .idx.top1 { color: #d9861a; } .rank-row .idx.top2 { color: #8f97a2; } .rank-row .idx.top3 { color: #b17845; }
.rank-row .meta { flex: 1; min-width: 0; }
.rank-row .meta b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .meta .bar { height: 4px; border-radius: 3px; background: #f2efe9; margin-top: 6px; overflow: hidden; }
.rank-row .meta .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffc58a, #f0821e); }
.rank-row .amt { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-row .amt span { display: block; font-size: 10.5px; color: var(--ink3); font-weight: 400; text-align: right; }

.todo { display: flex; flex-direction: column; gap: 2px; }
.todo-row { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-radius: 9px; cursor: pointer; transition: .14s; }
.todo-row:hover { background: #fbf8f3; }
.todo-row .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.todo-row .ic.orange { background: var(--brand-soft); color: var(--brand-deep); }
.todo-row .ic.blue { background: var(--blue-soft); color: var(--blue); }
.todo-row .ic.green { background: var(--green-soft); color: var(--green); }
.todo-row .ic.red { background: var(--red-soft); color: var(--red); }
.todo-row .t { font-size: 12.5px; }
.todo-row .t span { display: block; font-size: 10.5px; color: var(--ink3); margin-top: 1px; }
.todo-row .n { margin-left: auto; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.todo-row .arrow { color: var(--ink4); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line2); }
.quick button {
  height: 34px; border-radius: 9px; border: 1px dashed #ddd7cd; font-size: 12px; color: var(--ink2);
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: .14s; background: #fff;
}
.quick button:hover { border-color: var(--brand-line); color: var(--brand-deep); background: #fffaf4; }

/* ==================== 筛选栏 ==================== */
.filter-bar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.filter-bar .spacer { margin-left: auto; }
/* 筛选条右侧控件组：搜索 + 下拉 + 操作按钮。整组 margin-left:auto，
   放不下时整组换到下一行并保持右对齐，不会只剩按钮掉到下一行左侧 */
.fb-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; flex-wrap: wrap; }
/* 操作按钮跟在筛选条件后面，与搜索框同一行 */
.bar-acts {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-left: 3px; padding-left: 12px; border-left: 1px solid var(--line2);
}
.bar-note { font-size: 11.5px; color: var(--ink3); display: inline-flex; align-items: center; gap: 6px; }
.bar-note svg { color: var(--ink4); }
.chip-tabs { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; color: var(--ink2);
  display: inline-flex; align-items: center; gap: 6px; transition: .13s;
}
.chip:hover { background: #f6f3ee; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; font-weight: 500; }
.chip.on .cnt { background: rgba(255, 255, 255, .18); color: #fff; }
.chip .cnt { font-size: 10.5px; padding: 0 5px; min-width: 18px; height: 17px; border-radius: 5px; background: #f0ede7; color: var(--ink2); display: grid; place-items: center; font-variant-numeric: tabular-nums; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.stat-mini .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.stat-mini b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.stat-mini span { font-size: 11.5px; color: var(--ink3); }

/* ==================== 看板列 ==================== */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.col { background: #eae6de; border: 1px solid #e0dbd1; border-radius: var(--r); padding: 10px; min-height: 220px; display: flex; flex-direction: column; }
.col-hd { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; font-size: 12.5px; font-weight: 600; }
.col-hd .dot { width: 7px; height: 7px; border-radius: 50%; }
.col-hd .n { margin-left: auto; font-size: 11px; color: var(--ink3); background: rgba(255, 255, 255, .8); border-radius: 5px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.col-body { display: flex; flex-direction: column; gap: 8px; flex: 1; max-height: calc(100vh - 260px); overflow-y: auto; padding-right: 2px; }
.bk-card { background: #fff; border-radius: 11px; padding: 12px; border: 1px solid #e4e0d8; box-shadow: 0 1px 2px rgba(29, 33, 38, .04); transition: .16s; cursor: pointer; }
.bk-card:hover { border-color: #d6cfc3; box-shadow: 0 8px 20px -14px rgba(29, 33, 38, .5); transform: translateY(-1px); }
.bk-card .top { display: flex; align-items: flex-start; gap: 8px; }
.bk-card .top b { font-size: 13px; font-weight: 600; }
.bk-card .top .when { margin-left: auto; font-size: 11px; color: var(--brand-deep); background: var(--brand-soft); border-radius: 5px; padding: 2px 6px; white-space: nowrap; }
.bk-card .who { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--ink2); }
.bk-card .addr { margin-top: 6px; font-size: 11.5px; color: var(--ink3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-card .foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line2); }
.bk-card .staff { font-size: 11px; color: var(--ink2); display: inline-flex; align-items: center; gap: 4px; }
.bk-card .staff.none { color: #b5650d; }
.bk-card .foot .acts { margin-left: auto; display: flex; gap: 5px; }
.mini-btn { height: 24px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; border: 1px solid var(--line); color: var(--ink2); background: #fff; transition: .13s; }
.mini-btn:hover { border-color: #d6cfc3; color: var(--ink); }
.mini-btn.brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-deep); font-weight: 500; }
.mini-btn.brand:hover { background: #ffe7cf; }

/* ==================== 抽屉 / 弹窗 / Toast ==================== */
.mask { position: fixed; inset: 0; background: rgba(22, 26, 30, .34); backdrop-filter: blur(2px); z-index: 90; animation: fade .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 94vw; background: #fff;
  z-index: 91; display: flex; flex-direction: column; box-shadow: -30px 0 70px -40px rgba(0, 0, 0, .45);
  animation: slideIn .26s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slideIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-hd { padding: 18px 20px 14px; border-bottom: 1px solid var(--line2); display: flex; align-items: flex-start; gap: 12px; }
.drawer-hd h3 { margin: 0; font-size: 15.5px; }
.drawer-hd p { margin: 4px 0 0; font-size: 11.5px; color: var(--ink3); }
.drawer-hd .x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink3); }
.drawer-hd .x:hover { background: #f5f2ed; color: var(--ink); }
.drawer-bd { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-ft { padding: 12px 20px; border-top: 1px solid var(--line2); display: flex; gap: 8px; justify-content: flex-end; background: #fdfcfa; }
.drawer-ft .left { margin-right: auto; }

.modal {
  position: fixed; z-index: 95; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 520px; max-width: 94vw; max-height: 88vh; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal-hd { padding: 20px 22px 6px; }
.modal-hd h3 { margin: 0; font-size: 16px; }
.modal-hd p { margin: 5px 0 0; font-size: 12px; color: var(--ink3); line-height: 1.6; }
.modal-bd { padding: 14px 22px; overflow-y: auto; }
.modal-ft { padding: 12px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; }

#toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; background: #23272c; color: #fff; font-size: 12.5px;
  padding: 9px 14px; border-radius: 10px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7);
  animation: toastIn .22s ease;
}
.toast.success svg { color: #6fd3b3; } .toast.error svg { color: #ff8f8f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 详情块 */
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.dt-item label { display: block; font-size: 11px; color: var(--ink3); margin-bottom: 3px; }
.dt-item b { font-size: 12.5px; font-weight: 500; word-break: break-all; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink2); margin: 20px 0 10px; }
.sec-title:first-child { margin-top: 0; }
.sec-title:after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.line-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line2); }
.line-item:last-child { border-bottom: 0; }
.line-item .nm { flex: 1; min-width: 0; }
.line-item .nm b { display: block; font-size: 12.5px; font-weight: 500; }
.line-item .nm span { font-size: 11px; color: var(--ink3); }
.line-item .qty { font-size: 11.5px; color: var(--ink3); }
.line-item .pr { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; width: 62px; text-align: right; }
.sum-block { background: #fbf9f5; border-radius: 11px; padding: 13px 14px; margin-top: 12px; }
.sum-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); padding: 3px 0; }
.sum-row.total { font-size: 14px; color: var(--ink); font-weight: 600; padding-top: 8px; margin-top: 5px; border-top: 1px solid var(--line2); }
.sum-row.total b { color: var(--red); font-size: 17px; font-variant-numeric: tabular-nums; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 10px; }
.tl-item .rail { width: 14px; display: flex; flex-direction: column; align-items: center; flex: none; }
.tl-item .rail i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #ddd8cf; background: #fff; margin-top: 4px; }
.tl-item .rail .ln { width: 2px; flex: 1; background: #efebe4; margin: 2px 0; }
.tl-item.done .rail i { border-color: var(--brand); background: var(--brand); }
.tl-item.done .rail .ln { background: #f7dcc0; }
.tl-item:last-child .rail .ln { display: none; }
.tl-item .txt { padding-bottom: 12px; }
.tl-item .txt b { display: block; font-size: 12.5px; font-weight: 500; }
.tl-item .txt span { font-size: 11px; color: var(--ink3); }

.info-block { border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; }
.info-block + .info-block { margin-top: 10px; }
.info-block b { font-size: 12.5px; }
.info-block p { margin: 4px 0 0; font-size: 12px; color: var(--ink2); line-height: 1.7; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }

.staff-pick { display: grid; gap: 8px; }
.staff-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: .14s; }
.staff-opt:hover { border-color: var(--brand-line); background: #fffaf4; }
.staff-opt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(240, 130, 30, .1); }
.staff-opt .nm { flex: 1; }
.staff-opt .nm b { display: block; font-size: 12.5px; }
.staff-opt .nm span { font-size: 11px; color: var(--ink3); }
.staff-opt .rd { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #d3cdc2; display: grid; place-items: center; }
.staff-opt.on .rd { border-color: var(--brand); background: var(--brand); color: #fff; }

/* 空态 / 骨架 */
.empty { padding: 44px 20px; text-align: center; color: var(--ink3); }
.empty svg { opacity: .5; margin-bottom: 10px; }
.empty b { display: block; font-size: 13px; color: var(--ink2); font-weight: 500; }
.empty p { margin: 5px 0 0; font-size: 12px; }
.skeleton { padding: 18px; }
.sk-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #f2efe9 25%, #f8f5f0 37%, #f2efe9 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; margin-bottom: 12px; }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* 响应式 */
@media (max-width: 1360px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-8, .span-7, .span-9 { grid-column: span 12; }
  .span-4, .span-5, .span-6 { grid-column: span 12; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .login-left { display: none; }
  :root { --side-w: 68px; }
  .brand h1, .brand span, .nav-item span, .nav-grp > em, .support, .ver { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item .cnt { position: absolute; margin: -18px 0 0 20px; }
  .tsearch { display: none; }
  .tb .hide-md { display: none; }
}

/* ==================== 图表 ==================== */
.chart { position: relative; width: 100%; }
.chart svg { display: block; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0;
  background: #23272c; color: #fff; border-radius: 9px; padding: 8px 10px;
  font-size: 11.5px; line-height: 1.6; white-space: nowrap;
  transform: translate(-50%, -100%); transition: opacity .12s;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6);
}
.chart-tip b { font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* ==================== 补丁 ==================== */
.muted { color: var(--ink3); }
.nowrap { white-space: nowrap; }
.t-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-1 { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line2); margin: 16px 0; }
.badge-soft { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #f4f1eb; color: var(--ink2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item label { display: block; font-size: 11.5px; color: var(--ink3); margin-bottom: 5px; }
.form-item .inp, .form-item .sel { width: 100%; }
.form-item .hint { font-size: 11px; color: var(--ink4); margin-top: 4px; }
.icon-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-pick button { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; }
.icon-pick button img { width: 30px; height: 30px; object-fit: contain; }
.icon-pick button.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(240, 130, 30, .1); }
.theme-pick { display: flex; gap: 8px; }
.theme-pick button { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; background: #fff; }
.theme-pick button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.content-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line2); overflow: hidden; }
.content-row:last-child { border-bottom: 0; }
.content-row .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.content-row .tx { flex: 1; min-width: 0; }
.content-row .tx b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-row .tx p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-row .acts { display: flex; gap: 10px; flex: none; padding-left: 4px; }

/* ==================== 售后 / 权限 / 日志 ==================== */
.tag.purple { background: #f0ecfa; color: #5f47a0; }
.tag.brand { background: var(--brand-soft); color: #a85a08; }
.tag.solid { background: #23272c; color: #fff; }
.tag.solid:before { background: #fff; }

/* 图片上传 */
.img-field { display: flex; gap: 12px; align-items: flex-start; }
.img-box {
  width: 118px; flex: none; border: 1px dashed #ddd8cf; border-radius: 12px;
  background: #faf8f4; display: grid; place-items: center; overflow: hidden;
}
.img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #a8b0ba; font-size: 11.5px; }
.img-side { flex: 1; min-width: 0; padding-top: 2px; }
.img-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.img-side .hint { font-size: 11px; color: #a8b0ba; margin-top: 8px; line-height: 1.55; }

/* 素材库 */
.lib-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-height: 384px; overflow-y: auto; padding: 2px; }
.lib-item {
  border: 1px solid #ece8e1; border-radius: 10px; background: #faf8f4;
  padding: 0; overflow: hidden; position: relative; aspect-ratio: 1 / 1;
}
.lib-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 10px; padding: 2px 0; text-align: center;
}
.lib-item:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(240, 130, 30, .12); }

/* 权限矩阵 */
.perm-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.perm-matrix th {
  text-align: left; font-weight: 600; color: var(--ink3); font-size: 11.5px;
  padding: 8px 10px; border-bottom: 1px solid var(--line2); background: #fbf9f6;
}
.perm-matrix td { padding: 9px 10px; border-bottom: 1px dashed var(--line2); vertical-align: middle; }
.perm-matrix td.grp { font-weight: 600; color: var(--ink); white-space: nowrap; }
.perm-matrix .yes { color: #1f7a63; }
.perm-matrix .no { color: #ccd1d8; }

/* 角色卡 */
.role-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.role-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: #fff;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.role-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(240, 130, 30, .1); background: var(--brand-soft); }
.role-card b { display: block; font-size: 13px; }
.role-card p { margin: 5px 0 0; font-size: 11px; color: var(--ink3); line-height: 1.5; min-height: 33px; }
.role-card .n { font-size: 10.5px; color: var(--brand-deep); margin-top: 6px; display: inline-block; }

/* 日志参数预览 */
.log-params {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
  background: #fbf9f6; border: 1px solid var(--line2); border-radius: 10px;
  padding: 10px 12px; color: #4c5661; line-height: 1.65;
  white-space: pre-wrap; word-break: break-all; max-height: 220px; overflow: auto;
}
.log-fail { color: var(--red); font-size: 11.5px; }
.log-ok { color: #26695a; font-size: 11.5px; }

/* 登录页演示账号 */
.acc-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.acc-chips button {
  border: 1px solid #ece8e1; border-radius: 8px; padding: 6px 2px 7px;
  background: #fff; display: flex; flex-direction: column; gap: 2px; align-items: center;
  transition: border-color .15s, background .15s;
}
.acc-chips button b { font-size: 10.5px; color: #3a424d; font-weight: 600; }
.acc-chips button span { font-size: 9px; color: #a8b0ba; }
.acc-chips button:hover { border-color: var(--brand); background: var(--brand-soft); }

/* 行内操作 */
.row-acts { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }

/* ===== 富文本编辑器（商品详情） ===== */
.rt { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.rt-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: #faf8f4;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rt-grp { display: flex; gap: 2px; padding-right: 6px; border-right: 1px solid var(--line2); }
.rt-grp:last-child { border-right: 0; }
.rt-right { margin-left: auto; }
.rt-b { height: 26px; min-width: 26px; padding: 0 7px; border-radius: 7px; font-size: 11.5px;
  color: var(--ink2); background: transparent; display: inline-flex; align-items: center;
  justify-content: center; gap: 3px; border: 0; cursor: pointer; line-height: 1; }
.rt-b:hover { background: #f0ece5; color: var(--ink); }
.rt-b:active { background: var(--brand-soft); color: var(--brand-deep); }
.rt-body { padding: 12px 14px; font-size: 13px; line-height: 1.85; color: var(--ink);
  outline: 0; overflow-y: auto; max-height: 340px; }
.rt-body:empty:before { content: attr(data-ph); color: #b3bac3; }
.rt-body h2 { font-size: 16px; font-weight: 700; margin: 12px 0 8px; }
.rt-body h3 { font-size: 14px; font-weight: 700; margin: 10px 0 6px; }
.rt-body h4 { font-size: 13px; font-weight: 700; margin: 8px 0 4px; }
.rt-body p { margin: 6px 0; }
.rt-body ul, .rt-body ol { padding-left: 22px; margin: 6px 0; }
.rt-body ul { list-style: disc; }
.rt-body ol { list-style: decimal; }
.rt-body li { margin: 3px 0; }
.rt-body blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--brand);
  background: #fdf7f0; color: var(--ink2); border-radius: 0 8px 8px 0; }
.rt-body img { max-width: 100%; border-radius: 8px; display: block; margin: 8px 0; }
.rt-body a { color: var(--brand-deep); text-decoration: underline; }
.rt-body hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }
.rt-ft { padding: 4px 12px 7px; text-align: right; font-size: 10.5px; color: var(--ink4);
  background: #fdfcfa; border-top: 1px solid var(--line2); }

/* ===== 规格（SKU）编辑表 ===== */
.sku-tb { width: 100%; border-collapse: collapse; }
.sku-tb th { font-size: 11px; color: var(--ink3); font-weight: 500; text-align: left; padding: 0 4px 6px; }
.sku-tb td { padding: 3px 4px; vertical-align: middle; }
.sku-tb .inp { height: 32px; font-size: 12px; width: 100%; }
.sku-tb .col-act { width: 34px; text-align: center; }
.sku-del { width: 26px; height: 26px; border-radius: 7px; color: #b9c0c8; display: grid;
  place-items: center; background: transparent; border: 0; cursor: pointer; }
.sku-del:hover { background: #fdecec; color: #d93a3d; }
.sku-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sku-add { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px dashed #d9d3c8;
  font-size: 12px; color: var(--ink2); background: #fdfcfa; cursor: pointer; }
.sku-add:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
.sku-hint { font-size: 11px; color: var(--ink4); }
