* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f5f5f5; color: #333; max-width: 520px; margin: 0 auto; min-height: 100vh; }
header.top { position: sticky; top: 0; z-index: 10; background: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; }
header.top .logo { font-weight: 700; font-size: 18px; }
header.top .logo span { color: #ff5000; }
header.top a { color: #333; text-decoration: none; font-size: 14px; margin-left: 14px; }
.badge { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; background: #ff5000; color: #fff; border-radius: 8px; font-size: 11px; text-align: center; padding: 0 4px; margin-left: 2px; }
.card { background: #fff; border-radius: 12px; padding: 14px; margin: 12px 12px 0; }
.btn { display: inline-block; border: none; border-radius: 20px; padding: 8px 18px; font-size: 13px; cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, #ff6a3d, #ff5000); color: #fff; box-shadow: 0 2px 8px rgba(255,80,0,.32); }
.btn.ghost { background: #fff; color: #ff5000; border: 1px solid #ff5000; }
.btn.block { display: block; width: 100%; text-align: center; padding: 12px; font-size: 15px; border-radius: 24px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.muted { color: #999; font-size: 12px; }
.price { color: #ff5000; font-weight: 700; }
.empty { text-align: center; color: #999; padding: 80px 0; font-size: 14px; }
#toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.75); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 14px; z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s; }
#toast.show { opacity: 1; }

/* ===== 底部导航（公共）===== */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; background: #fff; border-top: 1px solid #eee; display: flex; z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 6px; color: #999; text-decoration: none; font-size: 11px; position: relative; }
.tabbar a .ic { font-size: 20px; line-height: 1.2; display: block; }
.tabbar a.on { color: #ff5000; }
.tabbar a .badge { position: absolute; top: 2px; margin-left: 2px; }
/* 页面内容底部留白，避免被 tabbar 遮挡 */
body.has-tabbar { padding-bottom: 64px; }