/* =====================================================================
   和音屋 · 会员管家 —— 「樱与音符」主题
   柔和樱花粉 × 薰衣草紫 × 奶油白，圆角 + 轻玻璃质感
   ===================================================================== */
:root {
  --pink: #ff8fab;
  --pink-soft: #ffd6e0;
  --pink-deep: #f25c7f;
  --lavender: #a08fd8;
  --lavender-soft: #e6e0fa;
  --cream: #fff9f6;
  --ink: #4a3f55;
  --ink-light: #9a8fa8;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 8px 30px rgba(242, 92, 127, 0.10);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff5f8 0%, #f6f2ff 55%, #f0f7ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
/* 漂浮音符背景 */
.notes-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.notes-bg span {
  position: absolute; bottom: -8vh; font-size: 28px; opacity: 0;
  animation: floatNote linear infinite;
  color: var(--pink-soft); text-shadow: 0 0 12px rgba(255, 143, 171, .35);
}
.notes-bg span:nth-child(2n) { color: var(--lavender-soft); }
@keyframes floatNote {
  0% { transform: translateY(0) rotate(-8deg); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translateY(-115vh) rotate(18deg); opacity: 0; }
}

/* ---------------- 登录页 ---------------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; padding: 20px; }
.login-card {
  width: 380px; max-width: 92vw; background: var(--card); backdrop-filter: blur(14px);
  border-radius: 26px; box-shadow: var(--shadow); padding: 44px 38px 36px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .9);
}
/* 和音屋通用品牌 logo（登录页） */
.login-brand {
  display: block; width: 268px; max-width: 90%; height: auto;
  margin: 0 auto 12px; animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.login-shop { font-size: 22px; font-weight: 700; letter-spacing: 2px; margin-bottom: 22px; }
.login-sub { color: var(--ink-light); font-size: 13px; margin: 0 0 10px; letter-spacing: 1px; }
.login-card input {
  width: 100%; padding: 13px 16px; margin-bottom: 14px; border-radius: 14px;
  border: 1.5px solid #f0dfe8; background: rgba(255,255,255,.9); font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-card input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,143,171,.15); }
.login-err { color: var(--pink-deep); font-size: 13px; min-height: 20px; margin-bottom: 6px; }

/* ---------------- 主框架 ---------------- */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: 208px; flex-shrink: 0; padding: 22px 14px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,.9);
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
/* 侧边栏品牌区：和音屋通用 logo + 店名 */
.side-logo { display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 2px 6px 16px; }
.side-logo .side-brand { display: block; width: 100%; height: auto; }
.side-logo .t1 { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.side-logo .t2 { font-size: 11px; color: var(--ink-light); letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 13px;
  cursor: pointer; font-size: 14.5px; color: var(--ink); transition: all .18s; user-select: none;
}
.nav-item:hover { background: rgba(255, 143, 171, .12); }
.nav-item.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 100%);
  color: #fff; box-shadow: 0 5px 14px rgba(160,143,216,.4); font-weight: 600;
}
.nav-item .ico { font-size: 17px; width: 22px; text-align: center; }
.main { flex: 1; padding: 26px 30px 40px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.page-title small { font-size: 12px; color: var(--ink-light); font-weight: 400; margin-left: 10px; letter-spacing: 0; }
.staff-chip {
  display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; box-shadow: var(--shadow); border: 1px solid #fff;
}
.staff-chip .ava { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--lavender)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; }
.logout { color: var(--pink-deep); cursor: pointer; margin-left: 6px; font-size: 12.5px; }

/* ---------------- 卡片与按钮 ---------------- */
.card {
  background: var(--card); backdrop-filter: blur(12px); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.9); padding: 22px; margin-bottom: 20px;
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, var(--pink), var(--lavender)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 12px; border: none; cursor: pointer; font-size: 14px;
  transition: all .18s; font-family: inherit; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 100%); color: #fff; box-shadow: 0 4px 14px rgba(242,92,127,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242,92,127,.42); }
