智慧水务管理系统 - 精河县供水工程综合管理平台

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. /* 基础样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  9. line-height: 1.6;
  10. color: #333;
  11. background-color: #f5f5f5;
  12. }
  13. .container {
  14. max-width: 1200px;
  15. margin: 0 auto;
  16. padding: 20px;
  17. }
  18. /* 头部样式 */
  19. .header {
  20. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  21. color: white;
  22. padding: 20px 0;
  23. margin-bottom: 30px;
  24. border-radius: 10px;
  25. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  26. }
  27. .header-content {
  28. display: flex;
  29. justify-content: space-between;
  30. align-items: center;
  31. padding: 0 20px;
  32. }
  33. .header h1 {
  34. font-size: 2.5rem;
  35. font-weight: 600;
  36. }
  37. .header-actions {
  38. display: flex;
  39. gap: 10px;
  40. }
  41. /* 按钮样式 */
  42. .btn {
  43. padding: 10px 20px;
  44. border: none;
  45. border-radius: 5px;
  46. font-size: 16px;
  47. cursor: pointer;
  48. transition: all 0.3s ease;
  49. font-weight: 500;
  50. }
  51. .btn-primary {
  52. background-color: #4CAF50;
  53. color: white;
  54. }
  55. .btn-primary:hover {
  56. background-color: #45a049;
  57. transform: translateY(-2px);
  58. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  59. }
  60. .btn-secondary {
  61. background-color: #2196F3;
  62. color: white;
  63. }
  64. .btn-secondary:hover {
  65. background-color: #1976D2;
  66. transform: translateY(-2px);
  67. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  68. }
  69. .btn-back {
  70. background-color: #ff7043;
  71. color: white;
  72. padding: 8px 16px;
  73. font-size: 14px;
  74. }
  75. .btn-back:hover {
  76. background-color: #f4511e;
  77. }
  78. /* 看板选择器样式 */
  79. .dashboard-selector {
  80. margin-bottom: 30px;
  81. }
  82. .dashboard-selector h2 {
  83. margin-bottom: 20px;
  84. color: #333;
  85. font-size: 1.8rem;
  86. }
  87. .dashboard-grid {
  88. display: grid;
  89. grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  90. gap: 20px;
  91. }
  92. .dashboard-card {
  93. background: white;
  94. border-radius: 10px;
  95. padding: 20px;
  96. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  97. cursor: pointer;
  98. transition: all 0.3s ease;
  99. border: 2px solid transparent;
  100. }
  101. .dashboard-card:hover {
  102. transform: translateY(-5px);
  103. box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  104. border-color: #667eea;
  105. }
  106. .dashboard-card h3 {
  107. color: #333;
  108. margin-bottom: 10px;
  109. font-size: 1.3rem;
  110. }
  111. .dashboard-card p {
  112. color: #666;
  113. margin-bottom: 15px;
  114. font-size: 0.95rem;
  115. }
  116. .dashboard-card .tags {
  117. display: flex;
  118. flex-wrap: wrap;
  119. gap: 5px;
  120. margin-bottom: 15px;
  121. }
  122. .tag {
  123. background-color: #e3f2fd;
  124. color: #1976d2;
  125. padding: 4px 8px;
  126. border-radius: 12px;
  127. font-size: 0.8rem;
  128. font-weight: 500;
  129. }
  130. .dashboard-card .charts-count {
  131. color: #667eea;
  132. font-weight: 600;
  133. font-size: 0.9rem;
  134. }
  135. /* 看板详情样式 */
  136. .dashboard-detail {
  137. background: white;
  138. border-radius: 10px;
  139. padding: 20px;
  140. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  141. }
  142. .dashboard-header {
  143. display: flex;
  144. align-items: center;
  145. margin-bottom: 30px;
  146. padding-bottom: 15px;
  147. border-bottom: 2px solid #f0f0f0;
  148. }
  149. .dashboard-header h2 {
  150. margin-left: 15px;
  151. color: #333;
  152. font-size: 1.8rem;
  153. }
  154. .charts-container {
  155. display: grid;
  156. grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  157. gap: 20px;
  158. }
  159. .chart-container {
  160. background: #fafafa;
  161. border-radius: 8px;
  162. padding: 20px;
  163. border: 1px solid #e0e0e0;
  164. }
  165. .chart-container h3 {
  166. color: #333;
  167. margin-bottom: 15px;
  168. font-size: 1.1rem;
  169. }
  170. .chart {
  171. width: 100%;
  172. height: 300px;
  173. border-radius: 5px;
  174. }
  175. /* 模态框样式 */
  176. .modal {
  177. display: none;
  178. position: fixed;
  179. z-index: 1000;
  180. left: 0;
  181. top: 0;
  182. width: 100%;
  183. height: 100%;
  184. background-color: rgba(0, 0, 0, 0.5);
  185. animation: fadeIn 0.3s ease;
  186. }
  187. .modal-content {
  188. background-color: white;
  189. margin: 5% auto;
  190. padding: 0;
  191. border-radius: 10px;
  192. width: 90%;
  193. max-width: 600px;
  194. max-height: 80vh;
  195. overflow-y: auto;
  196. animation: slideIn 0.3s ease;
  197. }
  198. .modal-header {
  199. padding: 20px;
  200. border-bottom: 1px solid #e0e0e0;
  201. display: flex;
  202. justify-content: space-between;
  203. align-items: center;
  204. }
  205. .modal-header h3 {
  206. margin: 0;
  207. color: #333;
  208. }
  209. .modal-close {
  210. background: none;
  211. border: none;
  212. font-size: 24px;
  213. cursor: pointer;
  214. color: #666;
  215. padding: 0;
  216. width: 30px;
  217. height: 30px;
  218. display: flex;
  219. align-items: center;
  220. justify-content: center;
  221. border-radius: 50%;
  222. transition: background-color 0.3s ease;
  223. }
  224. .modal-close:hover {
  225. background-color: #f0f0f0;
  226. }
  227. .modal-body {
  228. padding: 20px;
  229. }
  230. .search-input {
  231. width: 100%;
  232. padding: 12px;
  233. border: 1px solid #ddd;
  234. border-radius: 5px;
  235. font-size: 16px;
  236. margin-bottom: 20px;
  237. outline: none;
  238. }
  239. .search-input:focus {
  240. border-color: #667eea;
  241. box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
  242. }
  243. .search-results {
  244. max-height: 400px;
  245. overflow-y: auto;
  246. }
  247. .search-result-item {
  248. padding: 12px;
  249. border-bottom: 1px solid #f0f0f0;
  250. cursor: pointer;
  251. transition: background-color 0.3s ease;
  252. }
  253. .search-result-item:hover {
  254. background-color: #f8f9fa;
  255. }
  256. .search-result-item:last-child {
  257. border-bottom: none;
  258. }
  259. .search-result-item h4 {
  260. color: #333;
  261. margin-bottom: 5px;
  262. }
  263. .search-result-item p {
  264. color: #666;
  265. font-size: 0.9rem;
  266. margin: 0;
  267. }
  268. .search-result-item .type {
  269. display: inline-block;
  270. padding: 2px 8px;
  271. border-radius: 12px;
  272. font-size: 0.8rem;
  273. font-weight: 500;
  274. margin-top: 5px;
  275. }
  276. .search-result-item .type.chart {
  277. background-color: #e3f2fd;
  278. color: #1976d2;
  279. }
  280. .search-result-item .type.dashboard {
  281. background-color: #f3e5f5;
  282. color: #7b1fa2;
  283. }
  284. /* 动画效果 */
  285. @keyframes fadeIn {
  286. from { opacity: 0; }
  287. to { opacity: 1; }
  288. }
  289. @keyframes slideIn {
  290. from { transform: translateY(-50px); opacity: 0; }
  291. to { transform: translateY(0); opacity: 1; }
  292. }
  293. /* 响应式设计 */
  294. @media (max-width: 768px) {
  295. .container {
  296. padding: 10px;
  297. }
  298. .header-content {
  299. flex-direction: column;
  300. gap: 15px;
  301. }
  302. .header h1 {
  303. font-size: 2rem;
  304. }
  305. .dashboard-grid {
  306. grid-template-columns: 1fr;
  307. }
  308. .charts-container {
  309. grid-template-columns: 1fr;
  310. }
  311. .modal-content {
  312. width: 95%;
  313. margin: 10% auto;
  314. }
  315. }
  316. /* 加载状态 */
  317. .loading {
  318. text-align: center;
  319. padding: 40px;
  320. color: #666;
  321. }
  322. .loading::after {
  323. content: '';
  324. display: inline-block;
  325. width: 20px;
  326. height: 20px;
  327. border: 2px solid #ddd;
  328. border-top: 2px solid #667eea;
  329. border-radius: 50%;
  330. animation: spin 1s linear infinite;
  331. margin-left: 10px;
  332. }
  333. @keyframes spin {
  334. 0% { transform: rotate(0deg); }
  335. 100% { transform: rotate(360deg); }
  336. }
  337. /* 错误状态 */
  338. .error {
  339. background-color: #ffebee;
  340. color: #c62828;
  341. padding: 12px;
  342. border-radius: 5px;
  343. margin: 10px 0;
  344. border-left: 4px solid #c62828;
  345. }
  346. /* 空状态 */
  347. .empty {
  348. text-align: center;
  349. padding: 40px;
  350. color: #666;
  351. }