/* Homepage floors and the browser-local content editor. */
.home-floor{margin:30px 0 38px}.home-floor .section-head{margin:0 0 20px;gap:20px}.home-floor .section-head h2{font-size:22px;letter-spacing:0}.home-floor .section-head p{margin-bottom:0}.home-floor .section-head>.text-button{white-space:nowrap;font-size:13px}.home-recommendations{padding:26px 24px 28px;border:1px solid #f3e6da;border-radius:10px;background:linear-gradient(130deg,#fff2e6,#fffaf5 60%,#fdfdfc)}.home-recommendations .section-head h2:before{content:'';display:inline-block;background:var(--orange);width:4px;height:21px;vertical-align:-3px;border-radius:2px;margin-right:11px}.home-recommendations .product-card{border-color:#efe8e1}.home-service-floor .workflow{margin:0}.home-empty{grid-column:1/-1;text-align:center;background:#fff;padding:40px 15px;border:1px solid var(--line);border-radius:8px}.home-empty p{font-size:14px;color:var(--muted);margin-bottom:10px}.home-category-layout .home-promotions.home-no-account{grid-template-columns:1fr}.home-banner{height:100%;min-width:0}.home-banner-linked{cursor:pointer}
/* Banner 切换控件：右下角轻量圆点，不压图片主体（1.83.39） */
.home-banner .home-banner-controls{left:auto;right:20px;bottom:14px;gap:7px;padding:0;background:none;box-shadow:none;border-radius:0}
.home-banner .home-banner-controls .hb-arrow{width:22px;min-width:22px;height:22px;padding:0;border-radius:50%;background:#ffffffd9;color:#5b6469;font-size:14px;line-height:1;box-shadow:0 1px 6px #24313c26;opacity:.9}
.home-banner .home-banner-controls .hb-arrow:hover{background:#fff;color:#e85d00;opacity:1}
.home-banner .home-banner-controls .hb-dots{display:flex;align-items:center;gap:5px}
.home-banner .home-banner-controls .hb-dot{width:6px;min-width:6px;height:6px;margin:0;padding:0;border-radius:50%;background:#ffffffb3;box-shadow:0 0 0 1px #24313c1f}
.home-banner .home-banner-controls .hb-dot.active{width:16px;border-radius:3px;background:#ff7a1a;box-shadow:0 0 0 1px #ff7a1a66}
@media(max-width:760px){.home-banner .home-banner-controls{right:14px;bottom:10px}}.home-banner .hero-copy{padding-bottom:52px}.home-banner .hero-copy h1,.home-banner .hero-copy p{overflow-wrap:anywhere}.home-banner .hero-copy .eyebrow{overflow-wrap:anywhere}.home-banner-controls{display:flex;align-items:center;gap:8px;position:absolute;z-index:3;bottom:14px;left:24px;padding:2px 7px;border-radius:18px;background:#ffffffd9;box-shadow:0 1px 8px #24313c12}.home-banner-controls>button{height:26px;min-width:24px;font-size:20px;line-height:1;padding:0;color:#626b70}.home-banner-controls>.home-banner-dot{width:8px;min-width:8px;height:8px;border-radius:50%;background:#d1d4d3;margin:0 2px}.home-banner-controls>.home-banner-dot.active{background:var(--orange);width:20px;border-radius:5px}.home-banner-controls>span{font-size:10px;color:#8a9194;margin:0 5px}.home-banner-image-only:after{display:none}.home-banner-link{position:absolute;inset:0;z-index:1}.home-banner-image-only{min-height:330px}.home-banner-image-only>img{object-fit:cover}.home-preview-bar{position:sticky;top:0;z-index:25;display:flex;align-items:center;gap:15px;background:#fff7ec;border:1px solid #e9c9a6;border-radius:6px;padding:12px 16px;margin-bottom:18px;box-shadow:0 3px 14px #24313c0b;font-size:13px}.home-preview-bar>span{margin-right:auto;color:#8f5d31}.home-preview-bar>button{font-size:12px}.home-preview-bar>.primary{padding:8px 14px}
.home-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 22px}.home-editor-toolbar b{font-size:16px;color:#485761}.home-editor-toolbar p{font-size:12px;color:#98a1a8;margin:8px 0 0}.home-editor-toolbar>div:last-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.home-editor-toolbar button{font-size:12px;padding:10px 15px}.home-editor-toolbar #home-save-state{font-size:11px;color:#af7b46;margin-right:4px}.home-editor-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.home-screen-list{padding:16px 10px;position:sticky;top:16px}.home-screen-list .mg-panel-title{padding:0 7px;gap:6px}.home-screen-list .mg-panel-title h2{font-size:13px}.home-screen-list .note{font-size:11px;margin:15px 7px}.home-screen-list>.text-button{font-size:11px;margin:0 7px}.home-screen{display:flex;gap:10px;align-items:center;padding:13px 9px;text-align:left;width:100%;border-radius:6px;min-width:0}.home-screen.selected{background:#fff1e5;color:#ca6924}.home-screen:hover{background:#fcf5ef}.home-screen-number{font-size:12px;color:#9ba3a9;flex:none}.home-screen.selected .home-screen-number{color:#d67b37}.home-screen>span:last-child{min-width:0}.home-screen b{font-size:12px;font-weight:500;display:block;line-height:1.6;overflow-wrap:anywhere}.home-screen small{display:block;font-size:10px;color:#9aa3a9;line-height:1.6;margin-top:4px}.home-screen-row{display:flex;align-items:center;min-width:0}.home-screen-row>.home-screen{flex:1}.home-order-buttons{display:flex;gap:1px;flex-shrink:0}.home-order-buttons>button{padding:4px 6px;font-size:14px;color:#83929d}.home-order-buttons>button:hover{background:#f0f3f5;border-radius:3px}.home-screen-row .home-order-buttons{flex-direction:column}.home-add-floor{display:block;width:calc(100% - 14px);margin:17px 7px 0;padding:11px 8px;font-size:11px;border-style:dashed;background:#fffaf6}.home-edit-panel{padding:22px;min-width:0}.home-edit-panel .mg-panel-title button{font-size:11px;padding:8px 11px}.home-edit-panel>.note{font-size:11px}.home-edit-panel .mg-field{font-size:12px}.home-edit-panel .mg-field input,.home-edit-panel .mg-field textarea,.home-edit-panel .mg-field select{font-size:13px;width:100%;max-width:100%}.home-edit-panel .mg-field textarea{resize:vertical;min-height:80px;line-height:1.6}.home-edit-panel hr{border:0;border-top:1px solid #eceff1;margin:26px 0}.home-banner-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:12px;margin-bottom:12px}.home-banner-tabs>button{display:flex;align-items:center;gap:8px;border:1px solid #e6e9ec;border-radius:5px;padding:7px;text-align:left;flex:0 0 150px;min-width:0}.home-banner-tabs>button.selected{border-color:#efa872;background:#fff9f3}.home-banner-tabs img{width:47px;height:33px;object-fit:cover;border-radius:3px;flex-shrink:0}.home-banner-tabs span{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.home-banner-tabs small{display:block;font-size:9px;color:#999;margin-top:4px}.home-banner-preview{border:1px dashed #dce1e5;border-radius:7px;overflow:hidden;background:#fafbfc}.home-banner-preview>img{display:block;width:100%;height:190px;object-fit:cover;border-bottom:1px solid #e6e9ec}.home-banner-preview>div{padding:15px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.home-upload-button{display:inline-block;font-size:12px;line-height:1.5;padding:8px 13px;background:#fff;border:1px solid #e0a57a;border-radius:5px;color:#bd6e33;cursor:pointer;position:relative}.home-upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.home-upload-button:focus-within{outline:2px solid #1269ad;outline-offset:3px}.home-banner-preview small,.home-banner-preview [role=status],.home-banner-preview [role=alert]{font-size:10px;color:#8e9aa3;line-height:1.7}.home-banner-preview [role=alert]{color:#bc3b2b}.home-check{font-size:12px;color:#65727b;display:flex;align-items:center;gap:8px;margin:0 0 18px;line-height:1.6}.home-check input,.home-product-picker input{accent-color:var(--orange);width:15px;height:15px;flex-shrink:0}.home-inline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:20px 0}.home-inline-actions .home-check{margin:0}.home-inline-actions>.danger-link{margin-left:auto;font-size:11px}.home-edit-panel .danger-link{color:#ae6558}.home-product-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-product-picker>label{display:flex;align-items:center;gap:9px;border:1px solid #e5e9ec;border-radius:6px;padding:10px;cursor:pointer;min-width:0}.home-product-picker>label:has(input:checked){border-color:#edaf80;background:#fffaf5}.home-product-picker img{width:44px;height:44px;object-fit:contain;background:#fff;border-radius:4px}.home-product-picker span{min-width:0}.home-product-picker b{font-size:12px;font-weight:500;display:block;line-height:1.5;overflow-wrap:anywhere}.home-product-picker small{font-size:10px;color:#99a1a7;display:block;margin-top:5px;line-height:1.5}.home-step-editor{padding:16px;border:1px solid #e4e9ed;border-radius:6px;margin:20px 0}.home-step-editor legend{font-size:12px;padding:0 8px;color:#9b6e4c}
@media(max-width:1180px){.home-editor-grid{grid-template-columns:185px minmax(0,1fr)}.home-editor-toolbar{align-items:flex-start}.home-editor-toolbar #home-save-state{flex-basis:100%;text-align:right}.home-product-picker{grid-template-columns:1fr}.home-edit-panel{padding:18px}.home-screen-list{padding:14px 7px}}
@media(max-width:900px){.home-editor-grid{grid-template-columns:1fr}.home-screen-list{position:static}.home-screen-list .home-screen-row{display:inline-flex;width:49%;vertical-align:top}.home-screen-list>.home-screen{max-width:280px}.home-banner-preview>img{height:180px}.home-edit-panel .mg-form-grid{grid-template-columns:1fr}.home-product-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.home-floor{margin:26px 0}.home-floor .section-head{align-items:flex-start;gap:10px;flex-wrap:wrap}.home-floor .section-head h2{font-size:20px}.home-floor .section-head p{font-size:12px}.home-floor .section-head>.text-button{font-size:11px}.home-recommendations{padding:20px 13px}.home-recommendations .product-grid{gap:10px}.home-recommendations .product-card{padding:13px}.home-preview-bar{font-size:11px;padding:10px;gap:10px;flex-wrap:wrap}.home-preview-bar>span{flex-basis:100%}.home-preview-bar>button{font-size:11px}.home-editor-toolbar{flex-direction:column;gap:15px}.home-editor-toolbar>div:last-child{width:100%;justify-content:flex-start}.home-editor-toolbar #home-save-state{flex-basis:100%;text-align:left}.home-editor-toolbar button{font-size:11px;padding:10px 13px}.home-screen-list .home-screen-row{display:flex;width:100%}.home-screen-list>.home-screen{max-width:none}.home-edit-panel{padding:16px}.home-edit-panel .mg-field input,.home-edit-panel .mg-field textarea,.home-edit-panel .mg-field select{font-size:16px}.home-product-picker{grid-template-columns:1fr}.home-banner-preview>img{height:140px}.home-banner-preview>div{padding:13px}.home-banner-tabs>button{flex-basis:140px}.home-inline-actions{align-items:flex-start;gap:12px}.home-inline-actions>.danger-link{margin-left:0}.home-banner-image-only{min-height:270px}.home-banner-controls{left:18px}.home-step-editor{padding:13px}}

/* 万级商品选择：已选区 + 分页搜索，避免一次渲染全部商品 */
.hp-picker{display:flex;flex-direction:column;gap:16px}
.hp-selected-box,.hp-library{border:1px solid #e6eaed;border-radius:8px;padding:12px;background:#fff}
.hp-selected-box{border-color:#f3d7c5;background:#fffdfb}
.hp-selected-box>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.hp-selected-box h3{margin:0;font-size:13px;color:#4c565d}
.hp-selected-box header span{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:#c85718}
.hp-selected-box>div{display:block;max-height:292px;overflow:auto;padding-right:4px;scrollbar-width:thin}
.hp-selected-row{display:grid;grid-template-columns:24px 36px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 0;border-top:1px dashed #f0e3d9}
.hp-selected-row:first-child{border-top:0}
.hp-selected-no{width:22px;height:22px;border-radius:50%;background:#fff0e4;color:#c85718;display:grid;place-items:center;font:11px ui-monospace,SFMono-Regular,Menlo,monospace}
.hp-selected-row img{width:36px;height:36px;object-fit:contain;background:#fff;border:1px solid #eef1f3;border-radius:4px}
.hp-selected-main{min-width:0}
.hp-selected-main b{display:block;font-size:13px;color:#354049;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-selected-main small{display:block;margin-top:2px;color:#8a959d;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-selected-actions{display:flex;align-items:center;gap:4px}
.hp-selected-actions button{height:28px;min-width:28px;border:1px solid #e0e6ea;background:#fff;border-radius:4px;color:#6b777f;font-size:11px;cursor:pointer}
.hp-selected-actions button:disabled{opacity:.35;cursor:not-allowed}
.hp-selected-actions .hp-remove{color:#c05048;border-color:#eed1cd;padding:0 8px}
.hp-search{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.hp-search>span{font-size:12px;color:#5c686f;white-space:nowrap}
.hp-search input{flex:1;height:36px;border:1px solid #dfe5e9;border-radius:6px;padding:0 11px;font-size:13px;color:#354049;background:#fbfcfd}
.hp-search input:focus{outline:2px solid #f6c6a3;border-color:#ef8a3d;background:#fff}
.hp-status{margin:0 0 9px;font-size:11px;color:#8a959d}
.hp-results.home-product-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hp-result{display:flex;align-items:center;gap:9px;min-width:0;border:1px solid #edf0f2;border-radius:6px;padding:8px 9px;background:#fff}
.hp-result img{width:38px;height:38px;object-fit:contain;border-radius:4px;background:#fafbfc}
.hp-result>div{min-width:0;flex:1}
.hp-result b{display:block;font-size:12px;color:#3c474e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-result small{display:block;color:#8e999f;font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-add{flex-shrink:0;height:28px;padding:0 10px;border:1px solid #f4c6a5;border-radius:4px;background:#fff7ef;color:#c85718;font-size:11px;cursor:pointer}
.hp-add:hover{background:#ffeadb}
.hp-add:disabled{opacity:.45;cursor:not-allowed}
.hp-pager{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:10px;font-size:11px;color:#7d8991}
.hp-pager button{height:28px;padding:0 11px;border:1px solid #dfe5e9;background:#fff;border-radius:4px;color:#5d6971;font-size:11px;cursor:pointer}
.hp-pager button:disabled{opacity:.4;cursor:not-allowed}
.hp-empty{margin:0;padding:14px;text-align:center;color:#97a2a9;font-size:11px;background:#fafbfc;border-radius:5px}
@media(max-width:900px){.hp-results.home-product-picker{grid-template-columns:1fr}}
@media(max-width:760px){.hp-selected-row{grid-template-columns:22px 34px minmax(0,1fr);gap:8px}.hp-selected-actions{grid-column:2/4;justify-content:flex-end}.hp-search{align-items:stretch;flex-direction:column;gap:5px}.hp-result{gap:7px}.hp-add{padding:0 8px}}
