/** * Posts Management Page Styles * 貼文發布管理頁面樣式 */ /* ==================== 篩選區 ==================== */ .filters-container { display: flex; flex-wrap: wrap; gap: 24px; } .filter-group { display: flex; flex-direction: column; gap: 8px; } .filter-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; } .filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; } .filter-btn { padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: all 0.2s ease; } .filter-btn:hover { border-color: var(--accent-blue); color: var(--text-primary); } .filter-btn.active { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; } /* ==================== 產品標籤 ==================== */ .product-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .product-badge.revit { background: rgba(59, 130, 246, 0.15); color: #3b82f6; } .product-badge.autocad { background: rgba(239, 68, 68, 0.15); color: #ef4444; } .product-badge.announcement { background: rgba(168, 85, 247, 0.15); color: #a855f7; } /* ==================== 狀態標籤 ==================== */ .status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; } .status-badge.draft { background: rgba(156, 163, 175, 0.15); color: #9ca3af; } .status-badge.published { background: rgba(34, 197, 94, 0.15); color: #22c55e; } .status-badge.sent { background: rgba(59, 130, 246, 0.15); color: #3b82f6; } /* ==================== 統計卡片 ==================== */ .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; } .stat-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; } .stat-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: rgba(88, 166, 255, 0.1); color: var(--accent-blue); font-size: 16px; } .stat-icon.draft { background: rgba(156, 163, 175, 0.1); color: #9ca3af; } .stat-icon.published { background: rgba(34, 197, 94, 0.1); color: #22c55e; } .stat-icon.sent { background: rgba(59, 130, 246, 0.1); color: #3b82f6; } .stat-info { display: flex; flex-direction: column; } .stat-value { font-size: 24px; font-weight: 600; color: var(--text-primary); line-height: 1; } .stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; } /* ==================== 貼文網格 ==================== */ .posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; } .post-card { display: flex; flex-direction: column; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: all 0.2s ease; } .post-card:hover { border-color: var(--accent-blue); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .post-card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); } .post-badges { display: flex; gap: 8px; } .post-version { font-size: 12px; font-weight: 600; color: var(--text-secondary); padding: 2px 8px; background: var(--bg-secondary); border-radius: 4px; } .post-card-body { flex: 1; padding: 16px; } .post-subject { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0 0 8px 0; line-height: 1.4; } .post-content-preview { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .post-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border-color); background: var(--bg-tertiary); } .post-meta { display: flex; gap: 12px; align-items: center; } .post-date, .post-recipients { font-size: 12px; color: var(--text-secondary); } .post-date i, .post-recipients i { margin-right: 4px; } .post-actions { display: flex; gap: 8px; align-items: center; } .sent-info { font-size: 11px; color: var(--text-secondary); margin-right: 8px; } /* ==================== 空狀態 ==================== */ .empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; } .empty-state i { font-size: 48px; color: var(--text-secondary); opacity: 0.5; margin-bottom: 16px; } .empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0 0 8px 0; } .empty-state p { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px 0; } /* ==================== Modal ==================== */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .modal-dialog { width: 100%; max-width: 600px; background: var(--bg-primary); border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); max-height: 90vh; display: flex; flex-direction: column; } .modal-dialog.modal-lg { max-width: 800px; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-color); } .modal-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0; } .modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 6px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s ease; } .modal-close:hover { background: var(--bg-secondary); color: var(--text-primary); } .modal-body { flex: 1; padding: 20px; overflow-y: auto; } .modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border-color); } /* ==================== 表單樣式 ==================== */ .form-input, .form-textarea { width: 100%; padding: 10px 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 14px; transition: all 0.2s ease; } .form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1); } .form-textarea { resize: vertical; min-height: 200px; font-family: inherit; line-height: 1.5; } .form-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-secondary); } /* ==================== 按鈕樣式 ==================== */ .btn-sm { padding: 6px 10px; font-size: 12px; } .btn-danger { background: rgba(248, 81, 73, 0.1); color: var(--accent-red); border: 1px solid transparent; } .btn-danger:hover { background: var(--accent-red); color: #fff; } /* ==================== 響應式設計 ==================== */ @media (max-width: 768px) { .filters-container { flex-direction: column; gap: 16px; } .filter-buttons { flex-wrap: wrap; } .posts-grid { grid-template-columns: 1fr; } .stats-row { grid-template-columns: repeat(2, 1fr); } .modal-dialog { max-width: 100%; margin: 10px; } .post-card-footer { flex-direction: column; gap: 12px; align-items: flex-start; } .post-actions { width: 100%; justify-content: flex-end; } } @media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } .post-actions .btn { flex: 1; } } /* ==================== 收件人選擇 ==================== */ .recipient-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .selected-count { font-size: 13px; color: var(--accent-blue); font-weight: 500; margin-left: auto; } .recipient-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-secondary); } .recipient-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border-color); transition: background 0.2s ease; } .recipient-item:last-child { border-bottom: none; } .recipient-item:hover { background: var(--bg-tertiary); } .recipient-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-blue); cursor: pointer; } .recipient-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .recipient-name { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .recipient-email { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .recipient-status { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 500; } .recipient-status.active { background: rgba(34, 197, 94, 0.15); color: #22c55e; } .recipient-status.inactive { background: rgba(156, 163, 175, 0.15); color: #9ca3af; } .recipient-item.inactive { opacity: 0.6; } /* ==================== 表單下拉選單 ==================== */ .form-select { width: 100%; padding: 10px 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 14px; cursor: pointer; transition: all 0.2s ease; } .form-select:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1); } /* ==================== 小型載入動畫 ==================== */ .spinner-sm { width: 20px; height: 20px; border: 2px solid var(--border-color); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; } .empty-state-sm { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--text-secondary); } .empty-state-sm i { font-size: 24px; margin-bottom: 8px; opacity: 0.5; } .empty-state-sm p { margin: 0; font-size: 13px; } /* ==================== 按鈕成功色 ==================== */ .btn-success { background: var(--accent-green); color: #fff; border: 1px solid transparent; } .btn-success:hover { background: #2ea043; } /* ==================== Gap 工具類 ==================== */ .gap-2 { gap: 8px; } /* ==================== 快捷操作區 ==================== */ .quick-actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } .quick-action-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; cursor: pointer; transition: all 0.2s ease; } .quick-action-card:hover { border-color: var(--accent-blue); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .quick-action-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(88, 166, 255, 0.1); border-radius: 12px; color: var(--accent-blue); font-size: 20px; flex-shrink: 0; } .quick-action-info { flex: 1; min-width: 0; } .quick-action-info h4 { margin: 0 0 4px 0; font-size: 16px; font-weight: 600; color: var(--text-primary); } .quick-action-info p { margin: 0; font-size: 13px; color: var(--text-secondary); } .quick-action-badge .badge { padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; } .quick-action-badge .badge-warning { background: rgba(210, 153, 34, 0.15); color: var(--accent-yellow); } .quick-action-arrow { color: var(--text-secondary); font-size: 14px; flex-shrink: 0; } @media (max-width: 768px) { .quick-actions-grid { grid-template-columns: 1fr; } .quick-action-card { padding: 16px; } .quick-action-icon { width: 40px; height: 40px; font-size: 18px; } .quick-action-info h4 { font-size: 14px; } .quick-action-info p { font-size: 12px; } } /* ==================== 郵件發送記錄 ==================== */ .email-logs-container { max-height: 400px; overflow-y: auto; } .email-logs-container .post-info { padding: 12px; background: var(--bg-secondary); border-radius: 8px; font-size: 14px; color: var(--text-primary); } .logs-list { display: flex; flex-direction: column; gap: 12px; } .email-log-item { padding: 12px 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.2s ease; } .email-log-item:hover { border-color: var(--accent-blue); } .email-log-item .log-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .email-log-item .log-number { font-size: 14px; font-weight: 600; color: var(--accent-blue); } .email-log-item .log-time { font-size: 12px; color: var(--text-secondary); } .email-log-item .log-time i { margin-right: 4px; } .email-log-item .log-details { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); } .email-log-item .log-details i { margin-right: 6px; width: 14px; text-align: center; } /* 發送記錄點擊提示 */ .sent-info { font-size: 11px; color: var(--accent-blue); margin-right: 8px; padding: 2px 6px; background: rgba(88, 166, 255, 0.1); border-radius: 4px; transition: all 0.2s ease; } .sent-info:hover { background: rgba(88, 166, 255, 0.2); } .sent-info i { margin-right: 4px; }