/* 红酒盲盒定稿版 - H5 样式 */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:#1a0b0b; color:#3a2a2a; }
.app { max-width:480px; margin:0 auto; min-height:100vh; background:linear-gradient(180deg,#2a0d0d 0%,#3d1212 40%,#2a0d0d 100%); padding-bottom:64px; }

/* 顶部 */
.header { position:sticky; top:0; z-index:50; background:rgba(42,13,13,.95); backdrop-filter:blur(6px); padding:12px 14px; display:flex; justify-content:space-between; align-items:center; }
.logo { color:#f5d9a0; font-size:18px; font-weight:700; letter-spacing:1px; }
.header-right { display:flex; gap:6px; }
.coin-pill { color:#f5d9a0; font-size:12px; background:rgba(212,162,78,.15); border:1px solid rgba(212,162,78,.4); padding:4px 10px; border-radius:20px; }
.coin-pill.gold { color:#ffd76e; }

.notice-bar { background:linear-gradient(90deg,#7b1f1f,#a82727); color:#ffe9c9; font-size:13px; padding:8px 10px; display:flex; align-items:center; }
.notice-bar marquee { flex:1; }

.main { padding:14px; }

/* 轮播 */
.banner-wrap { border-radius:12px; overflow:hidden; margin-bottom:12px; position:relative; box-shadow:0 4px 14px rgba(0,0,0,.3); }
.banner { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.banner::-webkit-scrollbar { display:none; }
.banner img { width:100%; height:150px; object-fit:cover; scroll-snap-align:start; flex-shrink:0; }
.banner .b-placeholder { width:100%; height:150px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#7b1f1f,#a82727); color:#f5d9a0; font-size:16px; font-weight:700; flex-shrink:0; }
.banner-dots { position:absolute; bottom:8px; left:0; right:0; display:flex; justify-content:center; gap:6px; }
.banner-dots .dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.5); }
.banner-dots .dot.on { background:#ffd76e; }

/* 时段爆率 */
.slot-badge { text-align:center; background:linear-gradient(90deg,#4a2e08,#6b4312); color:#ffd76e; font-size:13px; padding:7px; border-radius:10px; margin-bottom:12px; border:1px solid #d4a24e; }

/* 抽奖主区 */
.draw-hero { background:linear-gradient(180deg,#7b1f1f,#8f2424); border-radius:16px; padding:22px 16px; text-align:center; box-shadow:0 6px 18px rgba(0,0,0,.35); position:relative; overflow:hidden; }
.draw-hero::before { content:''; position:absolute; top:-30px; right:-30px; width:90px; height:90px; border-radius:50%; background:rgba(255,255,255,.06); }
.draw-hero-title { color:#f5d9a0; font-size:20px; font-weight:800; letter-spacing:2px; }
.draw-hero-sub { color:rgba(245,217,160,.8); font-size:12px; margin-top:6px; }
.draw-btn-box { margin:18px 0 8px; }
.btn-draw {
    width:170px; padding:15px 0; border:none; border-radius:40px; font-size:18px; font-weight:800; cursor:pointer;
    background:linear-gradient(135deg,#f0c76a,#d4a24e); color:#4a2e08; box-shadow:0 6px 18px rgba(0,0,0,.35); letter-spacing:3px;
}
.btn-draw:disabled { opacity:.5; }
.draw-status { color:rgba(245,217,160,.9); font-size:13px; margin-top:6px; }
.draw-guard { color:#ffd76e; font-size:12px; margin-top:4px; min-height:16px; }

/* 活动商品卡 */
.act-card { background:linear-gradient(135deg,#fffdf8,#f7f0e2); border-radius:14px; padding:14px; margin-top:14px; display:flex; align-items:center; box-shadow:0 4px 14px rgba(0,0,0,.3); border:1px solid #d4a24e; }
.act-img { width:66px; height:66px; border-radius:12px; background:linear-gradient(135deg,#7b1f1f,#a82727); color:#f5d9a0; display:flex; align-items:center; justify-content:center; font-size:30px; margin-right:12px; flex-shrink:0; overflow:hidden; }
.act-img img { width:100%; height:100%; object-fit:cover; }
.act-info { flex:1; }
.act-name { font-size:15px; font-weight:700; color:#3a2a2a; }
.act-price { font-size:13px; color:#a05a2c; margin-top:3px; }
.act-price b { font-size:17px; color:#c0392b; }
.act-tip { font-size:11px; color:#8a6d6d; margin-top:3px; }
.btn-act { background:linear-gradient(135deg,#8f1f1f,#a82727); color:#fff; border:none; border-radius:10px; padding:11px 16px; font-size:14px; font-weight:700; cursor:pointer; flex-shrink:0; }

/* 概率公示 */
.prob-bar { background:rgba(255,253,248,.06); border:1px solid rgba(212,162,78,.25); color:rgba(255,255,255,.8); font-size:12px; padding:9px; border-radius:10px; margin-top:12px; text-align:center; }

/* 中奖播报 */
.broadcast { background:rgba(255,253,248,.06); border:1px solid rgba(212,162,78,.25); border-radius:12px; margin-top:12px; padding:12px; }
.broadcast-title { color:#f5d9a0; font-size:14px; font-weight:600; margin-bottom:8px; }
.broadcast ul { list-style:none; }
.broadcast li { color:rgba(255,255,255,.75); font-size:12px; padding:5px 0; border-bottom:1px dashed rgba(255,255,255,.1); }
.broadcast li:last-child { border-bottom:none; }
.broadcast li b { color:#ffd76e; }

/* 商城 */
.mall-coupon-card { background:rgba(255,253,248,.06); border:1px solid rgba(212,162,78,.25); border-radius:12px; padding:12px; margin-bottom:12px; }
.mall-coupon-title { color:#f5d9a0; font-size:14px; font-weight:700; margin-bottom:8px; }
.coupon-row { display:flex; align-items:center; justify-content:space-between; background:linear-gradient(135deg,#f7f0e2,#fffdf8); border-radius:10px; padding:10px 12px; margin-bottom:8px; }
.coupon-row .c-info .c-name { font-size:13px; font-weight:700; color:#3a2a2a; }
.coupon-row .c-info .c-desc { font-size:11px; color:#8a6d6d; margin-top:2px; }
.btn-coupon { background:linear-gradient(135deg,#8f1f1f,#a82727); color:#fff; border:none; border-radius:8px; padding:7px 14px; font-size:12px; font-weight:700; cursor:pointer; }
.btn-coupon:disabled { opacity:.5; }

.mall-goods { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.m-goods-card { background:#fffdf8; border-radius:12px; overflow:hidden; box-shadow:0 4px 14px rgba(0,0,0,.3); }
.m-g-img { height:110px; background:linear-gradient(135deg,#7b1f1f,#a82727); color:#f5d9a0; display:flex; align-items:center; justify-content:center; font-size:34px; }
.m-g-img img { width:100%; height:100%; object-fit:cover; }
.m-g-body { padding:10px; }
.m-g-name { font-size:13px; font-weight:600; color:#3a2a2a; min-height:34px; line-height:1.3; }
.m-g-price { font-size:14px; color:#c0392b; font-weight:800; margin-top:5px; }
.m-g-price s { font-size:11px; color:#a08d8d; font-weight:400; margin-left:5px; }
.m-g-buy { display:block; width:100%; margin-top:8px; background:linear-gradient(135deg,#8f1f1f,#a82727); color:#fff; border:none; border-radius:8px; padding:8px 0; font-size:13px; font-weight:700; cursor:pointer; }
.m-g-buy.activity { background:linear-gradient(135deg,#d4a24e,#f0c76a); color:#4a2e08; }

/* 列表卡片 */
.list-card { background:#fffdf8; border-radius:12px; padding:14px; margin-top:12px; box-shadow:0 4px 14px rgba(0,0,0,.25); }
.list-title { font-size:15px; font-weight:700; color:#7b1f1f; margin-bottom:10px; padding-left:8px; border-left:3px solid #d4a24e; }
.list-card ul { list-style:none; }
.list-card li { padding:10px 0; border-bottom:1px dashed #efdfdf; font-size:13px; color:#3a2a2a; }
.list-card li:last-child { border-bottom:none; }
.empty { color:#a08d8d; text-align:center; padding:16px 0; font-size:13px; }

/* 页签切换 */
.tab-switch { display:flex; background:rgba(255,253,248,.08); border-radius:10px; padding:4px; gap:4px; }
.tab-switch .ts { flex:1; text-align:center; padding:9px 0; font-size:13px; color:rgba(255,255,255,.7); cursor:pointer; border-radius:8px; }
.tab-switch .ts.active { background:linear-gradient(135deg,#8f1f1f,#a82727); color:#fff; font-weight:700; }

/* 优惠券卡片 */
.uc-card { display:flex; background:linear-gradient(135deg,#fffdf8,#f7f0e2); border-radius:10px; padding:12px; margin-bottom:10px; align-items:center; }
.uc-amount { width:80px; text-align:center; color:#c0392b; font-size:18px; font-weight:800; flex-shrink:0; border-right:1px dashed #e0cdcd; margin-right:12px; }
.uc-info { flex:1; }
.uc-title { font-size:13px; font-weight:700; }
.uc-desc { font-size:11px; color:#8a6d6d; margin-top:3px; }
.uc-status { font-size:12px; font-weight:700; }
.uc-status.used { color:#a08d8d; }
.uc-status.expired { color:#a08d8d; }

/* 订单项 */
.order-item { display:flex; align-items:center; padding:10px 0; border-bottom:1px dashed #efdfdf; }
.order-item:last-child { border-bottom:none; }
.order-img { width:46px; height:46px; border-radius:10px; background:linear-gradient(135deg,#7b1f1f,#a82727); color:#f5d9a0; display:flex; align-items:center; justify-content:center; font-size:22px; margin-right:10px; flex-shrink:0; overflow:hidden; }
.order-img img { width:100%; height:100%; object-fit:cover; }
.order-body { flex:1; }
.order-name { font-size:13px; font-weight:600; }
.order-no { font-size:11px; color:#a08d8d; margin-top:2px; }
.order-time { font-size:11px; color:#a08d8d; margin-top:2px; }
.order-status { font-size:12px; margin-top:2px; font-weight:600; }
.st-0 { color:#c0392b; } .st-1 { color:#a05a2c; } .st-2 { color:#2e8b57; } .st-3 { color:#2e6da4; }

/* 表单 */
.field { margin-bottom:10px; }
.field input { width:100%; padding:11px 12px; border:1px solid #dcc8c8; border-radius:8px; font-size:15px; background:#fff; color:#3a2a2a; outline:none; }
.field input:focus { border-color:#d4a24e; }
.auth-btns { display:flex; gap:8px; margin-top:12px; }
.btn-main { flex:1; padding:12px 0; border:none; border-radius:8px; font-size:15px; font-weight:700; cursor:pointer; background:linear-gradient(135deg,#8f1f1f,#a82727); color:#fff; }
.btn-main.gold { background:linear-gradient(135deg,#d4a24e,#f0c76a); color:#4a2e08; }
.btn-main.small { padding:9px 0; font-size:13px; }
.btn-ghost { flex:1; padding:12px 0; border:1px solid #d4a24e; border-radius:8px; font-size:14px; cursor:pointer; background:transparent; color:#a05a2c; }
.auth-tip { color:#a08d8d; font-size:12px; margin-top:10px; text-align:center; }

/* 用户卡片 */
.user-card { background:linear-gradient(135deg,#7b1f1f,#8f2424); border-radius:12px; padding:16px; display:flex; align-items:center; color:#f5d9a0; box-shadow:0 4px 14px rgba(0,0,0,.3); }
.user-avatar { width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; font-size:26px; margin-right:12px; }
.user-info { flex:1; }
.user-phone { font-size:16px; font-weight:700; }
.user-assets { font-size:12px; color:rgba(245,217,160,.85); margin-top:3px; }
.btn-logout { background:rgba(255,255,255,.15); border:1px solid rgba(245,217,160,.5); color:#f5d9a0; border-radius:8px; padding:7px 14px; font-size:13px; cursor:pointer; }

/* 广告卡片 */
.ad-card { background:linear-gradient(135deg,#4a2e08,#6b4312); border:1px solid #d4a24e; border-radius:12px; padding:14px; margin-top:12px; display:flex; align-items:center; box-shadow:0 4px 14px rgba(0,0,0,.3); }
.ad-left { flex:1; }
.ad-title { color:#ffd76e; font-size:15px; font-weight:700; }
.ad-sub { color:rgba(255,255,255,.7); font-size:12px; margin-top:3px; }
.btn-ad { background:linear-gradient(135deg,#d4a24e,#f0c76a); color:#4a2e08; border:none; border-radius:10px; padding:11px 16px; font-size:14px; font-weight:700; cursor:pointer; }
.btn-ad:disabled { opacity:.5; }

/* 快捷入口 */
.quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px; }
.quick-item { background:rgba(255,253,248,.08); border:1px solid rgba(212,162,78,.25); border-radius:12px; padding:14px 6px; text-align:center; color:#f5d9a0; font-size:12px; cursor:pointer; }
.quick-item:hover { background:rgba(212,162,78,.2); }

/* 邀请 */
.invite-card { background:rgba(255,253,248,.06); border:1px solid rgba(212,162,78,.3); border-radius:12px; padding:14px; margin-top:12px; }
.invite-title { color:#ffd76e; font-size:14px; font-weight:700; margin-bottom:8px; }
.invite-row { color:rgba(255,255,255,.8); font-size:13px; margin-bottom:6px; }
.invite-row b { color:#ffd76e; }
.invite-link { font-size:11px; color:rgba(255,255,255,.55); word-break:break-all; }
.invite-sub { font-size:11px; color:rgba(255,255,255,.5); margin:8px 0; }
.invite-list-title { color:#f5d9a0; font-size:13px; font-weight:700; margin:8px 0 6px; }
.invite-card ul { list-style:none; }
.invite-card li { color:rgba(255,255,255,.7); font-size:12px; padding:5px 0; border-bottom:1px dashed rgba(255,255,255,.1); }

/* 底部导航 */
.tabbar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; background:rgba(20,8,8,.97); border-top:1px solid rgba(212,162,78,.3); display:flex; z-index:60; padding-bottom:env(safe-area-inset-bottom); }
.tab { flex:1; text-align:center; padding:8px 0 6px; color:#a08d8d; cursor:pointer; }
.tab.active { color:#ffd76e; }
.tab-icon { font-size:20px; }
.tab-text { font-size:11px; margin-top:2px; }

/* 抽奖弹层 */
.draw-mask { position:fixed; inset:0; background:rgba(0,0,0,.82); z-index:100; display:flex; align-items:center; justify-content:center; }
.draw-panel-lg { width:88%; max-width:380px; background:linear-gradient(180deg,#7b1f1f,#5c1212); border-radius:18px; padding:24px 16px; text-align:center; border:2px solid #d4a24e; box-shadow:0 10px 40px rgba(0,0,0,.5); }
.draw-lg-title { color:#f5d9a0; font-size:16px; font-weight:700; margin-bottom:16px; }
.slots { display:flex; gap:4px; justify-content:center; margin-bottom:16px; }
.slot { width:38px; height:50px; border-radius:8px; background:#fffdf8; display:flex; align-items:center; justify-content:center; font-size:22px; border:1px solid #d4a24e; }
.slot.hl { transform:scale(1.15); border-color:#ffd76e; box-shadow:0 0 12px rgba(255,215,110,.8); }
.draw-lg-result .result-icon { font-size:52px; }
.result-name { color:#ffd76e; font-size:19px; font-weight:800; margin-top:8px; }
.result-sub { color:rgba(255,255,255,.75); font-size:13px; margin-top:8px; line-height:1.6; }
.draw-panel-lg .btn-main { margin-top:14px; }

/* 弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:90; display:flex; align-items:center; justify-content:center; }
.modal { width:88%; max-width:380px; background:#fffdf8; border-radius:14px; padding:20px; max-height:88vh; overflow:auto; }
.modal-title { font-size:16px; font-weight:700; color:#7b1f1f; margin-bottom:14px; }
.modal-btns { display:flex; gap:8px; margin-top:14px; }
.modal .ship-info { background:#f7f0e2; padding:10px; border-radius:8px; font-size:13px; margin-bottom:12px; color:#6b4f4f; line-height:1.7; }

/* Toast */
.toast { position:fixed; top:16%; left:50%; transform:translateX(-50%); z-index:200; background:rgba(20,8,8,.92); color:#ffd76e; padding:10px 20px; border-radius:20px; font-size:14px; max-width:82%; text-align:center; opacity:0; transition:opacity .25s; pointer-events:none; }
.toast.show { opacity:1; }

.hidden { display:none !important; }
