*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f4f6fa;color:#17233b;font:15px/1.6 system-ui,"Microsoft YaHei",sans-serif}header{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px max(5vw,18px);background:white;border-bottom:1px solid #e4e8f0;flex-wrap:wrap}.brand{font-size:25px;font-weight:800;letter-spacing:-1px;color:#17233b}.brand span{color:#5d57d9}.brand small{font-size:12px;letter-spacing:0;margin-left:12px;color:#778399;font-weight:500}a{color:#5d57d9;text-decoration:none}nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}nav a{font-size:14px;color:#4f5c73}main{max-width:1120px;margin:auto;padding:30px 22px 48px}.hero{padding:44px 36px;background:linear-gradient(118deg,#1b2752,#5450a9);color:#fff;border-radius:20px;margin-bottom:22px}.hero p{color:#e3e6fc}.eyebrow{font-weight:700;font-size:11px;letter-spacing:2px;color:#7c83ad}.hero .eyebrow{color:#c9c9ff}h1,h2,h3,p{margin:0 0 12px}h1{font-size:clamp(26px,4vw,42px);line-height:1.25}h2{font-size:23px}h3{font-size:18px}.notice{background:#fff;border:1px solid #e0e4f1;border-left:4px solid #8c82ee;border-radius:10px;padding:16px 20px;margin-bottom:28px}.notice p{margin:4px 0 0;color:#667085}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}.section-head h2,.section-head h1{margin:0}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.filters button{color:#536077;background:#fff;border:1px solid #dfe4ed}.filters button.active{background:#5953d4;color:white;border-color:#5953d4}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px;margin-bottom:26px}.card,.panel{background:white;border:1px solid #e3e7f0;border-radius:15px;padding:22px;min-width:0}.card{display:flex;flex-direction:column;gap:9px}.card p{color:#62708a;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.card h3{margin:0}.card .chip{align-self:flex-start}.card .buyrow{margin-top:auto;display:flex;gap:12px;align-items:center;justify-content:space-between}.chip{display:inline-block;font-size:12px;padding:3px 9px;border-radius:20px;background:#edf0fc;color:#5557a7}.price{font-size:24px;font-weight:700;color:#5351bd}.muted{color:#64748b;font-size:14px}.panel{margin-bottom:20px}.button,button{display:inline-block;background:#5953d4;border:1px solid transparent;border-radius:8px;padding:9px 16px;font:inherit;font-weight:600;color:#fff;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.quiet{background:#eff1f7;color:#526078}.hero .button{background:white;color:#47449e}input,textarea,select{padding:10px 12px;border:1px solid #d6dce7;border-radius:8px;background:white;font:inherit;color:#17233b;max-width:100%;min-width:0}textarea{min-height:80px;resize:vertical}label{display:flex;flex-direction:column;gap:4px;font-weight:500}label.check{flex-direction:row;align-items:center;font-size:13px;color:#526078}.form{display:grid;gap:14px;max-width:520px}.form input:not([type=checkbox]),.form textarea{width:100%}.result{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:12px 0;color:#334155}.result:empty{display:none}.error{color:#b42318}.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px;margin-bottom:18px}.stat{background:white;border:1px solid #e3e7f0;border-radius:12px;padding:14px}.stat strong{font-size:26px;display:block}.order{border-top:1px solid #e3e7f0;padding:14px 0;overflow-wrap:anywhere}.order p{margin:4px 0}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;align-items:flex-start}.actions textarea{width:100%;max-width:560px}.order button{font-size:13px}.product-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #e3e7f0}.product-line strong{overflow-wrap:anywhere}dialog{width:min(95vw,560px);max-height:90vh;border:1px solid #dee3ee;border-radius:16px;padding:22px;color:inherit;box-shadow:0 15px 65px #17233b33}dialog::backdrop{background:#10193388}footer{text-align:center;font-size:13px;color:#738096;padding:20px}[hidden]{display:none!important}@media(max-width:600px){header{gap:8px}.brand small{display:none}nav{gap:12px}main{padding:18px 12px}.hero{padding:28px 20px}.card,.panel{padding:16px}.cards{grid-template-columns:1fr}.section-head input{width:100%}}
.brand #brandName{color:#17233b;letter-spacing:-.8px;overflow-wrap:anywhere}.brand{min-width:0;max-width:100%}.catalog-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:18px}.catalog-toolbar .filters{margin-bottom:0}.view-switch{display:flex;gap:6px}.view-switch .active{background:#5953d4;color:white}.cards.list{display:flex;flex-direction:column;gap:9px}.cards.list .card{display:grid;grid-template-columns:110px minmax(150px,1fr) minmax(180px,1.4fr) 110px minmax(170px,auto);align-items:center;padding:14px 18px}.cards.list .card .buyrow{margin:0}.cards.list .card .chip{align-self:center;justify-self:start}.cards.list .card h3{font-size:16px}.cards.list .card .price{font-size:18px}.card .chip,.preserve,.notice p{white-space:pre-wrap;overflow-wrap:anywhere}.order-tools,.pager{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pager{justify-content:flex-end;margin-top:14px}.audit-log{padding:10px;background:#f5f6fb;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.result{word-break:break-word}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #6962e7;outline-offset:3px}@media(max-width:900px){.cards.list .card{grid-template-columns:1fr auto;gap:8px}.cards.list .card h3,.cards.list .card>p{grid-column:1/-1}.cards.list .card .buyrow{grid-column:1/-1}.cards.list .card .chip{grid-column:1/-1}}@media(max-width:600px){.catalog-toolbar{gap:8px}.filters{flex-wrap:nowrap;overflow:auto;max-width:100%;padding-bottom:4px}.filters button{white-space:nowrap}.order-tools{width:100%}.order-tools input{width:100%;flex:1 1 100%}.pager{justify-content:center}.section-head h2{font-size:21px}.hero .eyebrow{letter-spacing:1px}}
/* Compact commerce layout: keep browsing and order handling above the fold. */
.hero{padding:32px 34px;margin-bottom:16px}.hero h1{font-size:clamp(26px,3.5vw,38px)}.notice{margin-bottom:22px}.notice p{line-height:1.45}
@media(max-width:600px){
  header{min-height:0;padding:11px 14px;gap:6px}.brand{font-size:22px}.brand small{display:none}nav{gap:14px}nav a{font-size:13px}
  main{padding:12px 12px 28px}.hero{padding:18px 16px;margin-bottom:12px;border-radius:14px}.hero h1{font-size:24px;line-height:1.25;margin-bottom:7px}.hero p{font-size:13px;line-height:1.45;margin-bottom:8px}.hero .eyebrow{font-size:10px;margin-bottom:3px}.hero .button{font-size:13px;padding:7px 12px}
  .notice{padding:12px 13px;margin-bottom:15px}.notice strong{font-size:13px}.notice p{font-size:12px;line-height:1.45}
  #catalog .section-head{margin-bottom:10px;gap:6px}#catalog .section-head h2{font-size:20px}#search{padding:8px 10px;font-size:14px}
  .catalog-toolbar{margin-bottom:10px}.filters button,.view-switch button{font-size:12px;padding:8px 10px}.filters{scrollbar-width:thin}.view-switch{margin-left:auto}
  .cards{gap:10px}.card{gap:6px}.card h3{font-size:16px}.card p{font-size:13px}.card .price{font-size:21px}
  .summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.stat{padding:8px 10px;border-radius:9px}.stat strong{font-size:22px;line-height:1.2}.stat .muted{font-size:12px}
  body[data-page=admin] #dashboard>.section-head{margin-bottom:10px}body[data-page=admin] #dashboard h1{font-size:24px}
  .order-tools{gap:7px}.order-tools input{font-size:14px}.order-tools button,.order-tools select{font-size:13px}
  dialog{padding:16px}dialog .form{gap:10px}
}

