:root { --accent: #D4875A; --dark: #1A2330; --bg: #F6F5F2; --card: #FFFFFF; --txt: #222; --sub: #777; --red: #E0564A; --green: #2FA36B; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #E9E7E2; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 88px; }
.demo-bar { background: var(--dark); color: #cfd6de; font-size: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20; }
.demo-bar select { flex: 1; border: none; border-radius: 6px; padding: 7px 8px; font-size: 15px; }
button.mini { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 8px 14px; font-size: 15px; cursor: pointer; }
main { padding: 14px; }
.card { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.banner { background: linear-gradient(135deg, #1A2330, #33465e); color: #fff; border-radius: 12px; padding: 20px 16px; margin-bottom: 12px; }
.banner h1 { font-size: 24px; margin-bottom: 6px; }
.banner p { font-size: 15px; color: #B9C2CC; }
.announce { background: #FFF7ED; border: 1px solid #F0D9BC; color: #8a6a44; font-size: 14px; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.tag { display: inline-block; font-size: 13px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 2px 7px; margin-right: 6px; }
.price { color: var(--red); font-size: 27px; font-weight: 700; }
.price::before { content: "¥"; font-size: 14px; }
.price-sm { color: var(--red); font-weight: 700; }
.market { color: #aaa; text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.btn { display: inline-block; background: linear-gradient(90deg, #E09A6C, #D4875A); color: #fff; border: none; border-radius: 24px; padding: 13px 30px; font-size: 18px; cursor: pointer; }
.btn:disabled { background: #ccc; }
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn.big { width: 100%; padding: 14px; font-size: 19px; border-radius: 28px; }
.btn.gray { background: #999; }
.h2 { font-size: 19px; font-weight: 700; margin: 4px 0 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { width: 44px; height: 44px; border-radius: 50%; background: #F0EDE8; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; position: relative; overflow: hidden; }
.slot.filled { background: var(--accent); }
.slot.empty { color: #bbb; }
.slot.robot::after { content: "机"; position: absolute; right: -1px; bottom: -1px; background: #999; color: #fff; font-size: 9px; width: 14px; height: 14px; border-radius: 50% 0 0 0; line-height: 14px; text-align: center; }
.progress { height: 8px; background: #F0EDE8; border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #E09A6C, #D4875A); transition: width .5s; }
.muted { color: var(--sub); font-size: 15px; line-height: 1.65; }
.win { color: var(--green); font-weight: 700; }
.big-result { text-align: center; padding: 18px 0 8px; }
.big-result .emoji { font-size: 44px; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid #F2EFEB; font-size: 17px; gap: 8px; }
.list-item:last-child { border-bottom: none; }
.amount-in { color: var(--red); } .amount-out { color: var(--green); }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; display: flex; box-shadow: 0 -1px 6px rgba(0,0,0,.08); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.tabbar.hidden { display: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 14px 0 15px; color: #555; cursor: pointer; position: relative; }
.tab .ico { width: 30px; height: 30px; }
.tab .lbl { font-size: 18px; line-height: 1.2; }
.tab.on { color: var(--accent); font-weight: 700; }
.tab .badge { position: absolute; top: 6px; right: 12%; background: var(--red); color: #fff; font-size: 14px; min-width: 24px; height: 24px; border-radius: 12px; line-height: 24px; }
.share-link { background: #F7F3EE; border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #7a5c3a; word-break: break-all; margin-top: 8px; }
.notice { background: #FFF7ED; border: 1px solid #F0D9BC; border-radius: 8px; padding: 12px; font-size: 15px; color: #8a6a44; margin-top: 10px; line-height: 1.7; }
.goods { display: flex; gap: 12px; align-items: center; }
.thumb { width: 84px; height: 84px; border-radius: 12px; background: linear-gradient(135deg,#F3E3D3,#E8CDB2); display: flex; align-items: center; justify-content: center; font-size: 38px; flex-shrink: 0; }
.thumb.lg { width: 100%; height: 210px; border-radius: 12px 12px 0 0; font-size: 68px; }
.pill { font-size: 13px; background: #F0EDE8; color: #777; border-radius: 10px; padding: 3px 10px; margin-right: 6px; display: inline-block; }
.back { color: var(--accent); font-size: 16px; cursor: pointer; margin-bottom: 10px; display: inline-block; }
h1.pagetitle { font-size: 21px; margin: 4px 0 12px; }
.seg { display: flex; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.seg div { flex: 1; text-align: center; padding: 13px 0; font-size: 16px; color: #777; cursor: pointer; }
.seg div.on { color: var(--accent); font-weight: 700; background: #FBF5EF; }
/* 详情页 */
.detail-hero { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 12px; }
.detail-hero .body { background: #fff; padding: 16px; }
.detail-sec { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.rev { border-bottom: 1px solid #F2EFEB; padding: 12px 0; font-size: 15px; }
.rev:last-child { border-bottom: none; }
.rev .stars { color: #F5B041; }
/* 确认订单 */
.addr-card { display: flex; justify-content: space-between; align-items: center; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #F5F2EE; font-size: 16px; }
.check-row:last-child { border-bottom: none; }
.check-row input[type=radio], .check-row input[type=checkbox] { width: 18px; height: 18px; }
.check-row .r { margin-left: auto; color: #666; }
.price-box { background: #fff; border-radius: 12px; padding: 16px; font-size: 16px; }
.price-box .li { display: flex; justify-content: space-between; padding: 6px 0; color: #555; }
.price-box .li.total { border-top: 1px solid #F0EDE8; margin-top: 6px; padding-top: 11px; font-weight: 700; color: #222; font-size: 17px; }
.paybar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -1px 6px rgba(0,0,0,.08); z-index: 15; }
/* 收银台 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.cashier { background: #F7F7F7; width: 100%; max-width: 460px; border-radius: 16px 16px 0 0; overflow: hidden; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
.cashier .head { background: #00C253; color: #fff; text-align: center; padding: 15px; font-weight: 700; font-size: 17px; }
.cashier .amt { text-align: center; padding: 28px 0 10px; font-size: 42px; font-weight: 700; }
.cashier .merchant { text-align: center; color: #999; font-size: 15px; padding-bottom: 18px; }
.payway { background: #fff; display: flex; align-items: center; padding: 16px; font-size: 16px; }
.payway .ico { width: 36px; height: 36px; background: #00C253; color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 10px; font-size: 19px; }
.cashier .paybtn { margin: 20px 16px 26px; }
.spinner { width: 42px; height: 42px; border: 4px solid #E5E5E5; border-top-color: #00C253; border-radius: 50%; margin: 30px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.payok { text-align: center; padding: 30px 0 26px; }
.payok .circle { width: 64px; height: 64px; border-radius: 50%; background: #00C253; color: #fff; font-size: 34px; line-height: 64px; margin: 0 auto 12px; }
/* 弹层 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal .box { background: #fff; border-radius: 14px; width: 100%; max-width: 380px; padding: 20px; max-height: 80vh; overflow-y: auto; }
.modal .box h3 { font-size: 17px; margin-bottom: 12px; }
.modal .close { float: right; color: #999; cursor: pointer; font-size: 20px; }
.poster { background: linear-gradient(160deg, #1A2330, #3A4E68); border-radius: 14px; color: #fff; text-align: center; padding: 26px 18px; }
.poster .avatar { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 10px; line-height: 52px; font-size: 20px; font-weight: 700; }
.poster h4 { font-size: 18px; margin-bottom: 6px; }
.poster p { font-size: 13px; color: #B9C2CC; margin-bottom: 14px; }
.qr { background: #fff; width: 124px; height: 124px; margin: 0 auto; border-radius: 8px; padding: 8px; }
/* 开奖动画 */
.draw-ov { position: fixed; inset: 0; background: rgba(10,16,24,.86); z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.draw-ov .roll { font-size: 30px; font-weight: 700; letter-spacing: 4px; margin-bottom: 18px; }
.draw-ov .winners { display: flex; gap: 14px; margin: 18px 0; }
.draw-ov .w { background: linear-gradient(160deg, #D4875A, #B4653A); border-radius: 12px; padding: 12px 16px; text-align: center; font-size: 14px; animation: pop .5s ease; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
/* 地址表单 */
.fld { margin-bottom: 12px; }
.fld label { font-size: 13px; color: #888; display: block; margin-bottom: 5px; }
.fld input { width: 100%; border: 1px solid #E3E0DA; border-radius: 8px; padding: 12px; font-size: 16px; }
.msg-item { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid #F2EFEB; }
.msg-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 6px; flex-shrink: 0; }
.msg-item .dot.read { background: #ddd; }
.lvl { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid #F2EFEB; }
.lvl .name { font-weight: 700; font-size: 16px; }
.lvl .name small { display: block; font-weight: 400; color: #999; font-size: 12px; margin-top: 2px; }
.lvl.cur .name { color: var(--accent); }
.coupon-card { display: flex; border: 1px solid #F0DCCE; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #FFFDFB; }
.coupon-card .v { background: linear-gradient(160deg, #E09A6C, #D4875A); color: #fff; min-width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 13px 6px; }
.coupon-card .v b { font-size: 23px; } .coupon-card .v b::before { content: "¥"; font-size: 12px; }
.coupon-card .info { flex: 1; padding: 11px 13px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.coupon-card .used { filter: grayscale(1); opacity: .55; }
.track { padding: 4px 0 4px 18px; border-left: 2px solid #EFE9E2; margin-left: 6px; }
.track .node { position: relative; padding-bottom: 16px; font-size: 15px; }
.track .node::before { content: ""; position: absolute; left: -23px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #D4C9BC; }
.track .node.first::before { background: var(--accent); }
.track .node .t { color: #999; font-size: 12px; }

/* ── 个人中心（对标成熟 App） ── */
.profile { display: flex; align-items: center; gap: 14px; }
.pavatar { width: 58px; height: 58px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex-shrink: 0; }
.lvl-badge { display: inline-block; background: linear-gradient(90deg, #E09A6C, #D4875A); color: #fff; font-size: 12px; border-radius: 10px; padding: 2px 9px; margin-left: 8px; vertical-align: 2px; }
.stats4 { display: flex; padding: 14px 0; }
.stats4 .st { flex: 1; text-align: center; padding: 2px 0; cursor: pointer; }
.stats4 .st:active { background: #FBF5EF; }
.stats4 .st + .st { border-left: 1px solid #F0EDE8; }
.stats4 .st b { font-size: 21px; font-weight: 700; display: block; }
.stats4 .st span { font-size: 12px; color: #888; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.grid4 .gi { text-align: center; padding: 12px 0 10px; cursor: pointer; border-radius: 10px; }
.grid4 .gi:active { background: #FBF5EF; }
.grid4 .gi .e { font-size: 30px; line-height: 1.2; }
.grid4 .gi .l { font-size: 13px; color: #555; margin-top: 5px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ── 融资演示版新增 ── */
.searchbar { display:flex; align-items:center; gap:8px; background:#fff; border-radius:22px; padding:11px 16px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.06); font-size:15px; }
.searchbar input { border:none; outline:none; flex:1; font-size:15px; background:transparent; }
.banner2 { border-radius:14px; overflow:hidden; margin-bottom:12px; }
.slide { padding:26px 20px; color:#fff; background:linear-gradient(135deg,#FF8A50,#E0562B); }
.slide .bt { font-size:26px; font-weight:900; margin-bottom:6px; }
.slide .bs { font-size:13px; opacity:.92; }
.slide .bn { font-size:13px; margin-top:10px; color:#FFE3CE; }
.slide .bn b { color:#fff; font-size:15px; }
.kk { display:grid; grid-template-columns:repeat(4,1fr); }
.kki { text-align:center; padding:8px 0; cursor:pointer; }
.kki:active { opacity:.7; }
.kke { width:46px; height:46px; margin:0 auto; border-radius:14px; background:#FFF3EA; display:flex; align-items:center; justify-content:center; font-size:24px; }
.kkl { font-size:13px; color:#444; margin-top:6px; }
.livecard { display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid #F5F2EE; cursor:pointer; }
.livecard:last-child { border-bottom:none; }
.hslot { width:30px; height:30px; border-radius:50%; background:#D4875A; color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center; }
.hslot.more { background:#F0EDE8; color:#999; }
.hot { display:inline-block; background:#FFF0E8; color:#E0562B; font-size:12px; font-weight:700; border-radius:4px; padding:2px 7px; }
.gimg { border-radius:12px; display:flex; align-items:center; justify-content:center; width:84px; height:84px; flex-shrink:0; }
.gimg svg { width:62%; height:62%; }
.gimg.lg { width:100%; height:230px; border-radius:14px 14px 0 0; }
.gimg.lg svg { width:190px; height:190px; }
.detail-hero { border-radius:14px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.06); margin-bottom:12px; }
.dots { background:#fff; display:flex; gap:6px; justify-content:center; padding:8px 0; }
.dots i { width:7px; height:7px; border-radius:4px; background:#E3DDD5; }
.dots i.on { background:#D4875A; width:16px; }
.waterfall { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.wcard { background:#FBFAF8; border:1px solid #F3F0EB; border-radius:12px; overflow:hidden; cursor:pointer; }
.wcard .gimg { width:100%; height:120px; border-radius:0; }
.wcard .wbody { padding:10px 12px 12px; }
.minehead { background:linear-gradient(135deg,#FF8A50,#E0562B); padding:20px 16px 62px; margin:-14px -14px 0; display:flex; align-items:center; gap:14px; color:#fff; }
.devtools { background:#FAFAF8; }
.skel { background:linear-gradient(90deg,#F0EDE8 25%,#F8F6F2 50%,#F0EDE8 75%); background-size:400% 100%; animation:sk 1.2s infinite; border-radius:12px; height:90px; margin-bottom:12px; }
@keyframes sk { 0% { background-position:100% 0; } 100% { background-position:0 0; } }

/* ── P1 体验批次 ── */
.btn:active, .mini:active { transform: scale(.95); }
.goods:active, .wcard:active, .livecard:active, .kki:active { opacity:.82; }
.price-sm, .price { font-variant-numeric: tabular-nums; }
.lb-item { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #F5F2EE; font-size:14px; }
.lb-item:last-child { border-bottom:none; }
.lb-rank { width:24px; height:24px; border-radius:7px; background:#F0EDE8; color:#888; font-size:13px; display:flex; align-items:center; justify-content:center; font-weight:800; flex-shrink:0; }
.lb-rank.r1 { background:#FFD700; color:#7a5c00; }
.lb-rank.r2 { background:#C8CDD4; color:#333; }
.lb-rank.r3 { background:#E8A26A; color:#fff; }
.lb-item .amt { margin-left:auto; color:#E0564A; font-weight:700; }
.ocard .act { display:flex; gap:8px; justify-content:flex-end; margin-top:10px; }
.ocard .act .btn { padding:7px 16px; font-size:13px; }
.empty { text-align:center; padding:34px 0 14px; }
.empty .e { font-size:46px; margin-bottom:10px; }
.empty .t { color:#999; font-size:14px; margin-bottom:14px; }
