mirror of
https://github.com/zhinianboke/xianyu-auto-reply.git
synced 2025-08-30 01:27:35 +08:00
404 lines
7.0 KiB
CSS
404 lines
7.0 KiB
CSS
/* 关键词管理现代化样式 */
|
|
.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;
|
|
}
|
|
|
|
.edit-btn-disabled {
|
|
background: #f9fafb !important;
|
|
color: #9ca3af !important;
|
|
cursor: not-allowed !important;
|
|
}
|
|
|
|
.edit-btn-disabled:hover {
|
|
background: #f9fafb !important;
|
|
color: #9ca3af !important;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
/* 账号选择器现代化 */
|
|
.account-selector {
|
|
background: white;
|
|
border-radius: 16px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
padding: 2rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.selector-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.selector-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.selector-title {
|
|
margin: 0;
|
|
color: #1f2937;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.selector-subtitle {
|
|
margin: 0;
|
|
color: #6b7280;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.account-select-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.account-select {
|
|
width: 100%;
|
|
padding: 1rem 1.25rem;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
font-size: 1rem;
|
|
background: white;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.account-select:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
/* ================================
|
|
【自动回复菜单】图片关键词样式
|
|
================================ */
|
|
.btn-image {
|
|
background: linear-gradient(135deg, #28a745, #20c997) !important;
|
|
border: none !important;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.btn-image:hover {
|
|
background: linear-gradient(135deg, #218838, #1ea085) !important;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.keyword-input-group {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.keyword-input-group .add-btn {
|
|
white-space: nowrap;
|
|
min-width: auto;
|
|
}
|
|
|
|
.image-preview {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.preview-container {
|
|
padding: 10px;
|
|
border: 2px dashed #ddd;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.keyword-type-badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.keyword-type-text {
|
|
background-color: #e3f2fd;
|
|
color: #1976d2;
|
|
}
|
|
|
|
.keyword-type-image {
|
|
background-color: #f3e5f5;
|
|
color: #7b1fa2;
|
|
}
|
|
|
|
/* 关键词列表中的图片预览 */
|
|
.keyword-image-preview {
|
|
max-width: 60px;
|
|
max-height: 60px;
|
|
border-radius: 4px;
|
|
border: 1px solid #ddd;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.keyword-image-preview:hover {
|
|
border-color: #007bff;
|
|
transform: scale(1.05);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@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;
|
|
}
|
|
|
|
.keyword-input-group {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.keyword-input-group .add-btn {
|
|
margin-left: 0;
|
|
margin-top: 10px;
|
|
}
|
|
}
|