* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #1f2937; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 700; font-size: 18px; color: #c81e2b; }
.actions { display: flex; gap: 10px; align-items: center; }
.linkbtn { background: none; border: none; color: #2563eb; font-size: 14px; cursor: pointer; }
.cartbtn { background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
main { max-width: 960px; margin: 0 auto; padding: 12px; }
.hero { background: linear-gradient(135deg, #eef2ff, #fff); border-radius: 12px; padding: 24px 16px; text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card.p { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.pimg { height: 90px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.pname { font-weight: 600; margin: 8px 0 2px; }
.pdesc { font-size: 12px; color: #6b7280; min-height: 32px; }
.prow { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { color: #c81e2b; font-weight: 700; }
.primary { background: #c81e2b; color: #fff; border: none; border-radius: 8px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
.hidden { display: none !important; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 320px; max-width: 86vw; background: #fff; box-shadow: -2px 0 8px rgba(0,0,0,.15); z-index: 20; padding: 16px; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cartitems .ci { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.cartitems button { margin-left: 4px; border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.cartfoot { position: sticky; bottom: 0; background: #fff; padding-top: 12px; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 8px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 30; }
.card { background: #fff; border-radius: 12px; padding: 20px; width: 320px; max-width: 90vw; display: flex; flex-direction: column; gap: 10px; }
.card input { border: 1px solid #d1d5db; border-radius: 8px; padding: 10px; font-size: 14px; }
.hint { font-size: 12px; color: #6b7280; background: #fff7ed; padding: 8px; border-radius: 8px; }
.footer { max-width: 960px; margin: 24px auto; padding: 16px; font-size: 12px; color: #6b7280; text-align: center; line-height: 1.9; border-top: 1px solid #e5e7eb; }
.footer a { color: #2563eb; }
.flinks { margin-top: 6px; }
/* 后台表格 */
.admintable { width: 100%; border-collapse: collapse; font-size: 13px; }
.admintable th, .admintable td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: left; }
.tag-pending { color: #b45309; } .tag-confirmed { color: #15803d; } .tag-cancelled { color: #6b7280; }
