/* 全域樣式 */ * { 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; }