/* CakeMall 商家后台 —— 配色与小程序一致(奶油底/深棕/珊瑚红),手机优先 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg: #F7F2EC; --card: #fff; --ink: #1F1A17; --sub: #8A7C73; --line: #EFE7DD; --accent: #E15B4A; --good: #3E9B4F; }
body { font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); }
#app { max-width: 760px; margin: 0 auto; padding: 0 14px 90px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px 12px; }
.topbar .brand { font-size: 19px; font-weight: 700; }
.topbar .out { color: var(--sub); font-size: 13px; cursor: pointer; }

.tabs { display: flex; gap: 6px; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 10; }
.tabs .t { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; color: var(--sub); font-size: 13px; cursor: pointer; }
.tabs .t.on { color: var(--accent); font-weight: 600; background: #FBE4DD; }

.card { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.card .hd { font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--sub); font-size: 13px; }
.empty { text-align: center; color: var(--sub); padding: 32px 0; }

.btn { display: inline-block; border: none; border-radius: 999px; padding: 9px 18px; font-size: 14px; cursor: pointer; background: var(--accent); color: #fff; }
.btn.ghost { background: #F7F2EC; color: var(--ink); }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn.green { background: var(--good); }
.btn:disabled { opacity: .45; cursor: default; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; background: #FDFBF8; color: var(--ink); }
.field textarea { min-height: 72px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; background: #FDFBF8; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.olist .oitem { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.olist .oitem:last-child { border-bottom: none; }
.oitem .t1 { font-weight: 600; font-size: 14px; }
.oitem .t2 { color: var(--sub); font-size: 12.5px; margin-top: 3px; }
.badge { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 12px; background: #F1E8DB; color: #7A6A55; white-space: nowrap; }
.badge.hot { background: #FBE4DD; color: var(--accent); }
.badge.ok { background: #E3F2E5; color: var(--good); }

.statustabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.statustabs .st { white-space: nowrap; border-radius: 999px; padding: 6px 14px; font-size: 13px; background: var(--card); color: var(--sub); cursor: pointer; }
.statustabs .st.on { background: var(--ink); color: #fff; }

.pcard { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pcard:last-child { border-bottom: none; }
.pcard img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--line); }
.pcard .pi { flex: 1; min-width: 0; }
.pcard .pt { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pp { color: var(--accent); font-weight: 700; font-size: 14px; }

.mask { position: fixed; inset: 0; background: rgba(31,26,23,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 760px; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet .sh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; font-size: 16px; }
.sheet .x { color: var(--sub); font-size: 22px; cursor: pointer; line-height: 1; }

.tl { border-left: 2px solid var(--line); margin: 8px 0 8px 6px; padding-left: 14px; }
.tl .te { position: relative; padding-bottom: 10px; font-size: 13px; }
.tl .te::before { content: ''; position: absolute; left: -19.5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl .te .tt { color: var(--sub); font-size: 12px; }

.login { max-width: 340px; margin: 18vh auto 0; }
.login h1 { font-size: 22px; margin-bottom: 4px; }
.login .sub { color: var(--sub); font-size: 13px; margin-bottom: 22px; }

.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.kv .k { color: var(--sub); }
.imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.imgs img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 20px; font-size: 14px; z-index: 40; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: 14px; padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 700; color: var(--accent); }
.stat .l { color: var(--sub); font-size: 13px; }
