/* 云水茶楼 · 高端宅院风 */
:root {
  --bg: #101613;
  --bg2: #16201b;
  --card: #1a2620;
  --card2: #1f2d26;
  --line: #2a3a32;
  --gold: #c9a45c;
  --gold2: #e6d3a3;
  --ink: #e8e4d8;
  --muted: #8fa399;
  --green: #7ba28a;
  --red: #c0705f;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }
html, body { height: 100%; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #1c2b23 0%, var(--bg) 55%) fixed;
  color: var(--ink);
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: var(--serif); letter-spacing: .04em; }
.gold-text { color: var(--gold); }
.muted { color: var(--muted); font-size: 13px; }
.mt { margin-top: 14px; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea {
  background: #121b16; border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; width: 100%;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[type="date"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55;
  filter: invert(80%) sepia(30%) saturate(400%) hue-rotate(5deg);
}
label { display: block; font-size: 13px; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 4px; color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a9853f); color: #14100a; border: none;
  padding: 10px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em;
  box-shadow: 0 4px 14px rgba(201,164,92,.25); transition: transform .15s, box-shadow .15s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,164,92,.35); }
.btn-gold:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 9px 18px; border-radius: 10px; font-size: 14px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); }
.btn-ghost.danger:hover { border-color: var(--red); color: var(--red); }
.btn-ghost-sm {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 3px 10px; border-radius: 7px; font-size: 12px;
}
.btn-ghost-sm:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 20px; }
.login-card {
  width: 100%; max-width: 380px; background: linear-gradient(170deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: 18px; padding: 44px 36px 36px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.login-seal {
  width: 64px; height: 64px; margin: 0 auto 18px; border: 2px solid var(--gold); border-radius: 14px;
  color: var(--gold); font: 34px/60px var(--serif); text-align: center;
  box-shadow: inset 0 0 12px rgba(201,164,92,.2);
}
.login-card h1 { font-size: 28px; font-weight: 600; }
.login-sub { color: var(--muted); font-size: 13px; letter-spacing: .35em; margin: 6px 0 28px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card input { text-align: center; padding: 12px; }
.form-error { color: var(--red); font-size: 13px; }
.login-foot { color: #3d4f45; font-size: 13px; letter-spacing: .5em; }

/* ---------- 框架 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 24px 14px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 22px; border-bottom: 1px solid var(--line); }
.brand-seal {
  width: 40px; height: 40px; border: 1.5px solid var(--gold); border-radius: 10px;
  color: var(--gold); font: 22px/37px var(--serif); text-align: center; flex-shrink: 0;
}
.brand b { font-size: 17px; display: block; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .15em; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; flex: 1; }
.sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  color: var(--muted); cursor: pointer; font-size: 15px; transition: all .2s;
}
.sidebar nav a:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.sidebar nav a.active { color: var(--gold); background: rgba(201,164,92,.09); }
.nav-ico { display: inline-flex; }
.side-user { border-top: 1px solid var(--line); padding-top: 14px; display: flex; gap: 6px; align-items: center; }
.side-user-info { flex: 1; min-width: 0; }
.side-user-info b { display: block; font-size: 14px; }
.side-user-info small { color: var(--muted); font-size: 11px; }

.main { flex: 1; padding: 30px 34px 90px; max-width: 1240px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; font-weight: 600; }
.page-date { color: var(--muted); font-size: 13px; }

/* ---------- 卡片 ---------- */
.card, .panel, .stat-card {
  background: linear-gradient(165deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.stat-card { padding: 18px 20px; }
.stat-card small { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.stat-card b { display: block; font-size: 26px; font-weight: 600; margin-top: 6px; }
.stat-card b.warn { color: var(--red); }

/* 可点击统计卡片 */
.stat-card.clickable { cursor: pointer; transition: border-color .15s, transform .1s; }
.stat-card.clickable:hover { border-color: var(--gold2); transform: translateY(-2px); }
.stat-card.clickable:active { transform: translateY(0); }

/* 可点击收款跟踪项 */
.recv-item.clickable { cursor: pointer; transition: border-color .15s, transform .1s; border-radius: 8px; padding: 10px 12px; }
.recv-item.clickable:hover { border-color: var(--gold2); transform: translateY(-1px); }

/* 可点击图例 */
.legend li.clickable { cursor: pointer; transition: background .12s; padding: 4px 8px; border-radius: 6px; }
.legend li.clickable:hover { background: rgba(201,164,92,.1); }

.panel { padding: 20px 22px; }
.panel-title { font-size: 16px; font-weight: 600; color: var(--gold2); margin-bottom: 14px; }
.dash-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }

/* ---------- 看板图表 ---------- */
.remind-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(123,162,138,.08); border: 1px solid rgba(123,162,138,.3);
  border-radius: 10px; padding: 10px 16px; margin-bottom: 14px; font-size: 13px;
}
.remind-bar.gold-line { background: rgba(201,164,92,.07); border-color: rgba(201,164,92,.35); cursor: pointer; }
.remind-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.remind-dot.gold { background: var(--gold); }
.remind-item { color: var(--muted); }
.remind-item.link { color: var(--gold2); cursor: pointer; }
.remind-item.link:hover { text-decoration: underline; }

.trend-chart { width: 100%; height: 220px; display: block; }
.grid-line { stroke: #223028; stroke-width: 1; }
.trend-line { fill: none; stroke: var(--gold); stroke-width: 2; }
.trend-fill { fill: url(#); fill: rgba(201,164,92,.12); }
.trend-dot { fill: var(--gold2); }
.chart-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: #223028; stroke-width: 14; }
.donut-seg { fill: none; stroke-width: 14; transition: stroke-dasharray 1s; }
.donut-num, .donut-lbl { transform: rotate(90deg); transform-origin: 60px 60px; fill: var(--gold); font-size: 12px; }
.donut-lbl { fill: var(--muted); font-size: 8px; }
.legend { list-style: none; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.legend b { color: var(--ink); margin-left: 6px; }

/* ---------- 筛选/列表 ---------- */
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-bar input, .filter-bar select { width: auto; min-width: 130px; }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { padding: 16px 20px; cursor: pointer; transition: transform .15s, border-color .15s; }
.order-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.order-top { display: flex; align-items: center; gap: 10px; }
.order-no { color: var(--muted); font-size: 12px; flex: 1; }
.order-main { display: flex; gap: 14px; align-items: baseline; margin-top: 8px; font-size: 16px; }
.order-sub { display: flex; gap: 12px; margin-top: 4px; }
.order-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.order-foot b { font-size: 17px; }
.flow-btns { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.btn-flow {
  background: rgba(201,164,92,.1); border: 1px solid rgba(201,164,92,.35); color: var(--gold2);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap;
}
.btn-flow:hover { background: rgba(201,164,92,.2); }
.btn-flow.danger { border-color: rgba(192,112,95,.4); color: var(--red); background: transparent; }
.flow-btns select.flow-jump {
  width: auto; flex: none; min-width: 0; font-size: 13px; padding: 6px 10px;
  color: var(--muted); background: transparent;
}

.chip { font-size: 11px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.type-tea { color: var(--green); border-color: rgba(123,162,138,.45); }
.chip.type-room { color: var(--gold2); border-color: rgba(201,164,92,.45); }
.chip.type-banquet { color: #d9a0a0; border-color: rgba(217,160,160,.4); }
.chip.ch-meituan { color: var(--gold2); border-color: rgba(201,164,92,.45); }
.chip.ch-offline { color: var(--green); border-color: rgba(123,162,138,.45); }
.chip.ch-private { color: #b9a7e0; border-color: rgba(185,167,224,.4); }
.chip.chip-product { color: #8ab4d6; border-color: rgba(138,180,214,.4); }
.chip.chip-guest { color: #c8b89a; border-color: rgba(200,184,154,.35); font-size: 10px; padding: 1px 8px; }
.order-stars { margin-left: auto; color: var(--gold2); letter-spacing: 2px; font-size: 13px; text-shadow: 0 0 6px rgba(201,164,92,.4); }
/* ---------- 收款跟踪 ---------- */
input.invalid { border-color: var(--red) !important; box-shadow: 0 0 0 1px rgba(192,112,95,.4); }
.filter-hint { font-size: 11px; white-space: nowrap; align-self: center; }
.pay-track { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
.pay-track .muted { font-size: 11px; white-space: nowrap; }
.pay-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(42,58,50,.8); overflow: hidden; min-width: 40px; }
.pay-bar.lg { height: 6px; margin: 8px 0 6px; }
.pay-bar i { display: block; height: 100%; border-radius: 2px; background: var(--gold); transition: width .3s; }
.ps-fill-unpaid i, .pay-bar i.ps-fill-unpaid { background: #7a7a7a; }
.ps-fill-deposit_due { background: var(--gold); }
.ps-fill-balance_due { background: var(--red); }
.ps-fill-settled { background: var(--green); }
.ps-fill-over { background: #b9a7e0; }
.pay-badge { font-size: 10px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pay-badge.sm { margin-left: 6px; }
.ps-unpaid { color: #9a9a9a; border-color: rgba(150,150,150,.4); }
.ps-deposit_due { color: var(--gold2); border-color: rgba(201,164,92,.5); background: rgba(201,164,92,.08); }
.ps-balance_due { color: var(--red); border-color: rgba(192,112,95,.5); background: rgba(192,112,95,.08); }
.ps-settled { color: var(--green); border-color: rgba(123,162,138,.5); background: rgba(123,162,138,.08); }
.ps-over { color: #b9a7e0; border-color: rgba(185,167,224,.5); background: rgba(185,167,224,.08); }
.chip-stage { color: var(--gold2); border-color: rgba(201,164,92,.4); font-size: 10px; padding: 1px 8px; }
.pay-summary { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; background: rgba(18,27,22,.5); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.rev-order-sum { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.remind-dot.warn { background: var(--red); box-shadow: 0 0 6px rgba(192,112,95,.6); }
.warn-line { border-color: rgba(192,112,95,.45); }
/* 看板收款跟踪卡 */
.recv-panel { margin-bottom: 16px; }
.recv-sub { font-size: 12px; font-weight: normal; margin-left: 10px; letter-spacing: 0; }
.recv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.recv-item small { display: block; }
.recv-item b { font-size: 18px; margin-top: 2px; display: block; }
.recv-item b i { font-style: normal; font-size: 13px; font-weight: normal; }
@media (max-width: 900px) { .recv-grid { grid-template-columns: 1fr; gap: 14px; } }
.star-pick { display: inline-flex; gap: 4px; margin-top: 6px; }
.star-pick i { font-style: normal; font-size: 22px; color: #3d4f45; cursor: pointer; transition: color .12s, transform .12s; }
.star-pick i.on { color: var(--gold2); text-shadow: 0 0 8px rgba(201,164,92,.5); }
.star-pick i:hover { transform: scale(1.15); }
.status { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.st-pending { background: rgba(201,164,92,.15); color: var(--gold2); }
.st-confirmed { background: rgba(123,162,138,.15); color: var(--green); }
.st-serving { background: rgba(105,150,190,.15); color: #8ab4d6; }
.st-done { background: rgba(160,160,160,.15); color: #b9b9b9; }
.st-archived { background: rgba(120,120,120,.12); color: #777; }

.empty { text-align: center; color: #3d4f45; padding: 60px 0; letter-spacing: .2em; }

/* ---------- 营收台账 ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 10px 12px; border-bottom: 1px solid rgba(42,58,50,.5); }
.rev-total-bar { margin-bottom: 12px; font-size: 13px; }
.shot-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; cursor: zoom-in; border: 1px solid var(--line); }
.shot-none {
  width: 34px; height: 34px; border-radius: 6px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--muted);
  border: 1px dashed var(--line); background: rgba(18,27,22,.4);
}

/* ---------- 客户 ---------- */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cust-card { padding: 18px 20px; cursor: pointer; transition: transform .15s, border-color .15s; }
.cust-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.cust-head { display: flex; justify-content: space-between; align-items: baseline; }
.cust-head b { font-size: 17px; }
.cust-spent { display: flex; gap: 10px; align-items: baseline; margin: 10px 0 8px; font-size: 18px; }
.cust-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.tag { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: rgba(201,164,92,.1); color: var(--gold2); border: 1px solid rgba(201,164,92,.3); }
.tag.pick { cursor: pointer; opacity: .5; }
.tag.pick.on { opacity: 1; background: rgba(201,164,92,.25); }
.warn-tag { background: rgba(192,112,95,.15); color: var(--red); border-color: rgba(192,112,95,.4); }
.cust-sub { margin-top: 8px; font-size: 12px; }

/* ---------- 抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(8,12,10,.65); backdrop-filter: blur(3px); z-index: 40; }
.drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: min(480px, 100%);
  background: var(--bg2); border-left: 1px solid var(--line); overflow-y: auto; padding: 28px;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 26px; }
.drawer-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.drawer-head h3 { font-size: 22px; margin-bottom: 8px; }
.drawer-body h4 { color: var(--gold2); font-size: 15px; margin: 20px 0 10px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-grid small { letter-spacing: .1em; }
.profile-grid p { margin-top: 2px; font-size: 14px; }
.mini-row { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed rgba(42,58,50,.7); font-size: 13px; flex-wrap: wrap; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item > i { position: absolute; left: -18px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(201,164,92,.6); }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.tl-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.tl-head small { margin-right: auto; }
.drawer-foot { display: flex; gap: 10px; margin-top: 24px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(8,12,10,.7); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: popIn .2s ease;
}
@keyframes popIn { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 19px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 12px; }
.form-grid.one { grid-template-columns: 1fr; }
.full { display: block; margin-bottom: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.type-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.type-tabs button {
  flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px;
}
.type-tabs button.on { border-color: var(--gold); color: var(--gold); background: rgba(201,164,92,.08); }
.step-dots { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12px; }
.step-dots i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.step-dots i.on { background: var(--gold); }
.step-dots span { margin-left: 6px; }

.img-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.img-item { position: relative; width: 72px; height: 72px; }
.img-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.img-add {
  width: 72px; height: 72px; border: 1px dashed var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 22px; cursor: pointer;
}
.img-add:hover { border-color: var(--gold); color: var(--gold); }
.img-del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); color: #fff; border: none; font-size: 12px; line-height: 1;
}
.shot-box { position: relative; display: inline-block; margin-top: 6px; }
.shot-box img { max-height: 140px; border-radius: 8px; border: 1px solid var(--line); }
.preview-img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }

/* ---------- 编辑行 ---------- */
.head-actions { display: flex; gap: 10px; align-items: center; }
.desktop-only { display: inline-block; }
@media (max-width: 900px) { .desktop-only { display: none; } }
.neg { color: var(--red) !important; }
.order-detail { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 10px; }
.order-detail h4 { color: var(--gold2); font-size: 14px; margin: 10px 0 6px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 10px; }
tr.disabled td { opacity: .45; }
.room-row input { min-width: 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button {
  padding: 8px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 14px;
}
.tabs button.on { border-color: var(--gold); color: var(--gold); background: rgba(201,164,92,.08); }
.brand-img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(201,164,92,.4); flex-shrink: 0; }
.login-logo { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; margin: 0 auto 14px; border: 1.5px solid rgba(201,164,92,.5); display: block; }
.logo-preview { max-height: 72px; border-radius: 8px; border: 1px solid var(--line); }
.mt-s { margin-top: 6px; }
.edit-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.edit-row .grow { flex: 1; }
.edit-row input, .edit-row select { flex: 1 1 0; width: auto; min-width: 0; }
.edit-row button { white-space: nowrap; flex: none; }

/* ---------- 悬浮 & 提示 ---------- */
.fab {
  position: fixed; right: 26px; bottom: 90px; z-index: 30;
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: radial-gradient(circle at 32% 28%, var(--gold2), var(--gold) 60%, #96742f);
  color: #14100a; font-size: 22px; box-shadow: 0 10px 28px rgba(201,164,92,.4);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.07); }
.toast {
  position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%);
  background: var(--card2); border: 1px solid var(--gold); color: var(--gold2);
  padding: 10px 26px; border-radius: 999px; z-index: 90; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: popIn .2s ease;
}

/* ---------- 底部导航（手机） ---------- */
.bottom-nav { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { padding: 18px 14px 120px; }
  .stat-grid, .stat-grid.four { grid-template-columns: repeat(2, 1fr); }
  .dash-cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: rgba(18,27,22,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: var(--muted); font-size: 14px; padding: 9px 0 7px; cursor: pointer;
  }
  .bottom-nav a small { font-size: 13px; letter-spacing: 1px; }
  .bottom-nav a span { display: flex; }
  .bottom-nav a svg { width: 24px; height: 24px; }
  .bottom-nav a.active { color: var(--gold); }
  .fab { bottom: 92px; right: 18px; width: 56px; height: 56px; }
  .toast { bottom: 160px; }
  .filter-bar input, .filter-bar select { min-width: 0; flex: 1; }
  /* 手机端筛选改 2 列网格，下拉不再被压缩；关键词与日期段独占整行 */
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: center; }
  .filter-bar > select,
  .filter-bar > input { min-width: 0; width: 100%; flex: none; }
  .filter-bar .filter-keyword,
  .filter-bar .filter-daterange { grid-column: 1 / -1; }
  .filter-daterange { display: flex; gap: 8px; align-items: center; }
  .filter-daterange input { flex: 1; min-width: 0; }
  .filter-daterange span { flex: none; }
  .filter-daterange .filter-hint { display: block; margin-top: 2px; }
  /* 营收台账改卡片式，不再横向滚动 */
  .ledger { display: block; overflow: visible; }
  .ledger thead { display: none; }
  .ledger tbody { display: block; }
  .ledger tr {
    display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    margin-bottom: 10px; background: linear-gradient(165deg, var(--card2), var(--card));
  }
  .ledger td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 5px 0; border: none; font-size: 13px; text-align: right;
  }
  .ledger td::before { content: attr(data-label); color: var(--muted); font-size: 12px; flex-shrink: 0; min-width: 64px; text-align: left; letter-spacing: .05em; }
  .ledger td[data-label="备注"] { display: block; text-align: left; }
  .ledger td[data-label="备注"]::before { display: block; margin-bottom: 2px; }
  .ledger td[data-label="截图"] img,
  .ledger td[data-label="截图"] .shot-none { width: 40px; height: 40px; }
  .ledger td[data-label="截图"] .shot-none svg { width: 18px; height: 18px; }
  .order-foot b { width: 100%; }
  /* 系统设置 tabs：手机端 2 列网格，触控加大 */
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tabs button { padding: 10px 6px; font-size: 14px; width: 100%; }
  /* edit-row 触控目标加大 */
  .edit-row { gap: 6px; margin-bottom: 10px; }
  .edit-row > button { padding: 8px 18px; min-height: 40px; }
  /* room-row 手机端 grid：名称+容纳一行，简介独占，按钮独占靠右 */
  .room-row { display: grid; grid-template-columns: 1fr 84px; gap: 6px; }
  .room-row > input { width: 100% !important; flex: none !important; }
  .room-row > :nth-child(3) { grid-column: 1 / -1; }
  .room-row > :nth-child(4) { grid-column: 1 / -1; justify-self: end; width: auto; }
  /* 设置页保存按钮手机端占满、触控加大 */
  .panel > .btn-gold.mt { width: 100%; padding: 12px; font-size: 15px; }
  .panel .modal-foot { flex-wrap: wrap; gap: 8px; }
  .panel .modal-foot .btn-gold,
  .panel .modal-foot .btn-ghost { flex: 1; min-height: 44px; padding: 10px; }
  .drawer { width: 100%; }

  /* ===== 用户管理表格手机端优化 ===== */
  /* 每个字段独占一行，label 在上、控件在下占满宽度，触控目标加大 */
  .user-ledger td { display: block; text-align: left; padding: 6px 0; flex-direction: column; align-items: stretch; }
  .user-ledger td::before { display: block; margin-bottom: 5px; min-width: 0; text-align: left; }
  .user-ledger td input,
  .user-ledger td select { width: 100%; min-height: 40px; box-sizing: border-box; font-size: 14px; }
  /* 用户名 + 姓名 2 列并排 */
  .user-ledger td[data-label="用户名"],
  .user-ledger td[data-label="姓名"] { display: inline-block; width: 50%; box-sizing: border-box; vertical-align: top; }
  .user-ledger td[data-label="用户名"] { padding-right: 6px; }
  .user-ledger td[data-label="姓名"] { padding-left: 6px; }
  .user-ledger td[data-label="用户名"]::before,
  .user-ledger td[data-label="姓名"]::before { display: block; margin-bottom: 4px; }
  /* 重置密码：input 和按钮垂直堆叠各占满 */
  .user-ledger td[data-label="重置密码"] { display: flex; flex-direction: column; gap: 6px; }
  .user-ledger td[data-label="重置密码"] button { width: 100%; min-height: 40px; }
  /* 状态、操作按钮占满 */
  .user-ledger td[data-label="状态"] button,
  .user-ledger td[data-label="操作"] button { min-height: 40px; padding: 8px 16px; }
  .user-ledger td[data-label="操作"] { display: flex; }
  .user-ledger td[data-label="操作"] button { width: 100%; }

  /* 新增用户表单：grid 2 列，按钮独占整行 */
  .user-add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .user-add-form input,
  .user-add-form select { min-width: 0; min-height: 40px; box-sizing: border-box; font-size: 14px; }
  .user-add-form .btn-gold { grid-column: 1 / -1; width: 100%; min-height: 44px; padding: 10px; }
}
