:root{--yellow: #ffd100;--yellow-dark: #f5b800;--ink: #202124;--muted: #737373;--line: #ececec;--bg: #f7f7f7;--red: #ff4d2d;--app-bottom-lift: 0px;--app-top-safe: max(28px, env(safe-area-inset-top))}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0;overflow-x:hidden;width:100%;max-width:100vw}body{font-family:PingFang SC,HarmonyOS Sans SC,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}button,input,select,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;outline:none}a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}button:focus,button:active,input:focus,select:focus,textarea:focus{outline:none}button:active{-webkit-tap-highlight-color:transparent}.app-shell{max-width:520px;min-height:100vh;margin:0 auto;background:var(--yellow);padding-top:var(--app-top-safe);padding-bottom:calc(86px + env(safe-area-inset-bottom))}.page-fade-enter-active,.page-fade-leave-active{transition:opacity .18s ease,transform .18s ease}.page-fade-enter-from,.page-fade-leave-to{opacity:0;transform:translateY(8px)}.route-loader{position:fixed;inset:0;z-index:30;display:none;place-items:center;background:#ffffff9e;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}body.route-loading .route-loader{display:grid}.loader-card{width:126px;min-height:112px;display:grid;place-items:center;gap:10px;padding:18px 14px;border-radius:8px;background:#fffffff5;box-shadow:0 18px 46px #00000029;color:#222;font-weight:900}.page{min-height:calc(100vh - 72px);background:#f7f7f7}.topbar{position:sticky;top:0;z-index:3;padding:16px;background:var(--yellow)}.topbar h1{margin:0;font-size:24px}.topbar p{margin:5px 0 0;color:#6b5200;font-size:13px}.search{margin-top:12px;min-height:40px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#fff;border-radius:6px;color:var(--muted)}.search input{flex:1;height:38px;border:0;outline:0;background:transparent;font-size:14px}.search button{border:0;background:#fff3bd;color:#6b5200;border-radius:5px;padding:6px 8px;font-weight:800}.content{padding:14px}.banner{min-height:126px;border-radius:8px;padding:18px;background:linear-gradient(135deg,#1f1f1f,#5b4200 55%,#ffd100);color:#fff;display:flex;flex-direction:column;justify-content:flex-end}.banner b{font-size:22px}.banner span{margin-top:6px;font-size:13px;opacity:.9}.category-bar{display:flex;gap:8px;overflow-x:auto;padding:12px 0 2px;scrollbar-width:none}.category-bar::-webkit-scrollbar{display:none}.category-bar button{flex:0 0 auto;min-width:68px;height:36px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#555;font-weight:800}.category-bar button.active{background:var(--yellow);color:#1f1f1f;border-color:var(--yellow-dark)}.mini-tag{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:#fff7d1;color:#705400;font-size:11px;font-weight:800}.product-list{display:grid;gap:12px;margin-top:14px}.product-card{display:grid;grid-template-columns:112px 1fr;gap:12px;padding:12px;background:#fff;border-radius:8px;border:1px solid var(--line)}.product-card img,.detail-cover{width:100%;height:112px;object-fit:cover;border-radius:6px;background:#eee}.product-card h3,.section h2{margin:0;font-size:17px}.muted{color:var(--muted);font-size:13px;line-height:1.45}.price{color:var(--red);font-weight:800;font-size:21px}.market{color:#999;text-decoration:line-through;font-size:12px;margin-left:6px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.primary,.outline{min-height:42px;border-radius:6px;border:0;padding:0 16px;font-weight:800}.primary{background:var(--yellow);color:#1f1f1f}.outline{background:#fff;border:1px solid #e4c34a;color:#6b5200}.danger{color:var(--red);background:#fff1ed;border:0;border-radius:6px;padding:8px 10px}.section{margin-top:12px;padding:14px;background:#fff;border-radius:8px;border:1px solid var(--line)}.form{display:grid;gap:12px}.form input,.form select,.form textarea{width:100%;min-height:44px;padding:0 12px;border:1px solid #ddd;border-radius:6px;background:#fff}.form textarea{padding-top:10px;min-height:82px}.inline-form{display:grid;grid-template-columns:1fr 86px;gap:8px}.auth{position:relative;padding:30px 18px}.auth h1{margin:0 0 8px;font-size:28px}.auth .card{margin-top:22px;padding:18px;background:#fff;border-radius:8px;border:1px solid var(--line)}.auth-register{position:absolute;top:24px;right:18px;min-height:34px;padding:0 12px;border:1px solid #e4c34a;border-radius:999px;background:#fff8d7;color:#6b5200;font-size:13px;font-weight:900}.captcha{display:grid;grid-template-columns:1fr 120px;gap:10px;align-items:center}.captcha-code{height:44px;display:grid;place-items:center;border-radius:6px;background:#222;color:var(--yellow);font-size:22px;font-weight:900;letter-spacing:3px}.login-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px}.login-switch button{height:38px;border:1px solid var(--line);border-radius:6px;background:#fff;font-weight:800}.login-switch button.active{background:var(--yellow);border-color:var(--yellow-dark)}.remember-row{display:flex;align-items:center;gap:8px;color:#555;font-size:13px;font-weight:700}.remember-row input{width:18px;height:18px;min-height:18px;accent-color:var(--yellow)}.gesture-auto-tip{text-align:center;font-weight:800}.gesture-pad{position:relative;width:176px;height:176px;display:grid;grid-template-columns:repeat(3,32px);grid-template-rows:repeat(3,32px);gap:28px;justify-content:center;align-content:center;margin:14px auto;touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.gesture-pad button{position:relative;z-index:2;width:32px;height:32px;border-radius:50%;border:2px solid #cfcfcf;background:#fff;padding:0;pointer-events:none}.gesture-pad button.active{border-color:#20b15a;background:#20b15a;box-shadow:0 0 0 7px #20b15a24}.gesture-pad.disabled{opacity:.48}.gesture-lines{position:absolute;inset:0;z-index:1;pointer-events:none}.gesture-lines line{stroke:#20b15a;stroke-width:5;stroke-linecap:round}.bottom-nav{position:fixed;left:50%;bottom:0;z-index:5;width:min(520px,100vw);transform:translate(-50%);height:calc(62px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 22px #0000000a}.bottom-nav a{display:grid;align-items:start;justify-items:center;padding-top:13px;color:#777;font-size:12px;font-weight:700;-webkit-tap-highlight-color:transparent;outline:none;-webkit-user-select:none;user-select:none}.bottom-nav a:active,.bottom-nav a:focus{background:transparent}.bottom-nav a.router-link-active{color:#1f1f1f;background:#fff8d7}.order-card,.message-card,.profile-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px;margin-bottom:12px}.order-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.order-actions .order-cancel{grid-column:1 / -1;min-height:38px;font-weight:900}.status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff7d1;color:#705400;font-weight:800;font-size:12px}.detail-cover{height:260px;border-radius:0}.buybar{position:fixed;left:50%;bottom:calc(62px + env(safe-area-inset-bottom));width:min(520px,100vw);transform:translate(-50%);padding:10px 14px;display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#fff;border-top:1px solid var(--line)}.back-btn{position:fixed;top:calc(var(--app-top-safe) + 12px);left:calc(50% - min(260px,50vw) + 12px);z-index:6;width:38px;height:38px;border:0;border-radius:50%;background:#00000073;color:#fff;font-size:30px;line-height:34px}.check-option{min-height:48px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 12px;text-align:left}.check-box{width:22px;height:22px;display:grid;place-items:center;border:2px solid #cfcfcf;color:transparent;background:#fff}.check-option.active .check-box{border-color:#20b15a;background:#20b15a;color:#fff;font-weight:900}.coupon-pick-row{display:grid;grid-template-columns:1fr 86px;gap:8px}.coupon-pick-row .outline{min-height:44px;padding:0 10px}.coupon-picker{display:grid;gap:8px;padding:10px;border-radius:8px;background:#fffdf2;border:1px dashed #e5bd35}.coupon-picker .mini-btn{min-height:30px;padding:0 10px;font-size:12px}.coupon-choice{min-height:54px;justify-content:flex-start}.coupon-choice b{color:var(--red)}.coupon-choice span:last-child{min-width:0;color:#6b5200;font-size:12px;word-break:break-all}.wallet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.wallet-grid div{padding:10px;border-radius:6px;background:#fff8d7}.wallet-grid span{display:block;color:var(--muted);font-size:12px}.wallet-grid b{display:block;margin-top:5px;font-size:17px}.share-box{padding:10px;border-radius:6px;background:#f7f7f7;word-break:break-all}.referral-list{display:grid;gap:8px;margin-top:12px}.referral-item{display:grid;grid-template-columns:1fr 1.4fr auto;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:6px;background:#fffdf1;font-size:13px}.referral-item small{color:var(--muted)}.mine-page{background:#f6f6f6}.mine-page,.mine-page button,.mine-page input{font-family:PingFang SC,HarmonyOS Sans SC,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;letter-spacing:.1px}.mine-head{position:relative;min-height:106px;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow:hidden;padding:18px 128px 16px 16px;background:linear-gradient(135deg,#ffd63f,#ffc021 58%,#f39a16);box-shadow:inset 0 -1px #00000014}.mine-head:after{content:"";position:absolute;right:-18px;bottom:-28px;width:156px;height:92px;border-radius:42px 0 0;background:#ffffff38;transform:rotate(-8deg)}.mine-head h1{position:relative;z-index:1;margin:0;font-size:24px;line-height:1.15;font-weight:900}.mine-head p{position:relative;z-index:1;margin:5px 0 0;color:#6b5200;font-size:13px}.mine-head .status{position:absolute;z-index:2;right:14px;top:50px;padding:5px 9px;border-radius:999px;background:#ffffffb8;color:#7a4a00;font-size:12px;font-weight:800;box-shadow:0 6px 14px #7f53001f}.mine-logout-top{position:absolute;z-index:3;right:14px;top:12px;min-height:32px;border:1px solid rgba(216,86,24,.16);border-radius:999px;padding:0 14px;background:#fff;color:#d85618;font-size:12px;font-weight:900;box-shadow:0 8px 18px #7f530024}.mine-logout-top:active,.mine-logout-top:focus{background:#fff}.mine-visual{position:absolute;z-index:1;right:20px;bottom:11px;width:94px;height:70px;pointer-events:none}.bag-shape{position:absolute;right:20px;bottom:0;width:55px;height:48px;border-radius:8px 8px 10px 10px;background:#2a2a2a;box-shadow:0 12px 20px #7a4a0038}.bag-shape:before{content:"";position:absolute;left:14px;top:-14px;width:26px;height:22px;border:5px solid #2a2a2a;border-bottom:0;border-radius:18px 18px 0 0}.bag-shape:after{content:"";position:absolute;left:11px;top:14px;width:33px;height:10px;border-radius:99px;background:#ffd63f}.ticket-shape{position:absolute;left:0;bottom:9px;width:43px;height:31px;display:grid;place-items:center;border-radius:7px;background:#fff8dc;color:#d85618;font-size:18px;font-weight:900;box-shadow:0 10px 18px #7a4a002e;transform:rotate(-12deg)}.ticket-shape:before,.ticket-shape:after{content:"";position:absolute;top:10px;width:9px;height:9px;border-radius:50%;background:#ffc021}.ticket-shape:before{left:-5px}.ticket-shape:after{right:-5px}.mine-content{padding:12px}.mine-wallet{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;overflow:hidden;border-radius:8px;background:#ececec;border:1px solid var(--line);box-shadow:0 8px 18px #0000000a}.mine-wallet div{min-height:68px;padding:12px 10px;background:#fff}.mine-wallet .wallet-action{cursor:pointer;background:#fffdf2}.mine-wallet span{display:block;color:var(--muted);font-size:12px}.mine-wallet b{display:block;margin-top:5px;font-size:16px;font-weight:900}.mine-strip,.mine-share,.mine-referrals,.coupon-panel{margin-top:10px;padding:12px 14px;border-radius:8px;background:#fff;border:1px solid var(--line)}.mine-strip{display:flex;align-items:center;justify-content:space-between;gap:10px}.mine-strip div{display:grid;gap:3px}.mine-strip span,.mine-share p{color:var(--muted);font-size:12px;margin:0}.mine-strip button{flex:0 0 auto;min-height:30px;border:0;border-radius:999px;padding:0 12px;background:var(--yellow);color:#1f1f1f;font-size:12px;font-weight:900}.mine-tools{margin-top:10px;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;overflow:hidden;border-radius:8px;border:1px solid var(--line);background:#ececec;box-shadow:0 8px 18px #0000000a}.mine-tools button{min-height:78px;border:0;background:#fff;padding:10px 4px;display:grid;justify-items:center;align-content:center;gap:4px}.mine-tools button:active,.mine-tools button:focus{background:#fff}.mine-tools i{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#fff4c3;color:#b56b00;font-style:normal;font-size:13px;font-weight:900;box-shadow:inset 0 -1px #0000000f}.mine-tools b{font-size:13px}.mine-tools span{color:var(--muted);font-size:11px}.coupon-list{display:grid;gap:8px;margin-top:10px}.coupon-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:10px;border-radius:8px;background:#fff8d7;border:1px dashed #e5bd35}.coupon-row div{min-width:0}.coupon-row b{display:block;color:var(--red);font-size:18px}.coupon-row span{display:block;margin-top:3px;color:#6b5200;font-size:12px;word-break:break-all}.coupon-row em{padding:4px 7px;border-radius:999px;background:#20b15a;color:#fff;font-size:11px;font-style:normal;font-weight:900}.coupon-row button{min-height:30px;border:0;border-radius:999px;padding:0 10px;background:#1f1f1f;color:#fff;font-size:12px;font-weight:900}.coupon-row.used{background:#f7f7f7;border-color:#ddd}.coupon-row.used b,.coupon-row.used span{color:#999}.coupon-row.used em{background:#aaa}.mine-claim{margin-top:10px;display:grid;grid-template-columns:1fr 72px;gap:8px;padding:12px;border-radius:8px;background:#fff;border:1px solid var(--line)}.mine-claim input{min-height:38px;border:1px solid #ddd;border-radius:6px;padding:0 10px}.mine-share{display:grid;grid-template-columns:1fr 58px;align-items:center;gap:8px}.mine-referrals{font-size:13px}.compact-referrals{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}.compact-referrals span{padding:5px 7px;border-radius:999px;background:#fff8d7;font-size:12px}.mine-logout{width:100%;margin-top:10px;min-height:44px;border:1px solid #ffd2c8;border-radius:8px;background:linear-gradient(180deg,#fff,#fff5f2);color:var(--red);font-weight:900;box-shadow:0 8px 18px #d8561814}.mine-logout:active{transform:translateY(1px);box-shadow:0 4px 10px #d8561814}.bank-card{padding:14px;border-radius:8px;background:#1f1f1f;color:#fff}.bank-card span{display:block;color:#ffd100;font-size:12px;margin-bottom:8px}.bank-card b{font-size:22px}.bank-card .muted{color:#ddd}.result-dialog{width:min(360px,calc(100vw - 32px));text-align:center}.recharge-result{width:min(350px,calc(100vw - 34px));display:grid;justify-items:center;gap:10px;padding:24px 20px 18px;border-radius:12px;background:#fff;text-align:center;box-shadow:0 20px 54px #0000002e;border:1px solid rgba(255,209,0,.4)}.gateway-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#fff4c3;color:#d85618;font-size:28px;font-weight:900;box-shadow:inset 0 -2px #0000000f}.recharge-result h2{margin:2px 0 0;font-size:21px;font-weight:900}.recharge-result p{margin:0;color:#666;font-size:14px;line-height:1.55}.recharge-result .primary{width:100%;margin-top:6px;border-radius:999px}.verify-mask{position:fixed;inset:0;z-index:10;display:grid;place-content:center;gap:12px;background:#ffffffeb;color:#222;font-weight:800}.spinner{width:54px;height:54px;border:5px solid #ffe37a;border-top-color:#20b15a;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto}.app-dialog-mask{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:18px;background:#0000003d;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.app-dialog{width:min(348px,100%);display:grid;gap:10px;justify-items:center;padding:22px 18px 16px;border-radius:8px;background:#fff;box-shadow:0 18px 52px #00000038;text-align:center}.dialog-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--yellow);color:#1f1f1f;font-size:24px;font-weight:900}.app-dialog h2{margin:0;font-size:19px}.app-dialog p{margin:0;color:#555;line-height:1.55;white-space:pre-wrap}.dialog-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}.dialog-actions.single{grid-template-columns:1fr}.dialog-pop-enter-active,.dialog-pop-leave-active{transition:opacity .16s ease}.dialog-pop-enter-active .app-dialog,.dialog-pop-leave-active .app-dialog{transition:transform .16s ease}.dialog-pop-enter-from,.dialog-pop-leave-to{opacity:0}.dialog-pop-enter-from .app-dialog,.dialog-pop-leave-to .app-dialog{transform:translateY(8px) scale(.98)}.lottery-page .content{padding-top:22px}.slot-machine{width:min(340px,calc(100vw - 34px));aspect-ratio:1;margin:0 auto 18px;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);grid-template-areas:"a b c d" "l center center e" "k center center f" "j i h g";gap:8px;padding:10px;border-radius:18px;background:#252525;box-shadow:0 18px 42px #0000002e}.slot-cell{display:grid;place-items:center;align-content:center;border-radius:8px;background:#fff;border:2px solid #ffe37a;color:#1f1f1f;box-shadow:inset 0 -3px #0000000f}.slot-cell b{font-size:20px;line-height:1}.slot-cell span{font-size:11px;color:#777}.slot-cell.active{background:#ffd100;border-color:#20b15a;transform:scale(1.06);box-shadow:0 0 0 4px #20b15a2e,0 8px 20px #ffd10059}.slot-cell.winner{animation:pulseWin .6s ease infinite alternate}.slot-center{grid-area:center;border:0;border-radius:12px;background:radial-gradient(circle,#fffdf1,#ffd100);color:#1f1f1f;font-size:24px;font-weight:900;box-shadow:inset 0 -4px #0000001a}.slot-center:active,.slot-center:focus{background:radial-gradient(circle,#fffdf1,#ffd100)}.win-card{margin-top:14px;padding:18px;border-radius:12px;background:linear-gradient(135deg,#fff8d7,#fff);border:1px solid #f0da76;text-align:center;box-shadow:0 12px 30px #ffd10038}.win-card h2{margin:0 0 8px;font-size:24px}.win-card p{margin:0 0 8px;color:#6b5200}.win-card p b{color:var(--red);font-size:30px}.win-card span{display:block;margin-bottom:14px;color:var(--muted);font-size:13px}.service-page{height:calc(100vh - var(--app-top-safe));overflow:hidden;padding-bottom:0;display:grid;grid-template-rows:auto 1fr}.service-page .topbar{position:relative;top:auto;z-index:4}.chat-body{min-height:0;overflow-y:auto;padding:14px 14px 190px;display:grid;gap:12px;align-content:start;overscroll-behavior:contain}.chat-line{display:grid;gap:4px;max-width:82%}.chat-line.mine{justify-self:end;justify-items:end}.chat-line.service{justify-self:start}.bubble{padding:10px 12px;border-radius:8px;background:#fff;border:1px solid var(--line);line-height:1.5}.chat-line.mine .bubble{background:#fff7d1;border-color:#f0da76}.chat-line small{color:var(--muted);font-size:11px}.quick-order{position:fixed;left:50%;bottom:calc(124px + env(safe-area-inset-bottom));width:min(520px,100vw);transform:translate(-50%);display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px;align-items:center;padding:10px 12px;background:#fffdf2;border-top:1px solid #f0da76;box-shadow:0 -8px 18px #0000000a}.quick-order div{min-width:0}.quick-order b{display:block;font-size:13px}.quick-order span{display:-webkit-box;margin-top:2px;color:var(--muted);font-size:12px;line-height:1.35;overflow:hidden;word-break:break-all;-webkit-box-orient:vertical;-webkit-line-clamp:2}.quick-order .outline{min-height:36px;padding:0 6px;font-size:12px;white-space:nowrap}.chat-actions{position:fixed;left:50%;bottom:calc(124px + env(safe-area-inset-bottom));width:min(520px,100vw);transform:translate(-50%);display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 12px;background:#fffdf2;border-top:1px solid #f0da76}.quick-order+.chat-actions{bottom:calc(186px + env(safe-area-inset-bottom))}.chat-input{position:fixed;left:50%;bottom:calc(62px + env(safe-area-inset-bottom));width:min(520px,100vw);transform:translate(-50%);display:grid;grid-template-columns:1fr 80px;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid var(--line)}.chat-input input{min-height:42px;border:1px solid #ddd;border-radius:6px;padding:0 12px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulseWin{to{transform:scale(1.1)}}
