Round6: 前台图片缩略图+下载/视频修复; 后台连接测试单次+自动消失; 导航重组; 存储中文化; 自动化去掉创建按钮; 短信验证码(注册/重置/充值通知)

This commit is contained in:
QihuAI Design committed 2026-07-14 18:49:27 +08:00
1 parent ba09017884
commit d179cc2f02
14 files changed
+806 -149

No files matched your search

+212
View File
@@ -1045,3 +1045,215 @@
border-color: transparent;
transform: none;
}
/* ===== AI 生成媒体:固定缩略图 + 下载 ===== */
.md-text-seg {
display: block;
width: 100%;
}
.chat-media-wrap {
position: relative;
display: inline-block;
max-width: 100%;
margin: 2px 0;
}
.chat-media-img {
display: block;
max-width: 320px;
max-height: 320px;
width: auto;
height: auto;
object-fit: contain;
border-radius: var(--radius-md);
background: var(--color-bg-tertiary);
cursor: zoom-in;
box-shadow: var(--shadow-xs);
}
.chat-media-video {
display: block;
max-width: 360px;
max-height: 320px;
width: auto;
height: auto;
border-radius: var(--radius-md);
background: #000;
cursor: zoom-in;
box-shadow: var(--shadow-xs);
}
.chat-media-bar {
margin-top: 6px;
}
.chat-media-link {
font-size: var(--text-xs);
color: var(--color-accent);
text-decoration: none;
}
.chat-media-link:hover {
text-decoration: underline;
}
/* 下载按钮 */
.chat-media-dl-btn {
position: absolute;
top: 8px;
right: 8px;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: var(--radius-full);
background: rgba(0, 0, 0, 0.55);
color: #fff;
cursor: pointer;
opacity: 0;
transition: opacity var(--transition-fast), background var(--transition-fast);
z-index: 2;
}
.chat-media-wrap:hover .chat-media-dl-btn {
opacity: 1;
}
.chat-media-dl-btn:hover {
background: rgba(0, 0, 0, 0.75);
}
/* 下载弹层 */
.chat-media-dl-pop {
position: absolute;
top: 44px;
right: 8px;
z-index: 20;
width: 220px;
padding: var(--space-md);
background: var(--color-card-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
animation: fadeIn var(--transition-fast);
}
.chat-media-dl-title {
font-size: var(--text-sm);
font-weight: 600;
color: var(--color-text-primary);
margin-bottom: var(--space-sm);
}
.chat-media-dl-row {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-bottom: var(--space-xs);
}
.chat-media-dl-label {
font-size: var(--text-xs);
color: var(--color-text-tertiary);
margin-bottom: 4px;
}
.chat-media-dl-fmts {
display: flex;
gap: 4px;
}
.chat-media-dl-fmt {
flex: 1;
padding: 4px 0;
font-size: var(--text-xs);
font-weight: 600;
color: var(--color-text-secondary);
background: var(--color-bg-tertiary);
border: 1px solid transparent;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all var(--transition-fast);
}
.chat-media-dl-fmt.active {
color: var(--color-text-inverse);
background: var(--color-accent);
border-color: var(--color-accent);
}
.chat-media-dl-sizes {
display: flex;
flex-direction: column;
gap: 6px;
}
.chat-media-dl-size {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 10px;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
cursor: pointer;
transition: all var(--transition-fast);
}
.chat-media-dl-size:hover {
border-color: var(--color-accent);
background: var(--color-accent-subtle);
}
.chat-media-dl-size-label {
font-size: var(--text-sm);
font-weight: 500;
color: var(--color-text-primary);
}
.chat-media-dl-size-px {
font-size: var(--text-xs);
color: var(--color-text-tertiary);
font-family: var(--font-mono);
}
/* 灯箱预览 */
.chat-lightbox {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.78);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: var(--z-overlay);
animation: fadeIn 0.2s ease;
}
.chat-lightbox-close {
position: absolute;
top: 18px;
right: 22px;
width: 40px;
height: 40px;
border-radius: var(--radius-full);
border: none;
background: rgba(255, 255, 255, 0.15);
color: #fff;
font-size: 24px;
line-height: 1;
cursor: pointer;
transition: background var(--transition-fast);
}
.chat-lightbox-close:hover {
background: rgba(255, 255, 255, 0.3);
}
.chat-lightbox-content {
max-width: 92vw;
max-height: 86vh;
}