/* 营销系统 - 公共样式 */
:root { --primary: #ff4444; --primary-dark: #e63939; --bg: #f5f5f5; --card: #fff; --text: #333; --text-light: #999; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 65px; }
.header { background: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #eee; }
.header .back { font-size: 20px; color: #333; text-decoration: none; }
.header .title { font-size: 17px; font-weight: 600; }
.header .action { font-size: 14px; color: var(--primary); text-decoration: none; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; display: flex; border-top: 1px solid #eee; z-index: 100; padding: 6px 0 env(safe-area-inset-bottom, 0); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #999; font-size: 11px; padding: 4px 0; }
.tabbar a.active { color: var(--primary); }
.tabbar a i { font-size: 22px; margin-bottom: 2px; }
.card { background: #fff; border-radius: 12px; margin: 10px 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; border-radius: 8px; padding: 10px 24px; font-weight: 500; }
.btn-primary:active { background: var(--primary-dark); }
.badge-tag { background: #f0f0f0; color: #888; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.amount { color: var(--primary); font-weight: 700; }
.text-line-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-line-2 { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty-state { text-align: center; padding: 60px 20px; color: #ccc; }
.empty-state i { font-size: 64px; display: block; margin-bottom: 12px; }
.loading { text-align: center; padding: 20px; color: #999; }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: #fff; padding: 10px 20px; border-radius: 20px; z-index: 9999; font-size: 14px; display: none; }
.swiper-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.swiper-dots span { width: 6px; height: 6px; border-radius: 3px; background: #ddd; }
.swiper-dots span.active { background: var(--primary); width: 16px; }
