page9.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. /* 页面整体布局 */
  2. .page-cbd {
  3. display: flex;
  4. flex-direction: column;
  5. gap: 12px;
  6. overflow: hidden;
  7. }
  8. /* 左右拆分的栏 */
  9. .page-cbd .panes {
  10. display: flex;
  11. gap: 12px;
  12. flex: 1;
  13. min-height: 0;
  14. overflow: hidden;
  15. }
  16. /* 左栏 */
  17. .page-cbd .left-pane {
  18. flex: 1;
  19. display: flex;
  20. flex-direction: column;
  21. gap: 12px;
  22. min-width: 0;
  23. min-height: 0;
  24. overflow: hidden;
  25. }
  26. .page-cbd .left-pane .card {
  27. display: flex;
  28. flex-direction: column;
  29. min-height: 0;
  30. overflow: hidden;
  31. }
  32. /* 运行控制:占2/3 */
  33. .page-cbd .command-card {
  34. flex: 2;
  35. }
  36. /* 固件升级:占1/3 */
  37. .page-cbd .firmware-card {
  38. flex: 1;
  39. }
  40. /* 左侧内容区域 */
  41. .page-cbd .command-content,
  42. .page-cbd .firmware-content {
  43. flex: 1;
  44. min-height: 0;
  45. overflow: auto;
  46. }
  47. /* 运行控制内容 */
  48. .page-cbd .command-content {
  49. padding: 0;
  50. }
  51. /* 通信状态 */
  52. .page-cbd .comm-status {
  53. display: grid;
  54. grid-template-columns: repeat(2, minmax(0, 1fr));
  55. gap: 10px;
  56. margin-bottom: 12px;
  57. }
  58. .page-cbd .comm-item {
  59. display: flex;
  60. flex-direction: column;
  61. justify-content: center;
  62. gap: 8px;
  63. min-width: 0;
  64. padding: 12px 14px;
  65. border: 1px solid #263650;
  66. border-left: 3px solid #3b82f6;
  67. border-radius: 6px;
  68. background: #151f33;
  69. }
  70. .page-cbd .comm-item span {
  71. color: #94a3b8;
  72. font-size: 12px;
  73. font-weight: 500;
  74. }
  75. .page-cbd .comm-item strong {
  76. color: #60a5fa;
  77. font-size: 16px;
  78. font-weight: 600;
  79. font-variant-numeric: tabular-nums;
  80. overflow-wrap: anywhere;
  81. }
  82. /* 控制分组 */
  83. .page-cbd .command-group {
  84. padding: 14px;
  85. margin-bottom: 12px;
  86. border: 1px solid #263650;
  87. border-radius: 6px;
  88. background: #151f33;
  89. }
  90. .page-cbd .command-group:last-child {
  91. margin-bottom: 0;
  92. }
  93. /* 分组标题 */
  94. .page-cbd .command-group h3 {
  95. margin: 0 0 12px;
  96. padding-left: 9px;
  97. border-left: 3px solid #3b82f6;
  98. color: #dbeafe;
  99. font-size: 14px;
  100. font-weight: 600;
  101. line-height: 18px;
  102. }
  103. /* 指令按钮布局 */
  104. .page-cbd .command-buttons {
  105. display: grid;
  106. grid-template-columns: repeat(2, minmax(0, 1fr));
  107. gap: 8px;
  108. }
  109. /* 指令按钮 */
  110. .page-cbd .cmd-btn {
  111. position: relative;
  112. width: 100%;
  113. min-width: 0;
  114. min-height: 38px;
  115. padding: 6px 8px 6px 18px;
  116. border: 1px solid #34445f;
  117. border-radius: 5px;
  118. background: #1c2940;
  119. color: #cbd5e1;
  120. font-size: 13px;
  121. cursor: pointer;
  122. white-space: nowrap;
  123. transition: background 0.15s, border-color 0.15s, color 0.15s;
  124. }
  125. .page-cbd .cmd-btn::before {
  126. content: "";
  127. position: absolute;
  128. left: 8px;
  129. top: 50%;
  130. width: 5px;
  131. height: 5px;
  132. border-radius: 50%;
  133. transform: translateY(-50%);
  134. }
  135. .page-cbd .cmd-btn-1::before {
  136. background: #36b99a;
  137. }
  138. .page-cbd .cmd-btn-0::before {
  139. background: #df826e;
  140. }
  141. .page-cbd .cmd-btn:hover {
  142. border-color: #52749c;
  143. background: #243750;
  144. color: #e2e8f0;
  145. }
  146. .page-cbd .cmd-btn:active {
  147. background: #293e58;
  148. color: #fff;
  149. }
  150. .page-cbd .cmd-btn:disabled {
  151. opacity: 0.5;
  152. cursor: not-allowed;
  153. }
  154. /* 固件升级内容 */
  155. .page-cbd .firmware-content {
  156. padding: 12px;
  157. }
  158. /* 右栏:应用日志 */
  159. .page-cbd .right-pane {
  160. flex: 1;
  161. display: flex;
  162. flex-direction: column;
  163. min-width: 0;
  164. min-height: 0;
  165. }
  166. .page-cbd .right-pane .log-card {
  167. flex: 1;
  168. display: flex;
  169. flex-direction: column;
  170. min-height: 0;
  171. overflow: hidden;
  172. }
  173. .page-cbd .right-pane .output {
  174. flex: 1;
  175. min-height: 0;
  176. }
  177. /* ================= 移动端适配 (≤768px) ================= */
  178. @media (max-width: 768px) {
  179. .page-cbd .panes {
  180. flex-direction: column;
  181. flex: none;
  182. overflow: visible;
  183. }
  184. .page-cbd .left-pane,
  185. .page-cbd .right-pane {
  186. width: 100%;
  187. flex: none;
  188. overflow: visible;
  189. }
  190. .page-cbd .command-card {
  191. flex: none;
  192. min-height: 240px;
  193. }
  194. .page-cbd .firmware-card {
  195. flex: none;
  196. min-height: 180px;
  197. }
  198. .page-cbd .right-pane .log-card {
  199. min-height: 400px;
  200. }
  201. }
  202. /* ================= 小屏适配 (≤480px) ================= */
  203. @media (max-width: 480px) {
  204. .page-cbd .command-buttons {
  205. grid-template-columns: 1fr;
  206. }
  207. .page-cbd .comm-status {
  208. grid-template-columns: 1fr;
  209. }
  210. .page-cbd .log-actions {
  211. gap: 4px;
  212. }
  213. }