/* Shared customer-facing visual system; admin styles are independent. */
:root{--ui-blue:#2563eb;--ui-ink:#20304a;--ui-muted:#61718a;--ui-line:#e0e8f2;--ui-shadow:0 8px 28px rgba(35,62,105,.055)}
body.customer-ui{background:#f5f7fb;color:var(--ui-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}
.customer-ui :is(button,a,input,textarea,select){-webkit-tap-highlight-color:transparent}
.customer-ui :is(button,a){touch-action:manipulation}
.customer-ui :is(a,button,input,textarea,select):focus-visible{outline:3px solid #93b4fa;outline-offset:3px}
.customer-ui :is(button,.button,.btn){transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.customer-ui :is(button,.button,.btn):disabled{cursor:not-allowed;opacity:.65}
.customer-ui :is(input,textarea,select){font-size:14px}
.customer-ui :is(textarea,dd,td){overflow-wrap:anywhere}
.customer-ui input[type=number]{font-variant-numeric:tabular-nums}
.customer-ui ::selection{background:#dbeafe;color:#163f86}
.ui-store{--bg:#f5f7fb;--panel:#fff;--text:#20304a;--muted:#61718a;--line:#e0e8f2;--gold:#2563eb;--gold2:#2563eb}
.ui-store .announcement{background:#eaf1ff;color:#365c94;font-size:12px;padding:6px 16px}
.ui-store .site-header{background:rgba(255,255,255,.94);border-bottom:1px solid var(--ui-line);box-shadow:0 2px 12px #20304a04}
.ui-store .nav-wrap{height:64px}
.ui-store .brand{font-size:19px;letter-spacing:.3px}
.ui-store .brand-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(140deg,#538cf5,#2458cf);color:#fff;box-shadow:0 4px 12px #2563eb20}
.ui-store nav a{color:#52627b}
.ui-store nav a:hover{color:var(--ui-blue)}
.ui-store .section{padding:34px 0}
.ui-store .purchase-flow{padding:26px 0 22px;background:linear-gradient(120deg,#edf4ff,#f5f9fc 70%);border-bottom:1px solid #e4ecf6}
.ui-store .section-head{margin-bottom:18px;gap:16px}
.ui-store .section-head :is(h1,h2){font-size:24px;line-height:1.35;letter-spacing:-.5px;margin:5px 0}
.ui-store .eyebrow{font-size:10px;letter-spacing:1.8px;color:#6581a5}
.ui-store .section-head>a{font-size:13px;white-space:nowrap}
.ui-store .compact-steps>div{background:#ffffffd9;border:1px solid #e0e9f6;border-radius:12px;box-shadow:none;padding:16px}
.ui-store .compact-steps b{color:#3974dc}
.ui-store .compact-steps strong{font-size:15px}
.ui-store .compact-steps p{font-size:12px;color:var(--ui-muted)}
.ui-store .filters{gap:7px;margin-bottom:20px}
.ui-store .filters :is(a,button){border-radius:8px;padding:6px 13px;font-size:12px;border:1px solid var(--ui-line);background:#fff;color:#52627b}
.ui-store .filters .active{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 3px 8px #2563eb15}
.ui-store .product-grid{gap:18px}
.ui-store :is(.product-card,.guide-card){background:#fff;border:1px solid var(--ui-line);border-radius:15px;box-shadow:var(--ui-shadow);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.ui-store .product-body{padding:16px}
.ui-store .product-body h3{font-size:15px;line-height:1.55;margin:8px 0 14px}
.ui-store .product-meta{font-size:10px;color:#72829a}
.ui-store .price-row strong{color:#2563eb;font-size:21px;letter-spacing:-.5px}
.ui-store .stock-badge{font-size:11px;padding:3px 8px}
.ui-store .button.primary{background:linear-gradient(135deg,#397cf2,#2563eb);color:#fff;box-shadow:0 4px 12px #2563eb1c}
.ui-store .button{border-radius:9px;font-size:13px;padding:9px 17px}
.ui-store .detail-grid{align-items:start;gap:32px}
.ui-store .detail-summary{padding:24px;background:#fff;border:1px solid var(--ui-line);border-radius:16px;box-shadow:var(--ui-shadow);min-width:0}
.ui-store .detail-summary h1{font-size:clamp(23px,2.6vw,30px);margin:12px 0;line-height:1.4;letter-spacing:-.5px}
.ui-store .detail-price{background:#f6f9ff;border:0;border-radius:10px;padding:12px 15px;margin:16px 0}
.ui-store .detail-price strong{font-size:30px;color:#2563eb;font-variant-numeric:tabular-nums}
.ui-store .detail-summary dl{font-size:13px;margin:14px 0 20px}
.ui-store .product-action{min-width:150px}
.ui-store .auto-checkout{background:#f7faff;border-radius:11px;padding:12px}
.ui-store .checkout-row{flex-wrap:wrap}
.ui-store .checkout-row .button{flex:0 1 auto;min-height:40px;font-size:13px}
.ui-store .contact-action{min-width:140px;margin-top:4px}
.ui-store .detail-summary .safe-tip{text-align:left;font-size:11px;line-height:1.7}
.ui-store .detail-content-single{margin-top:24px}
.ui-store .detail-content article{background:#fff;border:1px solid var(--ui-line);border-radius:15px;padding:4px 24px}
.ui-store .detail-content article section{padding:18px 0}
.ui-store .detail-content article section:first-child{border-top:0}
.ui-store .detail-content h2{font-size:17px;margin:0 0 10px}
.ui-store .rich-text{font-size:14px;line-height:1.9;color:#52627b}
.ui-store .guide-card{padding:20px}
.ui-store .guide-card h3{font-size:16px}
.ui-store .guide-card p{font-size:13px;line-height:1.85}
.ui-store footer{background:#eef2f8;border-top:1px solid var(--ui-line)}
.ui-store .modal-panel{border-radius:18px;box-shadow:0 24px 80px #19355b30}
.ui-store .mobile-buy{background:rgba(255,255,255,.96);box-shadow:0 -4px 18px #20304a08;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.ui-service{--bg:#f5f7fb;--text:#20304a;--muted:#61718a;--line:#e0e8f2}
.ui-service .page-shell{padding:36px 16px}
.ui-service .service-card{max-width:740px;border:1px solid var(--ui-line);border-radius:18px;box-shadow:var(--ui-shadow)}
.ui-service .service-nav{height:62px;background:#fbfcff}
.ui-service .service-brand{font-size:17px}
.ui-service .service-nav nav{gap:18px;font-size:12px}
.ui-service .content{padding:24px}
.ui-service .btn{font-size:13px;padding:10px 16px;border-radius:9px}
.ui-service .btn.dark{background:#2d4365;color:#fff}
.ui-service .btn.submit{background:#27845d;color:#fff}
.ui-service .result-panel h1{font-size:22px}
.ui-service .result-panel dl div{padding:7px 0;gap:10px;font-size:13px}
.ui-service .result-panel dd{min-width:0}
.ui-service .result-tip{font-size:12px;font-weight:500;color:#8c602b}
.ui-service .notice{font-size:13px;padding:11px 14px}
.ui-service .request-form{background:#f7f9fc;border-color:var(--ui-line)}
.ui-service .query-result{overflow-x:auto}
.ui-service .query-result :is(th,td){font-size:13px;padding:11px 13px}
.ui-service .query-result th{background:#f6f8fc;color:#61718a;font-weight:500}
.ui-service .history-dialog{box-shadow:0 24px 80px #19355b30}
.ui-service .history-dialog h2{font-size:19px}
.ui-service .history-dialog dl{font-size:13px}
.ui-service .redeem-history-item>span:first-child{min-width:0;overflow-wrap:anywhere}
.ui-delivery .card,.ui-payment .card,.ui-tools .card{border:1px solid var(--ui-line);box-shadow:var(--ui-shadow);border-radius:16px}
.ui-delivery h1,.ui-tools h1{font-size:23px;letter-spacing:-.4px}
.ui-delivery .content{min-height:240px;background:#f8fafd;border-color:#dce5f0;font-size:13px;line-height:1.8}
.ui-delivery .instructions{background:#fffaf0;border-color:#efe1bd;border-left:3px solid #e0b75e}
.ui-delivery .instructions h2{font-size:16px}
.ui-delivery .instructions a{color:#2563eb;text-decoration:underline;text-underline-offset:3px}
.ui-delivery .notice{background:#f1f6fd;font-size:12px}
.ui-delivery button,.ui-tools button:not(.modal-close){font-size:13px;padding:9px 16px;border-radius:9px}
.ui-payment .page{background:radial-gradient(ellipse at top,#eaf2ff,transparent 65%)}
.ui-payment .card{padding:30px 24px}
.ui-payment .amount{color:#20304a;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.ui-payment .qr{background:white;border-radius:12px}
.ui-tools .wrap{max-width:calc(100% - 248px)}
.ui-tools :is(.side-nav,.nav){background:#fbfcff;border-right:1px solid var(--ui-line)}
.ui-tools :is(.side-nav,.nav) a{font-size:13px;border-radius:10px}
.ui-tools :is(.side-nav,.nav) a.active{background:#e9f0ff;color:#2459bc;font-weight:650}
.ui-tools .mail-main{min-width:0;overflow-wrap:anywhere}
.ui-tools .tools,.ui-tools .list-tools{flex-wrap:wrap}
@media(hover:hover){.ui-store :is(.product-card,.guide-card):hover{transform:translateY(-3px);border-color:#c8d8ef;box-shadow:0 12px 28px #203f6b10}.customer-ui :is(.button.primary,.btn.dark,.btn.submit):hover{filter:brightness(1.04);box-shadow:0 5px 14px #203f6b18}}
@keyframes ui-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.customer-ui :is(.history-dialog,.modal-panel,.qr-preview-panel){animation:ui-enter .18s ease-out}
@media(max-width:700px){.ui-tools .wrap{max-width:calc(100% - 28px)}.ui-service .page-shell{padding:14px 10px}.ui-service .service-card{min-height:0}.ui-service .content{padding:20px 16px}.ui-service .service-nav{padding:0 16px}.ui-service .result-panel{padding:12px 0}.ui-service .result-panel dl div{grid-template-columns:72px minmax(0,1fr)}.ui-service .btn{min-height:40px}.ui-store .section{padding:26px 0}.ui-store .section-head :is(h1,h2){font-size:21px}.ui-store .product-grid{gap:10px}.ui-store .product-body{padding:12px}.ui-store .product-body h3{font-size:14px}.ui-store .detail-summary{padding:18px}.ui-store .detail-grid{gap:18px}.ui-store .detail-content article{padding:0 18px}.ui-store .section-head>a{font-size:12px}.ui-store .button{min-height:40px}.ui-delivery .wrap{margin:18px auto}.ui-delivery .card{padding:18px}.ui-delivery .content{min-height:220px}.customer-ui .breadcrumbs{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.customer-ui *,.customer-ui *::before,.customer-ui *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
