1615 lines
30 KiB
CSS
1615 lines
30 KiB
CSS
/* 现代化蓝白配色体系 - 增强响应式支持 */
|
|
:root {
|
|
--primary-blue: #1e40af;
|
|
--secondary-blue: #3b82f6;
|
|
--light-blue: #dbeafe;
|
|
--accent-blue: #60a5fa;
|
|
--white: #ffffff;
|
|
--light-gray: #f8fafc;
|
|
--medium-gray: #e2e8f0;
|
|
--dark-gray: #475569;
|
|
--text-dark: #1e293b;
|
|
--text-light: #64748b;
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
|
|
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
|
|
--border-radius: 12px;
|
|
--border-radius-lg: 20px;
|
|
--mobile-breakpoint: 768px;
|
|
--tablet-breakpoint: 1024px;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
html { scroll-behavior: smooth; }
|
|
body {
|
|
font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
|
|
background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
|
|
min-height: 100vh;
|
|
color: var(--text-dark);
|
|
line-height: 1.6;
|
|
overflow-x: hidden;
|
|
/* 优化渲染性能 */
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 50px;
|
|
color: var(--text-dark);
|
|
}
|
|
.header h1 {
|
|
font-size: 3rem;
|
|
margin-bottom: 15px;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
.header p {
|
|
font-size: 1.3rem;
|
|
color: var(--text-light);
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.search-container {
|
|
text-align: center;
|
|
margin-bottom: 50px;
|
|
}
|
|
.search-box {
|
|
position: relative;
|
|
display: inline-block;
|
|
max-width: 500px;
|
|
width: 100%;
|
|
}
|
|
.search-box input {
|
|
width: 100%;
|
|
padding: 18px 60px 18px 25px;
|
|
font-size: 16px;
|
|
border: 2px solid var(--medium-gray);
|
|
border-radius: 50px;
|
|
background: var(--white);
|
|
box-shadow: var(--shadow-md);
|
|
transition: all 0.3s ease;
|
|
color: var(--text-dark);
|
|
}
|
|
.search-box input:focus {
|
|
outline: none;
|
|
border-color: var(--secondary-blue);
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
.search-box button {
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: var(--secondary-blue);
|
|
border: none;
|
|
color: var(--white);
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.search-box button:hover {
|
|
background: var(--primary-blue);
|
|
transform: translateY(-50%) scale(1.05);
|
|
}
|
|
|
|
/* 操作按钮样式 */
|
|
.action-buttons {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 15px;
|
|
margin-top: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.random-button, .favorites-button {
|
|
padding: 12px 24px;
|
|
background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
|
|
color: var(--white);
|
|
border: none;
|
|
border-radius: 25px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.random-button:hover, .favorites-button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
|
|
}
|
|
|
|
.random-button:active, .favorites-button:active {
|
|
transform: translateY(0);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.favorites-button {
|
|
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
|
|
}
|
|
|
|
.favorites-button:hover {
|
|
background: linear-gradient(135deg, #db2777 0%, #ec4899 100%);
|
|
}
|
|
|
|
/* 收藏夹页面样式 - 重新设计 */
|
|
.favorites-container {
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
/* 收藏夹头部 - 固定位置 */
|
|
.favorites-header {
|
|
background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
|
|
padding: 30px 40px;
|
|
box-shadow: 0 4px 20px rgba(236, 72, 153, 0.1);
|
|
border-bottom: 1px solid #f9a8d4;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-content {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.favorites-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
|
|
}
|
|
|
|
.favorites-icon i {
|
|
font-size: 1.8rem;
|
|
color: white;
|
|
}
|
|
|
|
.header-info h1 {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.favorites-count {
|
|
font-size: 1.1rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.count-number {
|
|
font-weight: 700;
|
|
color: #ec4899;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.sort-button, .back-button, .explore-button {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sort-button {
|
|
background: white;
|
|
color: #6b7280;
|
|
border: 2px solid #e5e7eb;
|
|
}
|
|
|
|
.sort-button:hover {
|
|
background: #f9fafb;
|
|
border-color: #d1d5db;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.back-button {
|
|
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
|
|
color: white;
|
|
}
|
|
|
|
.back-button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
|
|
}
|
|
|
|
.explore-button {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: white;
|
|
}
|
|
|
|
.explore-button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
/* 收藏夹内容区域 - 铺满页面 */
|
|
.favorites-content {
|
|
width: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-favorites {
|
|
text-align: center;
|
|
padding: 100px 20px;
|
|
background: white;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
border: none;
|
|
min-height: 60vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.empty-icon {
|
|
width: 120px;
|
|
height: 120px;
|
|
background: #f3f4f6;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 30px;
|
|
}
|
|
|
|
.empty-icon i {
|
|
font-size: 4rem;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.empty-favorites h3 {
|
|
font-size: 1.8rem;
|
|
color: #374151;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.empty-favorites p {
|
|
font-size: 1.1rem;
|
|
color: #6b7280;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
/* 收藏夹网格 - 铺满页面,均匀分布 */
|
|
.favorites-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 20px;
|
|
padding: 30px;
|
|
max-width: none;
|
|
margin: 0;
|
|
justify-items: center;
|
|
align-items: start;
|
|
}
|
|
|
|
/* 确保卡片宽度一致,实现均匀分布 */
|
|
.favorite-card {
|
|
width: 100%;
|
|
max-width: 320px;
|
|
}
|
|
|
|
/* 收藏卡片 - 紧凑布局 */
|
|
.favorite-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
border: 1px solid #f1f5f9;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.favorite-card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.card-image {
|
|
position: relative;
|
|
height: 180px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.card-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.favorite-card:hover .card-image img {
|
|
transform: scale(1.06);
|
|
}
|
|
|
|
.card-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.25));
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.favorite-card:hover .card-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.overlay-content {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 12px;
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.quick-view, .remove-favorite {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
color: #374151;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
backdrop-filter: blur(10px);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.quick-view:hover {
|
|
background: #3b82f6;
|
|
color: white;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.remove-favorite:hover {
|
|
background: #ef4444;
|
|
color: white;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.favorite-badge {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
width: 28px;
|
|
height: 28px;
|
|
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 2px 6px rgba(236, 72, 153, 0.4);
|
|
}
|
|
|
|
.favorite-badge i {
|
|
color: white;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.card-content {
|
|
padding: 12px;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.image-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
line-height: 1.2;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
}
|
|
|
|
.album-info {
|
|
color: #6b7280;
|
|
font-size: 0.85rem;
|
|
line-height: 1.3;
|
|
margin: 0;
|
|
}
|
|
|
|
.image-meta {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
font-size: 0.75rem;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.meta-item i {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
/* 预览模态框样式 */
|
|
.preview-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.preview-modal.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.preview-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
.preview-container {
|
|
position: relative;
|
|
background: white;
|
|
border-radius: 16px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
max-width: 90vw;
|
|
max-height: 90vh;
|
|
width: 1200px;
|
|
height: 800px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: scale(0.9);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.preview-modal.active .preview-container {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.preview-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.preview-title h3 {
|
|
font-size: 1.4rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.preview-info {
|
|
font-size: 0.9rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.preview-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.preview-nav {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
background: white;
|
|
color: #374151;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.preview-nav:hover:not(:disabled) {
|
|
background: #f9fafb;
|
|
border-color: #d1d5db;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.preview-nav:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.preview-counter {
|
|
font-size: 0.9rem;
|
|
color: #6b7280;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.preview-close {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: #f3f4f6;
|
|
color: #374151;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.preview-close:hover {
|
|
background: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
.preview-content {
|
|
flex: 1;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.preview-image-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.preview-image {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.preview-loading {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.preview-loading i {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.preview-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px 24px;
|
|
border-top: 1px solid #f1f5f9;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.preview-meta {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.preview-meta .meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.9rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.preview-meta .meta-item i {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.preview-controls {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.preview-action {
|
|
padding: 8px 16px;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
background: white;
|
|
color: #374151;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.preview-action:hover {
|
|
background: #f9fafb;
|
|
border-color: #d1d5db;
|
|
}
|
|
|
|
.preview-remove {
|
|
border-color: #fecaca;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.preview-remove:hover {
|
|
background: #fef2f2;
|
|
border-color: #fca5a5;
|
|
}
|
|
|
|
/* 收藏按钮样式 */
|
|
.preview-action.favorited {
|
|
border-color: #fbcfe8;
|
|
color: #ec4899;
|
|
background: #fdf2f8;
|
|
}
|
|
|
|
.preview-action.favorited:hover {
|
|
background: #fce7f3;
|
|
border-color: #f9a8d4;
|
|
}
|
|
|
|
.preview-action.favorited i {
|
|
color: #ec4899;
|
|
}
|
|
|
|
/* 预览模态框响应式设计 */
|
|
@media (max-width: 1024px) {
|
|
.preview-container {
|
|
width: 95vw;
|
|
height: 85vh;
|
|
margin: 20px;
|
|
}
|
|
|
|
.preview-header {
|
|
padding: 16px 20px;
|
|
}
|
|
|
|
.preview-title h3 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.preview-footer {
|
|
padding: 12px 20px;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.preview-meta {
|
|
gap: 12px;
|
|
}
|
|
|
|
.preview-meta .meta-item {
|
|
font-size: 0.85rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.preview-container {
|
|
width: 98vw;
|
|
height: 90vh;
|
|
margin: 10px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.preview-header {
|
|
padding: 12px 16px;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.preview-title h3 {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.preview-info {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.preview-actions {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.preview-nav {
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.preview-close {
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.preview-footer {
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.preview-meta {
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.preview-controls {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.preview-action {
|
|
padding: 6px 12px;
|
|
font-size: 0.85rem;
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.preview-container {
|
|
height: 95vh;
|
|
margin: 5px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.preview-header {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.preview-title h3 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.preview-actions {
|
|
gap: 8px;
|
|
}
|
|
|
|
.preview-nav {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.preview-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.preview-counter {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.preview-footer {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.preview-meta .meta-item {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.preview-action {
|
|
padding: 5px 10px;
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 1024px) {
|
|
.favorites-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 16px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.favorite-card {
|
|
max-width: 260px;
|
|
}
|
|
|
|
.card-image {
|
|
height: 160px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.favorites-header {
|
|
padding: 20px 16px;
|
|
}
|
|
|
|
.header-content {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.header-left {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.favorites-icon {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
|
|
.favorites-icon i {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.header-info h1 {
|
|
font-size: 1.6rem;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.favorites-count {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.count-number {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.action-buttons {
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.sort-button, .back-button, .explore-button {
|
|
padding: 8px 16px;
|
|
font-size: 0.85rem;
|
|
flex: 1;
|
|
justify-content: center;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.favorites-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 12px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.favorite-card {
|
|
max-width: 280px;
|
|
}
|
|
|
|
.card-image {
|
|
height: 140px;
|
|
}
|
|
|
|
.card-content {
|
|
padding: 10px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.image-title {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.album-info {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.meta-item {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.empty-favorites {
|
|
padding: 60px 20px;
|
|
min-height: 50vh;
|
|
}
|
|
|
|
.empty-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
|
|
.empty-icon i {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.empty-favorites h3 {
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.empty-favorites p {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.favorites-header {
|
|
padding: 16px 12px;
|
|
}
|
|
|
|
.header-info h1 {
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.favorites-grid {
|
|
padding: 12px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card-image {
|
|
height: 140px;
|
|
}
|
|
|
|
.sort-button, .back-button, .explore-button {
|
|
padding: 6px 12px;
|
|
font-size: 0.8rem;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.overlay-content {
|
|
padding: 10px;
|
|
}
|
|
|
|
.quick-view, .remove-favorite {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|
|
|
|
.stats {
|
|
text-align: center;
|
|
color: var(--text-dark);
|
|
margin-bottom: 40px;
|
|
font-size: 1.1rem;
|
|
background: var(--white);
|
|
padding: 20px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid var(--medium-gray);
|
|
}
|
|
|
|
/* 响应式网格布局 - 区分PC和手机 */
|
|
.albums-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 0fr));
|
|
gap: 30px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
/* 加载状态和骨架屏 */
|
|
.loading {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-light);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.loading .fa-spinner {
|
|
font-size: 2rem;
|
|
margin-bottom: 15px;
|
|
color: var(--secondary-blue);
|
|
}
|
|
|
|
.skeleton {
|
|
background: linear-gradient(90deg, var(--light-gray) 25%, var(--medium-gray) 50%, var(--light-gray) 75%);
|
|
background-size: 200% 100%;
|
|
animation: loading 1.5s infinite;
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
@keyframes loading {
|
|
0% { background-position: 200% 0; }
|
|
100% { background-position: -200% 0; }
|
|
}
|
|
|
|
.skeleton-card {
|
|
background: var(--white);
|
|
border-radius: var(--border-radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
overflow: hidden;
|
|
border: 1px solid var(--medium-gray);
|
|
}
|
|
|
|
.skeleton-cover {
|
|
height: 220px;
|
|
width: 100%;
|
|
}
|
|
|
|
.skeleton-content {
|
|
padding: 25px;
|
|
}
|
|
|
|
.skeleton-title {
|
|
height: 24px;
|
|
width: 80%;
|
|
margin-bottom: 15px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.skeleton-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.skeleton-meta-item {
|
|
height: 16px;
|
|
width: 40%;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.skeleton-button {
|
|
height: 44px;
|
|
width: 100%;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.album-card {
|
|
background: var(--white);
|
|
border-radius: var(--border-radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
border: 1px solid var(--medium-gray);
|
|
}
|
|
.album-card:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: var(--shadow-xl);
|
|
border-color: var(--accent-blue);
|
|
}
|
|
.album-cover {
|
|
height: 220px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
background: var(--light-gray);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.album-cover img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.5s ease;
|
|
display: block;
|
|
}
|
|
.album-card:hover .album-cover img {
|
|
transform: scale(1.05);
|
|
}
|
|
.album-info {
|
|
padding: 25px;
|
|
}
|
|
.album-info h2 {
|
|
font-size: 1.4rem;
|
|
margin-bottom: 12px;
|
|
color: var(--text-dark);
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
font-weight: 600;
|
|
}
|
|
.album-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
color: var(--text-light);
|
|
font-size: 0.9rem;
|
|
}
|
|
.album-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.view-button {
|
|
display: block;
|
|
text-align: center;
|
|
padding: 14px;
|
|
background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
|
|
color: var(--white);
|
|
text-decoration: none;
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
}
|
|
.view-button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
|
|
background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
|
|
}
|
|
|
|
.no-results {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-light);
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.no-results .fa-search {
|
|
font-size: 3rem;
|
|
margin-bottom: 20px;
|
|
color: var(--medium-gray);
|
|
}
|
|
|
|
/* 搜索提示样式 */
|
|
.search-hint {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-light);
|
|
font-size: 1.2rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.search-hint .fa-search {
|
|
font-size: 3rem;
|
|
margin-bottom: 20px;
|
|
color: var(--medium-gray);
|
|
}
|
|
|
|
.search-hint h3 {
|
|
color: var(--text-dark);
|
|
margin-bottom: 15px;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.search-hint p {
|
|
margin-bottom: 15px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.search-hint ul {
|
|
list-style: none;
|
|
text-align: left;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.search-hint li {
|
|
margin-bottom: 10px;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.search-hint .btn-primary {
|
|
margin-top: 10px;
|
|
padding: 8px 16px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* 响应式媒体查询 - 移动端优化 */
|
|
@media (max-width: 1024px) {
|
|
.container {
|
|
padding: 25px 15px;
|
|
}
|
|
|
|
.header {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.header p {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.albums-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 25px;
|
|
}
|
|
|
|
.album-cover {
|
|
height: 200px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 20px 15px;
|
|
}
|
|
|
|
.header {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.header p {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.search-container {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.search-box input {
|
|
padding: 16px 55px 16px 20px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.search-box button {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.action-buttons {
|
|
gap: 12px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.random-button, .favorites-button {
|
|
padding: 10px 20px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.stats {
|
|
font-size: 1rem;
|
|
padding: 15px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.albums-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.album-card {
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
.album-cover {
|
|
height: 180px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.album-info {
|
|
padding: 20px;
|
|
}
|
|
|
|
.album-info h2 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.album-meta {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.view-button {
|
|
padding: 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.container {
|
|
padding: 15px 10px;
|
|
}
|
|
|
|
.header {
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.header p {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.search-container {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.search-box {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.search-box input {
|
|
padding: 14px 50px 14px 18px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.search-box button {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 14px;
|
|
right: 10px;
|
|
}
|
|
|
|
.action-buttons {
|
|
gap: 10px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.random-button, .favorites-button {
|
|
padding: 8px 16px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.stats {
|
|
font-size: 0.9rem;
|
|
padding: 12px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.albums-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.album-cover {
|
|
height: 160px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.album-info {
|
|
padding: 15px;
|
|
}
|
|
|
|
.album-info h2 {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.album-meta {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.view-button {
|
|
padding: 10px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.loading {
|
|
padding: 40px 15px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.loading .fa-spinner {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.no-results {
|
|
padding: 40px 15px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.no-results .fa-search {
|
|
font-size: 2.5rem;
|
|
}
|
|
}
|
|
|
|
/* 触摸设备优化 */
|
|
@media (hover: none) and (pointer: coarse) {
|
|
.album-card:hover {
|
|
transform: none;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.album-card:active {
|
|
transform: scale(0.98);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.view-button:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.view-button:active {
|
|
transform: scale(0.95);
|
|
}
|
|
}
|
|
|
|
/* 高分辨率屏幕优化 */
|
|
@media (min-resolution: 2dppx) {
|
|
.album-cover img {
|
|
image-rendering: -webkit-optimize-contrast;
|
|
image-rendering: crisp-edges;
|
|
}
|
|
}
|
|
|
|
/* 分页加载样式 */
|
|
.loading-more {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
background: var(--white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-sm);
|
|
margin: 20px 0;
|
|
border: 1px solid var(--medium-gray);
|
|
}
|
|
|
|
.loading-spinner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
color: var(--text-light);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.loading-spinner .fa-spinner {
|
|
color: var(--secondary-blue);
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.load-more-error {
|
|
text-align: center;
|
|
padding: 30px 20px;
|
|
background: #fef2f2;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-sm);
|
|
margin: 20px 0;
|
|
border: 1px solid #fecaca;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.error-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.error-content .fa-exclamation-triangle {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.error-content a {
|
|
color: var(--primary-blue);
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.error-content a:hover {
|
|
color: var(--secondary-blue);
|
|
}
|
|
|
|
/* 移动端分页样式优化 */
|
|
@media (max-width: 768px) {
|
|
.loading-more {
|
|
padding: 30px 15px;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.loading-spinner {
|
|
font-size: 0.9rem;
|
|
gap: 10px;
|
|
}
|
|
|
|
.load-more-error {
|
|
padding: 25px 15px;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.error-content {
|
|
font-size: 0.9rem;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
/* 打印样式 */
|
|
@media print {
|
|
.search-container,
|
|
.view-button {
|
|
display: none;
|
|
}
|
|
|
|
.album-card {
|
|
break-inside: avoid;
|
|
box-shadow: none;
|
|
border: 1px solid #ccc;
|
|
}
|
|
} |