/* GoToLive 直播电商 - 用户端样式 */
/* build: 2026-11-02 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #6d5efc; --primary2: #a34bfc; --accent: #ff4d6d;
  --bg: #f5f6fa; --card: #fff; --text: #222; --sub: #888;
  --radius: 14px; --shadow: 0 4px 16px rgba(109,94,252,.10);
}
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #e9eaf2; color: var(--text); }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; box-shadow: 0 0 40px rgba(0,0,0,.08); }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 50; padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; border-radius: 0 0 18px 18px; }
.logo { font-weight: 800; font-size: 18px; white-space: nowrap; }
.logo .hl { color: #ffd166; }
.search-box { flex: 1; display: flex; background: rgba(255,255,255,.2); border-radius: 20px; overflow: hidden; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; padding: 8px 14px; color: #fff; font-size: 13px; }
.search-box input::placeholder { color: rgba(255,255,255,.7); }
.search-box button { border: 0; background: transparent; cursor: pointer; padding: 0 12px; }

/* 主视图 */
main { padding: 14px 14px 80px; }

/* 区块标题 */
.sec-title { display: flex; justify-content: space-between; align-items: center; margin: 6px 2px 10px; }
.sec-title h3 { font-size: 16px; }
.sec-title .more { font-size: 12px; color: var(--sub); cursor: pointer; }

