/* 页面整体布局 */ .page-cbd { display: flex; flex-direction: column; gap: 12px; overflow: hidden; } /* 左右拆分的栏 */ .page-cbd .panes { display: flex; gap: 12px; flex: 1; min-height: 0; overflow: hidden; } /* 左栏 */ .page-cbd .left-pane { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; overflow: hidden; } .page-cbd .left-pane .card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; } /* 常用指令:占2/3 */ .page-cbd .command-card { flex: 2; } /* 固件升级:占1/3 */ .page-cbd .firmware-card { flex: 1; } /* 左侧内容区域 */ .page-cbd .command-content, .page-cbd .firmware-content { flex: 1; min-height: 0; overflow: auto; } /* 右栏:应用日志 */ .page-cbd .right-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; } .page-cbd .right-pane .log-card { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .page-cbd .right-pane .output { flex: 1; min-height: 0; } /* ================= 移动端适配 (≤768px) ================= */ @media (max-width: 768px) { .page-cbd .panes { flex-direction: column; flex: none; overflow: visible; } .page-cbd .left-pane, .page-cbd .right-pane { width: 100%; flex: none; overflow: visible; } .page-cbd .command-card { flex: none; min-height: 240px; } .page-cbd .firmware-card { flex: none; min-height: 180px; } .page-cbd .right-pane .log-card { min-height: 400px; } }