*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;color:#eaf3ff;background:radial-gradient(ellipse at 75% 0,#183975 0,transparent 52%),#080f20;font:16px/1.55 system-ui,"Microsoft YaHei",sans-serif;min-height:100vh}header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:14px clamp(16px,5vw,72px);background:#0b1429eb;border-bottom:1px solid #25416a;backdrop-filter:blur(12px)}header small{margin-left:auto;color:#ffdbac;background:#473420;padding:4px 10px;border-radius:20px;white-space:nowrap}.mark{font-size:22px;background:#204179;border-radius:12px;padding:4px 9px}main{max-width:1100px;margin:auto;padding:30px 18px 115px}.admin main{max-width:1400px}.hero,.panel{border:1px solid #274779;border-radius:20px;background:#101d36;padding:clamp(16px,3vw,28px);margin:0 0 18px}.hero{background:linear-gradient(125deg,#123163,#161e4b);position:relative;overflow:hidden}.hero:after{content:"🐷";font-size:110px;position:absolute;right:12px;top:-20px;opacity:.13;pointer-events:none}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.stat{background:#0c1932;border:1px solid #274779;border-radius:14px;padding:14px}.stat span,.muted,th{color:#abc0de}.stat strong{display:block;font-size:24px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}h1{font-size:clamp(24px,5vw,40px);margin:0 0 14px}h2{margin:0 0 10px;font-size:20px}h3{margin:0 0 8px}a{color:#a9d1ff}button,.button{font:inherit;color:#eaf3ff;padding:9px 13px;border:1px solid #588adf;border-radius:10px;background:#214987;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover,nav a.active{background:#3265bc;color:#fff}button:disabled{opacity:.5;cursor:wait}input,select,textarea{font:inherit;padding:8px;color:inherit;background:#0a162b;border:1px solid #395579;border-radius:8px;max-width:100%;width:100%}label{display:block;color:#bfd0e9;margin:6px 0}input[type=checkbox]{width:auto}form{margin:10px 0}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:8px}.scroll{overflow:auto}table{border-collapse:collapse;text-align:left;width:100%;white-space:nowrap}td,th{padding:9px;border-bottom:1px solid #263955}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:4px;background:#0c182e;border-top:1px solid #28436c;padding:8px 6px max(10px,env(safe-area-inset-bottom))}nav a{flex:1;max-width:125px;text-align:center;border-radius:8px;padding:8px 2px;text-decoration:none;font-size:clamp(12px,3vw,16px)}progress{width:100%;accent-color:#67a5ff}dialog{max-width:min(92vw,500px);border:1px solid #597bac;border-radius:16px;background:#101d36;color:#eaf3ff;padding:20px}dialog::backdrop{background:#040a16b0}.test{font-weight:600;color:#ffd392}.qr{display:block;background:#fff;padding:8px;width:min(240px,100%);height:auto}code{word-break:break-all}details{margin:12px 0}summary{cursor:pointer;color:#b8d5ff}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #b7ddff;outline-offset:2px}
.payment-options{display:grid;gap:8px;border:0;padding:0;margin:12px 0}.payment-options label{display:flex;align-items:center;gap:10px;border:1px solid #395579;background:#0b1930;border-radius:10px;padding:10px 12px;margin:0;cursor:pointer}.payment-options label:has(:checked){border-color:#8bbaff;background:#193966}.payment-options input{width:auto;accent-color:#8bbaff}
/* Customer dashboard */
body.customer{background:radial-gradient(ellipse at 86% -15%,#243d7e 0%,transparent 45%),radial-gradient(ellipse at 5% 45%,#10284d 0%,transparent 50%),#080f20}
.customer main{max-width:1050px}
.customer header{gap:11px}
.customer .mark{display:grid;place-items:center;width:40px;height:40px;padding:0;background:linear-gradient(145deg,#345d94,#1e2c63);border:1px solid #5989bd;box-shadow:0 4px 18px #4167c34d}
.customer .home-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,32%);align-items:center;position:relative;min-height:270px;padding:clamp(22px,5vw,48px);background:radial-gradient(ellipse at 85% 48%,#28549a 0%,transparent 54%),linear-gradient(115deg,#132d58,#101b38 75%);border-color:#375c90;box-shadow:0 16px 40px #03071363}
.customer .hero:after{content:none}
.hero-kicker{color:#accaff;font-size:13px;letter-spacing:.14em;font-weight:700}
.hero-copy{position:relative;z-index:1}
.hero-copy h1{margin:6px 0 0;overflow-wrap:anywhere}
.hero-copy p{margin:8px 0 20px}
.hero-actions .primary{background:#80b9ff;color:#0a203f;font-weight:700;border-color:#a4cbff}
.hero-actions .quiet{background:#101e37a8;border-color:#6287bd}
.brand-orbit{width:min(90%,182px);aspect-ratio:1;justify-self:center;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#4f7cd973 0%,#2446775c 55%,transparent 56%);outline:1px solid #76a9fc69;outline-offset:-6px;border:1px dashed #a2c1ff6e;box-shadow:0 0 45px #538cff2d;transform:rotate(-9deg)}
.brand-orbit span{font-size:clamp(36px,8vw,88px);filter:drop-shadow(0 10px 14px #09132b)}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.summary-card{display:grid;gap:5px;border-color:#31527f;background:linear-gradient(145deg,#172847,#0f1c34)}
.summary-card h2{font-size:14px;color:#abc0de;font-weight:600;margin:0}
.summary-card strong{font-size:clamp(16px,3.7vw,27px);overflow-wrap:anywhere}
.summary-card a{font-size:13px;text-decoration:none;width:fit-content}
.tile-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:4px;border-radius:9px;color:#aaceff;background:#274372;border:1px solid #385c90}
.customer nav{background:#0b152aef;backdrop-filter:blur(14px)}
.customer nav a.active{color:#c1dcff;background:#203b65;font-weight:700}
@media(max-width:520px){.customer .home-hero{grid-template-columns:1fr;min-height:235px}.brand-orbit{position:absolute;right:10px;top:15px;width:91px;opacity:.38}.hero-copy{padding-right:0}.customer header strong{font-size:14px}.customer main{padding-top:18px}}

.brand-orbit img{width:60%;height:auto;filter:drop-shadow(0 10px 14px #09132b);transform:rotate(9deg)}
img.mark{display:block;width:40px;height:40px;padding:0;object-fit:cover;border-radius:12px}.brand-orbit img{width:80%;border-radius:50%;object-fit:cover}
/* 八戒客户界面 */
.customer{--line:#2b4875;--blue:#95c7ff;--muted:#afc6e5}
.customer main{padding-top:clamp(20px,5vw,46px)}
.customer header{background:#0a1429eb}
.customer .home-hero{min-height:clamp(250px,33vw,360px);isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 84% 47%,#6541b858,transparent 42%),linear-gradient(115deg,#17356a,#111d3d 65%,#1e204a)}
.customer .home-hero::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#88b2ff13 1px,transparent 1px),linear-gradient(90deg,#88b2ff13 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(90deg,transparent 20%,black);pointer-events:none}
.customer .hero-copy h1{font-size:clamp(30px,6vw,54px);line-height:1.13;letter-spacing:-.035em;margin-top:10px}
.customer .hero-kicker{color:#c1d9ff;letter-spacing:.08em}
.customer .hero-copy p{color:#bed0ef;max-width:28ch}
.customer .brand-orbit{width:min(100%,230px);outline-color:#b1affd7d;box-shadow:0 0 32px #794be155,inset 0 0 35px #538cff36}
.customer .brand-orbit img{width:82%;border:1px solid #b6a2fa83}
.customer .summary-card{margin-bottom:0;min-height:150px;padding:clamp(14px,3vw,24px)}
.customer .dashboard-grid{margin-bottom:16px}
.customer .summary-card a{margin-top:6px;color:var(--blue)}
.customer [data-view="shop"]>.panel{background:#101c34b8;border-color:var(--line)}
.customer [data-view="shop"] article.stat{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:linear-gradient(150deg,#1a3158,#101c33 72%);padding:17px}
.customer [data-view="shop"] article h3{font-size:15px;color:#d0e0fc}
.customer [data-view="shop"] article strong{color:#fff;font-size:24px;letter-spacing:-.035em}
.customer [data-view="shop"] article p{color:var(--muted);font-size:13px;margin:3px 0 11px}
.customer [data-view="shop"] article button{margin-top:auto;width:100%;font-weight:650}
.customer dialog{width:min(92vw,470px);max-height:88dvh;border-color:#456ba0;box-shadow:0 24px 65px #020612ac;padding:clamp(16px,5vw,26px)}
.customer .payment-options{grid-template-columns:repeat(3,minmax(0,1fr))}
.customer .payment-options label{font-size:13px;justify-content:center;text-align:center;padding:10px 4px;gap:4px}
.customer .payment-options input{flex-shrink:0;margin:0}
.customer dialog button[type=submit]{color:#0a203f;background:#9dccff;font-weight:700}
.customer nav a{min-height:44px;display:grid;place-items:center}
@media(max-width:520px){.customer .home-hero{min-height:250px}.customer .hero-copy{padding-right:58px}.customer .brand-orbit{width:104px;right:10px;top:17px;opacity:.85}.customer .hero-actions{width:calc(100% + 58px)}.customer [data-view="shop"] .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.customer [data-view="shop"] article.stat{padding:11px}.customer [data-view="shop"] article strong{font-size:19px}.customer [data-view="shop"] article p{min-height:3em}.customer [data-view="shop"] article button{padding:7px 4px;font-size:14px}}
@media(max-width:350px){.customer .payment-options{grid-template-columns:1fr}.customer .payment-options label{justify-content:flex-start;padding-inline:12px}.customer [data-view="shop"] .grid{grid-template-columns:1fr}}

.customer .shop-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:min(100%,390px);margin:0 0 16px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#0d1930}
.customer .shop-types button{min-height:44px;border-color:transparent;background:transparent;color:#afc6e5;font-weight:650}
.customer .shop-types button:hover{background:#182b4b}
.customer .shop-types button[aria-pressed="true"]{background:#254c83;border-color:#5787cc;color:#fff}
