
:root { --brand:#8a6d3b; --brand-dark:#6f5730; --bg:#f7f5f0; --card:#ffffff; --line:#e5e0d5; --text:#33302a; --muted:#8b8578; --danger:#c0392b; --ok:#2e7d32; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.5; padding-bottom: 70px; }
.container { max-width: 480px; margin: 0 auto; padding: 12px; }
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.card h3 { font-size: 15px; margin-bottom: 10px; color: var(--brand-dark); }
.btn { display: block; width: 100%; padding: 13px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-size: 16px; cursor: pointer; }
.btn:disabled { background: #c9c2b2; cursor: not-allowed; }
.btn-sm { display: inline-block; width: auto; padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--brand); }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 10px; font-size: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
.row3 { display: flex; gap: 8px; } .row3 select { flex: 1; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #efe9dc; color: var(--brand-dark); }
.badge.ok { background: #e3f2e6; color: var(--ok); }
.badge.warn { background: #fdeaea; color: var(--danger); }
.goods { display: flex; gap: 10px; align-items: center; }
.goods img { width: 72px; height: 72px; border-radius: 8px; border: 1px solid var(--line); }
.goods .info { flex: 1; }
.price { color: var(--danger); font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 0 10px; }
.bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.bottom-bar .btn { width: 100%; }
table.grid { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; font-size: 13px; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 8px 6px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.grid th { background: #f1ede3; color: var(--brand-dark); font-weight: 600; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 10px; padding: 16px; width: min(92vw, 520px); max-height: 84vh; overflow: auto; }
.topbar { background: var(--brand); color: #fff; padding: 12px 16px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.topbar a, .topbar button { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; text-decoration: none; }
.stat-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.stat-card .num { font-size: 28px; font-weight: 700; color: var(--brand-dark); }
.stat-card .t { color: var(--muted); font-size: 13px; margin-top: 4px; }
