common.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. /**
  2. * 智能仓储管理系统 - 通用样式
  3. * 包含:Loading、背景层、科技风弹窗、顶部栏、按钮等通用组件样式
  4. * 适配 1080x1920 竖屏显示
  5. */
  6. /* ========== 顶部标题区域 - 通用样式 ========== */
  7. .header-section {
  8. position: relative;
  9. width: 100%;
  10. /* padding: 0 30px 25px 30px; 增加顶部padding,避免showNotify遮挡 */
  11. box-sizing: border-box;
  12. z-index: 10;
  13. display: flex;
  14. align-items: center;
  15. justify-content: center;
  16. flex-shrink: 0;
  17. padding: 24px 20px !important;
  18. }
  19. .page-title {
  20. font-size: 32px;
  21. font-weight: bold;
  22. color: #ffffff;
  23. letter-spacing: 2px;
  24. margin: 0;
  25. text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
  26. }
  27. /* 顶部左侧按钮(返回/主页) */
  28. .logout-btn,
  29. .back-btn {
  30. position: absolute;
  31. left: 30px;
  32. top: 50%;
  33. transform: translateY(-50%);
  34. display: flex;
  35. align-items: center;
  36. gap: 10px;
  37. background: linear-gradient(90deg, #1a4a7a 0%, #0d3a6a 100%);
  38. border: 1px solid #2a7fff;
  39. border-radius: 10px;
  40. padding: 14px 28px;
  41. color: #fff;
  42. font-size: 18px;
  43. font-weight: 500;
  44. cursor: pointer;
  45. transition: all 0.3s;
  46. min-height: 52px;
  47. }
  48. .logout-btn:hover,
  49. .back-btn:hover {
  50. background: linear-gradient(90deg, #2a5a8a 0%, #1d4a7a 100%);
  51. box-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
  52. }
  53. .logout-btn i,
  54. .back-btn i {
  55. font-size: 20px;
  56. color: #00bfff;
  57. }
  58. /* 顶部右侧操作按钮区域 */
  59. .header-actions {
  60. position: absolute;
  61. right: 30px;
  62. top: 40px;
  63. transform: translateY(-50%);
  64. display: flex;
  65. align-items: center;
  66. gap: 20px;
  67. padding: 24px 0 !important;
  68. }
  69. @media screen and (orientation: portrait) and (min-width: 900px) {
  70. .header-actions {
  71. padding: 44px 0 24px 0 !important;
  72. }
  73. }
  74. /* 顶部操作按钮 - 通用样式 */
  75. .action-btn {
  76. display: flex;
  77. align-items: center;
  78. gap: 10px;
  79. background: linear-gradient(90deg, #1a4a7a 0%, #0d3a6a 100%);
  80. border: 1px solid #2a7fff;
  81. border-radius: 10px;
  82. padding: 14px 28px;
  83. color: #fff;
  84. font-size: 18px;
  85. font-weight: 500;
  86. cursor: pointer;
  87. transition: all 0.3s;
  88. min-height: 52px;
  89. }
  90. .action-btn:hover {
  91. background: linear-gradient(90deg, #2a5a8a 0%, #1d4a7a 100%);
  92. box-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
  93. }
  94. .action-btn i {
  95. font-size: 20px;
  96. color: #00bfff;
  97. }
  98. /* 常用领料按钮 - 紫色主题 */
  99. .regular-btn {
  100. background: linear-gradient(90deg, #5a3a7a 0%, #4a2a6a 100%);
  101. border-color: #8a5fff;
  102. }
  103. .regular-btn:hover {
  104. background: linear-gradient(90deg, #6a4a8a 0%, #5a3a7a 100%);
  105. box-shadow: 0 0 20px rgba(138, 95, 255, 0.5);
  106. }
  107. .regular-btn i {
  108. color: #d4a5ff;
  109. }
  110. /* 领料车按钮 - 青色主题 */
  111. .cart-btn {
  112. background: linear-gradient(90deg, #1a6a5a 0%, #0d5a4a 100%);
  113. border-color: #2affcf;
  114. }
  115. .cart-btn:hover {
  116. background: linear-gradient(90deg, #2a7a6a 0%, #1d6a5a 100%);
  117. box-shadow: 0 0 20px rgba(42, 255, 207, 0.5);
  118. }
  119. .cart-btn i {
  120. color: #2affcf;
  121. }
  122. /* ========== Loading 遮罩层 - 三点跳动动画 ========== */
  123. .loading-overlay {
  124. position: fixed;
  125. top: 0;
  126. left: 0;
  127. width: 100%;
  128. height: 100%;
  129. background: rgba(4, 28, 61, 0.85);
  130. display: flex;
  131. flex-direction: column;
  132. align-items: center;
  133. justify-content: center;
  134. z-index: 9899999999999;
  135. }
  136. /* 三点跳动容器 */
  137. .loading-dots {
  138. display: flex;
  139. align-items: center;
  140. justify-content: center;
  141. gap: 12px;
  142. }
  143. /* 单个圆点样式 */
  144. .loading-dots .dot {
  145. width: 16px;
  146. height: 16px;
  147. background: #fff;
  148. border-radius: 50%;
  149. animation: dotBounce 1.4s ease-in-out infinite both;
  150. }
  151. .loading-dots .dot:nth-child(1) {
  152. animation-delay: -0.32s;
  153. }
  154. .loading-dots .dot:nth-child(2) {
  155. animation-delay: -0.16s;
  156. }
  157. .loading-dots .dot:nth-child(3) {
  158. animation-delay: 0s;
  159. }
  160. /* 跳动动画 */
  161. @keyframes dotBounce {
  162. 0%, 80%, 100% {
  163. transform: scale(0.6);
  164. opacity: 0.5;
  165. }
  166. 40% {
  167. transform: scale(1);
  168. opacity: 1;
  169. }
  170. }
  171. /* Loading 文字 */
  172. .loading-text {
  173. margin-top: 20px;
  174. color: #7ec8ff;
  175. font-size: 16px;
  176. letter-spacing: 2px;
  177. }
  178. /* ========== 旧版 Loading 旋转动画(保留兼容) ========== */
  179. .loading-spinner {
  180. width: 60px;
  181. height: 60px;
  182. border: 4px solid rgba(30, 144, 255, 0.3);
  183. border-top-color: #00bfff;
  184. border-radius: 50%;
  185. animation: spin 1s linear infinite;
  186. }
  187. @keyframes spin {
  188. to {
  189. transform: rotate(360deg);
  190. }
  191. }
  192. /* ========== 深色科技风背景层 ========== */
  193. .bg-layer {
  194. position: fixed;
  195. top: 0;
  196. left: 0;
  197. width: 100%;
  198. height: 100%;
  199. background-color: #041c3d;
  200. background-size: cover;
  201. background-position: center;
  202. background-repeat: no-repeat;
  203. z-index: 0;
  204. }
  205. /* ========== 科技感弹窗样式 - 适配1080x1920竖屏 ========== */
  206. .tech-modal-overlay {
  207. position: fixed;
  208. top: 0;
  209. left: 0;
  210. width: 100%;
  211. height: 100%;
  212. background: rgba(4, 28, 61, 0.9);
  213. display: flex;
  214. align-items: center;
  215. justify-content: center;
  216. z-index: 2000;
  217. animation: fadeIn 0.3s ease;
  218. }
  219. @keyframes fadeIn {
  220. from { opacity: 0; }
  221. to { opacity: 1; }
  222. }
  223. .tech-modal {
  224. background: linear-gradient(135deg, rgba(9, 45, 82, 0.98) 0%, rgba(5, 30, 60, 0.98) 100%);
  225. border: 2px solid #2a7fff;
  226. border-radius: 20px;
  227. padding: 50px 40px;
  228. min-width: 600px;
  229. max-width: 90%;
  230. box-shadow: 0 0 60px rgba(30, 144, 255, 0.4), 0 30px 80px rgba(0, 0, 0, 0.6);
  231. animation: slideIn 0.3s ease;
  232. }
  233. @keyframes slideIn {
  234. from {
  235. opacity: 0;
  236. transform: translateY(-30px);
  237. }
  238. to {
  239. opacity: 1;
  240. transform: translateY(0);
  241. }
  242. }
  243. .tech-modal.danger-modal {
  244. border-color: #ef4444;
  245. box-shadow: 0 0 60px rgba(239, 68, 68, 0.4), 0 30px 80px rgba(0, 0, 0, 0.6);
  246. }
  247. .modal-content-row {
  248. display: flex;
  249. align-items: center;
  250. gap: 40px;
  251. margin-bottom: 40px;
  252. }
  253. .modal-text {
  254. flex: 1;
  255. }
  256. .modal-text h3 {
  257. font-size: 32px;
  258. font-weight: 700;
  259. color: #fff;
  260. margin: 0 0 20px 0;
  261. text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
  262. }
  263. .modal-text p {
  264. font-size: 22px;
  265. color: #7ec8ff;
  266. margin: 0;
  267. line-height: 1.6;
  268. }
  269. .modal-icon {
  270. flex-shrink: 0;
  271. }
  272. .icon-box {
  273. width: 100px;
  274. height: 100px;
  275. background: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
  276. border-radius: 50%;
  277. display: flex;
  278. align-items: center;
  279. justify-content: center;
  280. box-shadow: 0 0 40px rgba(30, 144, 255, 0.5);
  281. }
  282. .icon-box.danger-box {
  283. background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  284. box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
  285. }
  286. .icon-box i {
  287. font-size: 48px;
  288. color: #fff;
  289. }
  290. .modal-footer {
  291. display: flex;
  292. gap: 30px;
  293. }
  294. .modal-btn {
  295. flex: 1;
  296. padding: 22px 0;
  297. border-radius: 14px;
  298. font-size: 24px;
  299. font-weight: 600;
  300. cursor: pointer;
  301. transition: all 0.3s;
  302. border: none;
  303. min-height: 70px;
  304. }
  305. .modal-btn.cancel-btn,
  306. .modal-btn.cancel {
  307. background: rgba(13, 58, 106, 0.8);
  308. border: 2px solid #2a7fff;
  309. color: #7ec8ff;
  310. }
  311. .modal-btn.cancel-btn:hover,
  312. .modal-btn.cancel:hover {
  313. background: rgba(26, 74, 122, 0.9);
  314. box-shadow: 0 0 20px rgba(30, 144, 255, 0.4);
  315. }
  316. .modal-btn.confirm-btn,
  317. .modal-btn.confirm {
  318. background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  319. color: #fff;
  320. }
  321. .modal-btn.confirm-btn:hover,
  322. .modal-btn.confirm:hover {
  323. box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  324. transform: translateY(-3px);
  325. }
  326. .modal-btn.danger-confirm-btn,
  327. .modal-btn.confirm.danger {
  328. background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  329. color: #fff;
  330. }
  331. .modal-btn.danger-confirm-btn:hover,
  332. .modal-btn.confirm.danger:hover {
  333. box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
  334. transform: translateY(-3px);
  335. }
  336. /* ========== 通用深色输入框样式 ========== */
  337. .dark-input {
  338. width: 100%;
  339. padding: 12px 16px;
  340. background: rgba(13, 58, 106, 0.8);
  341. border: 1px solid #2a7fff;
  342. border-radius: 8px;
  343. color: #fff;
  344. font-size: 15px;
  345. outline: none;
  346. transition: all 0.3s ease;
  347. }
  348. .dark-input::placeholder {
  349. color: #7ec8ff;
  350. opacity: 0.7;
  351. }
  352. .dark-input:focus {
  353. border-color: #00bfff;
  354. box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
  355. }
  356. /* ========== Vue-Select 深色主题样式 - 全局统一 ========== */
  357. /* 适用于所有 v-select,确保下拉框为深色背景 */
  358. .v-select .vs__dropdown-toggle,
  359. .dark-select .vs__dropdown-toggle,
  360. .filter-select .vs__dropdown-toggle,
  361. .dialog-select .vs__dropdown-toggle {
  362. background: rgba(13, 58, 106, 0.9) !important;
  363. border: 1px solid #2a7fff !important;
  364. border-radius: 8px !important;
  365. padding: 8px 12px !important;
  366. min-height: 48px !important;
  367. }
  368. .v-select .vs__selected,
  369. .dark-select .vs__selected,
  370. .filter-select .vs__selected,
  371. .dialog-select .vs__selected {
  372. color: #fff !important;
  373. font-size: 16px !important;
  374. }
  375. .v-select .vs__search,
  376. .dark-select .vs__search,
  377. .filter-select .vs__search,
  378. .dialog-select .vs__search {
  379. color: #fff !important;
  380. font-size: 16px !important;
  381. }
  382. .v-select .vs__search::placeholder,
  383. .dark-select .vs__search::placeholder,
  384. .filter-select .vs__search::placeholder,
  385. .dialog-select .vs__search::placeholder {
  386. color: #7ec8ff !important;
  387. opacity: 0.7 !important;
  388. }
  389. .v-select .vs__actions svg,
  390. .dark-select .vs__actions svg,
  391. .filter-select .vs__actions svg,
  392. .dialog-select .vs__actions svg {
  393. fill: #7ec8ff !important;
  394. }
  395. .v-select .vs__clear svg,
  396. .dark-select .vs__clear svg,
  397. .filter-select .vs__clear svg,
  398. .dialog-select .vs__clear svg {
  399. fill: #7ec8ff !important;
  400. }
  401. /* 下拉菜单样式 - 深色背景 */
  402. .v-select .vs__dropdown-menu,
  403. .dark-select .vs__dropdown-menu,
  404. .filter-select .vs__dropdown-menu,
  405. .dialog-select .vs__dropdown-menu {
  406. background: rgba(9, 45, 82, 0.98) !important;
  407. border: 1px solid #2a7fff !important;
  408. border-radius: 8px !important;
  409. z-index: 99999 !important;
  410. box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
  411. }
  412. /* 针对 append-to-body 模式的下拉菜单 - 全局样式覆盖 */
  413. .vs__dropdown-menu {
  414. background: rgba(9, 45, 82, 0.98) !important;
  415. border: 1px solid #2a7fff !important;
  416. border-radius: 8px !important;
  417. z-index: 99999 !important;
  418. box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
  419. }
  420. .vs__dropdown-menu .vs__dropdown-option {
  421. color: #fff !important;
  422. padding: 14px 18px !important;
  423. font-size: 16px !important;
  424. background: transparent !important;
  425. }
  426. .vs__dropdown-menu .vs__dropdown-option:hover,
  427. .vs__dropdown-menu .vs__dropdown-option--highlight {
  428. background: rgba(30, 144, 255, 0.4) !important;
  429. color: #fff !important;
  430. }
  431. .vs__dropdown-menu .vs__no-options {
  432. color: #7ec8ff !important;
  433. padding: 14px 18px !important;
  434. font-size: 16px !important;
  435. background: transparent !important;
  436. }
  437. .v-select .vs__dropdown-option,
  438. .dark-select .vs__dropdown-option,
  439. .filter-select .vs__dropdown-option,
  440. .dialog-select .vs__dropdown-option {
  441. color: #fff !important;
  442. padding: 14px 18px !important;
  443. font-size: 16px !important;
  444. }
  445. .v-select .vs__dropdown-option--highlight,
  446. .dark-select .vs__dropdown-option--highlight,
  447. .filter-select .vs__dropdown-option--highlight,
  448. .dialog-select .vs__dropdown-option--highlight {
  449. background: rgba(30, 144, 255, 0.4) !important;
  450. }
  451. .v-select .vs__no-options,
  452. .dark-select .vs__no-options,
  453. .filter-select .vs__no-options,
  454. .dialog-select .vs__no-options {
  455. color: #7ec8ff !important;
  456. padding: 14px 18px !important;
  457. font-size: 16px !important;
  458. }
  459. /* ========== 通用按钮样式 ========== */
  460. .btn-primary {
  461. background: linear-gradient(90deg, #1e90ff 0%, #00bfff 100%);
  462. border: none;
  463. color: #fff;
  464. padding: 12px 30px;
  465. border-radius: 8px;
  466. font-size: 16px;
  467. font-weight: 600;
  468. cursor: pointer;
  469. transition: all 0.3s;
  470. }
  471. .btn-primary:hover {
  472. box-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
  473. transform: translateY(-2px);
  474. }
  475. .btn-primary:disabled {
  476. opacity: 0.5;
  477. cursor: not-allowed;
  478. transform: none;
  479. box-shadow: none;
  480. }
  481. .btn-secondary {
  482. background: rgba(13, 58, 106, 0.8);
  483. border: 1px solid #2a7fff;
  484. color: #7ec8ff;
  485. padding: 12px 30px;
  486. border-radius: 8px;
  487. font-size: 16px;
  488. font-weight: 600;
  489. cursor: pointer;
  490. transition: all 0.3s;
  491. }
  492. .btn-secondary:hover {
  493. background: rgba(26, 74, 122, 0.9);
  494. box-shadow: 0 0 15px rgba(30, 144, 255, 0.3);
  495. }
  496. .btn-danger {
  497. background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  498. border: none;
  499. color: #fff;
  500. padding: 12px 30px;
  501. border-radius: 8px;
  502. font-size: 16px;
  503. font-weight: 600;
  504. cursor: pointer;
  505. transition: all 0.3s;
  506. }
  507. .btn-danger:hover {
  508. box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  509. transform: translateY(-2px);
  510. }
  511. .btn-danger:disabled {
  512. opacity: 0.5;
  513. cursor: not-allowed;
  514. transform: none;
  515. box-shadow: none;
  516. }