:root{--bg:#f5f7fb;--card:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--primary:#5b4ef4;--primary2:#7c3aed;--shadow:0 18px 50px rgba(17,24,39,.08)}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:radial-gradient(circle at 10% 0,#ede9fe 0,transparent 30%),var(--bg);line-height:1.6}a{text-decoration:none;color:inherit}.container{width:min(1160px,calc(100% - 32px));margin:0 auto}.narrow{max-width:720px}.topbar,.admin-topbar{height:70px;background:rgba(255,255,255,.86);backdrop-filter:blur(14px);border-bottom:1px solid rgba(229,231,235,.9);position:sticky;top:0;z-index:20}.topbar-inner,.admin-nav{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{font-size:20px;font-weight:800}.link-btn,.admin-nav a{font-size:14px;color:#4b5563}.page-space{padding:64px 0}.hero{max-width:760px;margin-bottom:38px}.hero.compact{margin-bottom:24px}.eyebrow{display:inline-block;padding:6px 11px;border-radius:99px;background:#ede9fe;color:#5b21b6;font-weight:700;font-size:13px}.hero h1{font-size:clamp(34px,5vw,58px);line-height:1.12;letter-spacing:-2px;margin:16px 0 12px}.hero.compact h1{font-size:42px}.hero p{font-size:18px;color:var(--muted);margin:0}.checkout-layout{display:grid;gap:28px}.section-title{font-size:19px;margin:0 0 16px}.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.product-card{position:relative;display:flex;flex-direction:column;padding:25px;border:2px solid transparent;background:var(--card);border-radius:22px;box-shadow:var(--shadow);cursor:pointer;transition:.2s}.product-card:hover{transform:translateY(-2px)}.product-card.selected{border-color:var(--primary);box-shadow:0 18px 50px rgba(91,78,244,.16)}.product-card input{position:absolute;opacity:0}.product-check{position:absolute;right:18px;top:18px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#ede9fe;color:var(--primary);opacity:0}.product-card.selected .product-check{opacity:1}.product-card strong{font-size:22px}.product-desc{color:var(--muted);margin:5px 0 24px}.price{font-weight:850;font-size:35px;line-height:1}.price small{font-size:18px;margin-right:3px}.form-card,.panel{background:var(--card);border:1px solid rgba(229,231,235,.8);border-radius:24px;box-shadow:var(--shadow);padding:30px}.field{display:block;margin-bottom:20px}.field>span{display:block;font-size:14px;font-weight:700;margin-bottom:8px}.field input,.field textarea,.search-form input,.token-box textarea{width:100%;border:1px solid #d7dce4;border-radius:13px;padding:13px 14px;font:inherit;outline:none;background:#fff;transition:.2s}.field input:focus,.field textarea:focus,.search-form input:focus,.token-box textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(91,78,244,.1)}.privacy-note{padding:13px 15px;background:#f7f7ff;border-radius:12px;color:#5b6473;font-size:13px;margin-bottom:20px}.primary-btn,.secondary-btn,.outline-btn,.danger-btn{border:0;border-radius:13px;padding:13px 20px;font-size:15px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.primary-btn{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;box-shadow:0 10px 22px rgba(91,78,244,.22)}.primary-btn:disabled{opacity:.65;cursor:not-allowed}.secondary-btn{background:#e0e7ff;color:#3730a3}.outline-btn{background:#fff;border:1px solid var(--line);color:#374151}.danger-btn{background:#fee2e2;color:#b91c1c}.block{display:flex;width:100%}.form-message{margin-top:12px}.error-text{color:#b91c1c}.notice{border-radius:13px;padding:13px 15px;margin-bottom:18px;font-size:14px}.notice.error{background:#fef2f2;color:#b91c1c}.notice.success{background:#ecfdf5;color:#047857}.notice.info{background:#eff6ff;color:#1d4ed8}.footer{text-align:center;color:#9ca3af;font-size:13px;padding:20px 0 40px}.center-card{text-align:center;margin-top:60px}.spinner{width:46px;height:46px;border:4px solid #e5e7eb;border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 20px}@keyframes spin{to{transform:rotate(360deg)}}.order-head,.panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.order-head h1,.panel-title h1{font-size:20px;margin:5px 0 0;word-break:break-all}.muted{color:var(--muted)}.badge{display:inline-flex;white-space:nowrap;border-radius:99px;padding:5px 10px;font-size:12px;font-weight:800}.badge.gray{background:#f3f4f6;color:#4b5563}.badge.orange{background:#fff7ed;color:#c2410c}.badge.blue{background:#eff6ff;color:#1d4ed8}.badge.green{background:#ecfdf5;color:#047857}.badge.red{background:#fef2f2;color:#b91c1c}.details{margin:25px 0}.details>div{display:grid;grid-template-columns:120px 1fr;padding:12px 0;border-bottom:1px solid var(--line)}.details dt{color:var(--muted)}.details dd{margin:0;text-align:right;font-weight:650;word-break:break-all}.admin-body{background:#f3f4f6}.login-wrap{min-height:100vh;display:grid;place-items:center}.login-card{width:min(430px,100%);text-align:center}.admin-logo{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:900;margin:0 auto}.login-card h1{margin-bottom:0}.login-card .field{text-align:left}.admin-nav>div{display:flex;align-items:center;gap:14px}.admin-nav>div span{font-size:13px;color:var(--muted)}.admin-nav nav{display:flex;gap:20px}.admin-main{padding:28px 0}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat-card{background:#fff;border-radius:17px;padding:20px;border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.stat-card span{color:var(--muted);font-size:14px}.stat-card strong{font-size:28px}.panel{border-radius:18px;padding:0}.panel-head{padding:18px;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tabs a{padding:7px 11px;border-radius:9px;font-size:13px;color:#6b7280}.tabs a.active{background:#ede9fe;color:#5b21b6;font-weight:800}.search-form{display:flex;min-width:310px}.search-form input{border-radius:10px 0 0 10px;padding:9px 11px}.search-form button{border:0;background:#111827;color:#fff;padding:0 15px;border-radius:0 10px 10px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:900px}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);font-size:13px}th{background:#fafafa;color:#6b7280;font-weight:700}.table-link{color:var(--primary);font-weight:700}.empty{text-align:center;color:var(--muted);padding:50px}.pagination{display:flex;gap:7px;padding:18px}.pagination a{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px}.pagination a.active{background:#111827;color:#fff}.two-col{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px}.detail-panel,.action-panel{padding:25px}.token-box{margin-top:22px}.token-head{display:flex;justify-content:space-between;margin-bottom:9px}.copy-btn{border:0;background:#ede9fe;color:#5b21b6;border-radius:9px;padding:7px 10px;font-weight:700;cursor:pointer}.token-box textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;resize:vertical;background:#0f172a;color:#dbeafe;border:0}.action-panel h2{margin-top:0}.action-buttons{display:grid;gap:10px}.action-buttons button{width:100%}@media(max-width:850px){.product-grid,.stat-grid,.two-col{grid-template-columns:1fr}.panel-head{flex-direction:column}.search-form{min-width:0}.page-space{padding:38px 0}.hero h1{letter-spacing:-1px}.stat-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.container{width:min(100% - 20px,1160px)}.form-card{padding:21px}.product-grid{grid-template-columns:1fr}.topbar{height:62px}.hero h1,.hero.compact h1{font-size:34px}.hero p{font-size:16px}.details>div{grid-template-columns:90px 1fr}.order-head{flex-direction:column}.admin-nav nav{gap:10px}.stat-grid{gap:10px}.stat-card{padding:15px}}
.sync-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mini-card{padding:15px;border:1px solid var(--line);border-radius:14px;background:#fafafa}.mini-card span{display:block;color:var(--muted);font-size:12px}.mini-card strong{font-size:15px;word-break:break-all}.result-box{padding:18px;border-radius:15px;background:#f8fafc;border:1px solid var(--line);white-space:pre-wrap}.actions-row{display:flex;gap:10px;flex-wrap:wrap}.code-note{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:#111827;color:#e5e7eb;padding:14px;border-radius:12px;word-break:break-all}@media(max-width:700px){.sync-grid{grid-template-columns:1fr}}

/* V2.1 商品与双支付 */
.product-image{width:100%;height:180px;object-fit:cover;border-radius:16px;margin-bottom:18px;background:#f3f4f6}
.product-placeholder{display:grid;place-items:center;font-size:34px;font-weight:900;color:#5b4ef4;background:linear-gradient(135deg,#ede9fe,#eef2ff)}
.product-bottom{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:auto}
.product-action{font-size:13px;font-weight:800;color:#5b4ef4;background:#ede9fe;border-radius:99px;padding:7px 11px}
.payment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.payment-option{border:1.5px solid #d7dce4;border-radius:14px;padding:14px;display:flex;align-items:center;gap:12px;cursor:pointer;transition:.2s;background:#fff}
.payment-option.selected{border-color:var(--primary);box-shadow:0 0 0 4px rgba(91,78,244,.08)}
.payment-option input{position:absolute;opacity:0}
.payment-option>span:last-child{display:flex;flex-direction:column}
.payment-option small{color:var(--muted);font-size:12px}
.payment-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e0e7ff;color:#3730a3;font-weight:900;font-size:18px}
.field select{width:100%;border:1px solid #d7dce4;border-radius:13px;padding:13px 14px;font:inherit;outline:none;background:#fff}
.field small{display:block;color:var(--muted);font-size:12px;margin-top:6px}
.qr-card{text-align:center}
.qr-card h1{font-size:30px;margin:16px 0 10px}
.pay-amount{display:flex;flex-direction:column;margin:18px 0}
.pay-amount small{color:var(--muted)}
.pay-amount strong{font-size:38px;line-height:1.2}
.qrcode-box{width:270px;min-height:270px;margin:22px auto;padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;display:grid;place-items:center}
.qrcode-box img,.qrcode-box canvas{max-width:230px!important;height:auto!important}
.payment-waiting,.payment-success{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 14px;border-radius:12px;margin:16px 0}
.payment-waiting{background:#eff6ff;color:#1d4ed8}.payment-success{background:#ecfdf5;color:#047857;font-weight:800}
.pulse-dot{width:9px;height:9px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 0 rgba(37,99,235,.5);animation:pulse 1.5s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 9px rgba(37,99,235,0)}100%{box-shadow:0 0 0 0 rgba(37,99,235,0)}}
.admin-product-thumb{width:58px;height:58px;border-radius:12px;object-fit:cover;display:inline-grid;place-items:center;background:#f3f4f6}
.admin-product-thumb.placeholder{font-weight:900;color:#5b4ef4}
.inline-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}
.inline-actions form{display:inline}
.text-button{border:0;background:transparent;padding:0;color:var(--primary);font:inherit;font-weight:700;cursor:pointer}
.danger-text{color:#b91c1c}
.current-image{display:flex;align-items:center;gap:18px;padding:15px;background:#f8fafc;border:1px solid var(--line);border-radius:14px;margin-bottom:20px}
.current-image img{width:120px;height:90px;object-fit:cover;border-radius:10px}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}
.switch-field{min-height:50px;display:flex;align-items:center;gap:9px;font-weight:700;margin-bottom:20px}
.switch-field input{width:18px;height:18px}
.settings-stack{display:grid;gap:20px;max-width:900px;margin:0 auto}
.settings-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.settings-title h2{margin:0}.settings-title p{margin:4px 0 0;color:var(--muted)}
.sticky-save{position:sticky;bottom:15px;display:flex;justify-content:flex-end;padding:14px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.nav-active{color:var(--primary)!important;font-weight:800}
@media(max-width:700px){.payment-grid,.form-row{grid-template-columns:1fr}.product-image{height:150px}.qrcode-box{width:250px;min-height:250px}.admin-nav>div span{display:none}.admin-nav nav{overflow:auto;max-width:65%;padding-bottom:3px}}

/* V2.3 极简首页 */
.minimal-home{width:min(660px,calc(100% - 32px));min-height:calc(100vh - 140px);padding:72px 0 60px}
.minimal-checkout{width:100%}
.minimal-title{text-align:center;margin-bottom:28px}
.minimal-title h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin:0}
.minimal-product-step,.minimal-details{transition:opacity .18s ease,transform .18s ease}
.minimal-product-step.is-gone{display:none}
.minimal-products{grid-template-columns:1fr;gap:12px}
.minimal-product-card{min-height:0;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 26px rgba(17,24,39,.05);background:#fff}
.minimal-product-card:hover{transform:none;border-color:#c7d2fe;box-shadow:0 10px 30px rgba(17,24,39,.08)}
.minimal-product-card .product-image{width:58px;height:58px;object-fit:cover;border-radius:13px;margin:0}
.minimal-product-info{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0}
.minimal-product-info strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.minimal-product-info .price{font-size:22px;white-space:nowrap}
.minimal-product-info .price small{font-size:13px}
.minimal-product-arrow{font-size:28px;line-height:1;color:#9ca3af}
.minimal-details{opacity:1;transform:translateY(0)}
.minimal-details.is-hidden{display:none}
.minimal-selected{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px;padding:0 2px}
.minimal-selected>div{display:flex;align-items:baseline;gap:10px;min-width:0}
.minimal-selected strong{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.minimal-selected span{font-size:14px;color:var(--primary);font-weight:800;white-space:nowrap}
.minimal-selected .text-button{border:0;background:transparent;color:var(--muted);padding:6px 0;font-size:13px;cursor:pointer;white-space:nowrap}
.minimal-form-card{padding:26px;border-radius:18px;box-shadow:0 12px 38px rgba(17,24,39,.07)}
.minimal-form-card .field{margin-bottom:17px}
.minimal-form-card .field>span{margin-bottom:7px}
.minimal-form-card .field input,.minimal-form-card .field textarea{border-radius:11px;padding:13px 14px}
.minimal-form-card .field textarea{min-height:150px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.55}
.minimal-payment-field{margin-top:2px}
.minimal-payment-grid{grid-template-columns:repeat(2,1fr);gap:10px}
.minimal-payment-option{min-height:46px;padding:11px 14px;border-radius:11px;justify-content:center;text-align:center}
.minimal-payment-option strong{font-size:14px}
.minimal-submit{min-height:50px;margin-top:2px;font-size:15px}
body.modal-open{overflow:hidden}
.confirm-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;visibility:hidden;opacity:0;transition:opacity .18s ease,visibility .18s ease}
.confirm-modal.is-open{visibility:visible;opacity:1}
.confirm-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(4px)}
.minimal-confirm-dialog{position:relative;width:min(420px,100%);background:#fff;border-radius:20px;padding:27px;box-shadow:0 30px 80px rgba(15,23,42,.26)}
.confirm-close{position:absolute;right:13px;top:11px;width:34px;height:34px;border:0;border-radius:50%;background:#f3f4f6;color:#6b7280;font-size:23px;line-height:1;cursor:pointer}
.minimal-confirm-dialog h2{font-size:22px;margin:0 0 18px}
.minimal-confirm-email{padding:15px 16px;background:#f7f7ff;border-radius:13px;margin-bottom:12px}
.minimal-confirm-email span{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.minimal-confirm-email strong{display:block;font-size:18px;word-break:break-all;color:#312e81}
.minimal-confirm-order{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:4px 2px 19px}
.minimal-confirm-order span{font-size:14px;color:var(--muted)}
.minimal-confirm-order strong{font-size:18px}
.minimal-confirm-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}
.minimal-confirm-actions button{min-height:46px}
@media(max-width:700px){
  .minimal-home{width:min(100% - 20px,660px);padding:42px 0 45px}
  .minimal-title{margin-bottom:22px}
  .minimal-title h1{font-size:27px}
  .minimal-product-card{padding:15px;gap:12px}
  .minimal-product-card .product-image{width:50px;height:50px}
  .minimal-product-info{align-items:flex-start;flex-direction:column;gap:4px}
  .minimal-product-info strong{font-size:16px}
  .minimal-product-info .price{font-size:20px}
  .minimal-form-card{padding:20px}
  .minimal-payment-grid{grid-template-columns:1fr 1fr}
  .minimal-confirm-dialog{padding:23px 19px 19px;border-radius:18px}
}

/* V2.4 网站设置、邮箱查单与动态结果 */
.query-page{display:grid;gap:18px}.query-card h1{font-size:28px;margin:0 0 20px}.query-results{display:grid;gap:10px}.query-order-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 18px;border:1px solid var(--line);border-radius:15px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 7px 22px rgba(17,24,39,.04)}.query-order-card:hover{border-color:#c7d2fe}.query-order-card>div:first-child{display:grid;gap:5px;min-width:0}.query-order-card strong{font-size:16px}.query-order-card span:not(.badge){font-size:12px;color:var(--muted);word-break:break-all}.query-order-meta{display:grid;justify-items:end;gap:7px;white-space:nowrap}.query-order-meta small{color:var(--muted)}
.live-processing{display:flex;align-items:center;gap:10px;padding:14px 15px;margin:18px 0;border-radius:13px;background:#f5f7ff;color:#3730a3}.live-processing.is-hidden,.live-result-section.is-hidden{display:none}.live-spinner{width:16px;height:16px;border:2px solid #c7d2fe;border-top-color:#4f46e5;border-radius:50%;animation:liveSpin .8s linear infinite}@keyframes liveSpin{to{transform:rotate(360deg)}}.live-result-section{margin-top:22px}.compact-details{margin-top:20px}
.site-announcement{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;visibility:hidden;opacity:0;transition:.18s}.site-announcement.is-open{visibility:visible;opacity:1}.site-announcement-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.52);backdrop-filter:blur(4px)}.site-announcement-dialog{position:relative;width:min(420px,100%);background:#fff;border-radius:20px;padding:27px;box-shadow:0 28px 80px rgba(15,23,42,.25)}.site-announcement-dialog h2{font-size:22px;margin:0 0 14px}.site-announcement-content{color:#475569;line-height:1.75;margin-bottom:20px;word-break:break-word}
.floating-service{position:fixed;right:22px;bottom:24px;z-index:60;display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:999px;background:#111827;color:#fff;text-decoration:none;box-shadow:0 14px 35px rgba(15,23,42,.24)}.floating-service span{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#16a34a;font-size:11px;font-weight:800}.floating-service strong{font-size:14px}.site-footer{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}.site-footer span+span:before{content:'·';margin-right:14px;color:#cbd5e1}
@media(max-width:620px){.query-order-card{align-items:flex-start}.query-order-meta{justify-items:end}.floating-service{right:14px;bottom:16px;padding:9px 12px}.floating-service span{width:29px;height:29px}.site-footer{gap:7px}.site-footer span+span:before{margin-right:7px}}

/* V2.5 五分钟支付有效期 */
.payment-deadline{display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:100%;margin:14px auto;padding:7px 12px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:13px;font-weight:700}
.payment-deadline strong{font-variant-numeric:tabular-nums;font-size:15px}
.payment-deadline.is-expired{background:#fef2f2;color:#b91c1c}
.order-payment-deadline{width:100%;border-radius:12px;margin:18px 0 10px}
.payment-expired{padding:12px 14px;border-radius:12px;margin:16px 0;background:#fef2f2;color:#b91c1c;font-weight:800;text-align:center}
.qrcode-box.is-expired{position:relative;opacity:.45;filter:grayscale(1);pointer-events:none}
.qrcode-box.is-expired:after{content:'订单已超时';position:absolute;inset:0;display:grid;place-items:center;color:#b91c1c;font-size:18px;font-weight:900;background:rgba(255,255,255,.72);border-radius:20px}
.is-disabled{opacity:.55!important;pointer-events:none!important;cursor:not-allowed!important}
.is-hidden{display:none!important}


/* V2.6 五套首页模板与顺滑过渡 */
.front-body{min-height:100vh;transition:background-color .25s ease,color .25s ease}
.minimal-product-step,.minimal-details{will-change:opacity,transform}
.minimal-product-step.is-leaving,.minimal-details.is-leaving{opacity:0;transform:translateY(8px) scale(.992);pointer-events:none}
.minimal-product-step.is-entering,.minimal-details.is-entering{opacity:0;transform:translateY(10px) scale(.992)}
.tutorial-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:0 auto 16px;padding:8px 15px;border-radius:999px;font-size:13px;font-weight:800;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.tutorial-button:hover{transform:translateY(-1px)}
.tutorial-play{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:9px;padding-left:1px}
.token-guide{margin:0 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:rgba(248,250,252,.86);font-size:13px;line-height:1.9;color:var(--muted)}
.token-guide>strong{display:block;margin-bottom:5px;color:var(--text)}
.token-guide a{display:inline-block;padding:0 5px;border-radius:5px;color:#1677ff!important;-webkit-text-fill-color:#1677ff!important;text-decoration:underline!important;font-weight:750;word-break:break-all}

/* 模板 1：极简白色 */
.theme-minimal_white{--bg:#f6f7f9;--card:#fff;--text:#15171a;--muted:#717780;--line:#e7e9ed;--primary:#111827;--primary2:#374151;background:#f6f7f9}
.theme-minimal_white .topbar{background:rgba(255,255,255,.88)}
.theme-minimal_white .minimal-title h1{font-weight:760;letter-spacing:-1.2px}
.theme-minimal_white .minimal-product-card{border-color:#e9ebef;box-shadow:0 12px 34px rgba(15,23,42,.055)}
.theme-minimal_white .minimal-product-card:hover{border-color:#cfd4dc;box-shadow:0 16px 38px rgba(15,23,42,.08)}
.theme-minimal_white .tutorial-button{background:#111827;color:#fff;box-shadow:0 8px 20px rgba(17,24,39,.16)}
.theme-minimal_white .tutorial-play{background:rgba(255,255,255,.18)}

/* 模板 2：深色科技 */
.theme-dark_tech{--bg:#07101c;--card:#0e1a2b;--text:#eef6ff;--muted:#8fa2b8;--line:#22334a;--primary:#42a5ff;--primary2:#7467ff;background:radial-gradient(circle at 50% -10%,#17335e 0,transparent 36%),linear-gradient(180deg,#07101c,#0a1321 70%);color:var(--text)}
.theme-dark_tech .topbar{background:rgba(7,16,28,.78);border-color:rgba(97,140,190,.16)}
.theme-dark_tech .brand,.theme-dark_tech .link-btn{color:#eaf4ff}
.theme-dark_tech .minimal-title h1{background:linear-gradient(90deg,#fff,#9bd0ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.theme-dark_tech .minimal-product-card,.theme-dark_tech .minimal-form-card{background:linear-gradient(145deg,rgba(19,35,57,.96),rgba(12,24,40,.96));border-color:#263d5b;box-shadow:0 18px 45px rgba(0,0,0,.25)}
.theme-dark_tech .minimal-product-card:hover{border-color:#4a9be8;box-shadow:0 20px 50px rgba(0,75,160,.22)}
.theme-dark_tech .field input,.theme-dark_tech .field textarea{background:#091525;border-color:#29415e;color:#ecf6ff}
.theme-dark_tech .field input::placeholder,.theme-dark_tech .field textarea::placeholder{color:#61758c}
.theme-dark_tech .token-guide{background:rgba(7,18,32,.78);border-color:#263d5b}
.theme-dark_tech .tutorial-button{background:linear-gradient(135deg,#168cff,#7568ff);color:#fff;box-shadow:0 10px 28px rgba(27,133,255,.25)}
.theme-dark_tech .tutorial-play{background:rgba(255,255,255,.2)}
.theme-dark_tech .minimal-selected .text-button{color:#91a8bf}
.theme-dark_tech .minimal-confirm-dialog,.theme-dark_tech .site-announcement-dialog{background:#101d2d;color:#eef6ff}
.theme-dark_tech .minimal-confirm-email{background:#0a1727}
.theme-dark_tech .confirm-close{background:#1b2a3d;color:#b7c7d8}
.theme-dark_tech .outline-btn{background:#142338;border-color:#2a405a;color:#eaf3ff}
.theme-dark_tech .site-footer{color:#71869b}

/* 模板 3：蓝紫渐变 */
.theme-aurora{--bg:#f3f1ff;--card:rgba(255,255,255,.82);--text:#202044;--muted:#74738c;--line:rgba(117,96,215,.18);--primary:#6557e8;--primary2:#9b55e8;background:radial-gradient(circle at 5% 8%,#dcecff 0,transparent 32%),radial-gradient(circle at 95% 20%,#eedbff 0,transparent 34%),linear-gradient(160deg,#fafaff,#f3f0ff);background-attachment:fixed}
.theme-aurora .topbar{background:rgba(255,255,255,.62);border-color:rgba(105,83,203,.12)}
.theme-aurora .minimal-product-card,.theme-aurora .minimal-form-card{background:rgba(255,255,255,.76);backdrop-filter:blur(18px);border-color:rgba(112,91,211,.16);box-shadow:0 18px 50px rgba(86,63,177,.11)}
.theme-aurora .minimal-product-card:hover{border-color:rgba(101,87,232,.48);box-shadow:0 22px 55px rgba(86,63,177,.16)}
.theme-aurora .tutorial-button{background:linear-gradient(135deg,#6458e8,#ab5ee8);color:#fff;box-shadow:0 10px 25px rgba(101,87,232,.24)}
.theme-aurora .tutorial-play{background:rgba(255,255,255,.22)}
.theme-aurora .token-guide{background:rgba(250,249,255,.72);border-color:rgba(112,91,211,.16)}
.theme-aurora .floating-service{background:linear-gradient(135deg,#5d54db,#9a54d4)}

/* 模板 4：商务轻奢 */
.theme-luxury{--bg:#f4f0e8;--card:#fffdf8;--text:#27231d;--muted:#7e766b;--line:#ddd4c5;--primary:#8b6a31;--primary2:#b28b47;background:radial-gradient(circle at 50% 0,#fff9ec 0,transparent 34%),#f4f0e8}
.theme-luxury .topbar{background:rgba(255,253,248,.88);border-color:#e6ddcf}
.theme-luxury .brand{letter-spacing:.6px}
.theme-luxury .minimal-title h1{font-family:Georgia,"Songti SC","SimSun",serif;font-weight:600;letter-spacing:.2px}
.theme-luxury .minimal-product-card,.theme-luxury .minimal-form-card{background:#fffdf8;border-color:#e2d8c8;box-shadow:0 16px 42px rgba(84,66,36,.08)}
.theme-luxury .minimal-product-card:hover{border-color:#b99a64;box-shadow:0 20px 46px rgba(84,66,36,.12)}
.theme-luxury .tutorial-button{background:#28231d;color:#f8ecd5;border:1px solid #9d7b43;box-shadow:0 9px 22px rgba(55,43,25,.16)}
.theme-luxury .tutorial-play{background:#9d7b43;color:#fff}
.theme-luxury .token-guide{background:#fbf7ef;border-color:#e3d9c9}
.theme-luxury .field input:focus,.theme-luxury .field textarea:focus{box-shadow:0 0 0 4px rgba(139,106,49,.1)}
.theme-luxury .floating-service{background:#28231d}

/* 模板 5：清新卡片 */
.theme-fresh_mint{--bg:#eff9f5;--card:#fff;--text:#15332a;--muted:#628077;--line:#d5ebe3;--primary:#159a73;--primary2:#3dbd9a;background:radial-gradient(circle at 15% 0,#d8f5eb 0,transparent 30%),radial-gradient(circle at 90% 15%,#dcf4ff 0,transparent 28%),#eff9f5}
.theme-fresh_mint .topbar{background:rgba(248,255,252,.84);border-color:#d7ebe4}
.theme-fresh_mint .minimal-product-card,.theme-fresh_mint .minimal-form-card{background:rgba(255,255,255,.9);border-color:#d8ece5;box-shadow:0 16px 42px rgba(29,105,82,.08)}
.theme-fresh_mint .minimal-product-card:hover{border-color:#68c8aa;box-shadow:0 20px 48px rgba(29,105,82,.13)}
.theme-fresh_mint .tutorial-button{background:linear-gradient(135deg,#159a73,#39b998);color:#fff;box-shadow:0 10px 24px rgba(21,154,115,.21)}
.theme-fresh_mint .tutorial-play{background:rgba(255,255,255,.23)}
.theme-fresh_mint .token-guide{background:#f5fcf9;border-color:#d7eee5}
.theme-fresh_mint .floating-service{background:#126f58}

/* 后台模板选择器 */
.theme-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.theme-option{position:relative;display:flex;flex-direction:column;gap:6px;padding:10px;border:1.5px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;transition:.18s}
.theme-option:hover{transform:translateY(-1px);box-shadow:0 10px 25px rgba(15,23,42,.07)}
.theme-option:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 3px rgba(91,78,244,.09)}
.theme-option input{position:absolute;opacity:0;pointer-events:none}
.theme-option>strong{font-size:14px}.theme-option>small{font-size:11px;line-height:1.45;color:var(--muted)}
.theme-preview{height:72px;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.theme-preview i{display:block;width:38%;height:7px;border-radius:99px}.theme-preview b,.theme-preview em{display:block;height:17px;border-radius:6px}.theme-preview em{width:72%}
.theme-preview-minimal_white .theme-preview{background:#f3f4f6}.theme-preview-minimal_white i{background:#111827}.theme-preview-minimal_white b,.theme-preview-minimal_white em{background:#fff;border:1px solid #e5e7eb}
.theme-preview-dark_tech .theme-preview{background:linear-gradient(145deg,#07111e,#132943)}.theme-preview-dark_tech i{background:#53a9ff}.theme-preview-dark_tech b,.theme-preview-dark_tech em{background:#14263d;border:1px solid #2a4565}
.theme-preview-aurora .theme-preview{background:linear-gradient(135deg,#dcecff,#efdcff)}.theme-preview-aurora i{background:#7061e8}.theme-preview-aurora b,.theme-preview-aurora em{background:rgba(255,255,255,.8)}
.theme-preview-luxury .theme-preview{background:#f1eadf}.theme-preview-luxury i{background:#8b6a31}.theme-preview-luxury b,.theme-preview-luxury em{background:#fffaf1;border:1px solid #ded1bd}
.theme-preview-fresh_mint .theme-preview{background:linear-gradient(135deg,#d8f5e9,#e5f8ff)}.theme-preview-fresh_mint i{background:#159a73}.theme-preview-fresh_mint b,.theme-preview-fresh_mint em{background:#fff;border:1px solid #cfeade}

@media(max-width:900px){.theme-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.theme-picker{grid-template-columns:1fr}.theme-option{display:grid;grid-template-columns:104px 1fr;grid-template-rows:auto auto;column-gap:12px}.theme-preview{grid-row:1/3}.tutorial-button{margin-bottom:13px}}
@media(prefers-reduced-motion:reduce){.minimal-product-step,.minimal-details,.tutorial-button,.theme-option{transition:none!important}.minimal-product-step.is-leaving,.minimal-details.is-leaving,.minimal-product-step.is-entering,.minimal-details.is-entering{transform:none}}
