* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f6f7f9; color: #1f2430; }
a { color: #b8860b; text-decoration: none; }
button { cursor: pointer; border: 1px solid #d8dce3; background: #fff; border-radius: 8px; padding: 7px 14px; font-size: 14px; }
button.primary { background: #f0b90b; border-color: #f0b90b; color: #1e2329; font-weight: 600; }
button.danger { background: #fff; color: #c0392b; border-color: #e5b4ae; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #d8dce3; border-radius: 8px; font-size: 14px; background: #fff; }
label { display: block; font-size: 13px; color: #5b6472; margin: 10px 0 4px; }
.topbar { background: #1e2329; color: #f5f5f5; padding: 12px 16px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20; }
.topbar .brand { font-weight: 700; font-size: 17px; color: #f0b90b; }
.topbar nav { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.topbar nav a { color: #e8eaed; font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar > * { flex: 1 1 160px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid #e6e9ee; border-radius: 12px; overflow: hidden; }
.card img { width: 100%; height: 160px; object-fit: cover; background: #eef0f3; display: block; }
.card .body { padding: 12px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.price { color: #b8860b; font-weight: 700; }
.muted { color: #7a828f; font-size: 13px; }
.tag { display: inline-block; background: #fdf6e0; color: #8a6d00; border: 1px solid #f0d97a; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.drawer { position: fixed; top: 0; right: -420px; width: min(400px, 92vw); height: 100%; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15); transition: right .25s; z-index: 40; padding: 16px; overflow-y: auto; }
.drawer.open { right: 0; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 50; }
.modal-mask.open { display: block; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 14px; width: min(520px, 94vw); max-height: 90vh; overflow-y: auto; padding: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { border-bottom: 1px solid #eceef1; padding: 8px; text-align: left; vertical-align: top; }
th { color: #5b6472; font-weight: 600; }
.panel { background: #fff; border: 1px solid #e6e9ee; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 0 1 auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1e2329; color: #fff; padding: 10px 18px; border-radius: 8px; display: none; z-index: 99; font-size: 14px; }
.toast.show { display: block; }
.trustbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.trustbar span { background: #fff; border: 1px solid #e6e9ee; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: #5b6472; }
.svc-btn { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: #1e2329; color: #fff; font-size: 24px; border: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60; padding: 0; }
.badge-new { display: inline-block; background: #e74c3c; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-left: 8px; }
.gallery-thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.gallery-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: #f0b90b; }
.qr-img { display: block; max-width: 260px; width: 100%; margin: 10px auto; border: 1px solid #e6e9ee; border-radius: 12px; }
.big-order { font-size: 20px; font-weight: 700; letter-spacing: 1px; text-align: center; }
.status { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef0f3; }
.status.confirmed, .status.shipped { background: #e5f6ec; color: #1d7a46; }
.status.awaiting_confirm { background: #fdf6e0; color: #8a6d00; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: #eef0f3; }
.acct-card { flex: 1 1 150px; border: 1px solid #e6e9ee; border-radius: 12px; padding: 12px 14px; background: #fffdf5; }
