:root{--red:#d41424;--red2:#ef2432;--gold:#d4ab59;--gold-deep:#a9731e;--ink:#3e3b38;--cream:#fff5df;--paper:#f3f2ee;--shadow:0 14px 34px rgba(84,39,9,.18)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;background:#d9d8d3;font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--ink)}button,input,textarea{font:inherit}button{cursor:pointer}.app-shell{position:relative;width:min(100%,480px);min-height:100vh;margin:auto;background:#f8f4ec;overflow:hidden;box-shadow:0 0 50px rgba(0,0,0,.18)}.view{display:none;min-height:100vh;position:relative}.view.active{display:block}
.scan-view{background:#f1f1ee;min-height:calc(100vw * 2.24);max-height:1075px}.paper-bg{position:absolute;inset:0;background:#eeefed}.reference-poster{display:block;position:relative;width:100%;height:auto;min-height:100vh;object-fit:cover}.floating-header{position:absolute;z-index:5;top:calc(env(safe-area-inset-top) + 14px);left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;gap:7px}.glass-btn,.scan-counter{border:1px solid rgba(185,139,55,.35);background:rgba(255,255,255,.78);backdrop-filter:blur(10px);color:#8e672a;border-radius:999px;box-shadow:0 5px 18px rgba(67,47,17,.12);height:36px;padding:0 12px;font-size:12px}.scan-counter{display:flex;align-items:center;gap:5px;color:#5d513f}.scan-counter strong{font-size:14px;color:#d06624}.dot{width:7px;height:7px;border-radius:50%;background:#e7b94f;box-shadow:0 0 0 4px rgba(231,185,79,.18)}.gift-hotspot{position:absolute;z-index:4;left:12%;right:12%;top:59%;height:31%;border:0;background:transparent;border-radius:50%}.gift-ring{position:absolute;left:50%;top:45%;width:62%;aspect-ratio:1;transform:translate(-50%,-50%);border:2px solid rgba(235,149,53,.35);border-radius:50%;animation:ring 2.2s infinite}.gift-tip{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);white-space:nowrap;background:linear-gradient(135deg,#c53a12,#f08d32);color:#fff8e9;border:1px solid #ffd690;padding:9px 18px;border-radius:99px;font-size:13px;font-weight:600;box-shadow:0 8px 22px rgba(140,43,8,.28);animation:float 1.9s ease-in-out infinite}.code-ready{position:absolute;z-index:7;left:50%;top:49%;transform:translate(-50%,-8px) scale(.94);box-sizing:border-box;width:min(86%,360px);border:1px solid rgba(255,226,164,.96);border-radius:18px;padding:12px 17px;background:linear-gradient(135deg,rgba(190,22,32,.96),rgba(228,60,45,.96));color:#fff;text-align:center;opacity:0;box-shadow:0 14px 34px rgba(130,16,22,.28);transition:.3s;pointer-events:none}.code-ready b,.code-ready span{display:block}.code-ready b{font-size:15px;letter-spacing:.5px}.code-ready span{margin-top:3px;color:#fff2d7;font-size:11px}.code-ready.show{opacity:1;transform:translate(-50%,0) scale(1);animation:readyPulse 1.7s ease-in-out infinite}.bottom-dock{position:absolute;z-index:5;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:78%}@keyframes readyPulse{50%{box-shadow:0 14px 38px rgba(130,16,22,.38),0 0 0 7px rgba(212,20,36,.1)}}
.scan-main-btn{width:100%;height:64px;border:0;border-radius:999px;background:linear-gradient(180deg,#ff2834,#d90c20);color:white;box-shadow:0 10px 0 rgba(143,9,19,.16),0 15px 28px rgba(210,20,36,.25);display:flex;align-items:center;justify-content:center;gap:14px;font-size:23px;font-weight:700;letter-spacing:1px}.scan-icon{width:25px;height:21px;border:3px solid currentColor;border-radius:4px;position:relative;display:inline-block}.scan-icon:before{content:"";position:absolute;width:9px;height:5px;border:3px solid currentColor;border-bottom:0;border-radius:5px 5px 0 0;left:5px;top:-9px}.scan-icon:after{content:"";position:absolute;width:6px;height:6px;border:2px solid currentColor;border-radius:50%;left:6px;top:5px}.scan-icon.dark{color:#c91a25}
@keyframes ring{0%{transform:translate(-50%,-50%) scale(.72);opacity:0}45%{opacity:1}100%{transform:translate(-50%,-50%) scale(1.18);opacity:0}}@keyframes float{50%{transform:translate(-50%,-6px)}}
.result-view{padding-bottom:42px;background:radial-gradient(circle at 50% 33%,rgba(255,255,255,.98) 0,rgba(255,249,233,.98) 29%,#fff0d5 66%,#fff7e9 100%);overflow:hidden}.result-view:before{content:"";position:absolute;inset:0;opacity:.22;background-image:radial-gradient(#d7b46e .55px,transparent .7px);background-size:5px 5px;pointer-events:none}.result-topbar{position:relative;z-index:3;height:78px;padding:20px 16px 8px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.8);border-bottom:1px solid rgba(203,166,99,.22)}.result-topbar>div{text-align:center}.result-topbar b{display:block;font-size:18px;color:#231e17}.result-topbar small{display:block;color:#aa8245;font-size:11px;margin-top:2px}.round-back,.round-menu{width:38px;height:38px;border:1px solid #eadfcf;background:white;border-radius:50%;font-size:28px;line-height:30px;color:#6d5a42}.round-menu{font-size:14px;letter-spacing:1px}.result-brand{position:relative;z-index:2;margin:30px auto 10px;display:flex;align-items:center;justify-content:center;gap:10px}.result-brand span{background:var(--red);color:#fff;padding:6px 10px;font-weight:800;font-size:17px}.result-brand b{font-size:22px;color:#c49a4f}.result-title{text-align:center;position:relative;z-index:2}.result-title strong{font-size:32px;color:var(--red);letter-spacing:3px}.result-title h1{margin:4px 0 7px;font-size:37px;line-height:1.12;color:#cfa756;text-shadow:0 1px 0 #fff}.result-title h1 em{font-style:normal;color:var(--red)}.result-title p{font-size:12px;letter-spacing:1px;color:#ad8d5b}.gift-stage{height:300px;position:relative;display:flex;justify-content:center;align-items:center}.gift-stage:before{content:"30";position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);font-size:240px;font-family:serif;font-weight:700;color:rgba(255,255,255,.45);text-shadow:0 5px 10px rgba(192,139,51,.12)}.gift-stage img{position:relative;z-index:2;width:94%;max-height:320px;filter:drop-shadow(0 15px 14px rgba(126,57,10,.13));animation:openPop .75s cubic-bezier(.2,.85,.2,1)}.halo{position:absolute;border:1px solid rgba(227,186,94,.37);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}.halo-one{width:290px;height:290px}.halo-two{width:230px;height:230px}@keyframes openPop{from{transform:scale(.55) translateY(60px);opacity:0}to{transform:scale(1);opacity:1}}
.prize-card{position:relative;z-index:3;margin:-10px 22px 24px;padding:12px 12px 12px 10px;min-height:98px;border-radius:22px;background:rgba(255,255,255,.93);border:1px solid rgba(221,187,113,.56);box-shadow:var(--shadow);display:grid;grid-template-columns:78px 1fr auto;gap:10px;align-items:center}.prize-icon{height:74px;background:#fff8ed;border-radius:15px;display:flex;align-items:center}.prize-icon img{width:100%;max-height:75px}.prize-copy span{font-size:11px;color:#bb8a3a}.prize-copy h2{font-size:17px;margin:3px 0;color:#38281c}.prize-copy p{font-size:11px;color:#92775b;margin:0}.gold-btn{border:0;border-radius:99px;color:#fff;background:linear-gradient(135deg,#e2be6a,#aa701d);padding:10px 12px;font-size:12px;box-shadow:0 6px 13px rgba(157,105,27,.2)}.result-actions{position:relative;z-index:2;margin:0 12%;}.agreement{display:flex;justify-content:center;align-items:flex-start;gap:7px;font-size:11px;color:#8a704d;margin-top:20px;line-height:1.6}.agreement input{display:none}.agreement>span{width:15px;height:15px;border-radius:50%;border:1px solid #bd9c62;flex:none;margin-top:1px}.agreement input:checked+span{background:var(--red);box-shadow:inset 0 0 0 2px #fff}.agreement a{color:#bc2731;text-decoration:none}
.overlay{position:fixed;z-index:20;inset:0;background:rgba(35,22,10,.52);backdrop-filter:blur(4px)}.sheet{position:fixed;z-index:21;left:50%;bottom:0;transform:translate(-50%,105%);width:min(100%,480px);max-height:88vh;overflow:auto;background:#fffaf1;border-radius:28px 28px 0 0;padding:30px 24px calc(24px + env(safe-area-inset-bottom));transition:transform .3s ease;box-shadow:0 -15px 40px rgba(61,31,8,.2)}.sheet.open{transform:translate(-50%,0)}.sheet-close{position:absolute;right:18px;top:15px;width:34px;height:34px;border:0;background:#f2eadc;border-radius:50%;font-size:24px;color:#8f7b60}.sheet h2{margin:0 0 7px;font-size:23px;color:#392b1e}.sheet>p{margin:0 28px 20px 0;color:#927c60;font-size:13px;line-height:1.65}.sheet-mark{width:68px;height:68px;border-radius:22px;background:#fff0d6;display:flex;align-items:center;justify-content:center;margin-bottom:16px}.primary-btn,.outline-btn{width:100%;height:50px;border-radius:14px;font-weight:700}.primary-btn{border:0;color:#fff;background:linear-gradient(180deg,#ef2935,#cc1020);box-shadow:0 8px 18px rgba(196,16,31,.2)}.outline-btn{border:1px solid #d7b26d;color:#a56e1b;background:#fff9ed}.divider{height:40px;display:flex;align-items:center;gap:10px;color:#b39c78;font-size:11px}.divider:before,.divider:after{content:"";height:1px;flex:1;background:#eadfcf}.sheet input,.sheet textarea{width:100%;border:1px solid #eadbc3;background:#fff;border-radius:12px;padding:13px 14px;outline:none}.sheet input:focus,.sheet textarea:focus{border-color:#d7a446;box-shadow:0 0 0 3px rgba(215,164,70,.12)}#codeForm{display:flex;gap:9px}#codeForm .outline-btn{width:120px}.demo-hint{font-size:11px!important;text-align:center;margin:13px 0 0!important}.tall{max-height:92vh}.mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.mode-tabs button{border:1px solid #eadbc5;border-radius:15px;background:#fff;padding:12px;color:#7a674e}.mode-tabs button small{display:block;margin-top:4px}.mode-tabs button.active{border-color:#cf9a42;background:#fff4dc;color:#a86715;box-shadow:inset 0 0 0 1px #cf9a42}.product-list{display:none;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.product-list.show{display:grid}.product-option{border:1px solid #eadbc5;background:#fff;border-radius:15px;padding:8px;text-align:left}.product-option.active{border:2px solid #d69d3b;padding:7px;background:#fff9e9}.product-option img{width:100%;height:82px;object-fit:contain;border-radius:10px}.product-option b{display:block;font-size:12px;margin-top:5px}.product-option strong{color:#d21a25;font-size:15px}.product-option del{color:#aaa;font-size:9px}.address-form{display:grid;grid-template-columns:1fr 1fr;gap:11px}.address-form label{font-size:12px;color:#7d674d}.address-form input,.address-form textarea{margin-top:5px}.address-form label:nth-child(n+3),.address-form button{grid-column:1/-1}.info-sheet #infoContent{white-space:pre-wrap;line-height:1.8;color:#6f5b42;font-size:14px;background:#fff;border:1px solid #efe2cd;border-radius:16px;padding:16px}.my-prize-list{display:grid;gap:11px}.my-prize-item{background:white;border:1px solid #ecdec8;border-radius:16px;padding:13px;display:flex;gap:11px}.my-prize-item img{width:60px;height:60px;object-fit:contain;background:#fff7e8;border-radius:12px}.my-prize-item h3{margin:2px 0;font-size:14px}.my-prize-item p{margin:3px 0;font-size:11px;color:#8f795e}.ship-info{color:#b47717!important;background:#fff3d4;padding:6px;border-radius:7px}.empty{padding:42px 0;text-align:center;color:#aa9578}.toast{position:fixed;z-index:40;left:50%;top:45%;transform:translate(-50%,-50%) scale(.9);max-width:300px;background:rgba(42,31,22,.9);color:#fff;border-radius:13px;padding:12px 18px;font-size:13px;white-space:pre-line;opacity:0;pointer-events:none;transition:.22s;text-align:center}.toast.show{opacity:1;transform:translate(-50%,-50%) scale(1)}.toast.success{width:min(82%,330px);padding:20px 22px;border:1px solid #efc878;border-radius:20px;background:linear-gradient(145deg,rgba(177,19,29,.97),rgba(225,52,40,.97));font-size:16px;font-weight:700;line-height:1.65;box-shadow:0 20px 50px rgba(91,19,15,.32)}
@media(max-width:380px){.result-title strong{font-size:27px}.result-title h1{font-size:32px}.gift-stage{height:265px}.prize-card{margin-left:14px;margin-right:14px}.scan-main-btn{height:58px;font-size:20px}.glass-btn,.scan-counter{padding:0 9px}.address-form{grid-template-columns:1fr}.address-form label{grid-column:1/-1}}
.selected-prize{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:13px;border:1px solid #eadbc5;border-radius:16px;background:#fff8ec}.selected-prize img{width:74px;height:74px;object-fit:contain;border-radius:12px;background:#fff}.selected-prize b,.selected-prize span{display:block}.selected-prize b{color:#47392b;font-size:15px}.selected-prize span{margin-top:7px;color:#ca2630;font-size:16px;font-weight:700}
@media(min-width:481px){.scan-view{min-height:1075px}.overlay{left:50%;width:480px;transform:translateX(-50%)}}

/* 首页固定为一个可视屏，完整保留海报与扫码入口，不再产生纵向滚动。 */
.scan-view{height:100dvh;min-height:100dvh;max-height:100dvh;overflow:hidden}
.scan-view .reference-poster{width:100%;height:100%;min-height:0;object-fit:fill}
.scan-view .bottom-dock{bottom:max(14px,env(safe-area-inset-bottom));width:70%}
.scan-view .scan-main-btn{height:50px;font-size:17px;gap:10px;box-shadow:0 7px 0 rgba(143,9,19,.14),0 10px 20px rgba(210,20,36,.2)}
.scan-view .scan-icon{width:21px;height:18px;border-width:2px}
.scan-view .scan-icon:before{border-width:2px;left:4px;top:-7px}
.scan-view .scan-icon:after{width:5px;height:5px;left:5px;top:4px}
.my-prize-item>div{flex:1}.claim-now{margin-top:7px;border:0;border-radius:99px;background:linear-gradient(135deg,#dfb75d,#a76c17);color:#fff;padding:7px 13px;font-size:11px;font-weight:700}
.prize-card .gold-btn{min-width:82px;padding:11px 13px;font-weight:700}
@media(min-width:481px){.scan-view{min-height:100dvh;max-height:100dvh}}
