*{box-sizing:border-box}body{margin:0;background:var(--page-bg,#f6f6f6);color:#222;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'PingFang SC','Microsoft YaHei',Arial,sans-serif}a{text-decoration:none;color:inherit}.top{background:var(--primary,#ffdd2d);padding:16px 14px 14px;border-bottom-left-radius:18px;border-bottom-right-radius:18px;position:sticky;top:0;z-index:2}.top h1{margin:0;font-size:19px;font-weight:800}.top .location{font-size:16px}.search{margin-top:12px;background:#fff;border-radius:22px;padding:10px 14px;color:#999}.search span{float:right;color:#111;font-weight:700}.wrap{max-width:var(--home-width,460px);margin:0 auto;padding:12px}.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;background:#fff;border-radius:18px;padding:18px 8px;margin-top:10px;text-align:center;font-size:13px}.ico{width:44px;height:44px;margin:0 auto 6px;background:linear-gradient(135deg,var(--accent,#e6372e),var(--primary,#ffdd2d));border-radius:50%;display:grid;place-items:center;font-size:22px}.card{background:#fff;border-radius:16px;padding:12px;margin:12px 0;box-shadow:0 1px 8px #00000008}.product{display:flex;gap:12px;align-items:center}.product img{width:96px;height:96px;object-fit:cover;border-radius:12px;background:#f3f3f3}.product h3{margin:0 0 6px;font-size:17px}.sub{color:#777;font-size:13px}.price{color:var(--accent,#e6372e);font-size:19px;font-weight:800;margin-top:8px}.btn{border:0;border-radius:24px;background:var(--primary,#ffd91a);padding:12px 18px;font-weight:800;display:inline-block;text-align:center;cursor:pointer}.btn-red{background:var(--accent,#ff4c3b);color:#fff}.btn-green{background:#25c66a;color:#fff}.btn-block{display:block;width:100%;margin-top:14px}.input,textarea,select{width:100%;border:1px solid #e7e7e7;border-radius:12px;padding:12px;margin:8px 0;background:#fff;font-size:15px}textarea{min-height:92px}label{font-size:13px;color:#666}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.tab{background:#fff;border-radius:10px;text-align:center;padding:10px 6px;color:#777}.notice{background:#fff7d7;color:#8a5d00;border-radius:12px;padding:10px;font-size:13px;margin:10px 0}.bottom{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #eee;padding:8px 0;display:flex;justify-content:space-around;font-size:12px;z-index:3}.bottom span{color:#555;text-align:center}.bottom .active{color:#111;font-weight:800}.admin{max-width:1120px}.admin table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}.admin th,.admin td{padding:10px;border-bottom:1px solid #eee;text-align:left}.admin nav{background:#fff;border-radius:14px;padding:12px;margin:12px 0;display:flex;gap:10px;flex-wrap:wrap}.admin nav a{padding:8px 12px;background:#f6f6f6;border-radius:10px}.muted{color:#888}.cover{width:100%;border-radius:18px;display:block;max-height:220px;object-fit:cover;background:#fff}.sharebox{background:var(--primary,#ffda1f);border-radius:16px;padding:20px;text-align:center}.sharebox .inner{background:#fff;border-radius:16px;padding:20px;margin-top:14px}.status{padding:5px 10px;border-radius:20px;background:#eee;font-size:12px}.status.paid{background:#d9f7e7;color:#07853e}.status.pending{background:#fff0d5;color:#b05b00}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.setting-section{background:#fff;border-radius:16px;padding:18px;margin:14px 0}.section-title{margin:0 0 6px;font-size:20px}.help{font-size:13px;color:#777;margin:0 0 12px}.mini-row{display:grid;grid-template-columns:72px 1fr;gap:8px;align-items:center;margin:8px 0}.mini-row.nav-row{grid-template-columns:72px 1fr 1fr}.preview-img{max-width:180px;max-height:100px;border-radius:10px;background:#f6f6f6;border:1px solid #eee}.savebar{position:sticky;bottom:0;background:#fffffff2;border-top:1px solid #eee;padding:12px;margin:20px -12px -12px}.small{font-size:12px;color:#999}@media(max-width:640px){.form-grid{grid-template-columns:1fr}.admin table{font-size:13px}.grid{gap:10px}.product img{width:84px;height:84px}}

.btn-stack{display:flex;flex-direction:column;gap:10px}.poster-wrap{padding-bottom:28px}.poster-card{background:linear-gradient(180deg,var(--primary,#ffdd2d),#fff6c8 55%,#fff);border-radius:24px;padding:20px;color:#2a1a00;overflow:hidden;box-shadow:0 10px 28px #00000012}.poster-header{text-align:center;padding-bottom:12px}.poster-logo{width:56px;height:56px;object-fit:cover;border-radius:14px;background:#fff;box-shadow:0 4px 16px #00000010}.poster-brand{font-size:18px;font-weight:800;margin-top:8px}.poster-tagline{font-size:13px;opacity:.75;margin-top:2px}.poster-body{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-top:10px}.poster-left{flex:1;min-width:0}.poster-title{font-size:30px;line-height:1.2;font-weight:900}.poster-subtitle{font-size:13px;line-height:1.6;color:#5d4d27;margin-top:8px}.poster-product-card{display:flex;gap:12px;align-items:center;background:#ffffffcf;border-radius:18px;padding:12px;margin-top:16px}.poster-product-img{width:88px;height:88px;border-radius:16px;object-fit:cover;background:#fff}.poster-product-name{font-size:18px;font-weight:800}.poster-amount{font-size:28px;color:var(--accent,#e6372e);font-weight:900;margin:6px 0}.poster-meta,.poster-remark{font-size:13px;color:#6a5a34;line-height:1.6}.poster-right{width:206px;background:#fff;border-radius:22px;padding:12px;text-align:center;box-shadow:0 6px 18px #00000012}.poster-qr{width:180px;height:180px;margin:0 auto}.poster-qr img,.poster-qr canvas{display:block!important;margin:0 auto}.poster-qr-tip{font-size:14px;font-weight:700;color:#333;margin-top:10px}.poster-footer{font-size:12px;color:#705e35;margin-top:14px;text-align:center}.poster-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.poster-actions .btn{flex:1}.poster-result{margin-top:18px;background:#fff;border-radius:18px;padding:14px;border:1px solid #eee}.poster-result img{width:100%;display:block;border-radius:16px;border:1px solid #eee}.hidden{display:none}@media(max-width:640px){.poster-body{flex-direction:column;align-items:stretch}.poster-right{width:100%}.poster-qr{width:180px;height:180px}.poster-title{font-size:26px}.poster-product-card{align-items:flex-start}.poster-actions{flex-direction:column}}


.fixed-poster{position:relative;width:100%;aspect-ratio:800/1417;background-size:cover;background-position:center center;background-repeat:no-repeat;border-radius:22px;overflow:hidden;box-shadow:0 8px 22px #00000014}
.fixed-poster-qr{position:absolute;right:18px;bottom:28px;width:180px;height:180px;background:#fff;padding:8px;border-radius:4px;box-shadow:0 4px 16px #0000001a;display:flex;align-items:center;justify-content:center}
.fixed-poster-qr img,.fixed-poster-qr canvas{width:165px!important;height:165px!important;display:block!important}
@media(max-width:640px){.fixed-poster-qr{right:14px;bottom:22px;width:132px;height:132px;padding:6px}.fixed-poster-qr img,.fixed-poster-qr canvas{width:120px!important;height:120px!important}}


/* fixed background poster v2 */
.fixed-poster.only-bg-poster{position:relative;width:100%;max-width:430px;margin:0 auto;aspect-ratio:800/1417;background-size:cover;background-position:center center;background-repeat:no-repeat;border-radius:18px;overflow:hidden;box-shadow:0 8px 22px #00000014}
.fixed-poster.only-bg-poster .fixed-poster-qr{position:absolute;right:38px;bottom:54px;width:166px;height:166px;background:#fff;padding:8px;border-radius:2px;box-shadow:none;display:flex;align-items:center;justify-content:center}
.fixed-poster.only-bg-poster .fixed-poster-qr img,.fixed-poster.only-bg-poster .fixed-poster-qr canvas{width:150px!important;height:150px!important;display:block!important}
@media(max-width:640px){.fixed-poster.only-bg-poster{max-width:100%}.fixed-poster.only-bg-poster .fixed-poster-qr{right:5.2%;bottom:3.8%;width:22.5%;height:auto;aspect-ratio:1/1;padding:1.1%}.fixed-poster.only-bg-poster .fixed-poster-qr img,.fixed-poster.only-bg-poster .fixed-poster-qr canvas{width:100%!important;height:100%!important}}


/* brand-safe share/pay detail upgrade */
.share-card-page{max-width:480px;margin:0 auto;padding:18px 14px 40px}.share-card-preview{display:flex;gap:12px;align-items:center;background:#fff;border-radius:10px;padding:12px;box-shadow:0 1px 8px #0000000c;margin:16px 0}.share-card-icon{width:56px;height:56px;border-radius:8px;background:#f4f4f4;overflow:hidden;flex:0 0 56px}.share-card-icon img{width:100%;height:100%;object-fit:cover}.share-card-title{font-weight:800;font-size:15px;margin-bottom:4px}.share-card-desc{color:#777;font-size:13px;line-height:1.5}.share-action-card{background:#fff;border-radius:18px;padding:18px;box-shadow:0 1px 8px #0000000c}.pay-detail-page{max-width:480px;margin:0 auto;background:#f1f1f1;min-height:100vh;padding:0 14px 28px}.pay-topbar{height:54px;display:grid;grid-template-columns:40px 1fr 40px;align-items:center;text-align:center;font-weight:800;background:#fff;margin:0 -14px 12px}.pay-home{font-size:22px}.pay-user-row{display:flex;gap:10px;align-items:center;padding:8px 0 12px}.pay-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#ddd}.pay-nickname{font-weight:800;font-size:15px}.pay-message{color:#777;font-size:14px;margin-top:3px}.pay-panel{background:#fff;border-radius:14px;padding:18px;margin:10px 0}.pay-main-panel{text-align:center}.pay-heading{font-weight:800;font-size:20px;margin:4px 0 8px}.pay-amount{font-weight:900;font-size:42px;line-height:1.1;margin:8px 0 8px}.pay-countdown{font-size:13px;color:#555}.pay-countdown span{display:inline-block;min-width:20px;background:#222;color:#fff;border-radius:4px;padding:1px 3px;margin:0 2px}.pay-notice-box{text-align:left;background:#fff5d2;color:#9a6a00;border-radius:12px;padding:14px;margin:22px 14px 18px;line-height:1.65;font-size:14px}.pay-notice-title{font-weight:800;margin-bottom:6px}.pay-submit{border:0;border-radius:10px;background:var(--primary,#ffdd2d);color:#111;font-weight:900;font-size:16px;width:calc(100% - 28px);padding:14px;margin:0 14px;cursor:pointer}.pay-submit.paid{background:#25c66a;color:#fff}.product-panel h3{font-size:18px;margin:0 0 14px}.pay-product-row{display:flex;gap:12px;align-items:center}.pay-product-row img{width:72px;height:72px;border-radius:10px;object-fit:cover;background:#f4f4f4}.pay-product-info{flex:1;min-width:0}.pay-product-title{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pay-product-sub,.pay-product-qty{color:#888;font-size:13px;margin-top:4px}.pay-product-price{font-weight:800;white-space:nowrap}@media(max-width:640px){.pay-detail-page{max-width:100%;}.pay-amount{font-size:40px}}