/* 直播卡片（旧版兜底样式，广场现用 .lp-card） */
.badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.badge.live { background: var(--accent); }
.badge.sched { background: rgba(255,255,255,.25); }
.badge.end { background: #666; }

/* 直播间 */
.room { position: fixed; inset: 0; z-index: 100; background: #1a1333; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; color: #fff; }
.room-top { padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.room-top .back { cursor: pointer; font-size: 20px; }
.room-title { font-size: 14px; font-weight: 600; flex: 1; }
.room-viewers { font-size: 12px; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 12px; }
.room-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #43299b, #191038 70%); }
.room-stage .big { font-size: 90px; filter: drop-shadow(0 0 30px rgba(255,77,109,.5)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.room-stage .host { margin-top: 14px; font-size: 15px; font-weight: 600; }
.room-stage .desc { margin-top: 6px; font-size: 12px; opacity: .7; padding: 0 30px; text-align: center; }
.sched-pill { margin-top: 12px; font-size: 11.5px; color: #ffd166; background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.35);
  border-radius: 999px; padding: 5px 14px; }
.danmaku { position: absolute; top: 12%; left: 0; right: 0; pointer-events: none; overflow: hidden; height: 220px; }
.dm { position: absolute; white-space: nowrap; font-size: 13px; padding: 4px 12px; background: rgba(0,0,0,.35); border-radius: 14px; animation: fly 7s linear forwards; }
@keyframes fly { from { transform: translateX(500px); } to { transform: translateX(-160%); } }
.danmaku-list { position: absolute; left: 12px; bottom: 12px; width: 60%; max-height: 120px; overflow: hidden; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.danmaku-list div { background: rgba(0,0,0,.4); border-radius: 10px; padding: 3px 10px; width: fit-content; animation: fadeUp .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.room-actions { position: absolute; right: 12px; bottom: 90px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.act-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.act-btn .num { font-size: 10px; margin-top: -2px; }
.room-bottom { padding: 10px 12px 16px; background: rgba(0,0,0,.5); }
.room-bottom .hint { font-size: 11px; opacity: .6; margin-bottom: 8px; text-align: center; }
.live-prod { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; }
.live-prod .pic { font-size: 26px; }
.live-prod .info { flex: 1; min-width: 0; }
.live-prod .info b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-prod .info span { font-size: 12px; color: #ffd166; font-weight: 700; }
.live-prod .info del { color: #aaa; font-size: 11px; margin-left: 6px; }
.btn-buy { border: 0; background: linear-gradient(135deg, var(--accent), #ff8a5c); color: #fff; border-radius: 16px; padding: 6px 14px; font-size: 12px; cursor: pointer; }

/* 通用卡片 */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }

/* 商品列表 */
.filter-row { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.chip { padding: 6px 14px; border-radius: 16px; background: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; border: 1px solid transparent; }
.chip.on { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; }
.cart-chip { color: var(--accent); font-weight: 800; }
.chip.on .cart-chip { color: #ffd166; }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.prod-card .pic { height: 96px; display: flex; align-items: center; justify-content: center; font-size: 42px; background: linear-gradient(135deg, #f0edff, #fdf0ff); }
.prod-card .body { padding: 10px; }
.prod-card b { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.prod-card .price { color: var(--accent); font-weight: 800; font-size: 16px; margin-top: 6px; }
.prod-card .price small { color: var(--sub); font-weight: 400; font-size: 11px; margin-left: 6px; }
.prod-card .sales { color: var(--sub); font-size: 11px; margin-top: 2px; }

/* 按钮 */
.btn { display: block; width: 100%; border: 0; border-radius: 22px; padding: 12px; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); }
.btn:disabled { opacity: .5; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 16px; border: 0; cursor: pointer; background: var(--primary); color: #fff; }
.btn-ghost { background: #f0f0f5; color: #555; }
.btn-danger { background: #ffecec; color: var(--accent); }

/* 表单 */
.form-item { margin-bottom: 12px; }
.form-item label { font-size: 12px; color: var(--sub); display: block; margin-bottom: 5px; }
.form-item input, .form-item textarea, .form-item select { width: 100%; border: 1px solid #e3e3ee; border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; background: #fafafe; }
.form-item input:focus, .form-item textarea:focus { border-color: var(--primary); }
/* 密码显隐切换 */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-eye {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; font-size: 16px; line-height: 1;
  padding: 6px 8px; border-radius: 8px; color: #8a86a3; user-select: none;
}
.pw-eye:hover { color: var(--primary); background: #f1effe; }

/* AI 聊天 */
.ai-wrap { display: flex; flex-direction: column; height: calc(100vh - 150px); }
.ai-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fff; box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.rec-prod { display: flex; align-items: center; gap: 8px; background: #f6f4ff; border-radius: 10px; padding: 8px 10px; margin-top: 6px; cursor: pointer; }
.rec-prod .pic { font-size: 22px; }
.rec-prod b { font-size: 12.5px; }
.rec-prod span { color: var(--accent); font-weight: 700; margin-left: auto; font-size: 13px; }
.ai-input { display: flex; gap: 8px; padding-top: 10px; }
.ai-input input { flex: 1; border: 1px solid #e3e3ee; border-radius: 20px; padding: 10px 16px; font-size: 14px; outline: none; }
.ai-input button { border: 0; border-radius: 20px; padding: 0 20px; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--primary2)); }
.quick-qs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.quick-qs .chip { background: #fff; color: var(--primary); border: 1px solid #d9d2ff; flex: 1 1 calc(50% - 4px); text-align: center; box-sizing: border-box; }

/* 我的 */
.me-head { background: linear-gradient(135deg, var(--primary), var(--primary2)); margin: -14px -14px 14px; padding: 26px 18px 22px; color: #fff; border-radius: 0 0 22px 22px; }
.me-head .name { font-size: 18px; font-weight: 700; }
.me-head .level { display: inline-block; margin-top: 6px; background: rgba(255,255,255,.22); padding: 3px 12px; border-radius: 12px; font-size: 12px; }
.me-stats { display: flex; gap: 10px; margin-top: 14px; }
.me-stats > div { flex: 1; background: rgba(255,255,255,.15); border-radius: 12px; padding: 10px; text-align: center; }
.me-stats b { font-size: 17px; display: block; }
.me-stats span { font-size: 11px; opacity: .8; }
.order-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.order-item { display: flex; align-items: center; gap: 10px; }
.order-item .pic { font-size: 28px; }
.order-item .info { flex: 1; }
.order-item b { font-size: 13px; display: block; }
.order-item .st { font-size: 12px; color: var(--sub); }
.order-item .amt { font-weight: 700; color: var(--accent); }

/* 批发 */
.ws-banner { background: linear-gradient(135deg, #1f8a70, #27b489); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.ws-banner h3 { font-size: 17px; }
.ws-banner p { font-size: 12px; opacity: .9; margin-top: 6px; }
.ws-row { display: flex; align-items: center; gap: 10px; }
.ws-row .pic { font-size: 26px; }
.ws-row .info { flex: 1; }
.ws-row b { font-size: 13px; }
.ws-row .ws-price { color: #1f8a70; font-weight: 800; }
.tag-min { font-size: 11px; background: #e8f7f2; color: #1f8a70; padding: 2px 8px; border-radius: 8px; }

/* 底部导航 */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 60;
  background: #fff; display: flex; padding: 6px 0 max(6px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.tab { flex: 1; text-align: center; font-size: 20px; cursor: pointer; color: #b6b6c4; }
.tab span { display: block; font-size: 10.5px; margin-top: 1px; }
.tab.active { color: var(--primary); font-weight: 600; }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80; max-width: 100vw; }
.modal { position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(88vw, 420px);
  max-height: 82vh; overflow-y: auto; background: #fff; border-radius: 18px; padding: 20px; }
.modal h3 { margin-bottom: 14px; font-size: 16px; }
.toast { position: fixed; z-index: 120; left: 50%; top: 45%; transform: translate(-50%,-50%); background: rgba(0,0,0,.8); color: #fff;
  padding: 12px 22px; border-radius: 12px; font-size: 13.5px; max-width: 80vw; }
.hidden { display: none !important; }
.empty { text-align: center; color: var(--sub); font-size: 13px; padding: 40px 0; }
.link { color: var(--primary); cursor: pointer; }

/* ===== 海报同款风格：Hero 头图 ===== */
.hero { position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 24px 18px 18px;
  background: linear-gradient(140deg, #3b4ce0 0%, #6d5efc 45%, #8b5cf6 80%, #b06ef8 100%); box-shadow: 0 10px 28px rgba(93,84,238,.35); }
.hero::before { content: ''; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); }
.hero::after { content: ''; position: absolute; right: 34px; bottom: -34px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,209,102,.35), transparent 70%); }
.hero .tagline { display: inline-block; font-size: 10.5px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px; padding: 2px 10px; margin-bottom: 10px; }
.hero h2 { font-size: 23px; font-weight: 800; letter-spacing: 1px; }
.hero h2 .thin { font-weight: 500; font-size: 18px; }
.hero .sub { font-size: 11px; opacity: .88; margin-top: 6px; letter-spacing: .5px; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 4px; backdrop-filter: blur(4px); }
.hero-stats > div { text-align: center; position: relative; }
.hero-stats > div + div::before { content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.25); }
.hero-stats b { font-size: 17px; font-weight: 800; display: block; }
.hero-stats span { font-size: 10px; opacity: .85; }

/* ===== 编号功能卡片（海报 01~09 同款） ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 18px; }
.feat-card { position: relative; background: #fff; border-radius: 14px; padding: 13px 11px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .15s; }
.feat-card:active { transform: scale(.96); }
.feat-card .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: linear-gradient(135deg, #efedff, #fdefff); }
.feat-card b { display: block; font-size: 12.5px; margin-top: 8px; }
.feat-card small { display: block; font-size: 10px; color: #a5a5b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-card .no { position: absolute; top: 9px; right: 11px; font-size: 10px; font-weight: 800; color: #d9d4ff; letter-spacing: .5px; }

/* ===== 直播间 v2：实时互动细节 ===== */
.room { max-width: 480px; margin: 0 auto; left: 0; right: 0; }
.room-top { position: relative; z-index: 3; }
.host-pill { flex: 1; background: rgba(255,255,255,.12); border-radius: 18px; padding: 5px 12px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.host-pill b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host-pill span { font-size: 11px; opacity: .8; white-space: nowrap; margin-left: auto; }
.follow-btn { border: 0; border-radius: 14px; padding: 5px 12px; font-size: 11.5px; color: #fff; background: linear-gradient(135deg,#ff4d6d,#ff8a5c); cursor: pointer; white-space: nowrap; }
.follow-btn.on { background: rgba(255,255,255,.2); }
.stage-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; left: 50%; top: 28%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(139,92,246,.42), transparent 68%); filter: blur(6px); pointer-events: none; }
.quality-tools { position: absolute; right: 12px; top: 10px; display: flex; gap: 6px; z-index: 3; }
.quality-tools span { font-size: 10px; background: rgba(0,0,0,.32); border-radius: 8px; padding: 3px 8px; cursor: pointer; }
.hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.heart { position: absolute; right: 34px; bottom: 150px; font-size: 18px; animation: heartFly 1.5s ease-out forwards; }
@keyframes heartFly { 0% { opacity: 1; transform: translate(0,0) scale(.7); } 100% { opacity: 0; transform: translate(-60px,-220px) scale(1.35) rotate(18deg); } }
/* 直播间底部：讲解位 + 发言栏 */
.live-goods { background: linear-gradient(180deg, rgba(12,8,32,.92), rgba(12,8,32,.98)); padding: 10px 12px 4px; }
.goods-bar { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 9px 10px; }
.goods-bar .pic { font-size: 28px; }
.goods-bar .info { flex: 1; min-width: 0; }
.goods-bar .row1 { display: flex; align-items: center; gap: 6px; }
.goods-bar .row1 b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-live-x { font-size: 9.5px; background: linear-gradient(135deg,#ff4d6d,#ff8a5c); padding: 1px 5px; border-radius: 5px; white-space: nowrap; }
.goods-bar .row2 { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.goods-bar .row2 .p { color: #ffd166; font-weight: 800; font-size: 15px; }
.goods-bar .row2 del { color: #9c9ab5; font-size: 10.5px; }
.goods-bar .row2 .cd { font-size: 10px; color: #ffb3c1; background: rgba(255,77,109,.16); padding: 1px 6px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; }
.goods-bar .buy { border: 0; border-radius: 16px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg,#ff4d6d,#ff8a5c); white-space: nowrap; }
.goods-bar .buy:disabled { background: #5b5772; }
.chat-row { display: flex; gap: 8px; margin-top: 8px; }
.chat-row input { flex: 1; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff;
  border-radius: 18px; padding: 8px 14px; font-size: 12.5px; outline: none; }
.chat-row input::placeholder { color: rgba(255,255,255,.45); }
.chat-row button { border: 0; border-radius: 18px; padding: 0 16px; font-size: 12.5px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); }
/* 弹幕气泡样式区分 */
.dm.notice { background: rgba(255,209,102,.22); border: 1px solid rgba(255,209,102,.4); color: #ffe9b0; }
.dm.ai { background: linear-gradient(135deg, rgba(109,94,252,.28), rgba(156,75,252,.28)); border: 1px solid rgba(169,156,255,.55); color: #e8e4ff; }
.dm-list-item { font-size: 11.5px; line-height: 1.5; }
.dm-list-item b { color: #a99cff; margin-right: 2px; }
.dm-list-item.notice b { color: #ffd166; }
.dm-list-item.sys { color: #ffb37a; }
.dm-list-item.ai { background: linear-gradient(135deg, rgba(109,94,252,.16), rgba(156,75,252,.16)); border-radius: 9px; padding: 4px 7px; margin: 2px 0; }
.dm-list-item.ai b { color: #c9beff; }

/* AI 加购引导卡 */
.ai-guide { position: absolute; left: 12px; right: 12px; bottom: 128px; z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; color: #fff;
  background: linear-gradient(120deg, rgba(43,26,107,.96), rgba(107,63,228,.96));
  box-shadow: 0 10px 26px rgba(20,8,60,.4); animation: agUp .3s ease-out; }
@keyframes agUp { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ai-guide .ag-ic { font-size: 22px; }
.ai-guide .ag-bd { flex: 1; min-width: 0; }
.ai-guide .ag-bd b { font-size: 12.5px; display: block; }
.ai-guide .ag-bd p { font-size: 11px; opacity: .78; margin-top: 2px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-guide .ag-act { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ai-guide .ag-go { border: 0; border-radius: 999px; padding: 6px 13px; font-size: 11.5px; font-weight: 700; cursor: pointer; color: #4b2bb5;
  background: linear-gradient(135deg, #ffe9b0, #ffd166); white-space: nowrap; }
.ai-guide .ag-x { font-size: 12px; opacity: .6; cursor: pointer; }
/* 小黄车弹层 */
.sheet { position: fixed; z-index: 95; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100vw,480px);
  max-height: 70vh; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 14px 22px; overflow-y: auto; animation: sheetUp .28s ease-out; }
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet h3 { font-size: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.sheet .close { font-size: 18px; color: #bbb; cursor: pointer; }
.sheet-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #f0f0f5; }
.sheet-item .pic { font-size: 26px; }
.sheet-item .info { flex: 1; min-width: 0; }
.sheet-item .info b { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-item .info span { font-size: 11px; color: #999; }
.sheet-item .p { color: #ff4d6d; font-weight: 800; font-size: 14px; }
.sheet-item .btn-sm { flex-shrink: 0; }
/* 互动运营：抽奖 / 投票 / 粉丝榜 */
.ift-sec { margin-bottom: 16px; }
.ift-sec h4 { font-size: 13.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.ift-empty { font-size: 12px; color: #b6b6c4; padding: 8px 0 4px; }
.ift-card { background: #f8f6ff; border: 1px solid #e6e0ff; border-radius: 12px; padding: 11px; }
.ift-card .prize { font-size: 13px; font-weight: 700; color: #4b3fd4; }
.ift-card .sub { font-size: 11.5px; color: #999; margin-top: 3px; }
.vote-opt { position: relative; border: 1px solid #e3e3ee; border-radius: 10px; padding: 9px 12px; margin-bottom: 7px; font-size: 12.5px;
  cursor: pointer; overflow: hidden; }
.vote-opt .bar { position: absolute; inset: 0; background: #efedff; z-index: 0; }
.vote-opt .row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.vote-opt .pct { color: #6d5efc; font-weight: 700; }
.fan-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0f0f5; font-size: 13px; }
.fan-row .rk { width: 26px; text-align: center; font-size: 15px; }
.fan-row .nm { flex: 1; font-weight: 600; }
.fan-row .pt { color: #ff8a5c; font-weight: 800; }
.fan-row .pt small { color: #bbb; font-weight: 400; margin-left: 2px; }

/* ---- 多平台联播条 ---- */
.relay-bar {
  background: linear-gradient(90deg, #eef1ff, #f6f0ff);
  color: #4a3cdc; font-size: 12px; font-weight: 600;
  padding: 6px 14px; text-align: center;
  border-bottom: 1px solid #ececff;
}

/* ---- 直播广场：深紫渐变横排卡（海报同款） ---- */
.live-list { display: flex; flex-direction: column; gap: 12px; }
.lp-card {
  position: relative; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--live-card, #241d54) 0%, #3d2a80 55%, #5b3aa8 100%);
  border-radius: 16px; padding: 16px 16px 13px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(50, 35, 120, .28);
  transition: transform .16s, box-shadow .16s;
}
.lp-card:active { transform: scale(.98); }
.lp-card::after { content: ''; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.lp-card.lp-on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #ff4d6d, #ff9f43); }
.lp-card.lp-on { box-shadow: 0 6px 22px rgba(255, 77, 109, .22), 0 6px 20px rgba(50, 35, 120, .28); }
.lp-badge { position: absolute; top: 12px; left: 14px; z-index: 2; }
.lp-card .badge.live { animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,46,99,.5); } 50% { box-shadow: 0 0 0 6px rgba(255,46,99,0); } }
.lp-no { position: absolute; top: 12px; right: 16px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: rgba(255,255,255,.35); }
.lp-head { display: flex; align-items: center; gap: 10px; margin-top: 18px; min-width: 0; }
.lp-emoji { font-size: 30px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); flex-shrink: 0; }
.lp-head h4 { font-size: 16.5px; font-weight: 800; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-meta { display: flex; gap: 14px; font-size: 12px; opacity: .85; margin: 8px 0 10px 40px; flex-wrap: wrap; }
.lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-left: 40px; }
.lp-time { font-size: 11px; color: rgba(255,255,255,.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-go { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #ff9f43; cursor: pointer; }
.badge.live { background: linear-gradient(90deg, #ff2e63, #ff6b81); }
.badge.sched { background: rgba(255,255,255,.25); color: #fff; }
.badge.end { background: rgba(120,120,150,.45); color: rgba(255,255,255,.75); }
.live-count { color: var(--accent); font-weight: 700; }

/* ---- 我的：会员卡 / 分销推广 ---- */
.seg { display: flex; background: #f2f3fa; border-radius: 999px; padding: 3px; }
.seg span { font-size: 12px; padding: 4px 14px; border-radius: 999px; cursor: pointer; color: #8890a8; font-weight: 600; }
.seg span.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(80,63,216,.15); }
.mc-status { font-size: 12px; color: #666; background: #f7f8ff; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.card-list { display: flex; flex-direction: column; gap: 8px; }
.mc-item { display: flex; align-items: center; gap: 10px; border: 1px solid #ececf5; border-radius: 12px; padding: 10px 12px; background: linear-gradient(135deg, #fbfaff, #fff); }
.mc-item .mc-lv { font-size: 13px; font-weight: 700; min-width: 68px; }
.mc-item .mc-price { font-size: 17px; font-weight: 800; color: #ff4d6d; }
.mc-item .mc-price small { font-size: 11px; color: #999; font-weight: 400; }
.mc-item .mc-benefit { flex: 1; font-size: 11px; color: #8890a8; line-height: 1.5; }
.mc-item .mc-buy { border: none; cursor: pointer; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #6d5efc, #a34bfc); flex-shrink: 0; }
.invite-code { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #f2f0ff, #fdf6ff); border: 1px dashed #c9bffb; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.invite-code small { display: block; font-size: 11px; color: #8890a8; }
.invite-code b { font-size: 17px; letter-spacing: 2px; color: #5a3fd8; }
.invite-code .copy-btn { font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #6d5efc, #a34bfc); border-radius: 999px; padding: 6px 12px; }
.ref-stats { display: flex; margin-top: 10px; background: #fafafe; border-radius: 10px; padding: 10px 0; }
.ref-stats > div { flex: 1; text-align: center; }
.ref-stats b { display: block; font-size: 16px; color: #5a3fd8; }
.ref-stats span { font-size: 11px; color: #8890a8; }
.ref-rules { font-size: 11.5px; color: #8890a8; line-height: 1.7; margin-top: 8px; }
.ref-rules b { color: #ff6b81; }
.ref-list { margin-top: 10px; border-top: 1px dashed #eee; padding-top: 8px; }
.ref-list div { display: flex; justify-content: space-between; font-size: 12px; color: #666; padding: 3px 0; }
.ref-list div span:last-child { color: #1f8a70; font-weight: 700; }
.entry-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.entry-row small { display: block; font-size: 11.5px; color: #8890a8; margin-top: 3px; }
.entry-row > span { font-size: 12.5px; font-weight: 700; color: var(--primary); }

/* ===== 「我的」重构：订单四宫格 / 快捷入口 / 设置 ===== */
.me-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.me-sec-head h3 { font-size: 15px; }
.me-sec-head .more { font-size: 12px; color: #8890a8; cursor: pointer; }
.order-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.og-item { text-align: center; font-size: 11.5px; color: #555; cursor: pointer; padding: 6px 0; border-radius: 10px; }
.og-item:active { background: #f6f5ff; }
.og-ic { position: relative; display: block; font-size: 22px; margin-bottom: 4px; }
.og-ic b { position: absolute; top: -4px; right: 12px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
  background: var(--accent); color: #fff; font-size: 10px; border-radius: 8px; }
.quick-entries { display: flex; gap: 8px; }
.qe-item { flex: 1; display: flex; align-items: center; gap: 8px; background: #fafaff; border-radius: 12px; padding: 9px 10px; cursor: pointer; min-width: 0; }
.qe-item:active { background: #f1efff; }
.qe-ic { font-size: 20px; flex-shrink: 0; }
.qe-item b { display: block; font-size: 12.5px; }
.qe-item small { display: block; font-size: 10.5px; color: #8890a8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl-line { margin-top: 10px; font-size: 12px; color: #8890a8; display: flex; justify-content: space-between; cursor: pointer; }
.lvl-line span { color: var(--primary); font-weight: 700; }
.lvl-row { display: grid; grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr; align-items: center; font-size: 12.5px; padding: 9px 4px; border-bottom: 1px dashed #f0f0f5; color: #555; }
.lvl-row.on { color: var(--primary); font-weight: 700; background: #fafaff; }
.settings-card { padding: 0; overflow: hidden; }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 14px; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid #f5f5fa; }
.set-row:last-child { border-bottom: 0; }
.set-row .arr { color: #c9c9d6; font-size: 16px; }
.set-list { border: 1px solid #f0f0f5; border-radius: 12px; overflow: hidden; }
.set-list .set-row { border-bottom: 1px solid #f5f5fa; }

/* ===== 优惠券中心 ===== */
.seg-page { display: flex; gap: 6px; margin-bottom: 12px; }
.seg-page span { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 9px 0; border-radius: 10px; background: #fff; color: #8890a8; cursor: pointer; }
.seg-page span.on { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; }
.cp-card { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.cp-card.dim { opacity: .55; }
.cp-left { width: 84px; flex-shrink: 0; text-align: center; border-right: 1px dashed #e8e8f2; }
.cp-val { color: #ff4d6d; font-weight: 800; line-height: 1; }
.cp-val b { font-size: 26px; }
.cp-val small { font-size: 12px; }
.cp-cond { font-size: 10.5px; color: #8890a8; margin-top: 4px; }
.cp-body { flex: 1; min-width: 0; }
.cp-body b { font-size: 13.5px; display: block; }
.cp-meta { font-size: 11px; color: #8890a8; margin-top: 3px; }
.cp-bar { display: flex; justify-content: space-between; font-size: 10.5px; color: #b0b0c0; margin-top: 5px; }
.cp-btn { border: 0; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(90deg, #ff4d6d, #ff8a5c); flex-shrink: 0; }
.cp-btn.off { background: #ececf5; color: #a5a5b8; }
.cp-tag { font-size: 11px; color: #b0b0c0; flex-shrink: 0; }
.coupon-pick { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; border-bottom: 1px dashed #f0f0f5;
  font-size: 13px; cursor: pointer; color: #333; }
.coupon-pick small { color: #999; font-size: 11px; }

/* ===== 地址簿 / 结算 ===== */
.addr-item { display: flex; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px dashed #f0f0f5; }
.addr-main { flex: 1; min-width: 0; font-size: 12.5px; color: #666; }
.addr-main b { display: block; font-size: 13px; color: #222; margin-bottom: 3px; }
.addr-main b small { font-weight: 400; color: #8890a8; margin-left: 6px; }
.tag-def { font-size: 10px; color: #1f8a70; background: #e8f7f2; border-radius: 6px; padding: 1px 5px; margin-left: 6px; font-weight: 400; }
.addr-ops { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--primary); flex-shrink: 0; text-align: right; }
.addr-ops .del { color: #ff6b81; }
.ck-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #666; margin: 4px 0 12px; }
.ck-addr { position: relative; background: #fafaff; border: 1px solid #eeecff; border-radius: 12px; padding: 11px 26px 11px 12px; cursor: pointer; margin-bottom: 10px; }
.ck-addr b { font-size: 13.5px; }
.ck-addr div { font-size: 12px; color: #8890a8; margin-top: 3px; }
.ck-addr .arr { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #c9c9d6; }
.ck-goods { border: 1px solid #f2f2f8; border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
.ck-goods .order-item { padding: 5px 0; }
.ck-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #555; padding: 9px 2px; border-bottom: 1px dashed #f3f3f8; }
.ck-row .arr { color: #c9c9d6; font-weight: 400; }
.ck-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 2px 6px; font-size: 13px; }
.ck-total b { font-size: 21px; color: #ff4d6d; }
.ck-tip { font-size: 11px; color: #a5a5b8; margin-bottom: 10px; }
/* 结算页支付方式选择 + 收银台 */
.pay-chips { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
.pay-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #55536b;
  padding: 7px 11px; border-radius: 10px; background: #f6f5fb; border: 1.5px solid transparent; transition: .15s; }
.pay-chip small { font-size: 10px; color: #9a98b0; font-weight: 500; }
.pay-chip.on { background: linear-gradient(135deg, #f2efff, #faf5ff); border-color: #8b7bfa; color: #5b48e0;
  box-shadow: 0 3px 10px rgba(109, 94, 252, .14); }
.pay-line { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid #f4f3f9; }
.pay-line:active { background: #faf9ff; }
.pay-line .pl-ic { width: 34px; height: 34px; border-radius: 10px; background: #f6f5fb; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0; }
.pay-line .pl-nm { flex: 1; min-width: 0; }
.pay-line .pl-nm b { display: block; font-size: 13.5px; color: #2a2840; }
.pay-line .pl-nm span { font-size: 11px; color: #9a98b0; }
.pay-line .pl-go { color: #c9c9d6; font-size: 16px; }
.pay-line.off { opacity: .5; }
.pay-line.paying { background: #f6f4ff; }
.pay-line.paying .pl-go { color: #6d5efc; letter-spacing: 1px; animation: payBlink .9s ease-in-out infinite; }
@keyframes payBlink { 0%,100%{opacity:.35} 50%{opacity:1} }
/* 收银台顶部提示（超时 / 限额） */
.pay-tip-line { font-size: 11.5px; line-height: 1.6; color: #6d6885; background: #f6f4ff; border-radius: 9px;
  padding: 7px 10px; margin-bottom: 10px; }
.pay-tip-line b { color: #5b48e0; }
.pay-tip-line.warn { background: #fff6e8; color: #a8752a; }
.pay-tip-line.warn b { color: #a8752a; }
.pay-list { margin-bottom: 4px; }
/* 支付通道能力标签（真实支付 / 演示 / 余额 / 线下） */
.pay-line .pl-nm b .pl-tag { font-style: normal; font-size: 9.5px; font-weight: 700; margin-left: 6px; padding: 1.5px 6px;
  border-radius: 999px; background: #f0eefb; color: #8b7cf0; vertical-align: 1px; }
.pay-line .pl-nm b .pl-tag.on { background: #e8f9f0; color: #12a06a; }
.pay-line .pl-nm b .pl-tag.rec { background: linear-gradient(135deg,#ffe9ef,#fff3e6); color: #ff3b5c; }
/* 扫码支付 */
.pay-qr { display: flex; justify-content: center; padding: 8px 0 6px; }
.pay-qr svg { width: 216px; height: 216px; border-radius: 14px; border: 1px solid #efedf8; box-shadow: 0 8px 24px rgba(70, 50, 160, .10); }
.pay-qr-tip { text-align: center; font-size: 12.5px; color: #6b6880; margin-bottom: 10px; }
.pay-qr-tip b { color: #2a2840; }
.pay-state { text-align: center; font-size: 12px; color: #8b7cf0; background: #f6f4ff; border-radius: 10px;
  padding: 8px; margin-bottom: 10px; }
.pay-demo { font-size: 12px; line-height: 1.7; color: #a8752a; background: #fff8ec; border: 1px solid #ffe6bf;
  border-radius: 10px; padding: 9px 11px; margin: 4px 0 10px; }
.od-head { display: flex; justify-content: space-between; font-size: 12px; color: #8890a8; margin-bottom: 10px; }
.od-head b { font-size: 13px; }
.od-rows { font-size: 12.5px; color: #555; }
.od-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed #f5f5fa; }
.od-rows > div > span:last-child { text-align: right; color: #333; }
.od-as { margin-top: 10px; background: #fff8ed; border: 1px solid #ffe0b2; border-radius: 10px; padding: 10px; font-size: 12px; color: #8a5a00; }

/* ===== 签到 / 积分商城 / 大转盘 ===== */
.sign-card { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.sign-card .cp-btn { flex-shrink:0; }
.wheel-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.wheel-cell { background:linear-gradient(135deg,#f7f5ff,#fdf4ff); border-radius:12px; padding:12px 6px; text-align:center; }
.wheel-cell span { font-size:24px; display:block; }
.wheel-cell small { font-size:10.5px; color:#6b6b85; display:block; margin-top:5px; line-height:1.3; }
.wheel-cell.dim { opacity:.55; }

/* ===== 「我的」紧凑化：顶部双 tab / 六宫格 / 紧凑卡片 ===== */
.me-tabs { margin: -2px 0 8px; }
.me-tabs span { box-shadow: 0 1px 6px rgba(90, 63, 216, .07); font-size: 12.5px; padding: 8px 0; }
.me-tight { padding: 11px 12px; margin-bottom: 10px; }
.me-tight .me-sec-head { margin-bottom: 8px; }
.me-tight .me-sec-head h3 { font-size: 14px; }
.me-tight .order-grid { gap: 2px; }
.me-tight .og-item { padding: 4px 0; font-size: 11px; }
.me-tight .og-ic { font-size: 20px; margin-bottom: 2px; }
.me-tight .sign-card { padding: 10px 12px; }
.me-grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.me-grid6 > div {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 2px; border-radius: 10px; cursor: pointer;
}
.me-grid6 > div:active { background: #f6f5ff; }
.me-grid6 > div span { font-size: 19px; line-height: 1.1; }
.me-grid6 > div b { font-size: 11.5px; font-weight: 600; color: #333; }
.me-grid6 > div small { font-size: 9.5px; color: #9aa0b4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.me-tight .mc-status { font-size: 11.5px; padding: 6px 8px; }
.me-tight .lvl-line { margin-top: 8px; font-size: 11.5px; }
.me-tight .invite-code { padding: 8px 10px; margin-bottom: 8px; }
.me-tight .invite-code b { font-size: 15px; letter-spacing: 1px; }
.me-tight .ref-stats { gap: 4px; }
.me-tight .ref-stats b { font-size: 15px; }
.me-tight .ref-stats span { font-size: 10.5px; }
.ref-tip { font-size: 10px; color: #a5a5b8; margin-top: 7px; line-height: 1.5; text-align: center; }
.me-tight .order-tabs { margin-bottom: 8px; }

/* ===== 我的订单 tab：2×3 状态宫格 + 统计行 ===== */
.ord-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
.ord-tab {
  background: #fff; border: 1px solid #efeff7; border-radius: 12px; padding: 9px 4px;
  text-align: center; cursor: pointer; box-shadow: 0 1px 6px rgba(90, 63, 216, .05);
  transition: transform .15s, border-color .15s;
}
.ord-tab:active { transform: scale(.97); }
.ord-tab b { display: block; font-size: 16px; font-weight: 800; color: #2b2b3c; line-height: 1.2; }
.ord-tab span { display: block; font-size: 11px; color: #8890a8; margin-top: 1px; }
.ord-tab.on { background: linear-gradient(135deg, var(--primary), var(--primary2)); border-color: transparent; box-shadow: 0 4px 12px rgba(109, 94, 252, .28); }
.ord-tab.on b, .ord-tab.on span { color: #fff; }
.ord-head-line { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #9aa0b4; margin: 0 2px 8px; }
.ord-cancel { color: var(--primary); }

/* ===== 「我的」淘宝/京东式排布：头像行 + 4 列必备工具宫格 ===== */
.me-head { padding: 22px 18px 20px; }
.me-top { display: flex; align-items: center; gap: 12px; }
.me-head .avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .4);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
}
.me-head .me-info { flex: 1; min-width: 0; }
.me-head .name { font-size: 19px; font-weight: 800; }
.me-head .level { margin-top: 5px; font-size: 11.5px; background: rgba(255, 255, 255, .18); padding: 3px 10px; border-radius: 999px; }
.me-cog { font-size: 19px; opacity: .92; cursor: pointer; padding: 4px; }
.me-stats > div { cursor: pointer; }
.me-stats > div:active { background: rgba(255, 255, 255, .28); }
.me-grid8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.me-grid8 > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 2px 9px; border-radius: 10px; cursor: pointer; }
.me-grid8 > div:active { background: #f6f5ff; }
.me-grid8 > div span { font-size: 21px; line-height: 1.1; }
.me-grid8 > div b { font-size: 11.5px; font-weight: 600; color: #333; white-space: nowrap; }
.me-grid8 > div small { font-size: 9.5px; color: #9aa0b4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 直播广场（抖音电商广场版式：分类tab + 置顶大卡 + 两列瀑布卡） ===== */
.plaza-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.plaza-tabs::-webkit-scrollbar { display: none; }
.plaza-tabs span { flex-shrink: 0; padding: 6px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #666; background: #fff; box-shadow: var(--shadow); cursor: pointer; white-space: nowrap; transition: all .15s; }
.plaza-tabs span.on { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow: 0 4px 12px rgba(109,94,252,.35); }

/* 置顶大卡 */
.plaza-feat { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: 0 6px 20px rgba(50,35,120,.18); background: #1a1333; color: #fff; }
.plaza-feat:active { transform: scale(.985); }
.plaza-feat.lp-on { box-shadow: 0 6px 24px rgba(255,77,109,.30), 0 6px 20px rgba(50,35,120,.22); }
.pf-cover { height: 150px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3b2d7a, #6d5efc 55%, #a34bfc); }
.pf-emoji { font-size: 58px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }
.pf-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; z-index: 2; }
.plaza-feat .badge.live { animation: livePulse 1.6s ease-in-out infinite; }
.pf-hot { font-size: 11px; font-weight: 600; background: rgba(0,0,0,.35); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.pf-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(transparent, rgba(10,6,30,.88)); z-index: 1; }
.pf-info { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.pf-info h3 { font-size: 16.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-row { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.pf-host { font-size: 12px; color: rgba(255,255,255,.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cta { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #fff; padding: 6px 14px;
  border-radius: 999px; background: linear-gradient(135deg, #ff4d6d, #ff9f43); box-shadow: 0 3px 10px rgba(255,77,109,.4); }

/* 两列瀑布小卡 */
.plaza-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.plaza-card { background: var(--card); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .15s; }
.plaza-card:active { transform: scale(.97); }
.pc-cover { position: relative; height: 108px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eceafd, #dcd6fb); }
.pc-emoji { font-size: 38px; filter: drop-shadow(0 4px 8px rgba(50,35,120,.25)); }
.pc-badge { position: absolute; top: 8px; left: 8px; }
.pc-badge.live { animation: livePulse 1.6s ease-in-out infinite; }
.pc-view { position: absolute; right: 8px; bottom: 8px; font-size: 10px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.4); padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(3px); }
.pc-fire { position: absolute; left: 8px; bottom: 8px; font-size: 14px; animation: livePulse 1.2s ease-in-out infinite; }
.pc-body { padding: 9px 10px 10px; }
.pc-body h4 { font-size: 13px; font-weight: 700; line-height: 1.35; height: 35px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.pc-host { font-size: 11px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cta { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--primary); cursor: pointer; }

/* ===== 瀑布流进阶：真错落双列 + 多彩封面 + 交错入场 ===== */
.plaza-grid { display: block; columns: 2; column-gap: 10px; margin-top: 10px; }
.plaza-card { display: inline-block; width: 100%; break-inside: avoid; margin-bottom: 10px;
  animation: cardIn .38s ease-out both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* 封面高度交错，形成错落感 */
.pc-cover { height: 104px; }
.pc-cover.pc-tall { height: 138px; }
.pc-emoji { font-size: 40px; }

/* 5 套封面渐变底色，卡片不再千篇一律 */
.pc-g0 { background: linear-gradient(135deg, #eceafd, #dcd6fb); }
.pc-g1 { background: linear-gradient(135deg, #ffe9ec, #ffd3dd); }
.pc-g2 { background: linear-gradient(135deg, #e3f7ee, #c9edd9); }
.pc-g3 { background: linear-gradient(135deg, #fff4e0, #ffe3bd); }
.pc-g4 { background: linear-gradient(135deg, #e2f1ff, #cbe4fb); }

/* 状态细节 */
.plaza-card.pc-ended .pc-cover { filter: grayscale(.55) brightness(.94); }
.plaza-card.pc-ended .pc-emoji { opacity: .75; }
.pc-rp { position: absolute; right: 8px; top: 34px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.42); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.pc-time { margin-top: 5px; font-size: 10.5px; color: #d97706; background: #fff7e8; border-radius: 6px; padding: 3px 7px; display: inline-block; }

/* 标签 chips */
.pc-tags { display: flex; gap: 5px; margin-top: 6px; overflow: hidden; }
.pc-tags i { font-style: normal; font-size: 9.5px; color: var(--primary); background: #f0eeff; border-radius: 5px; padding: 2px 6px; white-space: nowrap; }

/* 订单卡右上角入口胶囊 + 订单列表返回条 */
.me-all-pill { font-size: 11.5px; font-weight: 700; color: #fff; padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow: 0 3px 10px rgba(109,94,252,.3); cursor: pointer; white-space: nowrap; }
.me-all-pill:active { opacity: .85; }
.me-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: #667;
  background: #fff; padding: 7px 14px; border-radius: 999px; box-shadow: 0 1px 6px rgba(0,0,0,.06); cursor: pointer; margin-bottom: 10px; }
.me-back:active { color: var(--primary); }

/* ===== 直播广场卡片精致化（光斑 / 光泽扫过 / 脉冲角标 / 胶囊 CTA） ===== */
.badge .dot, .pc-badge .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  margin-right: 4px; vertical-align: 1px; animation: dotPulse 1.2s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.72); } }

/* 小卡：描边 + 柔和阴影 + 悬停抬起 */
.plaza-card { border: 1px solid rgba(109, 94, 252, .07); border-radius: 16px;
  box-shadow: 0 3px 14px rgba(50, 35, 120, .08); transition: transform .18s ease, box-shadow .18s ease; }
.plaza-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(50, 35, 120, .16); }
.plaza-card:active { transform: scale(.975); }
.pc-cover { overflow: hidden; border-radius: 15px 15px 0 0; }
.pc-orb { position: absolute; left: -22px; top: -26px; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); filter: blur(5px); }
.pc-emoji { position: relative; z-index: 1; }
/* 光泽扫过（间隔循环，安静不刺眼） */
.pc-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-130%); animation: cardShine 6s ease-in-out infinite; }
@keyframes cardShine { 0%, 70% { transform: translateX(-130%); } 84%, 100% { transform: translateX(130%); } }
/* CTA 轻胶囊 */
.pc-cta { background: #f0eeff; color: var(--primary); padding: 4px 9px; border-radius: 999px; font-size: 10.5px; }
.pc-cta:active { background: #e3dfff; }
.pc-badge { backdrop-filter: blur(2px); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.pc-badge.end { background: rgba(0, 0, 0, .35); }
.pc-body { padding: 10px 11px 11px; }
.pc-body h4 { letter-spacing: .1px; }

/* 大卡：双光斑 + 光泽 + CTA 呼吸光晕 */
.plaza-feat { border-radius: 18px; overflow: hidden; }
.pf-cover { position: relative; overflow: hidden; height: 158px; }
.pf-orb { position: absolute; border-radius: 50%; filter: blur(12px); }
.pf-orb.o1 { width: 170px; height: 170px; left: -34px; top: -46px;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); }
.pf-orb.o2 { width: 132px; height: 132px; right: -26px; bottom: -52px;
  background: radial-gradient(circle, rgba(255, 159, 67, .55), rgba(255, 159, 67, 0) 72%); }
.pf-emoji { position: relative; z-index: 1; }
.pf-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .32) 50%, transparent 62%);
  transform: translateX(-130%); animation: cardShine 7s ease-in-out infinite; }
.pf-cta { animation: ctaGlow 2.6s ease-in-out infinite; }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 3px 10px rgba(255, 77, 109, .38); } 50% { box-shadow: 0 4px 20px rgba(255, 77, 109, .68); } }
.pf-hot { backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .18); }
/* 入场动画结束后释放 transform，避免锁死 hover 抬起效果 */
.plaza-card { animation: cardIn .38s ease-out backwards; animation-delay: calc(var(--i, 0) * 45ms); }

/* ===== 直播预约海报（分享素材） ===== */
.rp { --p1: #6d5efc; --p2: #a34bfc; --p3: #7c5cf5; }
.rp-poster { position: relative; border-radius: 18px; overflow: hidden; color: #fff; padding: 13px 13px 11px;
  background: linear-gradient(150deg, var(--p1), var(--p2) 55%, var(--p3));
  box-shadow: 0 12px 30px rgba(50, 35, 120, .28); }
.rp-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.rp-logo { font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.rp-logo em { font-style: normal; color: #ffe38a; }
.rp-badge { font-size: 10.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .32); }
.rp-hero { position: relative; height: 116px; display: flex; align-items: center; justify-content: center; margin: 4px 0 8px; }
.rp-orb { position: absolute; border-radius: 50%; filter: blur(10px); }
.rp-orb.o1 { width: 132px; height: 132px; left: -12px; top: -32px;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%); }
.rp-orb.o2 { width: 104px; height: 104px; right: -8px; bottom: -28px;
  background: radial-gradient(circle, rgba(255, 214, 140, .52), rgba(255, 214, 140, 0) 72%); }
.rp-shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .42) 50%, transparent 60%);
  transform: translateX(-130%); animation: cardShine 6s ease-in-out infinite; }
.rp-emoji { position: relative; z-index: 1; font-size: 76px; line-height: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .3)); }
.rp-stamp { position: absolute; right: 0; top: 2px; z-index: 2; width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; font-weight: 800; line-height: 1.15; letter-spacing: 1px; transform: rotate(-12deg); }
.rp-card { background: #fff; border-radius: 14px; padding: 12px 12px 11px; color: #231a3d; position: relative; z-index: 2; }
.rp-time { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; padding: 3.5px 10px;
  border-radius: 999px; background: linear-gradient(135deg, var(--p1), var(--p2)); }
.rp-card h3 { font-size: 15.5px; font-weight: 800; line-height: 1.35; margin: 8px 0 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-host { font-size: 11.5px; color: #7a7690; }
.rp-gifts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.rp-gifts span { font-size: 10.5px; font-weight: 600; color: #b4472b; background: #fff3ea; border-radius: 6px; padding: 3px 7px; }
.rp-qr { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed #eee; }
.rp-qrbox { width: 62px; height: 62px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 1px solid #f0f0f5; }
.rp-qrbox svg { display: block; width: 100%; height: 100%; }
.rp-qtip b { display: block; font-size: 12px; color: #231a3d; }
.rp-qtip span { font-size: 10.5px; color: #9aa0b4; }
.rp-foot { position: relative; z-index: 2; text-align: center; font-size: 10px; color: rgba(255, 255, 255, .84);
  margin-top: 9px; letter-spacing: .5px; }
.rp-btns { display: flex; gap: 9px; margin-top: 12px; }
.rp-btn { flex: 1; border: 0; border-radius: 11px; padding: 11px; font-size: 13px; font-weight: 700;
  color: #555; background: #f2f1f8; cursor: pointer; }
.rp-btn.primary { color: #fff; background: linear-gradient(135deg, #6d5efc, #a34bfc); box-shadow: 0 6px 16px rgba(109, 94, 252, .35); }
.rp-btn:active { transform: scale(.98); }
.rp-hint { text-align: center; font-size: 10.5px; color: #9aa0b4; margin-top: 9px; line-height: 1.4; }
.rp-close { position: absolute; right: 8px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .06); color: #888; display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; z-index: 9; }

/* 海报入口（大卡 / 预告小卡） */
.pf-host { flex: 1; min-width: 0; }
.pf-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pf-poster { font-size: 11px; color: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .38);
  padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pf-poster:active { background: rgba(255, 255, 255, .2); }
.pc-time-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; }
.pc-time-row .pc-time { margin-top: 0; }
.pc-poster { flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--primary);
  background: #f0eeff; padding: 3px 8px; border-radius: 999px; cursor: pointer; }
.pc-poster:active { background: #e3dfff; }

/* 预约海报独立弹层（高于广告弹窗 z=90，互不干扰） */
.rp-mask { position: fixed; inset: 0; z-index: 100; background: rgba(18, 10, 48, .6);
  display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(3px); }
.rp-body { position: relative; width: min(86vw, 340px); animation: rpIn .32s ease-out; }
@keyframes rpIn { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: none; } }
.rp-body .rp-close { right: -4px; top: -8px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }

/* ===== 直播广场 v3（视频号式：文字tab + 横版大卡 + 红色热度角标） ===== */
.plaza-tabs { gap: 18px; padding: 2px 4px 8px; }
.plaza-tabs span { background: none; box-shadow: none; padding: 5px 2px; color: #8a8fa3; font-weight: 500; position: relative; border-radius: 0; }
.plaza-tabs span:active { background: none; }
.plaza-tabs span.on { color: #1c1730; background: none; box-shadow: none; font-weight: 800; }
.plaza-tabs span.on::after { content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 22px; height: 3.5px; border-radius: 3px; background: linear-gradient(135deg, var(--primary), var(--primary2)); }

/* 横版大卡：左侧信息 + 右侧封面，主题渐变按分类取色 */
.plaza-feat { display: flex; height: 152px; color: #fff;
  background: linear-gradient(120deg, var(--p1, #6d5efc), var(--p2, #a34bfc));
  box-shadow: 0 8px 22px rgba(50, 35, 120, .22); border-radius: 16px; }
.plaza-feat:active { transform: scale(.985); }
.plaza-feat.lp-on { box-shadow: 0 8px 26px rgba(255, 59, 92, .30), 0 8px 22px rgba(50, 35, 120, .22); }
.plaza-feat .pf-info { position: static; flex: 1.15; min-width: 0; padding: 12px 4px 11px 14px; display: flex; flex-direction: column; z-index: auto; left: auto; right: auto; bottom: auto; }
.pf-status { align-self: flex-start; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700;
  background: #ff3b5c; padding: 3.5px 9px; border-radius: 999px; box-shadow: 0 3px 9px rgba(255, 59, 92, .4); white-space: nowrap; max-width: 100%; overflow: hidden; }
.pf-status.sched { background: #ff9f43; box-shadow: 0 3px 9px rgba(255, 159, 67, .4); }
.pf-status.end { background: rgba(0, 0, 0, .32); box-shadow: none; }
.plaza-feat h3 { margin: 7px 0 0; flex-shrink: 0; font-size: 16.5px; font-weight: 800; line-height: 1.3; letter-spacing: .2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pf-sub { margin-top: auto; font-size: 10.5px; color: rgba(255, 255, 255, .85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plaza-feat .pf-acts { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.plaza-feat .pf-poster { font-size: 10.5px; padding: 4px 9px; }
.plaza-feat .pf-cta { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--p1, var(--primary)); box-shadow: 0 3px 10px rgba(0, 0, 0, .14); animation: none; }
.plaza-feat .pf-cover { flex-shrink: 0; width: 41%; height: 100%; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); }
.plaza-feat .pf-emoji { font-size: 54px; }

/* 小卡：高封面 + 红色热度角标一体条 */
.pc-cover { height: 148px; }
.pc-cover.pc-tall { height: 176px; }
.pc-badge { left: 7px; top: 7px; max-width: calc(100% - 14px); display: inline-flex; align-items: center;
  overflow: hidden; white-space: nowrap; font-weight: 700; }
.pc-badge.live { background: #ff3b5c; box-shadow: 0 3px 9px rgba(255, 59, 92, .38); }
.pc-badge.live b { font-weight: 600; margin-left: 4px; opacity: .95; }
.pc-badge.sched { background: #ff9f43; box-shadow: 0 3px 9px rgba(255, 159, 67, .38); }
.pc-badge.end { background: rgba(0, 0, 0, .42); }
.pc-watch { flex-shrink: 0; font-size: 10.5px; font-weight: 600; color: #9aa0b4; }
.pc-body .pc-cta { font-size: 11px; font-weight: 700; color: var(--primary); background: #f0eeff; padding: 4px 9px; border-radius: 999px; }
.pc-body h4 { height: auto; max-height: 35px; }
/* 热度角标防换行：紧凑单行 */
.pc-badge { font-size: 9.8px !important; padding: 3px 7px !important; gap: 3px; flex-wrap: nowrap; }
.pc-badge b { white-space: nowrap; }
.pf-status { font-size: 10.2px; }

/* ===== 小卡 v4：整图卡 + 底部叠字（视频号参考图同款） ===== */
.plaza-card { position: relative; }
.pc-cover { height: 232px; }
.pc-cover.pc-tall { height: 268px; }
.pc-emoji { font-size: 46px; padding-bottom: 92px; }
.pc-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 146px; z-index: 2;
  background: linear-gradient(transparent, rgba(12, 8, 32, .88)); }
.pc-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 9px 10px 9px; }
.pc-overlay h4 { color: #fff; font-size: 12.8px; font-weight: 700; line-height: 1.32; margin: 0; max-height: 34px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-overlay .pc-time-row { margin-top: 6px; }
.pc-overlay .pc-time { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(3px); }
.pc-overlay .pc-poster { background: rgba(255, 255, 255, .24); color: #fff; }
.pc-overlay .pc-row { margin-top: 6px; }
.pc-overlay .pc-host { color: rgba(255, 255, 255, .88); }
.pc-overlay .pc-watch { color: rgba(255, 255, 255, .78); }
.pc-overlay .pc-cta { background: rgba(255, 255, 255, .92); color: var(--primary); }
.pc-badge { z-index: 4; }

/* ===== 广场卡片商品条：讲解中商品（真实直播取后台绑定商品，演示卡内置素材） ===== */
.pc-good { display: flex; align-items: center; gap: 6px; margin-top: 7px; padding: 4px 7px;
  border-radius: 8px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px);
  max-width: 100%; overflow: hidden; }
.pc-good .pcg-img { flex-shrink: 0; font-size: 14px; line-height: 1; }
.pc-good .pcg-name { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-good .pcg-p { flex-shrink: 0; font-size: 11px; font-weight: 800; color: #ffe27a; }
.pf-good { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; align-self: flex-start;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px);
  max-width: 100%; }
.pf-good .pfg-name { font-size: 11px; font-weight: 600; color: #fff; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.pf-good b { flex-shrink: 0; font-size: 11.5px; font-weight: 800; color: #ffe27a; }

/* ===== 视频带货：瀑布流卡片（竖版短视频封面 + 同款商品） ===== */
.pv-card .pc-cover, .pv-cover { height: 280px; }
.pv-cover { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--v1), var(--v2)); }
.pv-bg { position: absolute; inset: -18%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .42), transparent 46%),
    radial-gradient(circle at 74% 72%, rgba(255, 255, 255, .26), transparent 48%),
    linear-gradient(150deg, var(--v1), var(--v2));
  animation: pvPan 16s ease-in-out infinite alternate; }
@keyframes pvPan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.24) translate3d(-4%, -5%, 0); }
}
.pv-orb { position: absolute; border-radius: 50%; filter: blur(16px); opacity: .5; mix-blend-mode: screen; pointer-events: none; }
.pv-orb.a { width: 138px; height: 138px; left: -30px; top: 10%; background: #fff; animation: pvOrbA 9s ease-in-out infinite alternate; }
.pv-orb.b { width: 108px; height: 108px; right: -20px; bottom: 6%; background: #ffe9a8; animation: pvOrbB 11s ease-in-out infinite alternate; }
@keyframes pvOrbA { to { transform: translate3d(38px, 24px, 0) scale(1.24); } }
@keyframes pvOrbB { to { transform: translate3d(-32px, -20px, 0) scale(.86); } }
/* 细扫描纹，模拟视频画面的呼吸感 */
.pv-grain { position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 3px);
  animation: pvGrain .8s steps(4) infinite; }
@keyframes pvGrain { 0% { transform: translateY(0); } 50% { transform: translateY(-2px); } 100% { transform: translateY(1px); } }
.pv-subject { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: 78px; z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(20, 10, 50, .32)); animation: pvFloat 6s ease-in-out infinite; }
@keyframes pvFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg) scale(1); }
  50% { transform: translate(-50%, -58%) rotate(2deg) scale(1.05); }
}
.pv-beam { position: absolute; top: -40%; left: -60%; width: 45%; height: 180%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: rotate(18deg); animation: pvBeam 5.5s ease-in-out infinite; }
@keyframes pvBeam { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.pv-tag { position: absolute; left: 7px; top: 7px; z-index: 4; display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.8px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 999px; letter-spacing: .2px;
  background: linear-gradient(135deg, #ff5e7a, #ff3b5c); box-shadow: 0 3px 9px rgba(255, 59, 92, .38); }
.pv-tri { display: inline-block; width: 0; height: 0; border-left: 5px solid currentColor;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.pv-dur { position: absolute; right: 7px; top: 7px; z-index: 4; font-size: 9.5px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .42); padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(3px); }
.pv-author { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600;
  color: rgba(255, 255, 255, .95); margin-bottom: 4px; }
.pv-author .pva-ic { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .3);
  display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; flex-shrink: 0; }
.pv-card .pc-shade { height: 176px; }
.pv-card .pc-overlay { padding: 10px 11px 11px; padding-top: 8px; }
.pv-card .pc-overlay h4 { font-size: 13.2px; line-height: 1.34; }
.pv-card .pc-cover { height: 280px; }
.pv-card.pc-tall .pc-cover { height: 336px; }

/* ===== 短视频带货播放页 ===== */
body.vf-open { overflow: hidden; }
.vf-mask { position: fixed; inset: 0; z-index: 130; background: #07050e; display: flex; justify-content: center;
  animation: vfIn .2s ease-out; }
@keyframes vfIn { from { opacity: 0; } to { opacity: 1; } }
.vf-stage { position: relative; width: 100%; max-width: 480px; height: 100%; overflow: hidden;
  background: linear-gradient(160deg, var(--v1), var(--v2)); transition: background .3s; }
.vf-subject { font-size: 132px; top: 44%; }
.vf-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 0; }
.vf-circle { width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .34); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer;
  backdrop-filter: blur(6px); }
.vf-mode { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #fff;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 59, 92, .92); box-shadow: 0 3px 12px rgba(255, 59, 92, .35); }
.vf-count { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .86); background: rgba(0, 0, 0, .3);
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.vf-rail { position: absolute; right: 10px; bottom: 210px; z-index: 7; display: flex; flex-direction: column;
  align-items: center; gap: 17px; }
.vf-avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .94); position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 23px; border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22); }
.vf-avatar .vf-follow { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 18px; height: 18px;
  border-radius: 50%; background: #ff3b5c; color: #fff; font-size: 13px; font-style: normal; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(255, 59, 92, .45); cursor: pointer; }
.vf-act { background: none; border: 0; padding: 0; color: #fff; display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 10.5px; font-weight: 600; cursor: pointer; }
.vf-act b { font-size: 25px; line-height: 1; font-weight: 400; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); }
.vf-act.on b { animation: vfPop .34s ease-out; }
@keyframes vfPop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.vf-act.cart b { font-size: 23px; }
.vf-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 26px 14px 12px; color: #fff;
  background: linear-gradient(transparent, rgba(6, 4, 16, .78) 42%); }
.vf-author { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.vf-music { font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .18);
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.vf-title { font-size: 12.8px; line-height: 1.5; margin-top: 7px; color: rgba(255, 255, 255, .96); }
.vf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 11px; color: #9fd0ff; }
.vf-good { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding: 8px 10px; border-radius: 13px;
  background: rgba(255, 255, 255, .95); color: #2a2840; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); cursor: pointer; }
.vf-good:active { transform: scale(.985); }
.vf-g-img { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(160deg, #f4f2ff, #ece8ff);
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.vf-g-info { flex: 1; min-width: 0; }
.vf-g-info b { display: block; font-size: 12.2px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-g-info span { font-size: 10.5px; color: #9a98b0; }
.vf-g-price { font-size: 15px; font-weight: 800; color: #ff3b5c; flex-shrink: 0; }
.vf-g-price small { font-size: 10px; font-weight: 700; margin-right: 1px; }
.vf-g-btn { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #fff; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5e7a, #ff3b5c); box-shadow: 0 4px 12px rgba(255, 59, 92, .32); }
.vf-nav { display: flex; justify-content: center; gap: 24px; margin-top: 10px; font-size: 11px; color: rgba(255, 255, 255, .74); }
.vf-nav span { cursor: pointer; padding: 2px 4px; }
.vf-nav span:active { color: #fff; }
.vf-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; z-index: 8; background: rgba(255, 255, 255, .22); }
.vf-progress i { display: block; height: 100%; width: 0; background: #fff; animation-name: vfProg; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes vfProg { from { width: 0; } to { width: 100%; } }
/* 暂停：所有动效与进度同步停在原地 */
.vf-stage.paused .pv-bg, .vf-stage.paused .pv-orb, .vf-stage.paused .pv-grain,
.vf-stage.paused .pv-subject, .vf-stage.paused .pv-beam, .vf-stage.paused #vfBar { animation-play-state: paused; }
.vf-pause-btn { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 7;
  font-size: 40px; color: rgba(255, 255, 255, .95); opacity: 0; transition: opacity .2s; pointer-events: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
.vf-stage.paused .vf-pause-btn { opacity: .95; }
.vf-hearts { position: absolute; left: 0; right: 0; bottom: 30%; height: 44%; z-index: 5; pointer-events: none; }
.vf-hearts span { position: absolute; bottom: 0; font-size: 20px; animation: heartUp 1.6s ease-out forwards; }
@keyframes heartUp {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-140px) scale(1.3) rotate(14deg); }
}

/* ===== 细节完善：切页进度条 / 购物车数量步进 / 结算合计按钮 ===== */
#navBar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px);
  height: 3px; z-index: 200; pointer-events: none; border-radius: 0 0 3px 0; overflow: hidden; }
#navBar::after { content: ''; display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #7b6cff, #ff4d6d); border-radius: 999px;
  animation: navBarRun .9s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes navBarRun { 0% { width: 0; } 70% { width: 82%; } 100% { width: 96%; } }

.qty-stepper { display: inline-flex; align-items: center; gap: 0; margin-top: 6px;
  border: 1px solid #eceafc; border-radius: 999px; overflow: hidden; background: #faf9ff; }
.qty-stepper button { width: 26px; height: 24px; border: 0; background: transparent; color: #6d5efc;
  font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1; }
.qty-stepper button:disabled { color: #c9c7da; cursor: not-allowed; }
.qty-stepper button:not(:disabled):active { background: #efeaff; }
.qty-stepper b { min-width: 30px; text-align: center; font-size: 12.5px; color: #33304d; }
.qty-stepper small { padding: 0 8px 0 6px; font-size: 9.5px; color: #b6b3c8; border-left: 1px solid #eceafc; line-height: 1; }

.btn.ck-go { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.ck-go b { font-weight: 600; font-size: 11.5px; opacity: .85; }
.btn.ck-go span { font-weight: 800; font-size: 14px; }

/* ===== 直播广场广告位：会员卡 / 领券 / 红包 ===== */
.promo-card { --pm1: #4c1d95; --pm2: #7c3aed; position: relative; overflow: hidden; border: 0;
  min-height: 198px; padding: 11px 12px 12px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; background: linear-gradient(155deg, var(--pm1), var(--pm2)); }
.promo-card.promo-coupon { --pm1: #ff7a45; --pm2: #ff3b6b; }
.promo-card.promo-redpacket { --pm1: #c0201f; --pm2: #ff6b3d; }
.promo-card .pm-orb { position: absolute; border-radius: 50%; filter: blur(18px); opacity: .5; pointer-events: none; }
.promo-card .pm-orb.a { width: 120px; height: 120px; right: -34px; top: -30px; background: rgba(255, 255, 255, .55); }
.promo-card .pm-orb.b { width: 90px; height: 90px; left: -26px; bottom: -26px; background: rgba(255, 225, 160, .6); }
.promo-card .pm-grid { position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 9px); }
.promo-card .pm-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.promo-card .pm-ad { font-size: 8.5px; padding: 1.5px 5px; border-radius: 4px; color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .42); letter-spacing: .4px; }
.promo-card .pm-hot { font-size: 9.5px; font-weight: 700; padding: 2.5px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .26); color: #fff; white-space: nowrap; max-width: 66%; overflow: hidden; text-overflow: ellipsis; }
.promo-card .pm-main { position: relative; z-index: 2; }
.promo-card .pm-ic { font-size: 34px; line-height: 1; display: block; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .28)); }
.promo-card .pm-main h4 { font-size: 15.5px; font-weight: 800; margin: 7px 0 4px; letter-spacing: .2px; }
.promo-card .pm-sub { font-size: 11px; line-height: 1.45; color: rgba(255, 255, 255, .92); margin: 0;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.promo-card .pm-foot { position: relative; z-index: 2; margin-top: 10px; }
.promo-card .pm-cta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 800;
  color: #3b1d6e; background: #fff; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.promo-card.promo-coupon .pm-cta { color: #d92348; }
.promo-card.promo-redpacket .pm-cta { color: #b81f1e; }
.promo-card .pm-meta { display: block; margin-top: 7px; font-size: 9.5px; color: rgba(255, 255, 255, .8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-card:hover .pm-cta { transform: translateX(2px); }
.promo-card .pm-cta { transition: transform .18s; }

/* 红包弹窗 */
.rp-box { position: relative; text-align: center; color: #fff; padding: 6px 4px 2px; border-radius: 14px;
  background: radial-gradient(circle at 50% 0%, #ff5a4d, #c0201f 72%); margin: -6px -2px 0; overflow: hidden; }
.rp-box.off { background: radial-gradient(circle at 50% 0%, #8a8fa6, #5b6076 72%); }
.rp-box.won { background: radial-gradient(circle at 50% 0%, #ff7a4d, #d62d2d 70%); }
.rp-box .rp-ray { position: absolute; left: 50%; top: -60px; width: 220px; height: 220px; transform: translateX(-50%);
  background: conic-gradient(from 0deg, rgba(255, 226, 150, .5), transparent 26%, rgba(255, 226, 150, .45) 52%, transparent 78%);
  border-radius: 50%; animation: rpSpin 9s linear infinite; opacity: .75; pointer-events: none; }
@keyframes rpSpin { to { transform: translateX(-50%) rotate(360deg); } }
.rp-box .rp-coin { position: relative; font-size: 46px; margin: 10px 0 4px; animation: rpPop .5s cubic-bezier(.2, 1.5, .5, 1); }
@keyframes rpPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rp-box h3 { position: relative; font-size: 16px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.rp-box p { position: relative; font-size: 11.5px; line-height: 1.7; color: rgba(255, 255, 255, .88); margin: 0 6px 10px; }
.rp-box .rp-pool { position: relative; display: inline-block; font-size: 11px; font-weight: 700; color: #ffe9a8;
  border: 1px dashed rgba(255, 233, 168, .55); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.rp-box .rp-amount { position: relative; font-size: 40px; font-weight: 900; color: #ffe9a8; line-height: 1.1; margin: 2px 0 10px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: rpPop .45s ease-out; }
.rp-box .rp-btn { position: relative; width: 100%; background: linear-gradient(135deg, #ffe08a, #ffb347); color: #8c1a12;
  font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.rp-box .rp-btn:disabled { background: rgba(255, 255, 255, .24); color: rgba(255, 255, 255, .8); box-shadow: none; }
.rp-box .rp-tip { position: relative; font-size: 10px; color: rgba(255, 255, 255, .66); margin-top: 9px; }

/* ===== 广场两列等高排布 + 优惠券海报补位（两列底边对齐） ===== */
.plaza-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; columns: auto; column-gap: 0; align-items: stretch; }
.plaza-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plaza-col > .plaza-card:not(.promo-fill) { display: block; width: 100%; margin-bottom: 0; break-inside: auto; }
.plaza-col > .plaza-card:not(.promo-fill).pc-ended { opacity: .94; }

/* 补位券海报：票券样式，flex 吸收矮列剩余高度 */
.promo-fill { position: relative; flex: 1 1 auto; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; padding: 14px 12px; text-align: center;
  min-height: 44px; margin-bottom: 0; border-radius: 16px; border: 1px solid #ffd3bd;
  background: linear-gradient(160deg, #fff8f0 0%, #ffe9db 58%, #ffdccb 100%); }
.promo-fill::after { content: ''; position: absolute; inset: 6px; border: 1px dashed rgba(226, 69, 42, .22);
  border-radius: 12px; pointer-events: none; }
.promo-fill .cf-ad { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 8.5px; letter-spacing: .4px;
  color: #c08a72; border: 1px solid #eec8b6; border-radius: 4px; padding: 1px 4px; }
.promo-fill .cf-ticket { position: relative; z-index: 1; width: 100%; background: #fff; border-radius: 12px;
  padding: 12px 8px 11px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 8px 18px rgba(226, 69, 42, .13); }
.promo-fill .cf-tag { font-size: 9.5px; font-weight: 700; color: #e2452a; background: #ffeee8;
  padding: 2px 8px; border-radius: 999px; }
.promo-fill .cf-amt { font-size: 34px; font-weight: 900; color: #e2452a; line-height: 1; letter-spacing: -.5px; }
.promo-fill .cf-amt small { display: block; font-size: 10px; font-weight: 600; color: #a4614a; margin-top: 5px; letter-spacing: 0; }
.promo-fill .cf-name { max-width: 100%; font-size: 10.5px; color: #8a5b48; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.promo-fill .cf-btn { margin-top: 2px; font-size: 11.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff8a4c, #e2452a); padding: 6px 20px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(226, 69, 42, .26); }
.promo-fill .cf-foot { position: relative; z-index: 1; font-size: 9px; color: #b98a76; line-height: 1.4; }

/* 矮缺口：一行式券条 */
.promo-fill.fill-sm { flex-direction: row; justify-content: space-between; align-items: center; gap: 8px;
  padding: 0 12px; text-align: left; }
.promo-fill.fill-sm::after { inset: 5px; border-radius: 11px; }
.promo-fill.fill-sm .cf-ic { font-size: 20px; line-height: 1; }
.promo-fill.fill-sm .cf-mini { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.promo-fill.fill-sm .cf-mini b { font-size: 12px; color: #b3400f; }
.promo-fill.fill-sm .cf-mini small { font-size: 9.5px; color: #a97a66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-fill.fill-sm .cf-go { flex-shrink: 0; font-size: 10.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff8a4c, #e2452a); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }

/* ===== 直播广场：个性化推荐条 / 加载态 / 推荐依据弹窗 ===== */
.plaza-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 30px 0 26px;
  color: #9a96b4; font-size: 12.5px; }
.plaza-loading i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #e6e2fb;
  border-top-color: #7b6cff; animation: plSpin .7s linear infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }

.plaza-why { display: flex; align-items: center; gap: 7px; margin: 1px 2px 10px; padding: 7px 10px;
  border-radius: 12px; background: linear-gradient(100deg, #f6f3ff, #fdf3f6); border: 1px solid #efe9ff;
  font-size: 11px; color: #7a7495; cursor: pointer; transition: transform .15s; }
.plaza-why.on { background: linear-gradient(100deg, #f3eeff, #ffeef4); border-color: #e6dcff; }
.plaza-why:active { transform: scale(.995); }
.plaza-why .pw-main { font-weight: 800; color: #6d5efc; font-size: 11.5px; white-space: nowrap; }
.plaza-why .pw-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8d88a6; }
.plaza-why .pw-tags { display: flex; gap: 4px; flex-shrink: 0; }
.plaza-why .pw-tags i { font-style: normal; font-size: 10px; padding: 1.5px 6px; border-radius: 999px;
  background: #fff; color: #6d5efc; border: 1px solid #e6dcff; }
.plaza-why .pw-more { flex-shrink: 0; color: #b3aecb; font-size: 10.5px; }

.why-box p { font-size: 12.5px; color: #6b6880; line-height: 1.75; margin: 0 0 10px; }
.why-tags { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.why-tags span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: #faf9ff; border: 1px solid #efecfd; font-size: 12.5px; color: #4b4860; }
.why-tags b { color: #6d5efc; font-size: 13px; }
.why-tags small { margin-left: auto; color: #a9a5c0; font-size: 10.5px; }
.why-tip { font-size: 11px !important; color: #a09cb8 !important; background: #faf9ff; border-radius: 10px;
  padding: 9px 10px; margin-bottom: 12px !important; }

/* ===== 视觉打磨：封面配色提饱和 / 柔光圆盘 / 角标胶囊化 / 券条自适应填空 ===== */
.pc-g0 { background: linear-gradient(150deg, #c9b9ff 0%, #9d87fb 58%, #7a63f0 100%); }
.pc-g1 { background: linear-gradient(150deg, #ffd0da 0%, #ff9fb4 58%, #fb7f9d 100%); }
.pc-g2 { background: linear-gradient(150deg, #b5ecd2 0%, #79d9ab 58%, #52c493 100%); }
.pc-g3 { background: linear-gradient(150deg, #ffdfae 0%, #ffb569 58%, #ff9c47 100%); }
.pc-g4 { background: linear-gradient(150deg, #b6d9ff 0%, #7fb2fb 58%, #5e97f2 100%); }
/* 主体柔光圆盘：垫在 emoji 下方，填充封面中央的空旷感 */
.pc-halo { position: absolute; left: 50%; top: 39%; width: 128px; height: 128px; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .34) 52%, rgba(255, 255, 255, 0) 72%); }
.pc-emoji { font-size: 52px; }
.plaza-card.pc-ended .pc-halo { opacity: .55; }
/* 角标胶囊化：全圆角 + 收敛光晕，浅色封面上更精致 */
.pc-badge { border-radius: 999px !important; }
.pc-badge.live { background: linear-gradient(135deg, #ff5b78, #ff2e63); box-shadow: 0 2px 7px rgba(255, 46, 99, .35); }
.pc-badge.sched { background: linear-gradient(135deg, #ffb25e, #ff9636); }
/* 券条/券海报：¥ 圆徽章替代 emoji + 右下大水印填补拉伸空白 */
.promo-fill { justify-content: center; }
.promo-fill::before { content: '¥'; position: absolute; right: 4%; bottom: -16px; z-index: 0;
  font-size: 104px; font-weight: 900; line-height: 1; color: rgba(226, 69, 42, .06); pointer-events: none; }
.promo-fill .cf-ticket, .promo-fill .cf-foot, .promo-fill .cf-ad { z-index: 1; }
.promo-fill.fill-sm { gap: 10px; padding: 0 14px; }
.cf-ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff8a4c, #e2452a); color: #fff; font-size: 16px; font-weight: 900;
  box-shadow: 0 4px 10px rgba(226, 69, 42, .3); }

/* ===== AI 富媒体卡片：商品视频讲解 / 直播间引导 / 开播关注 ===== */
.ai-cards { position: absolute; left: 12px; bottom: 142px; width: 66%; max-width: 340px; display: none;
  flex-direction: column; gap: 8px; z-index: 7; }
.ai-cards.on { display: flex; }
.ai-card { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: 13px; background: rgba(255, 255, 255, .97); color: #241c42;
  box-shadow: 0 8px 22px rgba(10, 6, 30, .35); animation: acUp .32s ease-out; }
@keyframes acUp { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.ai-card .ac-thumb { position: relative; width: 46px; height: 46px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.ai-card.video .ac-thumb { background: linear-gradient(135deg, #7b6bff, #ff4d6d); }
.ai-card.live .ac-thumb { background: linear-gradient(135deg, #ff5b78, #ff9f1c); }
.ai-card .ac-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.ai-card .ac-dur { position: absolute; right: 3px; bottom: 2px; padding: 0 4px; border-radius: 5px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 9px; line-height: 14px; }
.ai-card .ac-bd { flex: 1; min-width: 0; cursor: pointer; }
.ai-card .ac-bd b { display: block; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-card .ac-bd p { margin: 3px 0 0; font-size: 10.5px; color: #7d7899; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-card .ac-tag { position: absolute; top: -7px; left: 9px; padding: 1px 7px; border-radius: 7px;
  font-size: 9.5px; color: #fff; font-weight: 600; letter-spacing: .2px; }
.ac-tag.hot { background: linear-gradient(135deg, #ff5b78, #ff2e63); }
.ac-tag.soon { background: linear-gradient(135deg, #ffb25e, #ff9636); }
.ac-tag.cool { background: linear-gradient(135deg, #8c7bff, #6d5efc); }
.ai-card .ac-btn { flex: none; border: 0; border-radius: 9px; padding: 6px 10px; font-size: 11px; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #6d5efc, #8c7bff); cursor: pointer; }
.ai-card.live .ac-btn { background: linear-gradient(135deg, #ff5b78, #ff2e63); }
.ai-card .ac-bell { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer;
  background: #f1f0f8; font-size: 12px; line-height: 1; }
.ai-card .ac-bell.on { background: #fff2d9; }
.ai-card .ac-x { position: absolute; right: -5px; top: -6px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(36, 28, 66, .55); color: #fff; font-size: 10px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; }
/* 视频讲解弹层 */
.vsheet { position: fixed; inset: 0; z-index: 300; background: rgba(8, 5, 20, .93);
  display: flex; flex-direction: column; justify-content: center; padding: 18px 16px 28px; }
.vsheet video { width: 100%; max-height: 66vh; border-radius: 14px; background: #000; }
.vsheet .vtitle { margin: 12px 2px 0; color: #fff; font-size: 13px; font-weight: 600; }
.vsheet .vnote { margin: 6px 2px 0; color: #b9b3d4; font-size: 11.5px; line-height: 1.6; }
.vsheet.err video { display: none; }
.vsheet .vclose { position: absolute; top: 16px; right: 18px; color: #fff; font-size: 20px; cursor: pointer; opacity: .85; }

/* ===== AI 助手对话框内嵌卡片（视频讲解 / 直播间引导） ===== */
.ai-cards.inline { position: static; display: flex; flex-direction: column; width: 100%; max-width: none;
  margin-top: 9px; gap: 8px; background: #f7f5ff; border-radius: 12px; padding: 8px; }
.ai-cards.inline .ai-card { width: 100%; background: #fff; border: 1px solid #edebf8;
  box-shadow: 0 3px 12px rgba(80, 60, 180, .12); animation: acUp .28s ease-out; }
.ai-cards.inline .ai-card .ac-bd b { font-size: 12.5px; }
.ai-cards.inline .ai-card .ac-btn { padding: 6px 11px; }

/* ===== AI销售页头部（与直播间 AI直播助手 业务区分） ===== */
.ai-head { background: linear-gradient(135deg, rgba(109, 94, 252, .09), rgba(255, 77, 109, .07));
  border: 1px solid #ece9fb; border-radius: 13px; padding: 10px 13px; margin-bottom: 10px; }
.ai-head .ah-t { font-size: 13.5px; font-weight: 700; color: #2c2159; }
.ai-head .ah-s { margin-top: 4px; font-size: 10.5px; color: #7d7899; line-height: 1.55; }
.ai-head .ah-sep { margin: 0 5px; color: #c9c4e0; }

/* ===== AI销售：转人工挂起提示（顾客听得见承诺，也要看得见状态） ===== */
.ai-human-tip { margin: 8px 0 12px; padding: 9px 12px; border-radius: 11px;
  background: #fff8e8; border: 1px solid #ffe3ac; border-left: 3px solid #ff9f1c;
  display: flex; flex-direction: column; gap: 3px; }
.ai-human-tip b { font-size: 12px; color: #a35c00; font-weight: 700; }
.ai-human-tip span { font-size: 10.5px; color: #9a8055; line-height: 1.55; }

/* ================= DIY 页面装修组件（后台拖拽生成，前端按序渲染） ================= */
.diy-page { display: flex; flex-direction: column; gap: 12px; }
.diy-c { min-width: 0; }

/* 轮播图 */
.diy-banner { position: relative; overflow: hidden; box-shadow: var(--shadow); }
.diy-banner-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.diy-slide { flex: 0 0 100%; position: relative; overflow: hidden; color: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: linear-gradient(135deg, var(--b1), var(--b2)); }
.diy-slide::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.16); }
.diys-emoji { font-size: 40px; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.diys-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.diys-txt b { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.diys-txt span { font-size: 11.5px; opacity: .9; line-height: 1.5; }
.diy-dots { position: absolute; bottom: 9px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.diy-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); transition: width .25s; }
.diy-dots i.on { width: 14px; background: #fff; }

/* 公告条 */
.diy-notice { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px;
  padding: 10px 13px; box-shadow: var(--shadow); cursor: pointer; }
.diy-n-ico { font-size: 15px; }
.diy-n-txt { flex: 1; font-size: 12px; color: #4a4763; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diy-n-more { color: #c2bfd2; }

/* 搜索框 */
.diy-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
  padding: 9px 6px 9px 14px; box-shadow: var(--shadow); cursor: pointer; }
.diy-search .diy-s-ph { flex: 1; font-size: 12px; color: #b6b3c8; }
.diy-search b { font-size: 11.5px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 999px; padding: 6px 14px; font-weight: 600; }

/* 宫格导航 */
.diy-nav { display: grid; gap: 10px 4px; background: #fff; border-radius: var(--radius); padding: 14px 10px; box-shadow: var(--shadow); }
.diy-nav-i { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.dni-ico { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.dni-lb { font-size: 11px; color: #55516b; }

/* 直播卡容器 */
.diy-live { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diy-live.as-list { grid-template-columns: 1fr; }

/* 优惠券 */
.diy-cps { display: flex; flex-direction: column; gap: 8px; }
.diy-cp { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; }
.diy-cp-v { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding-right: 12px;
  border-right: 1px dashed #eee9f8; }
.diy-cp-v b { font-size: 19px; font-weight: 800; color: var(--accent); }
.diy-cp-v span { font-size: 10px; color: #b0adc2; }
.diy-cp-i { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.diy-cp-i b { font-size: 12.5px; color: #2f2b45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diy-cp-i span { font-size: 10.5px; color: #a5a2b8; }
.diy-cp i { font-style: normal; font-size: 11.5px; color: #fff; background: linear-gradient(135deg, var(--accent), #ff8a5c);
  border-radius: 999px; padding: 6px 14px; }

/* 单图广告 */
.diy-img { position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.diy-img-t { position: absolute; left: 14px; bottom: 10px; color: #3d3860; font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,.72); padding: 4px 10px; border-radius: 8px; }

/* 短视频 */
.diy-videos { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.diy-videos::-webkit-scrollbar { display: none; }
.diy-videos > * { flex: 0 0 46%; }

/* 富文本 */
.diy-rich { background: #fff; border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow);
  font-size: 12.5px; color: #4a4763; line-height: 1.75; }
.diy-rich img { max-width: 100%; border-radius: 10px; }
.diy-rich h1, .diy-rich h2, .diy-rich h3 { font-size: 15px; margin: 6px 0; color: #26223c; }
.diy-rich p { margin: 4px 0; }

/* 倒计时 */
.diy-cd { border-radius: var(--radius); padding: 16px; color: #fff; text-align: center; box-shadow: var(--shadow); }
.diy-cd-t { font-size: 12px; opacity: .92; }
.diy-cd-clock { font-size: 27px; font-weight: 800; letter-spacing: 2px; margin: 6px 0 2px;
  font-variant-numeric: tabular-nums; }
.diy-cd-s { font-size: 11px; opacity: .85; }

/* 悬浮按钮 */
.diy-float { position: fixed; right: 14px; bottom: 84px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 19px;
  box-shadow: 0 8px 20px rgba(109,94,252,.35); cursor: pointer; }
.diy-float span { font-size: 9px; }

/* 编辑器内嵌预览：隐藏顶部搜索与底部 tabbar，只留页面本体 */
body.embed .topbar, body.embed .tabbar { display: none; }
body.embed #view { padding-top: 8px; padding-bottom: 12px; }
/* 编辑器选中高亮（后台通过 postMessage 指过来） */
.diy-hl { outline: 2px solid #6d5efc; outline-offset: 3px; border-radius: 10px; }

/* DIY 组件增强：直播卡首张置顶大卡 / 公告跑马灯 / 倒计时已结束 */
.diy-live.as-big > :first-child { grid-column: 1 / -1; }
.diy-live.as-big > :first-child .pc-overlay h4 { font-size: 17px; }
.diy-notice { overflow: hidden; }
.diy-n-run { display: inline-block; white-space: nowrap; padding-left: 100%;
  animation: diy-marquee 12s linear infinite; }
@keyframes diy-marquee { to { transform: translateX(-100%); } }
.diy-cd.done { opacity: .62; filter: grayscale(.35); }
.diy-cd.done .diy-cd-clock { font-size: 18px; letter-spacing: 0; }

/* ================= 分享推广细节优化 ================= */
/* 分享面板 */
.share-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sp-link { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px;
  background: #f8f6ff; cursor: pointer; transition: .15s; }
.sp-link:hover { background: #efeaff; transform: translateY(-1px); }
.sp-link b { font-size: 13.5px; color: #2f2b45; }
.sp-link span { font-size: 11px; color: #a5a2b8; }
.sp-rate { text-align: center; font-size: 11.5px; color: #a5a2b8; margin-top: 10px; }
/* 邀请海报 */
.ip-wrap { display: flex; justify-content: center; }
.ip-wrap canvas { max-width: 100%; height: auto; border-radius: 14px; box-shadow: 0 8px 26px rgba(109,94,252,.25); }
/* 落地欢迎横幅 */
.ref-welcome { position: fixed; top: -90px; left: 12px; right: 12px; z-index: 200; display: flex; align-items: center;
  gap: 10px; background: linear-gradient(135deg, #6d5efc, #ff5e8a); border-radius: 14px; padding: 12px 12px;
  box-shadow: 0 10px 26px rgba(109,94,252,.4); transition: top .4s cubic-bezier(.34,1.4,.64,1); }
.ref-welcome.show { top: 10px; }
.ref-welcome .rw-ico { font-size: 26px; }
.ref-welcome .rw-txt { flex: 1; min-width: 0; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.ref-welcome .rw-txt b { font-size: 13.5px; }
.ref-welcome .rw-txt span { font-size: 11px; opacity: .88; }
.ref-welcome button { border: 0; background: #fff; color: #6d5efc; font-weight: 700; font-size: 12px;
  border-radius: 999px; padding: 7px 12px; cursor: pointer; flex-shrink: 0; }
.ref-welcome .rw-x { color: rgba(255,255,255,.75); font-size: 13px; cursor: pointer; padding: 4px; }
/* 收益明细：待结算 / 冲回 / 达人榜 / 好友列表 */
.dist-pending { font-size: 11.5px; color: #b06f00; background: #fff8e8; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.ref-list .dist-revoked { opacity: .55; }
.ref-list .dist-revoked i { font-style: normal; color: #e2452a; font-size: 10.5px; }
.dist-top { margin-top: 10px; background: #faf8ff; border-radius: 12px; padding: 10px 12px; }
.dist-top > b { font-size: 12.5px; color: #2f2b45; display: block; margin-bottom: 6px; }
.dist-top > div { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; }
.dist-top span { width: 26px; text-align: center; }
.dist-top em { flex: 1; font-style: normal; color: #4a4763; }
.dist-top small { color: #a5a2b8; }
.dist-top b { color: #ff4d6d; }
.dist-top-tip { display: block; font-size: 10.5px; color: #b6b3c8; margin-top: 6px; }
.dist-f-lv { display: block; font-size: 12px; color: #6d5efc; margin: 10px 0 4px; }
