:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f3f5f7;color:#17202a}.shell{width:min(780px,100%);margin:0 auto;padding:18px 14px 28px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px 18px}.eyebrow{margin:0 0 4px;color:#667085;font-size:13px}h1,h2,p{margin:0}h1{font-size:28px;font-weight:750}h2{font-size:17px;font-weight:700}.sales-code{min-width:92px;padding:8px 10px;border:1px solid #d0d7de;border-radius:8px;background:#fff;text-align:center;font-weight:700;color:#1d4ed8}.panel{margin-bottom:14px;padding:16px;border:1px solid #d9e0e8;border-radius:8px;background:#fff}.section-head,.total-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-head span{color:#667085;font-size:13px}.product-list{display:grid;gap:10px;margin-top:14px}.empty{padding:28px 0;color:#667085;text-align:center}.product{display:grid;grid-template-columns:88px 1fr 96px;gap:12px;padding:12px;border:1px solid #e3e8ef;border-radius:8px;background:#fafbfc}.product-image{width:88px;aspect-ratio:1;border-radius:8px;object-fit:cover;background:#edf2f7}.product-image-empty{display:grid;place-items:center;color:#64748b;font-size:24px;font-weight:750}.product-name{font-weight:700}.product-meta{margin-top:6px;color:#667085;font-size:13px}.price{margin-top:10px;font-weight:700}.quantity{display:grid;align-content:center;gap:6px}.quantity span,label span{color:#475467;font-size:13px;font-weight:600}input,textarea{width:100%;min-height:42px;border:1px solid #cfd8e3;border-radius:8px;padding:9px 10px;font:inherit;background:#fff}textarea{resize:vertical}.total-row{margin-top:14px;padding-top:14px;border-top:1px solid #edf0f4}.total-row strong{font-size:22px}.form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}label{display:grid;gap:6px}.wide{grid-column:1 / -1}button{grid-column:1 / -1;min-height:46px;border:0;border-radius:8px;background:#1d4ed8;color:#fff;font:inherit;font-weight:700}button:disabled{background:#98a2b3}.toast{position:fixed;left:16px;right:16px;bottom:18px;max-width:520px;margin:0 auto;padding:12px 14px;border-radius:8px;background:#17202a;color:#fff;text-align:center}@media (max-width: 620px){h1{font-size:24px}.form,.product{grid-template-columns:1fr}}:root{font-family:Inter,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#172033;background:#eef2f5}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}.page-shell{min-height:100vh;background:#eef2f5;padding:14px 14px 28px}.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;max-width:720px;margin:0 auto;padding:12px 2px 10px}.eyebrow,.subtle{margin:0 0 4px;color:#687589;font-size:13px}h1,h2{margin:0;letter-spacing:0}h1{font-size:24px}h2{font-size:19px}.hero-total{min-width:118px;text-align:right}.hero-total span{display:block;color:#687589;font-size:13px}.hero-total strong{color:#0f766e;font-size:22px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:720px;margin:0 auto 10px}.steps button{border:1px solid #d6dde7;background:#fff;color:#687589;border-radius:8px;height:42px;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:700}.steps span{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#eef2f5;color:#687589;font-size:12px}.steps button.active{border-color:#0f766e;color:#0f766e}.steps button.active span,.steps button.done span{background:#0f766e;color:#fff}.content{max-width:720px;margin:0 auto}.content.with-cart{padding-bottom:88px}.panel,.success-panel,.state-box{background:#fff;border:1px solid #dce3ec;border-radius:8px;padding:14px;box-shadow:0 8px 24px #1720330f}.state-box{text-align:center;color:#687589;padding:42px 16px}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.section-head>span{color:#0f766e;font-weight:800;white-space:nowrap}.product-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;position:sticky;top:0;z-index:3;background:#fff;padding-bottom:10px}.search-input,.form-grid input,.form-grid textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;background:#fff}.toggle-chip{min-width:92px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-weight:800}.toggle-chip.active{border-color:#0f766e;color:#0f766e;background:#ecfdf5}.product-list,.confirm-list,.summary-block{display:grid;gap:8px}.product-row{display:grid;grid-template-columns:64px minmax(0,1fr) 128px;gap:10px;align-items:center;padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.product-row.selected{border-color:#99f6e4;background:#f0fdfa}.product-image{width:64px;height:64px;border-radius:8px;object-fit:cover;background:#f4f7fa}.product-fallback{display:flex;align-items:center;justify-content:center;color:#0f766e;font-size:24px;font-weight:800}.product-main{min-width:0}.product-name{font-weight:800;line-height:1.32;overflow-wrap:anywhere}.product-code{margin-top:3px;color:#687589;font-size:12px;overflow-wrap:anywhere}.price-line{display:flex;align-items:baseline;gap:6px;margin-top:7px}.price-line strong{color:#b45309}.price-line del,.confirm-line del,.cart-line del,.detail-price del{color:#94a3b8;font-size:12px;font-weight:700;text-decoration-thickness:1px}.price-line span{color:#687589;font-size:12px}.detail-link{margin-top:6px;border:0;background:transparent;color:#0f766e;padding:0;font-size:12px;font-weight:800}.qty-control{display:grid;grid-template-columns:34px minmax(42px,1fr) 34px;align-items:center;height:36px;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden}.qty-control button{grid-column:auto;min-height:0;height:36px;border:0;background:#f8fafc;color:#0f172a;font-size:18px;font-weight:900;cursor:pointer;touch-action:manipulation}.qty-control input{grid-column:auto;width:100%;min-height:0;height:36px;border:0;border-left:1px solid #cbd5e1;border-right:1px solid #cbd5e1;text-align:center;padding:0;background:#fff}.empty-list{padding:28px 0;color:#687589;text-align:center}.action-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid #e2e8f0}.primary,.ghost{min-width:112px;height:44px;border-radius:8px;border:1px solid transparent;font-weight:800}.primary{background:#0f766e;color:#fff}.primary:disabled{opacity:.55}.ghost{background:#fff;color:#334155;border-color:#cbd5e1}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid label{display:grid;gap:6px}.form-grid .wide,.form-actions{grid-column:1 / -1}.form-grid span{color:#4b5563;font-weight:700;font-size:14px}.form-grid textarea{resize:vertical}.summary-block{padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;margin-bottom:12px}.summary-row,.confirm-line,.pay-total{display:flex;justify-content:space-between;gap:14px}.summary-row span,.confirm-line span{color:#687589}.summary-row strong{text-align:right}.confirm-line{padding:10px 0;border-bottom:1px solid #e2e8f0}.confirm-line strong,.confirm-line span{display:block}.confirm-line del,.cart-line del{display:inline-block;margin-right:6px}.confirm-line em{font-style:normal;font-weight:800;white-space:nowrap}.pay-total{align-items:stretch;margin-top:14px;padding:14px;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px}.pay-total div{display:grid;gap:4px}.pay-total div:last-child{text-align:right}.pay-total span{color:#047857;font-weight:700}.pay-total strong{color:#0f766e;font-size:22px}.cart-bar{position:fixed;left:50%;bottom:14px;transform:translate(-50%);width:min(692px,calc(100vw - 28px));display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #99f6e4;border-radius:8px;background:#fffffff5;box-shadow:0 12px 30px #0f172a29;z-index:10}.cart-bar span{display:block;color:#687589;font-size:13px}.cart-bar strong{color:#0f766e;font-size:22px}.cart-summary{border:0;background:transparent;padding:0;text-align:left}.success-panel{text-align:center}.success-mark{width:48px;height:48px;margin:0 auto 10px;border-radius:50%;background:#0f766e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800}.success-panel p{color:#687589}.success-panel strong{color:#0f766e;font-size:24px}.success-action{margin-top:16px}.success-summary{margin-top:16px;display:grid;gap:8px;text-align:left;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.sheet-backdrop,.modal-backdrop,.image-viewer{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a75;z-index:30}.bottom-sheet,.detail-modal{position:fixed;left:50%;transform:translate(-50%);width:min(720px,100vw);background:#fff;box-shadow:0 -16px 42px #0f172a3d}.bottom-sheet{bottom:0;border-radius:8px 8px 0 0;padding:16px;max-height:78vh;overflow:auto}.detail-modal{top:50%;transform:translate(-50%,-50%);border-radius:8px;padding:16px;max-height:min(92vh,820px);overflow:auto}.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.icon-button{width:36px;height:36px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font-size:24px;line-height:1}.cart-lines{display:grid;gap:8px}.cart-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e2e8f0}.cart-line strong,.cart-line span{display:block}.cart-line span{color:#687589}.cart-line-actions{display:grid;justify-items:end;gap:6px}.cart-line-actions em{font-style:normal;font-weight:800}.cart-line-actions button{border:0;background:transparent;color:#b91c1c;font-weight:800}.sheet-total{display:flex;justify-content:space-between;align-items:baseline;padding:14px 0}.sheet-total span{color:#687589}.sheet-total strong{color:#0f766e;font-size:22px}.sheet-primary{width:100%}.image-gallery{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;align-items:center}.gallery-nav{height:42px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font-size:26px}.gallery-image-button{border:0;padding:0;background:#f8fafc;border-radius:8px;overflow:hidden;aspect-ratio:4 / 3}.gallery-image-button img{width:100%;height:100%;object-fit:contain;display:block}.gallery-fallback{height:100%;display:grid;place-items:center;color:#0f766e;font-size:44px;font-weight:900}.thumbs{display:flex;gap:8px;overflow-x:auto;margin-top:10px;padding-bottom:4px}.thumbs button{flex:0 0 54px;height:54px;border:2px solid transparent;border-radius:8px;overflow:hidden;padding:0;background:#f8fafc}.thumbs button.active{border-color:#0f766e}.thumbs img{width:100%;height:100%;object-fit:cover}.detail-price{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.detail-price div{padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.detail-price span,.detail-grid span{display:block;color:#687589;font-size:12px}.detail-price strong{display:inline-block;color:#0f766e;font-size:20px}.detail-price del{display:block;margin-top:3px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.detail-grid div{min-width:0;padding:10px;border:1px solid #e2e8f0;border-radius:8px}.detail-grid strong{display:block;margin-top:3px;overflow-wrap:anywhere}.description-text{margin:12px 0 0;padding:12px;color:#334155;line-height:1.55;background:#f8fafc;border-radius:8px}.detail-actions{position:sticky;bottom:-16px;display:grid;grid-template-columns:140px 1fr;gap:10px;margin:14px -16px -16px;padding:12px 16px;background:#fffffff5;border-top:1px solid #e2e8f0}.image-viewer{display:grid;place-items:center;padding:20px;background:#020617e0;z-index:50}.image-viewer img{max-width:100%;max-height:100%;object-fit:contain}.viewer-close{position:fixed;top:18px;right:18px}.toast{position:fixed;left:50%;bottom:92px;transform:translate(-50%);max-width:calc(100vw - 32px);background:#0f172aeb;color:#fff;border-radius:8px;padding:10px 14px;box-shadow:0 10px 30px #0f172a40;z-index:20}@media (max-width: 560px){.page-shell{padding:10px}.hero{align-items:flex-start}h1{font-size:22px}.hero-total strong{font-size:19px}.steps button{font-size:14px}.product-row{grid-template-columns:54px minmax(0,1fr);grid-template-areas:"image main" "image qty"}.product-image{grid-area:image;width:54px;height:54px}.product-main{grid-area:main}.qty-control{grid-area:qty;width:130px}.bottom-sheet,.detail-modal{width:100vw}.detail-modal{inset:auto 0 0 0;top:auto;left:0;transform:none;border-radius:8px 8px 0 0;max-height:92vh}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-price,.detail-actions,.form-grid{grid-template-columns:1fr}.primary,.ghost{min-width:104px}}
