- ai_reply_engine.py: 意图识别max_tokens=100, 回复生成max_tokens=2048 (deepseek-v4-flash推理模型思考吃光token导致回复为空) - 商品管理弹窗新增标题/价格/描述编辑, 写入本地item_info (闲鱼网页版不支持改真实商品, 界面已注明) - GET ai-reply-settings密钥掩码 sk-4****27QK, PUT含****保留原值 - 新增自定义Dockerfile固化max_tokens补丁 - 新增.gitignore排除.env/data/logs/db, 仓库不含密钥
406 lines
7.2 KiB
CSS
406 lines
7.2 KiB
CSS
/* ================================
|
|
管理员功能样式 - 用户管理和数据管理
|
|
================================ */
|
|
|
|
/* 用户管理样式 */
|
|
.user-card {
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.user-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.user-card .card-body {
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.user-card .badge {
|
|
font-size: 0.75rem;
|
|
padding: 0.375rem 0.75rem;
|
|
}
|
|
|
|
/* 数据管理样式 */
|
|
.table-container {
|
|
max-height: 600px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.table th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--dark-color);
|
|
color: white;
|
|
z-index: 10;
|
|
border: none;
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.table td {
|
|
padding: 0.75rem;
|
|
font-size: 0.875rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.table tbody tr:hover {
|
|
background-color: rgba(79, 70, 229, 0.05);
|
|
}
|
|
|
|
/* 数据统计卡片 */
|
|
.data-stats {
|
|
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.data-stats .card-body {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
/* 表格状态样式 */
|
|
#loadingTable,
|
|
#noTableSelected,
|
|
#noTableData {
|
|
padding: 3rem 1rem;
|
|
}
|
|
|
|
#loadingTable .spinner-border {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-width: 0.3em;
|
|
}
|
|
|
|
#noTableSelected i,
|
|
#noTableData i {
|
|
font-size: 4rem;
|
|
color: var(--secondary-color);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* 按钮组样式 */
|
|
.btn-group .btn {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.btn-group .btn:first-child {
|
|
border-top-left-radius: 6px;
|
|
border-bottom-left-radius: 6px;
|
|
}
|
|
|
|
.btn-group .btn:last-child {
|
|
border-top-right-radius: 6px;
|
|
border-bottom-right-radius: 6px;
|
|
}
|
|
|
|
/* 表格选择器样式 */
|
|
#tableSelect {
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 0.75rem;
|
|
font-size: 0.875rem;
|
|
transition: border-color 0.2s ease;
|
|
}
|
|
|
|
#tableSelect:focus {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
|
|
}
|
|
|
|
/* 记录计数样式 */
|
|
#recordCount {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 768px) {
|
|
.user-card {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.table-container {
|
|
max-height: 400px;
|
|
}
|
|
|
|
.table th,
|
|
.table td {
|
|
padding: 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btn-group {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn-group .btn {
|
|
border-radius: 6px !important;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
}
|
|
|
|
/* 加载状态动画 */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.user-card,
|
|
.table-container {
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
/* 表格滚动条样式 */
|
|
.table-container::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.table-container::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.table-container::-webkit-scrollbar-thumb {
|
|
background: var(--secondary-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.table-container::-webkit-scrollbar-thumb:hover {
|
|
background: var(--primary-color);
|
|
}
|
|
|
|
/* 文本截断样式 */
|
|
.text-truncate-custom {
|
|
max-width: 200px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* 状态徽章样式 */
|
|
.status-badge {
|
|
font-size: 0.75rem;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
/* 工具提示样式增强 */
|
|
[title] {
|
|
cursor: help;
|
|
}
|
|
|
|
/* 空状态图标样式 */
|
|
.empty-state-icon {
|
|
font-size: 4rem;
|
|
color: var(--secondary-color);
|
|
opacity: 0.3;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* 操作按钮样式 */
|
|
.action-buttons .btn {
|
|
margin: 0 0.125rem;
|
|
padding: 0.375rem 0.75rem;
|
|
}
|
|
|
|
.action-buttons .btn-sm {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* ================================
|
|
系统使用手册样式
|
|
================================ */
|
|
.manual-wrapper {
|
|
display: flex;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.manual-sidebar {
|
|
width: 220px;
|
|
flex-shrink: 0;
|
|
background: #fff;
|
|
border-right: 1px solid var(--border-color);
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.manual-sidebar-header {
|
|
padding: 1rem 1.25rem;
|
|
font-weight: 700;
|
|
font-size: 0.95rem;
|
|
color: var(--dark-color);
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.manual-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0.5rem 0;
|
|
}
|
|
|
|
.manual-nav-link {
|
|
display: block;
|
|
padding: 0.6rem 1.25rem;
|
|
color: var(--secondary-color);
|
|
text-decoration: none;
|
|
font-size: 0.875rem;
|
|
border-left: 3px solid transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.manual-nav-link:hover {
|
|
color: var(--primary-color);
|
|
background: rgba(79, 70, 229, 0.04);
|
|
border-left-color: var(--primary-light);
|
|
}
|
|
|
|
.manual-nav-link.active {
|
|
color: var(--primary-color);
|
|
background: rgba(79, 70, 229, 0.06);
|
|
border-left-color: var(--primary-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.manual-content {
|
|
flex: 1;
|
|
padding: 2rem 2.5rem;
|
|
}
|
|
|
|
.manual-section {
|
|
margin-bottom: 2.5rem;
|
|
padding-bottom: 2rem;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.manual-section:last-of-type {
|
|
border-bottom: none;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.manual-section-title {
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
color: var(--dark-color);
|
|
margin-bottom: 0.75rem;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 2px solid var(--primary-color);
|
|
display: inline-block;
|
|
}
|
|
|
|
.manual-desc {
|
|
color: var(--secondary-color);
|
|
font-size: 0.95rem;
|
|
margin-bottom: 1.25rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.manual-section h4 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--dark-color);
|
|
margin-top: 1.25rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.manual-section ul,
|
|
.manual-section ol {
|
|
padding-left: 1.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.manual-section li {
|
|
font-size: 0.9rem;
|
|
line-height: 1.7;
|
|
color: #374151;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.manual-section li strong {
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.manual-tip,
|
|
.manual-warn {
|
|
margin-top: 0.75rem;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.manual-tip {
|
|
background: #ecfdf5;
|
|
border: 1px solid #a7f3d0;
|
|
color: #065f46;
|
|
}
|
|
|
|
.manual-warn {
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.manual-footer {
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.manual-sidebar::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
|
|
.manual-sidebar::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.manual-sidebar::-webkit-scrollbar-thumb {
|
|
background: #d1d5db;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.manual-sidebar {
|
|
display: none;
|
|
}
|
|
.manual-content {
|
|
padding: 1.5rem;
|
|
}
|
|
}
|
|
|
|
/* 统计卡片渐变背景 */
|
|
.stats-card-primary {
|
|
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
|
|
}
|
|
|
|
.stats-card-info {
|
|
background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
|
|
}
|
|
|
|
.stats-card-success {
|
|
background: linear-gradient(135deg, var(--success-color) 0%, #0d9488 100%);
|
|
}
|
|
|
|
.stats-card-warning {
|
|
background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
|
|
}
|