/* 关键词管理现代化样式 */ .keyword-container { background: white; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); overflow: hidden; transition: all 0.3s ease; } .keyword-header { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%); color: white; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; } .keyword-header h3 { margin: 0; font-weight: 600; display: flex; align-items: center; } .keyword-header .account-badge { background: rgba(255, 255, 255, 0.2); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.875rem; font-weight: 500; } .keyword-input-area { padding: 2rem; background: #f8fafc; border-bottom: 1px solid #e5e7eb; } .keyword-input-group { display: grid; grid-template-columns: 1fr 2fr 1fr auto; gap: 1rem; align-items: end; } .input-field { position: relative; } .input-field label { position: absolute; top: -0.5rem; left: 0.75rem; background: #f8fafc; padding: 0 0.5rem; font-size: 0.75rem; font-weight: 500; color: #6b7280; z-index: 1; } .input-field input, .input-field select { width: 100%; padding: 1rem 0.75rem 0.75rem; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 0.875rem; transition: all 0.3s ease; background: white; } .input-field input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .add-btn { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; border-radius: 12px; padding: 1rem 1.5rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; } .add-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3); } .add-btn:active { transform: translateY(0); } .keywords-list { padding: 1.5rem 2rem 2rem; max-height: 500px; overflow-y: auto; } .keyword-item { background: white; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 1rem; transition: all 0.3s ease; overflow: hidden; } .keyword-item:hover { border-color: #667eea; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); transform: translateY(-1px); } .keyword-item-header { padding: 1rem 1.5rem; background: #f8fafc; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; } .keyword-tag { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%); color: white; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; } .keyword-actions { display: flex; gap: 0.5rem; } .action-btn { width: 36px; height: 36px; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .edit-btn { background: #f3f4f6; color: #6b7280; } .edit-btn:hover { background: #e5e7eb; color: #374151; } .delete-btn { background: #fef2f2; color: #ef4444; } .delete-btn:hover { background: #fee2e2; color: #dc2626; } .keyword-content { padding: 1.5rem; } .reply-text { color: #374151; line-height: 1.6; margin: 0; font-size: 0.875rem; } .empty-state { text-align: center; padding: 4rem 2rem; color: #6b7280; } .empty-state i { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; } .empty-state h3 { margin: 0 0 0.5rem; color: #374151; } .empty-state p { margin: 0 0 2rem; font-size: 0.875rem; } .quick-add-btn { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%); color: white; border: none; border-radius: 12px; padding: 0.75rem 1.5rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; } .quick-add-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); } /* 响应式设计 */ @media (max-width: 768px) { .keyword-input-group { grid-template-columns: 1fr; gap: 1rem; } .keyword-item-header { flex-direction: column; align-items: flex-start; gap: 1rem; } .keyword-actions { align-self: flex-end; } }