/* Storefront V0.3 — independent identity, compact catalog-first layout. */
body[data-page=shop]{background:#f4f5f7;color:#171b25}
body[data-page=shop] .shop-header{min-height:62px;padding:11px max(5vw,18px);background:#fff;border-bottom:1px solid #e4e6eb;gap:14px}
.shop-header .brand{display:flex;align-items:center;gap:9px;font-size:21px;letter-spacing:-.55px}.shop-header .brand-symbol{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:11px;background:#155ab8;color:white;font-size:21px}.shop-header .brand #brandName{color:#18202d}.shop-header nav{gap:22px}.shop-header nav a,.shop-header .text-button{font-size:13px;color:#344054}.shop-header .admin-link{color:#1258b7;font-weight:600}.menu-toggle{display:none}
.storefront{max-width:1180px;padding:24px 24px 60px}.shop-hero{text-align:center;background:none;color:#171b25;padding:35px 12px 24px;margin:0 0 8px;border-radius:0}.shop-hero .eyebrow{font-size:10px;color:#7b8492;letter-spacing:2.2px}.shop-hero h1{font-size:clamp(42px,6.5vw,78px);font-weight:800;letter-spacing:-2.8px;line-height:1.12;margin:12px auto 8px;max-width:100%;overflow-wrap:anywhere}.shop-hero p{color:#6b7280;font-size:15px;margin:6px 0 13px}.hero-links{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}.hero-links a{font-size:15px;color:#1762c2;font-weight:600}
.hero-search{display:flex;align-items:center;gap:8px;max-width:650px;margin:24px auto 10px;border:1px solid #d9dce4;background:white;padding:6px 7px 6px 12px;border-radius:14px;box-shadow:0 2px 8px #16294306}.hero-search input{flex:1;width:0;border:0;background:transparent;padding:9px 4px;font-size:16px;outline:none}.hero-search input:focus-visible{outline:0}.hero-search:focus-within{outline:2px solid #78a7e5;outline-offset:2px}.hero-search button,body[data-page=shop] dialog button:not(.quiet),body[data-page=shop] #lookup button{background:#1266d5;color:white;border-radius:9px;font-size:14px}
.quick-search{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 auto 13px}.quick-chip{background:#e8ebf0;color:#394150;font-size:12px;padding:5px 13px;border-radius:999px;font-weight:500}.quick-chip:hover{background:#dfe8f6;color:#1157aa}
.hero-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;color:#7d8592;font-size:12px}.text-button{border:0;background:none;color:#1663c6;padding:0;font:inherit;font-weight:500}.hero-meta a{color:#1663c6}
.demo-strip{display:flex;align-items:flex-start;gap:10px;padding:9px 14px;margin:0 0 14px;background:#fff;border:1px solid #e0e4ea;border-radius:10px;color:#687180;font-size:12px;line-height:1.5}.demo-strip strong{color:#394250;flex-shrink:0}
.category-strip{display:flex;gap:9px;justify-content:flex-start;overflow:auto;max-width:100%;padding:5px 2px 12px;scrollbar-width:thin;margin-bottom:9px}.category-button{background:transparent;border:1px solid transparent;color:#313946;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:94px;max-width:140px;min-height:106px;padding:11px 9px;flex:0 0 auto;font-weight:600;font-size:12px}.category-button.active{background:white;border-color:#e5e7ec;box-shadow:0 3px 12px #17233b09}.category-button:hover{background:#fff}.category-icon{display:inline-grid;place-items:center;width:45px;height:45px;border-radius:13px;flex-shrink:0;background:#e4ebf7;color:#2158a5;font-size:24px;font-weight:800;line-height:1}.category-icon.featured{background:#fff0d2;color:#c57905}.category-icon.recent{background:#dff2ed;color:#177b65}.category-icon.all{background:#e3e8f0;color:#45566c}.category-icon.gpt{background:#dceee8;color:#2a725e}.category-icon.gemini{background:#e2eaff;color:#3e62cb}.category-icon.claude{background:#f7e0d5;color:#a85029}.category-icon.grok{background:#e7e7ec;color:#222838}.category-icon.perplexity{background:#d8f2f3;color:#167d8b}.category-icon.other{background:#e8e2f5;color:#7255aa}
.category-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:122px}.category-count{color:#8991a0;font-size:11px;font-weight:400}.catalog-head{margin:6px 0 16px;align-items:center}.catalog-head h2{font-size:28px;line-height:1.2;color:#1b202b;margin:0 0 2px}.catalog-head .muted{font-size:12px}.view-switch .active{background:#1d2330;color:white}.view-switch button{font-size:12px;padding:7px 12px}
body[data-page=shop] .cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:25px}.product-card{padding:17px;border:1px solid #e3e6eb;border-radius:17px;background:#fff;min-height:225px;display:flex;gap:11px;flex-direction:column;box-shadow:0 3px 13px #10182804}.product-card>.category-icon{width:47px;height:47px}.product-copy{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}.product-copy h3{font-size:16px;line-height:1.45;margin:0;overflow-wrap:anywhere}.product-copy .product-description{font-size:12px;line-height:1.55;color:#697386;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#748094;font-size:11px;line-height:1.4}.delivery-label{color:#17785f;background:#e8f5ef;padding:2px 6px;border-radius:5px;font-weight:600}.featured-label{color:#a36000;background:#fff4dc;padding:2px 5px;border-radius:5px}.product-card .buyrow{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:4px}.product-card .price{font-size:21px;color:#1c2430;font-weight:750}.product-card button{background:#1266d5;color:white;font-size:12px;border-radius:9px;padding:7px 10px;white-space:nowrap;min-height:34px}
body[data-page=shop] .cards.list{display:flex;flex-direction:column;gap:8px}.cards.list .product-card{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:14px;min-height:0;padding:12px 16px;border-radius:12px}.cards.list .product-copy{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(180px,1.1fr) minmax(130px,.7fr) minmax(155px,auto);align-items:center;gap:14px}.cards.list .product-card h3{font-size:15px;grid-column:auto}.cards.list .product-card .product-description{grid-column:auto;line-clamp:2}.cards.list .product-card .buyrow{grid-column:auto;margin:0;padding:0}.cards.list .product-card .price{font-size:18px}.cards.list .product-card .category-icon{width:43px;height:43px}
.floating-support{position:fixed;bottom:24px;right:24px;z-index:10;background:white;color:#1762c2;border:1px solid #dfe4ed;border-radius:999px;padding:10px 16px;font-size:13px;box-shadow:0 8px 24px #1b243626}.floating-support:hover{background:#f5f9ff}
#announcementDialog{width:min(92vw,670px);padding:23px}.announcement-body{white-space:pre-wrap;overflow-wrap:anywhere;max-height:52vh;overflow:auto;line-height:1.8;font-size:15px;margin:16px 0;color:#343d4b}.notice-warning{background:#f4f6fa;border-radius:8px;padding:11px;color:#687180;font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;margin:16px 0 8px}#supportDialog{width:min(92vw,420px)}
@media(max-width:1000px){body[data-page=shop] .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.cards.list .product-copy{grid-template-columns:minmax(150px,1fr) minmax(140px,1fr) minmax(145px,auto);gap:9px}.cards.list .product-copy .product-description{display:none}}
@media(max-width:760px){body[data-page=shop] .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-header nav{gap:13px}.category-button{min-width:83px}}
@media(max-width:600px){
 body[data-page=shop] .shop-header{padding:10px 15px;min-height:56px;position:relative;gap:8px}.shop-header .brand{font-size:19px}.shop-header .brand-symbol{width:30px;height:30px;font-size:20px}.menu-toggle{display:inline-block;font-size:12px;padding:6px 12px;background:#edf0f4}.shop-header nav{display:none;width:100%;padding:10px 0 2px;border-top:1px solid #e8eaf0;justify-content:space-between;gap:12px}.shop-header nav.expanded{display:flex}.shop-header nav a,.shop-header .text-button{font-size:12px}
 .storefront{padding:15px 12px 48px}.shop-hero{padding:16px 2px 12px;margin-bottom:5px}.shop-hero .eyebrow{font-size:9px;letter-spacing:1.5px}.shop-hero h1{font-size:clamp(30px,10vw,44px);letter-spacing:-1.6px;margin:8px 0 5px}.shop-hero p{font-size:12px;margin:4px 0 10px}.hero-links{gap:15px}.hero-links a{font-size:13px}.hero-search{margin:16px auto 8px;padding:4px 5px 4px 8px;border-radius:12px}.hero-search input{font-size:13px;padding:8px 3px}.hero-search button{padding:7px 12px;font-size:12px}.quick-search{gap:6px;margin-bottom:9px}.quick-chip{font-size:11px;padding:4px 9px}.hero-meta{gap:10px;font-size:11px}.demo-strip{font-size:10.5px;padding:8px 10px;margin-bottom:7px;gap:7px}
 .category-strip{gap:7px;padding:4px 0 9px;margin-bottom:6px}.category-button{flex-direction:row;gap:5px;min-width:0;min-height:34px;padding:5px 9px;background:#fff;border:1px solid #e3e6eb;border-radius:999px;max-width:155px}.category-button.active{background:#222834;border-color:#222834;color:white;box-shadow:none}.category-button .category-icon{width:19px;height:19px;font-size:11px;border-radius:6px}.category-count{display:none}.category-name{font-size:11px;max-width:95px}
 .catalog-head{margin:4px 0 9px}.catalog-head h2{font-size:21px}.catalog-head .muted{font-size:11px}.view-switch{gap:4px}.view-switch button{font-size:11px;padding:5px 9px}
 body[data-page=shop] .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-card{padding:11px;border-radius:11px;min-height:0;gap:7px}.product-card>.category-icon{width:34px;height:34px;font-size:19px}.product-copy{gap:5px}.product-copy h3{font-size:13px;line-height:1.4}.product-copy .product-description{font-size:11px}.product-meta{font-size:10px;gap:5px}.product-card .buyrow{flex-wrap:wrap;gap:4px}.product-card .price{font-size:17px}.product-card button{font-size:11px;padding:6px 8px;min-height:31px}
 body[data-page=shop] .cards.list{gap:0;background:white;border:1px solid #e3e6eb;border-radius:12px;overflow:hidden}.cards.list .product-card{border:0;border-bottom:1px solid #edf0f4;border-radius:0;padding:11px 10px;grid-template-columns:36px minmax(0,1fr);gap:9px;box-shadow:none}.cards.list .product-card:last-child{border-bottom:0}.cards.list .product-card>.category-icon{width:34px;height:34px;border-radius:9px;font-size:18px;align-self:start;margin-top:3px}.cards.list .product-copy{display:grid;grid-template-columns:1fr auto;gap:5px 8px}.cards.list .product-copy h3{grid-column:1/-1;font-size:13px;font-weight:700}.cards.list .product-copy .product-description{display:none}.cards.list .product-meta{grid-column:1/-1}.cards.list .product-card .buyrow{grid-column:1/-1;justify-content:space-between}.cards.list .product-card .price{font-size:17px}.floating-support{bottom:14px;right:12px;padding:8px 12px;font-size:11px}.announcement-body{font-size:13px}#announcementDialog{padding:16px}.notice-warning{font-size:12px}
}

.form-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-feedback{margin:0 0 12px;padding:8px 12px;background:#eef0fc;border-radius:8px;font-size:13px}.admin-feedback:empty{display:none}#receiptMessage:empty{display:none}
@media(min-width:761px){.storefront{padding-top:12px}.shop-hero{padding:20px 12px 14px}.shop-hero h1{font-size:clamp(42px,5.5vw,68px);margin:8px auto 5px}.shop-hero p{margin:4px 0 9px}.hero-search{margin:17px auto 8px}.quick-search{margin-bottom:9px}.demo-strip{margin-bottom:10px}.category-button{min-height:88px;gap:5px}.category-strip{padding:4px 2px 9px}.catalog-head{margin:4px 0 12px}.product-card{min-height:212px}}
@media(max-width:600px){.floating-support{width:46px;height:46px;padding:0;font-size:0;border-radius:50%}.floating-support::after{content:"客服";font-size:12px;font-weight:650}.form-actions button{font-size:12px;padding:8px 11px}.storefront{padding-bottom:66px}}

/* Live store information and manual payment controls. */
#availability{padding:12px 16px;margin:4px 0 16px;border-left:3px solid #8191a8;font-size:13px}#availability p{margin:4px 0 0}#policies details{border-top:1px solid #e5e7eb;padding:12px 0}#policies summary,#purchasePolicies summary{cursor:pointer;font-weight:600;color:#46556e}#policies details p{margin:12px 0 0;color:#58677a;font-size:13px}.policy-copy{max-height:220px;overflow:auto;font-size:12px;background:#f4f6fa;padding:10px;border-radius:8px}.payment-panel{display:grid;gap:8px;background:#f8fafc;border:1px solid #e1e6ef;padding:12px;border-radius:10px;margin:10px 0}.payment-panel input:not([type=checkbox]){width:100%;max-width:540px}.payment-panel button{justify-self:start}.payment-panel .check{font-size:12px}.payment-panel strong{font-size:14px}#importDialog{width:min(720px,calc(100% - 24px));max-height:85vh;overflow:auto}#importDialog textarea{display:block;width:100%;min-height:140px;margin:6px 0 12px;resize:vertical}#importPreview{max-height:220px;overflow:auto}#importPreview p{padding:8px 0;margin:0;border-top:1px solid #e7eaf2;font-size:13px;overflow-wrap:anywhere}#importStatus{margin:12px 0;font-size:14px;overflow-wrap:anywhere}
