/* 仅处理现役业务结构与公共外壳之间的接口，不复制工具栏、三栏或设备绘制规则。 */
.bundle-business{width:100%;min-width:0}
.wb-area-admin .wb-stage-body{padding:0;background:var(--bg)}
.bundle-context-tools{display:flex;gap:8px;align-items:center}
.bundle-rule-source{font-size:12px;margin:18px 0}
.bundle-rule-source a{color:#0d7839;text-decoration:underline}
.bundle-workbench .sandbox-label{font-size:11px;color:#f7dba0}
.bundle-workbench .wb-toolbar .sandbox-exit{color:#fff1c4;border-color:#a28a59}
.bundle-workbench .bpds-heading{align-items:center}
.bundle-workbench .bpds-filter{justify-content:space-between}
.bundle-workbench .bpds-filter .tabs{border:0}
.bundle-workbench .bpds-table .activity-table{table-layout:fixed}
.bundle-workbench .bpds-form-section{padding:24px 30px}
.bundle-workbench .guide-nav .guide-toggle{display:flex}
@media(max-width:550px){
 .bundle-business.phone{height:calc(100dvh - 88px);min-height:0;max-height:none}
 .bundle-context-tools{flex-wrap:wrap}
 .bundle-workbench .wb-toolbar:has(.sandbox-exit){grid-template-columns:repeat(4,minmax(0,1fr))}
 .bundle-workbench .wb-toolbar .sandbox-exit{font-size:10px}
}

/* 后台业务侧栏保留原任务导航；响应宽度与现役侧栏一致。 */
.wb-mode-product.wb-area-admin .workspace,.wb-mode-product.wb-area-admin .admin-top{margin-left:224px}
@media(max-width:1000px){.wb-mode-product.wb-area-admin .workspace,.wb-mode-product.wb-area-admin .admin-top{margin-left:190px}}
@media(max-width:760px){.wb-mode-product.wb-area-admin .workspace,.wb-mode-product.wb-area-admin .admin-top{margin-left:64px}.wb-mode-product.wb-area-admin .workspace{padding:20px 16px}}

/* v1.2.2 窄屏用户端只设定了打开位置，补齐现役业务无示例样式时的浮层契约。 */
@media(max-width:1149px){
 .bundle-workbench.wb-mode-dev.wb-area-user .wb-nav,.bundle-workbench.wb-mode-dev.wb-area-user .wb-notes{display:none;position:fixed;bottom:0;z-index:42;width:min(350px,calc(100vw - 30px));max-height:none;overflow:auto;box-shadow:0 15px 48px #18362725}
 .bundle-workbench.wb-mode-dev.wb-area-user.wb-nav-open .wb-nav{display:flex;left:0}
 .bundle-workbench.wb-mode-dev.wb-area-user.wb-notes-open .wb-notes{display:flex;right:0}
 .bundle-workbench.wb-mode-dev.wb-area-user .wb-close{display:block}
}

/* 保留现役桌面产品视图的商城介绍；开发模式仍按公共三栏布局。 */
.wb-mode-product .wb-live-view:has(>.preview-guide){gap:65px}
.bundle-workbench.wb-mode-product:has(.sandbox-exit) .wb-stage-header{display:flex}
@media(max-width:550px){.bundle-business.phone .phone-status{display:none}}

/* 接入两行工具栏后仍保留真实产品底栏与首行加购可达。 */
@media(max-width:760px){.bundle-workbench .preview-guide{display:none!important}.bundle-workbench.wb-mode-product .wb-live-view:has(>.preview-guide){gap:0}}
@media(max-width:550px){.bundle-workbench .bundle-business.phone{height:calc(100dvh - 88px);min-height:0;max-height:none}.bundle-workbench.wb-mode-product:has(.sandbox-exit) .bundle-business.phone{height:calc(100dvh - 136px)}}
@media(max-width:550px) and (max-height:850px){.bundle-workbench .phone[data-page="shop"] .product-picture{height:106px}}
.bundle-workbench.wb-mode-product:has(.sandbox-exit) .wb-stage-header{display:flex!important}
.bundle-workbench.wb-mode-dev.wb-area-admin .admin-editor-page .editor-footer{margin-left:-24px;margin-right:-24px}

@media(max-width:550px) and (max-height:850px){
 .bundle-workbench .phone[data-page="shop"] .product-info{padding:8px 10px}
 .bundle-workbench .phone[data-page="shop"] .product-info h3{min-height:0}
 .bundle-workbench .phone[data-page="shop"] .product-info p{margin-bottom:3px}
}


/* 2026-10-24 用户截图确认：后台业务菜单常驻，桌面页面导航在左侧占位展开。 */
@media(min-width:1150px){
 .bundle-workbench.wb-mode-dev.wb-area-admin .bundle-business{display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:52px minmax(0,1fr);align-items:start}
 .bundle-workbench.wb-mode-dev.wb-area-admin .sidebar{display:flex;position:sticky;top:0;left:auto;bottom:auto;grid-column:1;grid-row:1 / 3;width:224px;height:calc(100dvh - 76px)}
 .bundle-workbench.wb-mode-dev.wb-area-admin .admin-top{grid-column:2;grid-row:1;margin-left:0;width:100%}
 .bundle-workbench.wb-mode-dev.wb-area-admin .workspace{grid-column:2;grid-row:2;margin-left:0;width:100%;min-width:0}
 .bundle-workbench.wb-mode-dev.wb-area-admin.wb-nav-open .wb-layout{grid-template-columns:320px minmax(0,1fr)}
 .bundle-workbench.wb-mode-dev.wb-area-admin.wb-nav-open .wb-nav{display:flex;position:relative;top:0;bottom:auto;left:auto;width:320px;height:calc(100dvh - 44px);grid-column:1;grid-row:1;box-shadow:none}
 .bundle-workbench.wb-mode-dev.wb-area-admin.wb-nav-open .wb-stage{grid-column:2;grid-row:1}
 .bundle-workbench.wb-mode-dev.wb-area-admin.wb-nav-open:not(.wb-notes-open) .wb-scrim{display:none}
}


/* 阶段验收修正：说明区保持可阅读字号，覆盖旧项目11px规则文字。公共工作台文件不动。 */
.bundle-workbench .guide-notes .guide-page-points{font-size:15px;line-height:1.7;color:#365241}
.bundle-workbench .guide-notes .guide-rule p{font-size:14px;line-height:1.7;color:#40594b}
.bundle-workbench .guide-notes .guide-rule h3{font-size:15px;line-height:1.5}
.bundle-workbench .guide-notes .guide-rule h3 small{font-size:12px}
.bundle-workbench .guide-notes .guide-rule-list>summary{font-size:14px;line-height:1.6}
.bundle-workbench .guide-notes header h2{font-size:20px}
.bundle-workbench .guide-nav .guide-links button{font-size:14px;line-height:1.55}
.bundle-workbench .guide-nav .guide-section h3{font-size:14px}
.bundle-workbench .guide-nav .guide-toggle,.bundle-workbench .guide-nav .guide-tool{font-size:13px;line-height:1.6}
