| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689 |
- /* 全域樣式 */
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- background-color: #f5f7fa;
- color: #333;
- line-height: 1.6;
- }
- .container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 20px;
- }
- /* 標題列 */
- .header {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- padding: 20px;
- border-radius: 10px;
- margin-bottom: 30px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- box-shadow: 0 4px 15px rgba(0,0,0,0.1);
- }
- .header h1 {
- font-size: 2rem;
- font-weight: 600;
- }
- .header h1 i {
- margin-right: 10px;
- }
- .header-actions {
- display: flex;
- gap: 10px;
- }
- /* 按鈕樣式 */
- .btn {
- padding: 10px 20px;
- border: none;
- border-radius: 6px;
- cursor: pointer;
- font-size: 14px;
- font-weight: 500;
- transition: all 0.3s ease;
- display: inline-flex;
- align-items: center;
- gap: 8px;
- text-decoration: none;
- }
- .btn:hover {
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
- }
- .btn-primary {
- background: #4CAF50;
- color: white;
- }
- .btn-primary:hover {
- background: #45a049;
- }
- .btn-secondary {
- background: #2196F3;
- color: white;
- }
- .btn-secondary:hover {
- background: #1976D2;
- }
- .btn-outline {
- background: transparent;
- color: #667eea;
- border: 2px solid #667eea;
- }
- .btn-outline:hover {
- background: #667eea;
- color: white;
- }
- .btn-sm {
- padding: 8px 16px;
- font-size: 12px;
- }
- .btn-danger {
- background: #f44336;
- color: white;
- }
- .btn-danger:hover {
- background: #da190b;
- }
- .btn-success {
- background: #4CAF50;
- color: white;
- }
- .btn-success:hover {
- background: #45a049;
- }
- /* 統計卡片 */
- .stats-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
- gap: 20px;
- margin-bottom: 30px;
- }
- .stat-card {
- background: white;
- padding: 25px;
- border-radius: 10px;
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
- display: flex;
- align-items: center;
- gap: 20px;
- transition: transform 0.3s ease;
- }
- .stat-card:hover {
- transform: translateY(-5px);
- }
- .stat-icon {
- width: 60px;
- height: 60px;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 24px;
- color: white;
- }
- .stat-icon.open {
- background: linear-gradient(135deg, #ff6b6b, #ee5a24);
- }
- .stat-icon.progress {
- background: linear-gradient(135deg, #feca57, #ff9ff3);
- }
- .stat-icon.closed {
- background: linear-gradient(135deg, #48dbfb, #0abde3);
- }
- .stat-icon.total {
- background: linear-gradient(135deg, #a55eea, #8c7ae6);
- }
- .stat-content h3 {
- font-size: 2rem;
- font-weight: 700;
- margin-bottom: 5px;
- }
- .stat-content p {
- color: #666;
- font-size: 14px;
- }
- /* 篩選器 */
- .filters {
- background: white;
- padding: 20px;
- border-radius: 10px;
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
- margin-bottom: 30px;
- display: flex;
- flex-wrap: wrap;
- gap: 20px;
- align-items: center;
- }
- .filter-group {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .filter-group label {
- font-weight: 500;
- color: #555;
- white-space: nowrap;
- }
- .filter-group select {
- padding: 8px 12px;
- border: 2px solid #e1e5e9;
- border-radius: 6px;
- font-size: 14px;
- min-width: 150px;
- }
- .filter-group select:focus {
- outline: none;
- border-color: #667eea;
- }
- /* 問題容器 */
- .issues-container {
- background: white;
- border-radius: 10px;
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
- overflow: hidden;
- }
- .issues-header {
- padding: 20px;
- border-bottom: 1px solid #e1e5e9;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .issues-header h2 {
- color: #333;
- font-size: 1.5rem;
- }
- /* ============================= */
- /* 網格檢視樣式 (issues-grid) */
- /* ============================= */
- .issues-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
- gap: 20px;
- padding: 20px;
- background-color: #fafbfc;
- }
- .issues-grid .issue-item {
- border: 1px solid #e1e5e9;
- border-radius: 10px;
- background: white;
- padding: 20px;
- box-shadow: 0 2px 6px rgba(0,0,0,0.05);
- transition: all 0.3s ease;
- }
- .issues-grid .issue-item:hover {
- transform: translateY(-4px);
- box-shadow: 0 4px 10px rgba(0,0,0,0.1);
- background-color: #f9faff;
- }
- .issues-grid .issue-header {
- flex-direction: column;
- align-items: flex-start;
- gap: 8px;
- }
- .issues-grid .issue-title {
- font-size: 1rem;
- font-weight: 600;
- margin-bottom: 4px;
- }
- .issues-grid .issue-meta {
- font-size: 13px;
- color: #777;
- gap: 8px;
- }
- .issues-grid .issue-description {
- font-size: 13px;
- color: #555;
- margin-top: 10px;
- line-height: 1.4;
- }
- .view-toggle {
- display: flex;
- gap: 5px;
- }
- .view-toggle .btn.active {
- background: #667eea;
- color: white;
- }
- /* 問題列表 */
- .issues-list {
- min-height: 400px;
- }
- .issue-item {
- padding: 20px;
- border-bottom: 1px solid #f0f0f0;
- transition: background-color 0.3s ease;
- cursor: pointer;
- }
- .issue-item:hover {
- background-color: #f8f9fa;
- }
- .issue-item:last-child {
- border-bottom: none;
- }
- .issue-header {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: 10px;
- }
- .issue-title {
- font-size: 1.1rem;
- font-weight: 600;
- color: #333;
- margin-bottom: 5px;
- }
- .issue-meta {
- display: flex;
- flex-wrap: wrap;
- gap: 15px;
- font-size: 14px;
- color: #666;
- }
- .issue-meta span {
- display: flex;
- align-items: center;
- gap: 5px;
- }
- .issue-description {
- color: #666;
- margin-top: 10px;
- line-height: 1.5;
- }
- .issue-actions {
- margin-top: 15px;
- display: flex;
- gap: 10px;
- }
- /* 狀態標籤 */
- .status-badge {
- padding: 4px 12px;
- border-radius: 20px;
- font-size: 12px;
- font-weight: 500;
- text-transform: uppercase;
- }
- .status-open {
- background: #ffe6e6;
- color: #d63031;
- }
- .status-in_progress {
- background: #fff3cd;
- color: #856404;
- }
- .status-closed {
- background: #d4edda;
- color: #155724;
- }
- /* 優先級標籤 */
- .priority-badge {
- padding: 4px 8px;
- border-radius: 4px;
- font-size: 12px;
- font-weight: 500;
- }
- .priority-high {
- background: #ffebee;
- color: #c62828;
- }
- .priority-medium {
- background: #fff3e0;
- color: #ef6c00;
- }
- .priority-low {
- background: #e8f5e8;
- color: #2e7d32;
- }
- /* 模態框 */
- .modal {
- display: none;
- position: fixed;
- z-index: 1000;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0,0,0,0.5);
- animation: fadeIn 0.3s ease;
- }
- .modal.show {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .modal-content {
- background: white;
- border-radius: 10px;
- box-shadow: 0 10px 30px rgba(0,0,0,0.3);
- max-width: 600px;
- width: 90%;
- max-height: 90vh;
- overflow-y: auto;
- animation: slideIn 0.3s ease;
- }
- .modal-content.large {
- max-width: 800px;
- }
- .modal-header {
- padding: 20px;
- border-bottom: 1px solid #e1e5e9;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .modal-header h3 {
- margin: 0;
- color: #333;
- }
- .close {
- font-size: 24px;
- font-weight: bold;
- cursor: pointer;
- color: #999;
- transition: color 0.3s ease;
- }
- .close:hover {
- color: #333;
- }
- .modal-body {
- padding: 20px;
- }
- .modal-footer {
- padding: 20px;
- border-top: 1px solid #e1e5e9;
- display: flex;
- justify-content: flex-end;
- gap: 10px;
- }
- /* 表單樣式 */
- .form-group {
- margin-bottom: 20px;
- }
- .form-row {
- display: flex;
- gap: 20px;
- }
- .form-row .form-group {
- flex: 1;
- }
- .form-group label {
- display: block;
- margin-bottom: 8px;
- font-weight: 500;
- color: #555;
- }
- .form-group input,
- .form-group select,
- .form-group textarea {
- width: 100%;
- padding: 10px 12px;
- border: 2px solid #e1e5e9;
- border-radius: 6px;
- font-size: 14px;
- transition: border-color 0.3s ease;
- }
- .form-group input:focus,
- .form-group select:focus,
- .form-group textarea:focus {
- outline: none;
- border-color: #667eea;
- }
- .form-group textarea {
- resize: vertical;
- min-height: 80px;
- }
- /* 分頁 */
- .pagination {
- display: flex;
- justify-content: center;
- align-items: center;
- gap: 10px;
- margin-top: 30px;
- padding: 20px;
- }
- .pagination button {
- padding: 8px 12px;
- border: 1px solid #ddd;
- background: white;
- color: #333;
- border-radius: 4px;
- cursor: pointer;
- transition: all 0.3s ease;
- }
- .pagination button:hover:not(:disabled) {
- background: #667eea;
- color: white;
- border-color: #667eea;
- }
- .pagination button:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- .pagination .active {
- background: #667eea;
- color: white;
- border-color: #667eea;
- }
- /* 載入指示器 */
- .loading {
- text-align: center;
- padding: 40px;
- color: #666;
- font-size: 16px;
- }
- .loading i {
- margin-right: 10px;
- font-size: 20px;
- }
- /* 動畫 */
- @keyframes fadeIn {
- from { opacity: 0; }
- to { opacity: 1; }
- }
- @keyframes slideIn {
- from {
- opacity: 0;
- transform: translateY(-50px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- /* 響應式設計 */
- @media (max-width: 768px) {
- .container {
- padding: 10px;
- }
-
- .header {
- flex-direction: column;
- gap: 15px;
- text-align: center;
- }
-
- .header-actions {
- flex-direction: column;
- width: 100%;
- }
-
- .stats-grid {
- grid-template-columns: 1fr;
- }
-
- .filters {
- flex-direction: column;
- align-items: stretch;
- }
-
- .filter-group {
- flex-direction: column;
- align-items: stretch;
- }
-
- .filter-group select {
- min-width: auto;
- }
-
- .form-row {
- flex-direction: column;
- }
-
- .modal-content {
- width: 95%;
- margin: 10px;
- }
-
- .issue-header {
- flex-direction: column;
- align-items: flex-start;
- gap: 10px;
- }
-
- .issue-meta {
- flex-direction: column;
- gap: 5px;
- }
- }
- /* 空狀態 */
- .empty-state {
- text-align: center;
- padding: 60px 20px;
- color: #666;
- }
- .empty-state i {
- font-size: 48px;
- margin-bottom: 20px;
- color: #ccc;
- }
- .empty-state h3 {
- margin-bottom: 10px;
- color: #999;
- }
- /* 成功/錯誤訊息 */
- .alert {
- padding: 12px 16px;
- border-radius: 6px;
- margin-bottom: 20px;
- font-weight: 500;
- }
- .alert-success {
- background: #d4edda;
- color: #155724;
- border: 1px solid #c3e6cb;
- }
- .alert-error {
- background: #f8d7da;
- color: #721c24;
- border: 1px solid #f5c6cb;
- }
- .alert-info {
- background: #d1ecf1;
- color: #0c5460;
- border: 1px solid #bee5eb;
- }
|