.btn-primary:disabled { opacity: .55; transform: none; cursor: not-allowed; }
.btn-ghost { background: rgba(255,143,171,.1); color: var(--pink-deep); }
.btn-ghost:hover { background: rgba(255,143,171,.2); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-danger { background: rgba(242,92,127,.12); color: var(--pink-deep); }
.btn-block { width: 100%; padding: 13px; font-size: 15px; border-radius: 14px; }

/* ---------------- 统计卡 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  border-radius: var(--radius); padding: 20px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 22px rgba(160,143,216,.25);
}
.stat-card.g1 { background: linear-gradient(135deg, #ff9ebb, #ff7d9d); }
.stat-card.g2 { background: linear-gradient(135deg, #b6a6ea, #917fd0); }
.stat-card.g3 { background: linear-gradient(135deg, #8ec9f7, #6aa9e8); }
.stat-card.g4 { background: linear-gradient(135deg, #93dcc0, #5fc4a0); }
.stat-card.g5 { background: linear-gradient(135deg, #f7c98e, #eeab5e); }
.stat-card .label { font-size: 13px; opacity: .92; }
.stat-card .value { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: .5px; }
.stat-card .deco { position: absolute; right: 10px; bottom: -6px; font-size: 44px; opacity: .22; }

/* ---------------- 表格 ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 10px 12px; color: var(--ink-light); font-weight: 600; font-size: 12.5px; border-bottom: 1.5px solid rgba(160,143,216,.18); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(160,143,216,.1); }
.tbl tr:hover td { background: rgba(255,143,171,.05); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--lavender-soft); color: var(--lavender); white-space: nowrap; }
.tag.pink { background: var(--pink-soft); color: var(--pink-deep); }
.tag.green { background: #d9f5e8; color: #2ea47c; }
.tag.gray { background: #eee; color: #999; }
.tag.red { background: #ffe0e6; color: var(--pink-deep); }
.tag.blue { background: #dceafb; color: #3d7bc4; }
.tag.orange { background: #fdeeda; color: #d18a2d; }
.money { font-weight: 700; }
.money.plus { color: #2ea47c; }
.money.minus { color: var(--pink-deep); }
/* 报表着色：姓名蓝 / 正绿负红 / 其他语义色 */
.c-name { color: #3d7bc4; font-weight: 600; }
.tone-plus { color: #2ea47c; font-weight: 700; }
.tone-minus { color: var(--pink-deep); font-weight: 700; }
.tone-orange { color: #d18a2d; font-weight: 700; }
.tone-blue { color: #4a90d9; font-weight: 700; }
.tone-pink { color: #e2639e; font-weight: 700; }
/* 会员列表 */
.c-cardno { color: #8a7fb0; font-weight: 700; letter-spacing: .3px; }
.c-phone { color: #8f8499; }
.tbl.zebra tbody tr:nth-child(even) td { background: rgba(250,247,255,.6); }
.tbl.zebra tr:hover td { background: rgba(255,143,171,.07); }
/* 消费明细：操作列固定在右侧，横向滚动时退款按钮始终可见 */
.tbl-act-sticky thead th:last-child,
.tbl-act-sticky tbody td:last-child {
  position: sticky; right: 0; background: #fff;
  box-shadow: -8px 0 10px -8px rgba(90,70,130,.18);
}
.tbl-act-sticky thead th:last-child { z-index: 3; }
.tbl-act-sticky tbody td:last-child { z-index: 2; }
/* 列多，收紧左右内边距，避免备注列被挤成竖排 */
.tbl-act-sticky th, .tbl-act-sticky td { padding-left: 8px; padding-right: 8px; }
/* 报表分页：可输入页码 */
.page-input {
  width: 52px; padding: 4px 4px; text-align: center; font-size: 12.5px; color: var(--ink);
  border: 1.5px solid #eee0e8; border-radius: 8px; background: #fff; outline: none;
  font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.page-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,143,171,.13); }
.page-input::-webkit-outer-spin-button, .page-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.page-input { -moz-appearance: textfield; appearance: textfield; }
.empty { text-align: center; color: var(--ink-light); padding: 40px 0; font-size: 14px; }
.empty .big { font-size: 42px; display: block; margin-bottom: 10px; opacity: .6; }

/* ---------------- 表单 ---------------- */
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.form-item { flex: 1; min-width: 150px; }
.form-item label { display: block; font-size: 12.5px; color: var(--ink-light); margin-bottom: 6px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 10px 13px; border-radius: 11px; border: 1.5px solid #eee0e8;
  background: rgba(255,255,255,.92); font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-item input:focus, .form-item select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,143,171,.13); }
.search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.search-bar input {
  flex: 1; max-width: 340px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid #eee0e8;
  background: rgba(255,255,255,.92); outline: none; font-size: 14px;
}
.search-bar input:focus { border-color: var(--pink); }

/* ---------------- 弹窗与抽屉 ---------------- */
.modal-mask { position: fixed; inset: 0; background: rgba(74,63,85,.35); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s; }
.modal { width: 520px; max-width: 94vw; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 20px 60px rgba(74,63,85,.3); animation: popIn .22s; }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.drawer-mask { position: fixed; inset: 0; background: rgba(74,63,85,.3); z-index: 50; animation: fadeIn .18s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 640px; max-width: 96vw; z-index: 51;
  background: linear-gradient(160deg, #fff 60%, #fdf5f8); box-shadow: -14px 0 44px rgba(74,63,85,.22);
  padding: 26px; overflow-y: auto; animation: slideIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } }
.close-x { position: absolute; top: 18px; right: 20px; font-size: 22px; color: var(--ink-light); cursor: pointer; background: none; border: none; }
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.detail-ava { width: 62px; height: 62px; border-radius: 20px; background: linear-gradient(135deg, var(--pink), var(--lavender)); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.detail-name { font-size: 19px; font-weight: 700; }
.detail-meta { color: var(--ink-light); font-size: 12.5px; margin-top: 3px; }
.kv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kv { background: rgba(160,143,216,.08); border-radius: 12px; padding: 12px; text-align: center; }
.kv .k { font-size: 11.5px; color: var(--ink-light); }
.kv .v { font-size: 17px; font-weight: 700; margin-top: 4px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 10px; margin-bottom: 18px; }
.qa-btn { padding: 12px 6px; border-radius: 13px; border: none; cursor: pointer; font-size: 13px; background: rgba(255,143,171,.1); color: var(--pink-deep); transition: all .15s; font-family: inherit; }
.qa-btn:hover { transform: translateY(-2px); background: rgba(255,143,171,.2); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; align-items: center; }
.tab { padding: 7px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; color: var(--ink-light); background: rgba(160,143,216,.08); }
.tab.active { background: linear-gradient(135deg, var(--pink), var(--lavender)); color: #fff; font-weight: 600; }
.tabs-hint { margin-left: auto; font-size: 11.5px; color: #b4a9c0; }

/* 会员详情：余额与消费合并时间线 */
.timeline { max-height: 46vh; overflow-y: auto; padding-right: 4px; }
/* 页签切换加载态：避免旧数据套新模板出现英文类型名 */
.tl-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0; font-size: 13px; color: #b4a9c0; }
.tl-spin { width: 14px; height: 14px; border: 2px solid rgba(226,99,158,.25); border-top-color: var(--pink); border-radius: 50%; animation: tlspin .7s linear infinite; }
@keyframes tlspin { to { transform: rotate(360deg); } }
.tl-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(160,143,216,.16); }
.tl-item:last-child { border-bottom: none; }
.tl-ico {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px; display: flex; align-items: center;
  justify-content: center; font-size: 15px; margin-top: 1px;
}
.tl-ico.in { background: #d9f5e8; color: #2ea47c; }
.tl-ico.out { background: #ffe3e9; color: var(--pink-deep); }
.tl-body { flex: 1; min-width: 0; }
.tl-top { display: flex; align-items: center; gap: 8px; }
.tl-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tl-time { margin-left: auto; font-size: 11.5px; color: var(--ink-light); white-space: nowrap; }
.tl-items {
  margin-top: 4px; font-size: 12.5px; color: #5b4f68; background: rgba(160,143,216,.07);
  border-radius: 8px; padding: 4px 8px; line-height: 1.6;
}
.tl-remark { margin-top: 3px; font-size: 12px; color: var(--ink-light); }
.tl-sub { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: #b4a9c0; }
.tl-right { text-align: right; flex: 0 0 auto; padding-left: 6px; }
.tl-amt { font-size: 15px; font-weight: 800; }
.tl-amt.plus { color: #2ea47c; }
.tl-amt.minus { color: var(--pink-deep); }
.tl-bal { font-size: 11.5px; color: var(--ink-light); margin-top: 2px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0 4px; font-size: 13px; color: var(--ink-light); }
.pager button { border: none; background: rgba(160,143,216,.12); color: var(--lavender); padding: 6px 16px; border-radius: 9px; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* 提示条 */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 99; padding: 12px 26px; border-radius: 999px; color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(74,63,85,.3); animation: popIn .2s; }
.toast.ok { background: linear-gradient(135deg, #5fc4a0, #3baa85); }
.toast.err { background: linear-gradient(135deg, #ff8fab, #f25c7f); }

/* 在场看板卡片 */
.inshop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.inshop-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 4px 16px rgba(160,143,216,.15); border: 1.5px solid rgba(255,214,224,.6); }
.inshop-card .nm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.inshop-card .cno {
  font-size: 15px; font-weight: 800; letter-spacing: .3px;
  color: #c9397a; background: rgba(255,143,171,.18);
  border: 1px solid rgba(255,143,171,.45); border-radius: 7px;
  padding: 1px 9px; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 3px; line-height: 1.45;
}
.inshop-card .cno i { font-style: normal; font-size: 12px; font-weight: 600; opacity: .7; }
.inshop-card.out .cno { color: #8a5f9e; background: rgba(180,160,210,.16); border-color: rgba(180,160,210,.4); }
.inshop-card .cardno { color: var(--ink-light); font-size: 12px; margin: 3px 0 10px; }
.inshop-card .dur { display: inline-block; background: linear-gradient(135deg, var(--pink), var(--lavender)); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.inshop-card { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.inshop-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(160,143,216,.28); }
.inshop-card.out { border-color: rgba(180,180,190,.35); background: #fafafd; }
.inshop-card.out .nm { color: #6f6480; }
.dur-gray { background: #e8e6ef !important; color: #7a7089 !important; }
.ov-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 12px 16px; background: linear-gradient(135deg, rgba(255,214,224,.35), rgba(200,190,240,.25)); border-radius: 14px; font-size: 13.5px; color: #5b4f68; margin-bottom: 16px; }
.ov-stats b { font-size: 17px; color: var(--ink); margin: 0 2px; }
.sec-title { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.sec-title .sec-hint { font-size: 12px; font-weight: 400; color: #b4a9c0; margin-left: 8px; }

/* 响应式 */
@media (max-width: 860px) {
  .sidebar { width: 64px; padding: 16px 8px; }
  .side-logo .txt, .nav-item .txt { display: none; }
  .main { padding: 18px 14px; }
  .kv-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- 商品选购（扣款弹窗） ---------------- */
.mode-switch { display: flex; gap: 8px; margin-bottom: 14px; }
.mode-switch span { flex: 1; text-align: center; padding: 9px 0; border-radius: 11px; font-size: 13.5px; cursor: pointer; background: rgba(160,143,216,.08); color: var(--ink-light); transition: all .15s; }
.mode-switch span.on { background: linear-gradient(135deg, var(--pink), var(--lavender)); color: #fff; font-weight: 600; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; margin-bottom: 12px; padding: 2px; }
.pick-item { background: rgba(255,143,171,.07); border: 1.5px solid rgba(255,143,171,.18); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: all .15s; }
.pick-item:hover { transform: translateY(-2px); border-color: var(--pink); background: rgba(255,143,171,.14); }
.pi-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-price { font-size: 13px; color: var(--pink-deep); font-weight: 700; }
.cart { background: rgba(160,143,216,.06); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13.5px; }
.cr-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-ctrl { display: inline-flex; align-items: center; gap: 8px; }
.cr-ctrl button { width: 24px; height: 24px; border-radius: 7px; border: none; background: rgba(255,143,171,.18); color: var(--pink-deep); cursor: pointer; font-size: 14px; line-height: 1; }
.cr-ctrl b { min-width: 18px; text-align: center; }
/* 数量可直接手输：点进去全选，改完回车或点空白生效 */
.cr-qty { width: 62px; height: 26px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink);
  border: 1px solid rgba(160,143,216,.3); border-radius: 7px; background: #fff; padding: 0 4px; outline: none;
  -moz-appearance: textfield; }
.cr-qty:focus { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255,143,171,.18); }
.cr-qty::-webkit-outer-spin-button, .cr-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cr-sum { min-width: 64px; text-align: right; font-weight: 700; color: var(--ink); }
.cart-total { border-top: 1px dashed rgba(160,143,216,.25); margin-top: 8px; padding-top: 10px; text-align: right; font-size: 14px; }
.cart-total b { font-size: 19px; color: var(--pink-deep); margin: 0 6px; }

/* ---------------- 商品管理 / 用户组 ---------------- */
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer; background: rgba(160,143,216,.09); color: var(--ink-light); transition: all .15s; }
.chip.on { background: linear-gradient(135deg, var(--pink), var(--lavender)); color: #fff; font-weight: 600; }
.cat-add { display: flex; gap: 8px; margin-bottom: 12px; }
.cat-add input { flex: 1; max-width: 260px; }
.disc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.disc-row select { max-width: 160px; }

/* ---------------- 侧边栏分组（X8 式目录） ---------------- */
.nav-group { margin-top: 10px; }
.nav-group .g-title { font-size: 11px; color: var(--ink-light); padding: 0 14px 5px; letter-spacing: 2px; user-select: none; }
.nav-group .nav-item { padding: 9px 14px; font-size: 14px; }

/* ---------------- 会员信息条（收银台/业务办理共用） ---------------- */
.member-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(160,143,216,.07); border: 1.5px solid rgba(160,143,216,.16);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 16px;
}
.member-strip .ava {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.member-strip .info { flex: 1; min-width: 140px; }
.member-strip .bal { font-size: 13px; color: var(--ink-light); }
.member-strip .bal b { font-size: 17px; color: var(--pink-deep); margin-left: 4px; }

/* ---------------- 销售收银台 ---------------- */
.pos-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; max-height: calc(100vh - 260px); overflow-y: auto; padding: 2px; }
.pos-item {
  background: rgba(255,143,171,.07); border: 1.5px solid rgba(255,143,171,.18);
  border-radius: 13px; padding: 13px 13px; cursor: pointer; transition: all .15s; user-select: none;
}
.pos-item:hover { transform: translateY(-2px); border-color: var(--pink); background: rgba(255,143,171,.14); box-shadow: 0 4px 12px rgba(242,92,127,.15); }
@media (max-width: 1100px) { .pos-wrap { grid-template-columns: 1fr; } }

/* 小屏隐藏分组标题 */
@media (max-width: 860px) {
  .nav-group .g-title { display: none; }
}

/* ---------------- 充值赠金档位 ---------------- */
.tier-box {
  background: linear-gradient(135deg, rgba(255,214,224,.35), rgba(230,224,250,.35));
  border: 1px solid rgba(255,143,171,.22);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px;
}
.tier-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tier-title { font-size: 14px; font-weight: 700; color: var(--pink-deep); }
.tier-hint { font-size: 12px; color: var(--ink-light); }
.tier-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tier-chip {
  min-width: 112px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 16px; border-radius: 13px; cursor: pointer; font-family: inherit;
  border: 1.5px solid rgba(160,143,216,.3); background: rgba(255,255,255,.8);
  transition: all .15s; color: var(--ink);
}
.tier-chip b { font-size: 16px; color: var(--pink-deep); }
.tier-chip span { font-size: 12px; color: var(--ink-light); }
.tier-chip:hover { transform: translateY(-2px); border-color: var(--pink); box-shadow: 0 5px 14px rgba(242,92,127,.18); }
.tier-chip.on {
  border-color: transparent; background: linear-gradient(135deg, var(--pink), var(--lavender));
  box-shadow: 0 5px 16px rgba(242,92,127,.32);
}
.tier-chip.on b, .tier-chip.on span { color: #fff; }
.tier-empty { font-size: 12.5px; color: var(--ink-light); padding: 8px 0; }

.tier-cfg {
  border: 1px dashed rgba(160,143,216,.45); border-radius: 14px;
  background: rgba(255,255,255,.5); margin: 6px 0 18px; overflow: hidden;
}
.tier-cfg-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px; cursor: pointer; user-select: none;
  font-size: 13.5px; font-weight: 600; color: var(--lavender);
  background: rgba(230,224,250,.35);
}
.tier-cfg-head:hover { background: rgba(230,224,250,.6); }
.tier-cfg-head small { font-weight: 400; font-size: 12px; color: var(--ink-light); margin-left: 6px; }
.tier-cfg-toggle { font-size: 12px; font-weight: 400; color: var(--pink-deep); }
.tier-cfg-body { padding: 14px 16px 16px; }
.tier-cfg-tip { font-size: 12px; color: var(--ink-light); margin-bottom: 12px; line-height: 1.6; }
.tier-cfg-tip span { color: var(--pink-deep); }
.tier-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.tier-row-no {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--lavender-soft); color: var(--lavender);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.tier-row label { font-size: 12.5px; color: var(--ink-light); white-space: nowrap; }
.tier-row input {
  width: 100px; padding: 6px 10px; border-radius: 9px; font-family: inherit; font-size: 13px;
  border: 1px solid rgba(160,143,216,.3); background: #fff; color: var(--ink);
}
.tier-row input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,143,171,.13); }
.tier-row input:disabled { background: rgba(160,143,216,.07); color: var(--ink-light); }
.tier-unit { font-size: 12px; color: var(--ink-light); margin-right: 8px; }
.tier-cfg-actions { display: flex; gap: 10px; margin-top: 14px; }
