styles.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. /* 全域樣式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  9. background-color: #f5f7fa;
  10. color: #333;
  11. line-height: 1.6;
  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;
  23. border-radius: 10px;
  24. margin-bottom: 30px;
  25. display: flex;
  26. justify-content: space-between;
  27. align-items: center;
  28. box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  29. }
  30. .header h1 {
  31. font-size: 2rem;
  32. font-weight: 600;
  33. }
  34. .header h1 i {
  35. margin-right: 10px;
  36. }
  37. .header-actions {
  38. display: flex;
  39. gap: 10px;
  40. }
  41. /* 按鈕樣式 */
  42. .btn {
  43. padding: 10px 20px;
  44. border: none;
  45. border-radius: 6px;
  46. cursor: pointer;
  47. font-size: 14px;
  48. font-weight: 500;
  49. transition: all 0.3s ease;
  50. display: inline-flex;
  51. align-items: center;
  52. gap: 8px;
  53. text-decoration: none;
  54. }
  55. .btn:hover {
  56. transform: translateY(-2px);
  57. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  58. }
  59. .btn-primary {
  60. background: #4CAF50;
  61. color: white;
  62. }
  63. .btn-primary:hover {
  64. background: #45a049;
  65. }
  66. .btn-secondary {
  67. background: #2196F3;
  68. color: white;
  69. }
  70. .btn-secondary:hover {
  71. background: #1976D2;
  72. }
  73. .btn-outline {
  74. background: transparent;
  75. color: #667eea;
  76. border: 2px solid #667eea;
  77. }
  78. .btn-outline:hover {
  79. background: #667eea;
  80. color: white;
  81. }
  82. .btn-sm {
  83. padding: 8px 16px;
  84. font-size: 12px;
  85. }
  86. .btn-danger {
  87. background: #f44336;
  88. color: white;
  89. }
  90. .btn-danger:hover {
  91. background: #da190b;
  92. }
  93. .btn-success {
  94. background: #4CAF50;
  95. color: white;
  96. }
  97. .btn-success:hover {
  98. background: #45a049;
  99. }
  100. /* 統計卡片 */
  101. .stats-grid {
  102. display: grid;
  103. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  104. gap: 20px;
  105. margin-bottom: 30px;
  106. }
  107. .stat-card {
  108. background: white;
  109. padding: 25px;
  110. border-radius: 10px;
  111. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  112. display: flex;
  113. align-items: center;
  114. gap: 20px;
  115. transition: transform 0.3s ease;
  116. }
  117. .stat-card:hover {
  118. transform: translateY(-5px);
  119. }
  120. .stat-icon {
  121. width: 60px;
  122. height: 60px;
  123. border-radius: 50%;
  124. display: flex;
  125. align-items: center;
  126. justify-content: center;
  127. font-size: 24px;
  128. color: white;
  129. }
  130. .stat-icon.open {
  131. background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  132. }
  133. .stat-icon.progress {
  134. background: linear-gradient(135deg, #feca57, #ff9ff3);
  135. }
  136. .stat-icon.closed {
  137. background: linear-gradient(135deg, #48dbfb, #0abde3);
  138. }
  139. .stat-icon.total {
  140. background: linear-gradient(135deg, #a55eea, #8c7ae6);
  141. }
  142. .stat-content h3 {
  143. font-size: 2rem;
  144. font-weight: 700;
  145. margin-bottom: 5px;
  146. }
  147. .stat-content p {
  148. color: #666;
  149. font-size: 14px;
  150. }
  151. /* 篩選器 */
  152. .filters {
  153. background: white;
  154. padding: 20px;
  155. border-radius: 10px;
  156. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  157. margin-bottom: 30px;
  158. display: flex;
  159. flex-wrap: wrap;
  160. gap: 20px;
  161. align-items: center;
  162. }
  163. .filter-group {
  164. display: flex;
  165. align-items: center;
  166. gap: 10px;
  167. }
  168. .filter-group label {
  169. font-weight: 500;
  170. color: #555;
  171. white-space: nowrap;
  172. }
  173. .filter-group select {
  174. padding: 8px 12px;
  175. border: 2px solid #e1e5e9;
  176. border-radius: 6px;
  177. font-size: 14px;
  178. min-width: 150px;
  179. }
  180. .filter-group select:focus {
  181. outline: none;
  182. border-color: #667eea;
  183. }
  184. /* 問題容器 */
  185. .issues-container {
  186. background: white;
  187. border-radius: 10px;
  188. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  189. overflow: hidden;
  190. }
  191. .issues-header {
  192. padding: 20px;
  193. border-bottom: 1px solid #e1e5e9;
  194. display: flex;
  195. justify-content: space-between;
  196. align-items: center;
  197. }
  198. .issues-header h2 {
  199. color: #333;
  200. font-size: 1.5rem;
  201. }
  202. /* ============================= */
  203. /* 網格檢視樣式 (issues-grid) */
  204. /* ============================= */
  205. .issues-grid {
  206. display: grid;
  207. grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  208. gap: 20px;
  209. padding: 20px;
  210. background-color: #fafbfc;
  211. }
  212. .issues-grid .issue-item {
  213. border: 1px solid #e1e5e9;
  214. border-radius: 10px;
  215. background: white;
  216. padding: 20px;
  217. box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  218. transition: all 0.3s ease;
  219. }
  220. .issues-grid .issue-item:hover {
  221. transform: translateY(-4px);
  222. box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  223. background-color: #f9faff;
  224. }
  225. .issues-grid .issue-header {
  226. flex-direction: column;
  227. align-items: flex-start;
  228. gap: 8px;
  229. }
  230. .issues-grid .issue-title {
  231. font-size: 1rem;
  232. font-weight: 600;
  233. margin-bottom: 4px;
  234. }
  235. .issues-grid .issue-meta {
  236. font-size: 13px;
  237. color: #777;
  238. gap: 8px;
  239. }
  240. .issues-grid .issue-description {
  241. font-size: 13px;
  242. color: #555;
  243. margin-top: 10px;
  244. line-height: 1.4;
  245. }
  246. .view-toggle {
  247. display: flex;
  248. gap: 5px;
  249. }
  250. .view-toggle .btn.active {
  251. background: #667eea;
  252. color: white;
  253. }
  254. /* 問題列表 */
  255. .issues-list {
  256. min-height: 400px;
  257. }
  258. .issue-item {
  259. padding: 20px;
  260. border-bottom: 1px solid #f0f0f0;
  261. transition: background-color 0.3s ease;
  262. cursor: pointer;
  263. }
  264. .issue-item:hover {
  265. background-color: #f8f9fa;
  266. }
  267. .issue-item:last-child {
  268. border-bottom: none;
  269. }
  270. .issue-header {
  271. display: flex;
  272. justify-content: space-between;
  273. align-items: flex-start;
  274. margin-bottom: 10px;
  275. }
  276. .issue-title {
  277. font-size: 1.1rem;
  278. font-weight: 600;
  279. color: #333;
  280. margin-bottom: 5px;
  281. }
  282. .issue-meta {
  283. display: flex;
  284. flex-wrap: wrap;
  285. gap: 15px;
  286. font-size: 14px;
  287. color: #666;
  288. }
  289. .issue-meta span {
  290. display: flex;
  291. align-items: center;
  292. gap: 5px;
  293. }
  294. .issue-description {
  295. color: #666;
  296. margin-top: 10px;
  297. line-height: 1.5;
  298. }
  299. .issue-actions {
  300. margin-top: 15px;
  301. display: flex;
  302. gap: 10px;
  303. }
  304. /* 狀態標籤 */
  305. .status-badge {
  306. padding: 4px 12px;
  307. border-radius: 20px;
  308. font-size: 12px;
  309. font-weight: 500;
  310. text-transform: uppercase;
  311. }
  312. .status-open {
  313. background: #ffe6e6;
  314. color: #d63031;
  315. }
  316. .status-in_progress {
  317. background: #fff3cd;
  318. color: #856404;
  319. }
  320. .status-closed {
  321. background: #d4edda;
  322. color: #155724;
  323. }
  324. /* 優先級標籤 */
  325. .priority-badge {
  326. padding: 4px 8px;
  327. border-radius: 4px;
  328. font-size: 12px;
  329. font-weight: 500;
  330. }
  331. .priority-high {
  332. background: #ffebee;
  333. color: #c62828;
  334. }
  335. .priority-medium {
  336. background: #fff3e0;
  337. color: #ef6c00;
  338. }
  339. .priority-low {
  340. background: #e8f5e8;
  341. color: #2e7d32;
  342. }
  343. /* 模態框 */
  344. .modal {
  345. display: none;
  346. position: fixed;
  347. z-index: 1000;
  348. left: 0;
  349. top: 0;
  350. width: 100%;
  351. height: 100%;
  352. background-color: rgba(0,0,0,0.5);
  353. animation: fadeIn 0.3s ease;
  354. }
  355. .modal.show {
  356. display: flex;
  357. align-items: center;
  358. justify-content: center;
  359. }
  360. .modal-content {
  361. background: white;
  362. border-radius: 10px;
  363. box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  364. max-width: 600px;
  365. width: 90%;
  366. max-height: 90vh;
  367. overflow-y: auto;
  368. animation: slideIn 0.3s ease;
  369. }
  370. .modal-content.large {
  371. max-width: 800px;
  372. }
  373. .modal-header {
  374. padding: 20px;
  375. border-bottom: 1px solid #e1e5e9;
  376. display: flex;
  377. justify-content: space-between;
  378. align-items: center;
  379. }
  380. .modal-header h3 {
  381. margin: 0;
  382. color: #333;
  383. }
  384. .close {
  385. font-size: 24px;
  386. font-weight: bold;
  387. cursor: pointer;
  388. color: #999;
  389. transition: color 0.3s ease;
  390. }
  391. .close:hover {
  392. color: #333;
  393. }
  394. .modal-body {
  395. padding: 20px;
  396. }
  397. .modal-footer {
  398. padding: 20px;
  399. border-top: 1px solid #e1e5e9;
  400. display: flex;
  401. justify-content: flex-end;
  402. gap: 10px;
  403. }
  404. /* 表單樣式 */
  405. .form-group {
  406. margin-bottom: 20px;
  407. }
  408. .form-row {
  409. display: flex;
  410. gap: 20px;
  411. }
  412. .form-row .form-group {
  413. flex: 1;
  414. }
  415. .form-group label {
  416. display: block;
  417. margin-bottom: 8px;
  418. font-weight: 500;
  419. color: #555;
  420. }
  421. .form-group input,
  422. .form-group select,
  423. .form-group textarea {
  424. width: 100%;
  425. padding: 10px 12px;
  426. border: 2px solid #e1e5e9;
  427. border-radius: 6px;
  428. font-size: 14px;
  429. transition: border-color 0.3s ease;
  430. }
  431. .form-group input:focus,
  432. .form-group select:focus,
  433. .form-group textarea:focus {
  434. outline: none;
  435. border-color: #667eea;
  436. }
  437. .form-group textarea {
  438. resize: vertical;
  439. min-height: 80px;
  440. }
  441. /* 分頁 */
  442. .pagination {
  443. display: flex;
  444. justify-content: center;
  445. align-items: center;
  446. gap: 10px;
  447. margin-top: 30px;
  448. padding: 20px;
  449. }
  450. .pagination button {
  451. padding: 8px 12px;
  452. border: 1px solid #ddd;
  453. background: white;
  454. color: #333;
  455. border-radius: 4px;
  456. cursor: pointer;
  457. transition: all 0.3s ease;
  458. }
  459. .pagination button:hover:not(:disabled) {
  460. background: #667eea;
  461. color: white;
  462. border-color: #667eea;
  463. }
  464. .pagination button:disabled {
  465. opacity: 0.5;
  466. cursor: not-allowed;
  467. }
  468. .pagination .active {
  469. background: #667eea;
  470. color: white;
  471. border-color: #667eea;
  472. }
  473. /* 載入指示器 */
  474. .loading {
  475. text-align: center;
  476. padding: 40px;
  477. color: #666;
  478. font-size: 16px;
  479. }
  480. .loading i {
  481. margin-right: 10px;
  482. font-size: 20px;
  483. }
  484. /* 動畫 */
  485. @keyframes fadeIn {
  486. from { opacity: 0; }
  487. to { opacity: 1; }
  488. }
  489. @keyframes slideIn {
  490. from {
  491. opacity: 0;
  492. transform: translateY(-50px);
  493. }
  494. to {
  495. opacity: 1;
  496. transform: translateY(0);
  497. }
  498. }
  499. /* 響應式設計 */
  500. @media (max-width: 768px) {
  501. .container {
  502. padding: 10px;
  503. }
  504. .header {
  505. flex-direction: column;
  506. gap: 15px;
  507. text-align: center;
  508. }
  509. .header-actions {
  510. flex-direction: column;
  511. width: 100%;
  512. }
  513. .stats-grid {
  514. grid-template-columns: 1fr;
  515. }
  516. .filters {
  517. flex-direction: column;
  518. align-items: stretch;
  519. }
  520. .filter-group {
  521. flex-direction: column;
  522. align-items: stretch;
  523. }
  524. .filter-group select {
  525. min-width: auto;
  526. }
  527. .form-row {
  528. flex-direction: column;
  529. }
  530. .modal-content {
  531. width: 95%;
  532. margin: 10px;
  533. }
  534. .issue-header {
  535. flex-direction: column;
  536. align-items: flex-start;
  537. gap: 10px;
  538. }
  539. .issue-meta {
  540. flex-direction: column;
  541. gap: 5px;
  542. }
  543. }
  544. /* 空狀態 */
  545. .empty-state {
  546. text-align: center;
  547. padding: 60px 20px;
  548. color: #666;
  549. }
  550. .empty-state i {
  551. font-size: 48px;
  552. margin-bottom: 20px;
  553. color: #ccc;
  554. }
  555. .empty-state h3 {
  556. margin-bottom: 10px;
  557. color: #999;
  558. }
  559. /* 成功/錯誤訊息 */
  560. .alert {
  561. padding: 12px 16px;
  562. border-radius: 6px;
  563. margin-bottom: 20px;
  564. font-weight: 500;
  565. }
  566. .alert-success {
  567. background: #d4edda;
  568. color: #155724;
  569. border: 1px solid #c3e6cb;
  570. }
  571. .alert-error {
  572. background: #f8d7da;
  573. color: #721c24;
  574. border: 1px solid #f5c6cb;
  575. }
  576. .alert-info {
  577. background: #d1ecf1;
  578. color: #0c5460;
  579. border: 1px solid #bee5eb;
  580. }