/* Preserve the catalogue's original ocean artwork; only task pages use panels. */
.lg-commerce-page { --commerce-ink:#172c43; --commerce-muted:#596c82; --commerce-blue:#1766df; --commerce-line:#e2e8f0; box-sizing:border-box; font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
.lg-commerce-page:not(.lg-commerce-home) { min-height:calc(100vh - var(--window-top,0px)); min-height:calc(100dvh - var(--window-top,0px)); padding:16px 16px calc(var(--commerce-footer-height,0px) + 28px + env(safe-area-inset-bottom,0px)); color:var(--commerce-ink); background:#f2f5f9; line-height:1.6; }
.lg-commerce-page:not(.lg-commerce-home) * { box-sizing:border-box; }
.lg-commerce-page ::selection { background:#c5defc; color:#10253e; }
.lg-commerce-page { scrollbar-color:#9cacc0 #edf2f7; }
.lg-commerce-page input { caret-color:var(--commerce-blue); font-size:16px; }
.lg-commerce-page :where(a,[role="button"]):focus-visible { outline:2px solid var(--commerce-blue); outline-offset:3px; }
.lg-commerce-page [role="button"] { cursor:pointer; touch-action:manipulation; }
.lg-commerce-page [role="button"]:active { filter:brightness(.95); }
.commerce-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 0; color:#1766df!important; text-decoration:underline; text-underline-offset:3px; font-size:15px; font-weight:500; }
.commerce-service-note { display:block; margin:16px 0; padding:18px; border:1px solid #d5e2f4; border-radius:12px; background:#edf4ff; color:#193e70; }
.commerce-service-note h2,.commerce-empty-copy h2 { margin:0 0 6px; padding:0; font-size:17px; line-height:1.5; font-weight:600; }
.commerce-service-note p { margin:0; color:#36577f; font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.commerce-service-note .commerce-link { margin-top:4px; }
.lg-commerce-create .address_box,.lg-commerce-create .shop_box,.lg-commerce-pay .price_box,.lg-commerce-pay .pay_box,.lg-commerce-pay .collect-box,.lg-commerce-pay .album-box,.lg-commerce-pay .pay-box,.lg-commerce-detail .content,.lg-commerce-detail .pay-box { width:100%!important; min-width:0; margin:0 0 16px!important; padding:18px!important; border:1px solid var(--commerce-line); border-radius:12px!important; background:#fff; }
.lg-commerce-create .address_box { min-height:82px; gap:12px; }
.lg-commerce-create .no_address { min-width:0; gap:12px; font-size:15px; line-height:1.7; color:var(--commerce-ink); }
.lg-commerce-create .no_address > uni-text,.lg-commerce-create .no_address > uni-view { min-width:0; overflow-wrap:anywhere; }
.lg-commerce-create .shop_box { gap:16px; align-items:flex-start; }
.lg-commerce-create .shop_img { flex:0 0 88px; width:88px!important; height:88px!important; border-radius:8px; overflow:hidden; }
.lg-commerce-create .shop_img uni-image { width:88px!important; height:88px!important; }
.lg-commerce-create .shop_info { flex:1; min-width:0; width:auto!important; padding:0!important; gap:16px; }
.lg-commerce-create .shop-name { display:block; font-size:16px!important; font-weight:600; line-height:1.6; overflow-wrap:anywhere; }
.lg-commerce-create .shop_info .price { flex-wrap:wrap; gap:12px; align-items:center; }
.lg-commerce-create .u-number-box__plus,.lg-commerce-create .u-number-box__minus { min-width:38px; min-height:44px; }
.lg-commerce-create .u-number-box__input { min-width:34px!important; min-height:44px; }
.lg-commerce-create .u-number-box input { font-size:16px!important; }
.lg-commerce-create .f_tabar,.lg-commerce-detail .f-box,.lg-commerce-pay .buy-box { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; position:fixed; z-index:20; inset:auto 0 0; width:100%!important; height:auto!important; min-height:76px; padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important; border-top:1px solid var(--commerce-line); background:#fff; }
.lg-commerce-create .f_tabar > .left { flex:1 1 160px; min-width:0; }
.lg-commerce-create .f_tabar > .left > uni-view { display:flex; flex-wrap:wrap; gap:4px; min-width:0; align-items:baseline; }
.lg-commerce-create .f_tabar .t1,.lg-commerce-create .f_tabar .t3,.lg-commerce-page .price,.lg-commerce-pay .price_box .t2,.lg-commerce-pay .price-box { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.lg-commerce-create .f_tabar .t1 { font-size:22px!important; line-height:1.4; }
.lg-commerce-create .f_tabar > .right { flex:1 0 148px; }
.lg-commerce-create .f_tabar .btn,.lg-commerce-pay.pay > .btn,.lg-commerce-pay .buy-btn,.lg-commerce-detail .btn-pay,.lg-commerce-orders .btn-pay { display:flex; align-items:center; justify-content:center; min-height:44px; height:auto!important; padding:10px 18px!important; border:0; border-radius:8px!important; background:#1766df!important; color:#fff!important; font-size:15px!important; font-weight:600; text-align:center; }
.lg-commerce-create .f_tabar .btn { width:100%!important; }
.lg-commerce-page .commerce-action-unavailable { background:#e6edf6!important; color:#465e7a!important; cursor:default; }
.lg-commerce-page .commerce-invalid-amount,.lg-commerce-page .commerce-invalid-amount * { font-size:0!important; }
.lg-commerce-page .commerce-invalid-amount::after { content:"—"; font-size:20px; line-height:1.5; color:var(--commerce-muted); }
.lg-commerce-pay .price_box { gap:6px; text-align:center; }
.lg-commerce-pay .price_box .t1 { color:var(--commerce-muted); font-size:15px!important; }
.lg-commerce-pay .price_box .t2 { min-width:0; font-size:32px!important; font-weight:600; line-height:1.35; }
.lg-commerce-pay .price_box .flex-center { max-width:100%; gap:4px; flex-wrap:wrap; }
.lg-commerce-pay .pay_box:empty { display:none; }
.lg-commerce-pay.pay > .btn { position:static!important; width:100%!important; margin:24px 0 0!important; }
.lg-commerce-pay .buy-box .price-box { flex:1 1 120px; min-width:0; font-size:24px!important; }
.lg-commerce-pay .buy-box .buy-btn { flex:1 1 150px; width:auto!important; }
.lg-commerce-pay .info { flex:1; min-width:0; }
.lg-commerce-pay .info .title { font-size:16px!important; line-height:1.6; overflow-wrap:anywhere; }
.lg-commerce-pay .album-desc { height:auto!important; min-height:48px; align-items:flex-start; gap:16px; padding:10px 0; }
.lg-commerce-pay .album-desc .t1 { flex:0 0 88px; width:auto!important; color:var(--commerce-muted); }
.lg-commerce-pay .album-desc .t2 { flex:1; min-width:0; width:auto!important; overflow-wrap:anywhere; }
.lg-commerce-orders.orderList { padding:0 16px 28px; }
.lg-commerce-orders .tabs,.lg-commerce-orders .itab-box { background:#fff!important; }
.lg-commerce-orders .itab-box { display:flex; flex-wrap:nowrap; overflow-x:auto; margin:0 -16px 16px; padding:0 10px; }
.lg-commerce-orders .order-tab { flex:1 0 auto; min-height:48px; padding:12px 14px!important; font-size:15px!important; color:var(--commerce-muted)!important; white-space:nowrap; }
.lg-commerce-orders .order-tab.active { color:var(--commerce-blue)!important; font-weight:600; }
.lg-commerce-orders .list,.lg-commerce-orders .orders-content { padding:0!important; }
.lg-commerce-orders .order_item,.lg-commerce-orders .order-box { width:100%!important; min-width:0; margin:0 0 16px!important; padding:16px!important; border:1px solid var(--commerce-line); border-radius:12px!important; background:#fff; }
.lg-commerce-orders .order-info,.lg-commerce-orders .order-c { display:flex; gap:12px; align-items:flex-start; }
.lg-commerce-orders .order-details,.lg-commerce-orders .order-c .info { flex:1; min-width:0; width:0; padding:0!important; }
.lg-commerce-orders .order-img,.lg-commerce-orders .order-c .icon-box { flex:0 0 80px; width:80px!important; }
.lg-commerce-orders .goods-title,.lg-commerce-orders .order-c .title { font-size:16px!important; line-height:1.5; overflow-wrap:anywhere; }
.lg-commerce-orders .order-no,.lg-commerce-orders .order-time,.lg-commerce-orders .time-box { font-size:13px!important; line-height:1.7; color:var(--commerce-muted)!important; overflow-wrap:anywhere; }
.lg-commerce-orders .order-num { flex:0 0 auto; min-width:20px; width:auto!important; }
.lg-commerce-orders .price-box { max-width:100%; flex-wrap:wrap; margin-top:12px; }
.lg-commerce-orders .price-box .price { display:flex; flex-wrap:wrap; gap:4px; font-size:16px!important; }
.lg-commerce-orders .f-box { display:flex; flex-wrap:wrap; gap:12px; padding-top:14px!important; }
.lg-commerce-orders .f-btn { display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
.lg-commerce-orders .btn-cancel,.lg-commerce-detail .btn-cancel { display:flex; align-items:center; justify-content:center; min-height:44px; height:auto!important; padding:9px 16px!important; border:1px solid #b9c5d4!important; border-radius:8px!important; color:#405976!important; background:#fff!important; font-size:15px!important; }
.lg-commerce-orders .btn-pay { width:auto!important; margin-left:0!important; }
.lg-commerce-orders .count-dowm { font-size:13px!important; color:var(--commerce-muted)!important; }
.lg-commerce-orders .empty-state,.lg-commerce-orders .u-empty { display:flex; align-items:center; flex-direction:column; padding:36px 20px; text-align:center; }
.lg-commerce-orders .empty-picture,.lg-commerce-orders .u-empty__wrap { max-width:150px; }
.lg-commerce-orders .empty-picture uni-image { max-width:150px; }
.lg-commerce-orders .u-empty__text { display:none; }
.commerce-empty-copy { margin-top:12px; }
.commerce-empty-copy p { margin:4px 0; font-size:15px; color:#596c82; line-height:1.7; }
.commerce-load-error,.lg-commerce-orders .load-error { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:18px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; color:#596c82; font-size:15px; line-height:1.7; }
.commerce-retry,.lg-commerce-orders .retry-button { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; color:#1766df; font-weight:600; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.lg-commerce-detail .header { display:flex; justify-content:center; height:auto!important; min-height:140px; margin:0 0 16px; padding:20px 16px; background:transparent!important; color:var(--commerce-ink); }
.lg-commerce-detail .header .t1 { margin-top:8px; font-size:22px!important; font-weight:600; color:var(--commerce-ink)!important; }
.lg-commerce-detail .header .t2 { color:var(--commerce-muted)!important; font-size:14px!important; }
.lg-commerce-detail .content .list { display:flex; align-items:flex-start; gap:14px; padding-bottom:18px; }
.lg-commerce-detail .content .list .info { flex:1; min-width:0; padding:0!important; }
.lg-commerce-detail .content .list .info .t1 { font-size:16px!important; line-height:1.6; overflow-wrap:anywhere; }
.lg-commerce-detail .list-item-box { padding:0!important; }
.lg-commerce-detail .list-item-box > .title { min-height:48px; margin-top:6px; font-size:17px!important; font-weight:600; }
.lg-commerce-detail .list_item { display:flex; align-items:flex-start; min-height:48px; height:auto!important; gap:20px; padding:12px 0!important; border-top:1px solid var(--commerce-line); }
.lg-commerce-detail .list_item > .t1 { flex:0 0 80px; font-size:14px!important; color:var(--commerce-muted)!important; }
.lg-commerce-detail .list_item > .t2,.lg-commerce-detail .list_item > .flex-start { flex:1; min-width:0; width:auto!important; flex-wrap:wrap; justify-content:flex-end; text-align:right; font-size:15px!important; color:var(--commerce-ink)!important; overflow-wrap:anywhere; }
.lg-commerce-detail .f-box { justify-content:flex-end; }
.lg-commerce-detail .f-box .btn { flex:1; min-width:140px; width:auto!important; margin:0!important; }
.lg-commerce-product { padding:0 0 calc(var(--commerce-footer-height,76px) + 24px + env(safe-area-inset-bottom,0px))!important; }
.lg-commerce-product .shop-content { padding:16px; }
.lg-commerce-product .shop_info { padding:18px!important; border:1px solid var(--commerce-line); border-radius:12px; background:#fff; }
.lg-commerce-product .shop_info .title { font-size:20px!important; line-height:1.6; overflow-wrap:anywhere; }
.lg-commerce-product .shop_info .price { display:flex; gap:4px; flex-wrap:wrap; align-items:baseline; }
.lg-commerce-product .shop_info .price .t2 { min-width:0; font-size:28px!important; font-variant-numeric:tabular-nums; }
.lg-commerce-product .u-content { margin-top:24px; padding:0!important; overflow-wrap:anywhere; color:var(--commerce-ink); background:#fff; border-radius:12px; overflow:hidden; }
.lg-commerce-product .u-content img { max-width:100%; height:auto; }
.lg-commerce-product .f-box { position:fixed; z-index:20; bottom:0; left:0; width:100%; height:auto!important; min-height:76px; padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important; background:#fff; border-top:1px solid var(--commerce-line); }
.lg-commerce-product .buy-now-btn { display:flex; align-items:center; justify-content:center; width:100%!important; min-height:48px; height:auto!important; padding:12px 18px!important; border-radius:8px!important; background:#1766df!important; color:#fff!important; font-size:16px!important; font-weight:600; }
body[data-lg-commerce-route] .goods_box { max-height:calc(100dvh - 90px); padding-bottom:calc(20px + env(safe-area-inset-bottom,0px)); }
body[data-lg-commerce-route] .goods_box .scroll { max-height:55dvh!important; }
body[data-lg-commerce-route] .contact_information_item { min-height:44px; }
body[data-lg-commerce-route] .contact_information .number { overflow-wrap:anywhere; }
.commerce-store-empty { margin:24px 16px; font-size:15px; line-height:1.7; text-align:center; color:#596c82; }
.lg-commerce-market:not(.commerce-resource-state) { padding:0!important; }
.lg-commerce-page.commerce-resource-state { display:flex; align-items:flex-start; justify-content:center; padding:28px 16px!important; }
.commerce-state-panel { display:flex; flex-direction:column; width:100%; max-width:480px; padding:24px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; }
.commerce-state-title { font-size:20px; font-weight:600; line-height:1.5; color:#172c43; }
.commerce-state-copy { display:block; margin-top:8px; color:#596c82; font-size:15px; line-height:1.75; }
.commerce-state-return { display:flex; align-items:center; justify-content:center; min-height:46px; margin-top:24px; padding:10px 18px; border-radius:8px; background:#1766df; color:#fff; font-size:16px; font-weight:600; cursor:pointer; }
.lg-commerce-consign:not(.commerce-resource-state) .card { padding:18px!important; margin-bottom:16px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; }
.lg-commerce-consign .form_btn { min-height:48px; height:auto!important; padding:12px 18px!important; border-radius:8px!important; background:#1766df!important; color:#fff!important; font-size:16px!important; }
.lg-commerce-consign .shop_box .info { min-width:0; }
.lg-commerce-consign .title,.lg-commerce-consign .desc { overflow-wrap:anywhere; }
@media (min-width:640px) {
  .lg-commerce-page:not(.lg-commerce-home) { max-width:640px; margin-inline:auto; }
  .lg-commerce-create .f_tabar,.lg-commerce-detail .f-box,.lg-commerce-pay .buy-box,.lg-commerce-product .f-box { left:50%; max-width:640px; transform:translateX(-50%); }
}
@media (prefers-reduced-motion:reduce) { .lg-commerce-page * { scroll-behavior:auto!important; } }
