This commit is contained in:
lychang
2026-07-19 23:56:28 +08:00
parent 34bcd67682
commit 36969a4fa0
16 changed files with 1925 additions and 350 deletions

View File

@@ -88,25 +88,103 @@ body {
.album-info {
display: inline-flex;
align-items: center;
gap: 16px;
color: var(--text-light);
font-size: 0.95rem;
padding: 10px 20px;
background: var(--bg-surface);
border-radius: var(--radius-full);
border: 1px solid var(--border-gray);
gap: 6px;
color: #475569;
font-size: 0.85rem;
font-weight: 500;
line-height: 1.2;
padding: 6px 14px;
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
border-radius: 20px;
border: 1px solid #cbd5e1;
cursor: default;
user-select: none;
height: auto;
min-height: 0;
}
.album-info i { color: var(--secondary-blue); }
.album-info i { color: #64748b; }
/* ============ 相册标签区(新:分类着色) ============ */
.album-meta-tags {
/* 照片数量 + 标签 合并到一行 */
.album-header-row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 12px 16px;
margin: 12px auto 24px;
max-width: 1100px;
}
.album-header-row .album-info {
margin: 0;
flex: 0 0 auto;
width: auto;
max-width: none;
}
/* ============ 相册标签区(简洁版:与照片数量同行) ============ */
.album-header-row .album-meta-tags {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
gap: 8px;
margin: 0;
max-width: none;
min-width: 0;
}
/* 标签分组 */
.tag-group {
margin-bottom: 14px;
background: var(--bg-surface);
border-radius: var(--radius-card);
border: 1px solid var(--border-gray);
padding: 12px 16px;
transition: all 0.2s ease;
box-shadow: var(--shadow-sm);
}
.tag-group:hover {
box-shadow: var(--shadow-md);
border-color: #cbd5e1;
}
.tag-group-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
padding-bottom: 8px;
border-bottom: 1px dashed var(--border-gray);
font-size: 0.85rem;
font-weight: 600;
color: var(--text-light);
}
.tag-group-header i {
font-size: 0.9rem;
color: var(--secondary-blue);
}
.tag-group-header span {
color: var(--text-light);
}
.tag-group-count {
margin-left: auto;
background: var(--bg-hover);
padding: 2px 8px;
border-radius: 10px;
font-size: 0.75rem;
font-weight: 600;
color: var(--text-muted);
}
.tag-group-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 20px auto 32px;
max-width: 900px;
}
.meta-chip {
@@ -114,13 +192,31 @@ body {
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: var(--radius-full);
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
line-height: 1.2;
cursor: pointer;
transition: all 0.2s ease;
user-select: none;
border: 1px solid transparent;
position: relative;
overflow: hidden;
}
.meta-chip::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
transition: left 0.5s ease;
}
.meta-chip:hover::before {
left: 100%;
}
.meta-chip:hover {
@@ -130,13 +226,14 @@ body {
.meta-chip:active { transform: translateY(0); }
.meta-chip i { font-size: 0.75rem; }
.meta-chip i { font-size: 0.75rem; opacity: 0.9; }
/* 人物标签 */
.meta-chip-person {
background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
color: var(--accent-purple);
border-color: rgba(139, 92, 246, 0.2);
border-color: rgba(139, 92, 246, 0.25);
font-weight: 600;
}
.meta-chip-person:hover {
@@ -147,54 +244,120 @@ body {
/* 分类标签(按类别着色) */
.meta-chip-tag-style {
background: #f0f9ff;
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
color: #0284c7;
border-color: #bae6fd;
}
.meta-chip-tag-style:hover { background: #0284c7; color: #fff; border-color: #0284c7; }
.meta-chip-tag-style:hover { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-outfit {
background: #fdf2f8;
background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
color: #db2777;
border-color: #fbcfe8;
}
.meta-chip-tag-outfit:hover { background: #db2777; color: #fff; border-color: #db2777; }
.meta-chip-tag-outfit:hover { background: linear-gradient(135deg, #db2777 0%, #be185d 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-scene {
background: #f0fdf4;
background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
color: #15803d;
border-color: #bbf7d0;
}
.meta-chip-tag-scene:hover { background: #15803d; color: #fff; border-color: #15803d; }
.meta-chip-tag-scene:hover { background: linear-gradient(135deg, #15803d 0%, #166534 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-body {
background: #fef3c7;
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
color: #b45309;
border-color: #fde68a;
}
.meta-chip-tag-body:hover { background: #b45309; color: #fff; border-color: #b45309; }
.meta-chip-tag-body:hover { background: linear-gradient(135deg, #b45309 0%, #92400e 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-mood {
background: #faf5ff;
background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
color: #7c3aed;
border-color: #e9d5ff;
}
.meta-chip-tag-mood:hover { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.meta-chip-tag-mood:hover { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-topic {
background: #eff6ff;
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
color: #0369a1;
border-color: #bfdbfe;
}
.meta-chip-tag-topic:hover { background: #0369a1; color: #fff; border-color: #0369a1; }
.meta-chip-tag-topic:hover { background: linear-gradient(135deg, #0369a1 0%, #075985 100%); color: #fff; border-color: transparent; }
/* jieba 提取的新分类 */
.meta-chip-tag-noun {
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
color: #1d4ed8;
border-color: #bfdbfe;
}
.meta-chip-tag-noun:hover { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-proper {
background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
color: #4338ca;
border-color: #c7d2fe;
}
.meta-chip-tag-proper:hover { background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-location {
background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
color: #047857;
border-color: #a7f3d0;
}
.meta-chip-tag-location:hover { background: linear-gradient(135deg, #047857 0%, #065f46 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-organization {
background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
color: #a16207;
border-color: #fde68a;
}
.meta-chip-tag-organization:hover { background: linear-gradient(135deg, #a16207 0%, #854d0e 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-noun_verb {
background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
color: #be185d;
border-color: #f9a8d4;
}
.meta-chip-tag-noun_verb:hover { background: linear-gradient(135deg, #be185d 0%, #9d174d 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-adj {
background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
color: #6d28d9;
border-color: #ddd6fe;
}
.meta-chip-tag-adj:hover { background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-verb {
background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
color: #c2410c;
border-color: #fed7aa;
}
.meta-chip-tag-verb:hover { background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-chinese {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
color: #475569;
border-color: #cbd5e1;
}
.meta-chip-tag-chinese:hover { background: linear-gradient(135deg, #475569 0%, #334155 100%); color: #fff; border-color: transparent; }
.meta-chip-tag-english {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
color: #64748b;
border-color: #cbd5e1;
}
.meta-chip-tag-english:hover { background: linear-gradient(135deg, #64748b 0%, #475569 100%); color: #fff; border-color: transparent; }
/* 默认标签 */
.meta-chip-tag-default,
.meta-chip-tag {
background: var(--bg-hover);
color: var(--text-light);
border-color: var(--border-gray);
}
.meta-chip-tag:hover { background: var(--text-light); color: #fff; border-color: var(--text-light); }
.meta-chip-tag-default:hover,
.meta-chip-tag:hover { background: linear-gradient(135deg, #64748b 0%, #475569 100%); color: #fff; border-color: transparent; }
/* ============ 瀑布流布局(核心) ============ */
.images-grid {
@@ -214,7 +377,6 @@ body {
box-shadow: var(--shadow-sm);
background: var(--bg-surface);
transition: all 0.3s ease;
cursor: pointer;
border: 1px solid var(--border-gray);
break-inside: avoid;
page-break-inside: avoid;
@@ -233,6 +395,7 @@ body {
display: block;
object-fit: contain;
transition: transform 0.4s ease;
cursor: pointer;
}
.image-item:hover img {
@@ -249,6 +412,7 @@ body {
align-items: center;
gap: 8px;
border-top: 1px solid var(--border-gray);
cursor: default;
}
.image-caption small {
@@ -368,7 +532,7 @@ body {
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
transition: all 0.25s ease;
}
.preview-modal.active { opacity: 1; visibility: visible; }
@@ -377,44 +541,48 @@ body {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(15, 23, 42, 0.9);
backdrop-filter: blur(8px);
background: rgba(0, 0, 0, 0.92);
backdrop-filter: blur(4px);
}
.preview-container {
position: relative;
background: var(--bg-surface);
border-radius: var(--radius-lg);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
max-width: 92vw;
max-height: 90vh;
width: 1200px;
height: 800px;
width: 100vw;
height: 100vh;
max-width: 100vw;
max-height: 100vh;
display: flex;
flex-direction: column;
transform: scale(0.92);
transition: transform 0.3s ease;
background: transparent;
border-radius: 0;
box-shadow: none;
transform: scale(1);
}
.preview-modal.active .preview-container { transform: scale(1); }
/* 顶部栏 - 浮在图片上方 */
.preview-header {
position: absolute;
top: 0; left: 0; right: 0;
z-index: 10;
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid var(--border-gray);
padding: 16px 24px;
background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
flex-shrink: 0;
border: none;
}
.preview-title h3 {
font-size: 1.1rem;
font-size: 1rem;
font-weight: 600;
color: var(--text-dark);
color: #f1f5f9;
margin: 0 0 4px 0;
}
.preview-info { font-size: 0.85rem; color: var(--text-light); }
.preview-info { font-size: 0.8rem; color: #94a3b8; }
.preview-actions {
display: flex;
@@ -423,51 +591,60 @@ body {
}
.preview-nav {
width: 36px; height: 36px;
border: 1px solid var(--border-gray);
border-radius: var(--radius);
background: var(--bg-surface);
color: var(--text-dark);
width: 40px; height: 40px;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 50%;
background: rgba(255,255,255,0.08);
color: #f1f5f9;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
}
.preview-nav:hover:not(:disabled) {
background: var(--bg-hover);
border-color: var(--secondary-blue);
color: var(--secondary-blue);
background: rgba(255,255,255,0.2);
border-color: rgba(255,255,255,0.3);
color: #fff;
}
.preview-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.preview-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.preview-counter { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.preview-counter {
font-size: 0.9rem;
color: #cbd5e1;
font-weight: 500;
padding: 0 4px;
}
.preview-close {
width: 36px; height: 36px;
border: none;
border-radius: var(--radius);
background: var(--bg-hover);
color: var(--text-dark);
width: 40px; height: 40px;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 50%;
background: rgba(255,255,255,0.08);
color: #f1f5f9;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
}
.preview-close:hover { background: #ef4444; color: #fff; }
.preview-close:hover { background: rgba(239, 68, 68, 0.8); color: #fff; border-color: rgba(239, 68, 68, 0.6); }
/* 图片内容区 - 占满全屏 */
.preview-content {
flex: 1;
padding: 0;
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
padding: 60px 80px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: #0f172a;
background: transparent;
}
.preview-image-container {
@@ -482,8 +659,12 @@ body {
.preview-image {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
transition: opacity 0.3s ease;
transition: opacity 0.3s ease, transform 0.3s ease;
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
border-radius: 4px;
}
.preview-loading {
@@ -494,54 +675,107 @@ body {
flex-direction: column;
align-items: center;
gap: 8px;
color: var(--text-light);
color: #94a3b8;
}
.preview-loading i { font-size: 1.8rem; color: var(--secondary-blue); }
.preview-loading i { font-size: 2rem; color: #3b82f6; }
/* 底部栏 - 浮在图片上方 */
.preview-footer {
position: absolute;
bottom: 0; left: 0; right: 0;
z-index: 10;
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 20px;
border-top: 1px solid var(--border-gray);
gap: 20px;
padding: 16px 24px;
background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
flex-shrink: 0;
border: none;
}
.preview-meta { display: flex; gap: 16px; }
.preview-meta { display: flex; gap: 16px; flex: 1; }
.preview-meta .meta-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.85rem;
color: var(--text-light);
font-size: 0.8rem;
color: #cbd5e1;
}
.preview-controls { display: flex; gap: 10px; }
/* 底部居中的切换控制栏 */
.preview-center-controls {
display: flex;
align-items: center;
gap: 16px;
flex: 1;
justify-content: center;
}
.preview-center-controls .preview-nav {
width: 40px;
height: 40px;
border: 1px solid rgba(255,255,255,0.2);
border-radius: 50%;
background: rgba(255,255,255,0.1);
color: #f1f5f9;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
font-size: 0.9rem;
}
.preview-center-controls .preview-nav:hover:not(:disabled) {
background: rgba(255,255,255,0.25);
border-color: rgba(255,255,255,0.4);
transform: scale(1.08);
}
.preview-center-controls .preview-nav:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.preview-center-controls .preview-counter {
font-size: 0.9rem;
color: #e2e8f0;
font-weight: 500;
min-width: 60px;
text-align: center;
}
.preview-controls { display: flex; gap: 10px; flex: 1; justify-content: flex-end; }
.preview-action {
padding: 7px 14px;
border: 1px solid var(--border-gray);
border-radius: var(--radius);
background: var(--bg-surface);
color: var(--text-dark);
padding: 8px 16px;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 20px;
background: rgba(255,255,255,0.08);
color: #f1f5f9;
cursor: pointer;
font-size: 0.85rem;
font-size: 0.8rem;
font-weight: 500;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 6px;
backdrop-filter: blur(10px);
}
.preview-action:hover { background: var(--bg-hover); }
.preview-action:hover { background: rgba(255,255,255,0.2); }
.preview-remove { border-color: #fecaca; color: #dc2626; }
.preview-remove:hover { background: #fef2f2; border-color: #fca5a5; }
.preview-action-close:hover {
background: rgba(239, 68, 68, 0.7);
border-color: rgba(239, 68, 68, 0.5);
}
.preview-action.favorited { border-color: #fbcfe8; color: #ec4899; background: #fdf2f8; }
.preview-action.favorited:hover { background: #fce7f3; border-color: #f9a8d4; }
.preview-action.favorited { border-color: rgba(236, 72, 153, 0.5); color: #f9a8d4; background: rgba(236, 72, 153, 0.15); }
.preview-action.favorited:hover { background: rgba(236, 72, 153, 0.25); }
/* 暗色模式 */
@media (prefers-color-scheme: dark) {
@@ -554,6 +788,15 @@ body {
--text-light: #cbd5e1;
--text-muted: #94a3b8;
}
.preview-container { background: var(--bg-surface); }
.preview-nav, .preview-close, .preview-action { background: var(--bg-hover); color: var(--text-dark); border-color: var(--border-gray); }
}
/* 移动端适配 */
@media (max-width: 768px) {
.preview-content { padding: 40px 10px 70px; }
.preview-header, .preview-footer { padding: 12px 16px; }
.preview-footer { flex-wrap: wrap; gap: 12px; }
.preview-meta { order: 2; justify-content: center; }
.preview-center-controls { order: 1; width: 100%; }
.preview-controls { order: 3; justify-content: center; }
.preview-center-controls .preview-nav { width: 36px; height: 36px; }
}