- 评论区有效@提及渲染为蓝色链接跳转/space/{uid},无效@保持纯文本
- 输入@触发悬浮窗,根据输入实时搜索用户(含头像+等级)
- 无匹配时显示未搜索到用户,选中后插入为@用户名 格式(尾部空格)
- 悬浮窗定位于输入光标上方,不遮挡输入内容
- 后端Comment新增Mentions字段,批量加载提及映射供前端判断
- SearchUsers/parseMentions 统一限制LV2+用户
- 所有默认头像由首字符文字改为统一SVG人形图标(nav/home/space/mention等7处)
1392 lines
24 KiB
CSS
1392 lines
24 KiB
CSS
/* ========== 帖子列表 ========== */
|
|
.posts-container {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 24px 16px;
|
|
}
|
|
|
|
.posts-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.posts-header h1 {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: #111;
|
|
margin: 0;
|
|
}
|
|
|
|
.post-card {
|
|
background: #fff;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 10px;
|
|
padding: 20px 24px;
|
|
margin-bottom: 16px;
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
.post-card:hover {
|
|
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.post-card-title a {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #111;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.post-card-title a:hover {
|
|
color: #6366f1;
|
|
}
|
|
|
|
.post-card-meta {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-top: 8px;
|
|
font-size: 13px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.post-card-summary {
|
|
margin-top: 12px;
|
|
color: #4b5563;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ========== 帖子详情 ========== */
|
|
.post-detail {
|
|
max-width: 800px;
|
|
margin: 24px auto 40px;
|
|
}
|
|
|
|
.post-article {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
padding: 40px 48px;
|
|
}
|
|
|
|
.post-detail-header {
|
|
position: static !important;
|
|
z-index: auto !important;
|
|
box-shadow: none !important;
|
|
background: transparent !important;
|
|
margin-bottom: 32px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.post-detail-title {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
color: #111;
|
|
margin: 0 0 12px 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.post-detail-meta {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.post-detail-meta a {
|
|
color: #6b7280;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.post-detail-meta a:hover {
|
|
color: #6366f1;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.post-detail-body {
|
|
font-size: 16px;
|
|
line-height: 1.8;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.post-detail-body h1,
|
|
.post-detail-body h2,
|
|
.post-detail-body h3 {
|
|
margin-top: 24px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.post-detail-body p {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.post-detail-body a {
|
|
color: var(--color-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.post-detail-body a:hover {
|
|
color: #2980b9;
|
|
}
|
|
|
|
/* 代码块基础样式 */
|
|
.post-detail-body pre {
|
|
position: relative;
|
|
background: #0d1117;
|
|
color: #c9d1d9;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
overflow-x: auto;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
font-family: 'Menlo', 'Consolas', 'Monaco', 'Liberation Mono', monospace;
|
|
}
|
|
|
|
.post-detail-body pre code {
|
|
background: transparent !important;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
font-size: inherit !important;
|
|
white-space: pre;
|
|
display: block;
|
|
}
|
|
|
|
.post-detail-body code {
|
|
background: #f3f4f6;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.post-detail-body img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.post-detail-body blockquote {
|
|
border-left: 4px solid #6366f1;
|
|
padding-left: 16px;
|
|
color: #6b7280;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.post-status {
|
|
padding: 2px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.post-status-draft { background: #f3f4f6; color: #6b7280; }
|
|
.post-status-pending { background: #fef3c7; color: #d97706; }
|
|
.post-status-approved { background: #d1fae5; color: #059669; }
|
|
.post-status-rejected { background: #fef2f2; color: #dc2626; }
|
|
.post-status-locked { background: #fee2e2; color: #b91c1c; }
|
|
.post-status-revision { background: #e0e7ff; color: #4338ca; }
|
|
|
|
.post-reject-reason {
|
|
margin-top: 20px;
|
|
padding: 12px 16px;
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
border-radius: 8px;
|
|
color: #b91c1c;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.post-actions {
|
|
margin-top: 24px;
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* ========== 赞/踩按钮 ========== */
|
|
.post-reactions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 20px;
|
|
padding: 12px 0;
|
|
border-top: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.reaction-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: #6b7280;
|
|
transition: all 0.2s;
|
|
user-select: none;
|
|
}
|
|
|
|
.reaction-btn:hover {
|
|
border-color: #c4b5fd;
|
|
color: #6366f1;
|
|
background: #f5f3ff;
|
|
}
|
|
|
|
.reaction-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.reaction-btn.active.reaction-like-btn {
|
|
border-color: #6366f1;
|
|
color: #6366f1;
|
|
background: #f0eeff;
|
|
}
|
|
|
|
.reaction-btn.active.reaction-like-btn svg {
|
|
fill: #6366f1;
|
|
stroke: #6366f1;
|
|
}
|
|
|
|
.reaction-btn.active.reaction-dislike-btn {
|
|
border-color: #f87171;
|
|
color: #f87171;
|
|
background: #fef2f2;
|
|
}
|
|
|
|
.reaction-btn.active.reaction-dislike-btn svg {
|
|
fill: #f87171;
|
|
stroke: #f87171;
|
|
}
|
|
|
|
.reaction-btn.active.reaction-fav-btn {
|
|
border-color: #f59e0b;
|
|
color: #f59e0b;
|
|
background: #fffbeb;
|
|
}
|
|
|
|
.reaction-btn.active.reaction-fav-btn svg {
|
|
fill: #f59e0b;
|
|
stroke: #f59e0b;
|
|
}
|
|
|
|
.reaction-like-count {
|
|
font-weight: 600;
|
|
min-width: 12px;
|
|
}
|
|
|
|
.reaction-btn.active .reaction-like-count {
|
|
color: inherit;
|
|
}
|
|
.error-404 {
|
|
text-align: center;
|
|
padding: 100px 0;
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.error-404-icon {
|
|
color: #d1d5db;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.error-404-icon svg {
|
|
width: 72px;
|
|
height: 72px;
|
|
}
|
|
|
|
.error-404 h1 {
|
|
font-size: 24px;
|
|
color: #374151;
|
|
margin: 0 0 8px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.error-404 p {
|
|
font-size: 15px;
|
|
color: #9ca3af;
|
|
margin: 0 0 32px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.error-404-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.error-404-actions .btn {
|
|
padding: 10px 24px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
text-decoration: none;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.error-404-actions .btn-primary {
|
|
background: #2563eb;
|
|
color: #fff;
|
|
border: none;
|
|
}
|
|
|
|
.error-404-actions .btn-primary:hover {
|
|
background: #1d4ed8;
|
|
}
|
|
|
|
.error-404-actions .btn-secondary {
|
|
background: #f3f4f6;
|
|
color: #374151;
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.error-404-actions .btn-secondary:hover {
|
|
background: #e5e7eb;
|
|
}
|
|
|
|
/* ========== 空状态 ========== */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 0;
|
|
color: #9ca3af;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.search-hint {
|
|
margin-bottom: 16px;
|
|
color: #6b7280;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ========== 按钮 ========== */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #6366f1;
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover { background: #4f46e5; }
|
|
|
|
.btn-secondary {
|
|
background: #f3f4f6;
|
|
color: #374151;
|
|
}
|
|
|
|
.btn-secondary:hover { background: #e5e7eb; }
|
|
|
|
/* ========== 分页 ========== */
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-top: 32px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.page-link {
|
|
padding: 8px 16px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 8px;
|
|
color: #374151;
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.page-link:hover { background: #f3f4f6; }
|
|
|
|
.page-info {
|
|
font-size: 14px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
/* ========== 错误消息 ========== */
|
|
.error-message {
|
|
padding: 12px 16px;
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
border-radius: 8px;
|
|
color: #b91c1c;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* ========== 编辑器布局 ========== */
|
|
.editor-layout {
|
|
height: calc(100vh - 56px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: visible;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 28px;
|
|
}
|
|
|
|
.editor-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.editor-header {
|
|
padding: 16px 0 12px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
background: #fff;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.editor-title-input {
|
|
width: 100%;
|
|
padding: 6px 0;
|
|
border: none;
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
color: #111;
|
|
outline: none;
|
|
background: transparent;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.editor-title-input::placeholder { color: #c4c4c4; }
|
|
|
|
.editor-main {
|
|
flex: 1;
|
|
display: flex;
|
|
overflow: visible;
|
|
min-height: 0;
|
|
}
|
|
|
|
.editor-pane {
|
|
flex: 1;
|
|
overflow: visible;
|
|
min-width: 0;
|
|
}
|
|
|
|
.editor-sidebar {
|
|
width: 250px;
|
|
flex-shrink: 0;
|
|
margin-left: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
overflow-y: auto;
|
|
font-size: 13px;
|
|
color: #4b5563;
|
|
}
|
|
|
|
.editor-sidebar-section {
|
|
background: #fff;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.editor-sidebar-section h4 {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #9ca3af;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin: 0 0 10px 0;
|
|
}
|
|
|
|
.editor-sidebar-section .tips-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.editor-sidebar-section .tips-list li {
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.editor-sidebar-section .tips-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.editor-sidebar-section .tips-list code {
|
|
background: #f3f4f6;
|
|
padding: 1px 5px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
color: #6366f1;
|
|
}
|
|
|
|
.editor-statusbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 6px 0;
|
|
background: #fafafa;
|
|
border-top: 1px solid #e5e7eb;
|
|
font-size: 12px;
|
|
color: #9ca3af;
|
|
flex-shrink: 0;
|
|
min-height: 34px;
|
|
}
|
|
|
|
.status-item { white-space: nowrap; }
|
|
.status-spacer { flex: 1; }
|
|
.status-draft { color: #059669; font-weight: 500; }
|
|
.btn-submit { padding: 5px 18px; font-size: 13px; border-radius: 6px; }
|
|
|
|
.editor-layout.fullscreen {
|
|
position: fixed;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
z-index: 9999;
|
|
height: 100vh;
|
|
background: #fff;
|
|
max-width: none;
|
|
}
|
|
|
|
/* ========== Vditor 编辑器容器 ========== */
|
|
/* 仅提供高度约束,不干预 Vditor 内部布局和弹窗 */
|
|
|
|
#vditor {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Vditor 预览/渲染区域 — 详情页 */
|
|
.post-detail-body .vditor-reset {
|
|
font-size: 16px;
|
|
line-height: 1.8;
|
|
color: #1f2937;
|
|
}
|
|
|
|
/* Vditor 图片上传进度条 */
|
|
.vditor-upload {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 10000;
|
|
}
|
|
|
|
/* ========== Shortcode 卡片通用 ========== */
|
|
/* 所有 shortcode 卡片共享的基础外观 */
|
|
.zone-card {
|
|
display: block;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.zone-card-loading {
|
|
display: block;
|
|
padding: 16px;
|
|
text-align: center;
|
|
color: #9ca3af;
|
|
font-size: 13px;
|
|
background: #f9fafb;
|
|
border: 1px dashed #d1d5db;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* 通用卡片布局 */
|
|
.zone-card-event,
|
|
.zone-card-game,
|
|
.zone-card-poll,
|
|
.zone-card-resource {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 16px 18px;
|
|
margin: 14px 0;
|
|
border-radius: 10px;
|
|
border: 1px solid #e5e7eb;
|
|
background: #fafafa;
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
.zone-card-event:hover,
|
|
.zone-card-game:hover,
|
|
.zone-card-poll:hover,
|
|
.zone-card-resource:hover {
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.zone-card-event-icon,
|
|
.zone-card-game-icon,
|
|
.zone-card-poll-icon,
|
|
.zone-card-resource-icon {
|
|
font-size: 28px;
|
|
flex-shrink: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
background: #f3f4f6;
|
|
}
|
|
|
|
.zone-card-event-body,
|
|
.zone-card-game-body,
|
|
.zone-card-poll-body,
|
|
.zone-card-resource-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.zone-card-event-title,
|
|
.zone-card-game-title,
|
|
.zone-card-poll-title,
|
|
.zone-card-resource-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #111827;
|
|
}
|
|
|
|
.zone-card-event-id,
|
|
.zone-card-game-slug,
|
|
.zone-card-poll-id,
|
|
.zone-card-resource-id {
|
|
font-size: 12px;
|
|
color: #9ca3af;
|
|
margin-top: 2px;
|
|
font-family: 'Menlo', 'Consolas', monospace;
|
|
}
|
|
|
|
.zone-card-event-link,
|
|
.zone-card-game-link,
|
|
.zone-card-resource-link {
|
|
font-size: 13px;
|
|
color: #6366f1;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
.zone-card-event-link:hover,
|
|
.zone-card-game-link:hover,
|
|
.zone-card-resource-link:hover {
|
|
color: #4f46e5;
|
|
}
|
|
|
|
/* 投票 — 预留状态 */
|
|
.zone-card-poll-pending {
|
|
font-size: 12px;
|
|
color: #d97706;
|
|
background: #fef3c7;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ========== 赋能弹窗 ========== */
|
|
.energize-overlay {
|
|
position: fixed;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.energize-modal {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
width: 360px;
|
|
max-width: 92vw;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.energize-modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 24px 16px;
|
|
}
|
|
|
|
.energize-modal-header h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #111827;
|
|
}
|
|
|
|
.energize-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
color: #9ca3af;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.energize-close:hover {
|
|
color: #374151;
|
|
}
|
|
|
|
.energize-modal-body {
|
|
padding: 0 24px 24px;
|
|
}
|
|
|
|
.energize-hint {
|
|
background: #fff7ed;
|
|
border: 1px solid #fed7aa;
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
font-size: 13px;
|
|
color: #c2410c;
|
|
margin-bottom: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.energize-options {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.energize-option-btn {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 16px 12px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 10px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s, background 0.2s;
|
|
}
|
|
|
|
.energize-option-btn:hover {
|
|
border-color: #6366f1;
|
|
background: #f5f3ff;
|
|
}
|
|
|
|
.energize-option-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.energize-option-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #111827;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.energize-option-cost {
|
|
font-size: 13px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.energize-option-gain {
|
|
font-size: 12px;
|
|
color: #059669;
|
|
margin-top: 2px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ========== 选择收藏夹弹窗 ========== */
|
|
.fav-overlay {
|
|
position: fixed;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.fav-modal {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
width: 400px;
|
|
max-width: 92vw;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.fav-modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 24px 16px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.fav-modal-header h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #111827;
|
|
}
|
|
|
|
.fav-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
color: #9ca3af;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.fav-close:hover {
|
|
color: #374151;
|
|
}
|
|
|
|
.fav-modal-body {
|
|
padding: 16px 24px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.fav-loading {
|
|
text-align: center;
|
|
padding: 24px 0;
|
|
font-size: 14px;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.fav-loading.fav-error {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.fav-empty {
|
|
text-align: center;
|
|
padding: 24px 0;
|
|
font-size: 14px;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.fav-folder-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.fav-folder-option {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 14px;
|
|
border-radius: 8px;
|
|
border: 1px solid #e5e7eb;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.fav-folder-option:hover {
|
|
border-color: #f59e0b;
|
|
background: #fffbeb;
|
|
}
|
|
|
|
.fav-folder-option.active {
|
|
border-color: #f59e0b;
|
|
background: #fef3c7;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.fav-folder-option.active::after {
|
|
content: "✓";
|
|
color: #f59e0b;
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.fav-folder-opt-name {
|
|
font-size: 14px;
|
|
color: #1f2937;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.fav-folder-opt-name small {
|
|
font-weight: 400;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.fav-active-tag {
|
|
font-size: 11px;
|
|
color: #f59e0b;
|
|
background: #fef3c7;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
flex-shrink: 0;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.fav-folder-opt-count {
|
|
font-size: 12px;
|
|
color: #9ca3af;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.fav-new-folder {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.fav-new-input {
|
|
flex: 1;
|
|
padding: 10px 14px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
outline: none;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.fav-new-input:focus {
|
|
border-color: #f59e0b;
|
|
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
|
|
}
|
|
|
|
.fav-new-btn {
|
|
padding: 10px 16px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: #f59e0b;
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.fav-new-btn:hover {
|
|
background: #d97706;
|
|
}
|
|
|
|
.fav-new-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ========== 评论区 ========== */
|
|
.comments-section {
|
|
max-width: 800px;
|
|
margin: 32px auto 0;
|
|
}
|
|
|
|
.comments-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #111;
|
|
margin: 0 0 16px 0;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.comments-count {
|
|
color: #6366f1;
|
|
}
|
|
|
|
.comment-form {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.comment-input {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
color: #1f2937;
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.comment-input:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.comment-form-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.comment-upload-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 8px 14px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
color: #6b7280;
|
|
cursor: pointer;
|
|
background: #fff;
|
|
transition: border-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.comment-upload-btn:hover {
|
|
border-color: #6366f1;
|
|
color: #6366f1;
|
|
}
|
|
|
|
.comment-upload-preview {
|
|
margin-top: 8px;
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.comment-submit-btn {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.comment-login-hint {
|
|
text-align: center;
|
|
padding: 24px;
|
|
color: #9ca3af;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.comment-login-hint a {
|
|
color: #6366f1;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.comments-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
/* 单条评论卡片 */
|
|
.comment-card {
|
|
padding: 16px 0;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
}
|
|
|
|
.comment-card:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.comment-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.comment-author {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #111;
|
|
}
|
|
|
|
.comment-time {
|
|
font-size: 12px;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.comment-body {
|
|
font-size: 14px;
|
|
line-height: 1.7;
|
|
color: #374151;
|
|
word-break: break-word;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.comment-body .reply-to {
|
|
color: #6366f1;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
/* 有效@提及链接 */
|
|
.mention-link {
|
|
color: #6366f1;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mention-link:hover {
|
|
text-decoration: underline;
|
|
color: #4f46e5;
|
|
}
|
|
|
|
.comment-actions {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
}
|
|
|
|
.comment-action-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 12px;
|
|
color: #9ca3af;
|
|
cursor: pointer;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.comment-action-btn:hover {
|
|
color: #6366f1;
|
|
}
|
|
|
|
/* 回复列表(内联) */
|
|
.comment-replies {
|
|
margin-top: 10px;
|
|
padding-left: 36px;
|
|
border-left: 2px solid #e5e7eb;
|
|
}
|
|
|
|
.comment-reply-card {
|
|
padding: 10px 0 10px 16px;
|
|
border-bottom: 1px solid #f9fafb;
|
|
}
|
|
|
|
.comment-reply-card:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.comment-reply-body {
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: #4b5563;
|
|
}
|
|
|
|
.comment-reply-to {
|
|
color: #6366f1;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
/* 展开回复按钮 */
|
|
.comment-toggle-replies {
|
|
background: none;
|
|
border: none;
|
|
color: #6366f1;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
padding: 4px 0;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.comment-toggle-replies:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 回复输入框 */
|
|
.comment-reply-form {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
padding-left: 36px;
|
|
}
|
|
|
|
.comment-reply-input {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
.comment-reply-input:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
.comment-reply-submit {
|
|
padding: 6px 14px;
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 加载更多 */
|
|
.comments-load-more {
|
|
display: block;
|
|
margin: 16px auto 0;
|
|
}
|
|
|
|
/* @提及下拉 */
|
|
.mention-dropdown {
|
|
position: absolute;
|
|
background: #fff;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
z-index: 10000;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.mention-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 14px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
color: #374151;
|
|
}
|
|
|
|
.mention-item:hover,
|
|
.mention-item.active {
|
|
background: #f5f3ff;
|
|
color: #6366f1;
|
|
}
|
|
|
|
.mention-item-avatar {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
background: #f3f4f6;
|
|
}
|
|
|
|
.mention-item-avatar-placeholder {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: #e5e7eb;
|
|
flex-shrink: 0;
|
|
color: #9ca3af;
|
|
}
|
|
.mention-item-avatar-placeholder svg {
|
|
width: 60%;
|
|
height: 60%;
|
|
}
|
|
|
|
.mention-item .mention-username {
|
|
font-weight: 500;
|
|
flex: 1;
|
|
}
|
|
|
|
.mention-item .mention-level {
|
|
color: #9ca3af;
|
|
font-size: 11px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mention-no-result {
|
|
padding: 12px 14px;
|
|
font-size: 13px;
|
|
color: #9ca3af;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ========== 右下角悬浮操作栏 ========== */
|
|
.post-float-bar {
|
|
position: fixed;
|
|
right: 20px;
|
|
bottom: 120px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
z-index: 100;
|
|
background: var(--color-surface, #fff);
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 24px rgba(0,0,0,.1);
|
|
padding: 6px;
|
|
}
|
|
|
|
.float-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
color: #6b7280;
|
|
transition: all .15s;
|
|
position: relative;
|
|
}
|
|
|
|
.float-btn:hover {
|
|
background: #f3f4f6;
|
|
color: #6366f1;
|
|
}
|
|
|
|
.float-btn.active {
|
|
color: #6366f1;
|
|
background: #eef2ff;
|
|
}
|
|
|
|
.float-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.float-count {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
margin-top: 2px;
|
|
color: inherit;
|
|
}
|
|
|
|
.float-top-btn {
|
|
border-top: 1px solid #f3f4f6;
|
|
border-radius: 0 0 8px 8px;
|
|
margin-top: 2px;
|
|
padding-top: 6px;
|
|
}
|
|
|
|
/* 赋能 Toast */
|
|
.energize-toast {
|
|
position: fixed;
|
|
top: 80px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: #1f2937;
|
|
color: #fff;
|
|
padding: 10px 24px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
opacity: 0;
|
|
transition: opacity .3s;
|
|
z-index: 10000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.energize-toast.show {
|
|
opacity: 1;
|
|
}
|