bw-mini-app/src/pages/history/index.css

363 lines
6.4 KiB
CSS

.history {
background: #fff;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.history-list {
height: 100vh;
padding: 0;
position: relative;
z-index: 2;
}
.history-grid {
margin: 0 auto;
padding: 8px 16px;
min-height: 100%;
}
.loading-state {
background: #fff;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.loading-text {
font-size: 32px;
color: #666;
font-weight: 500;
margin: 0 auto;
}
.empty-state {
text-align: center;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 auto;
}
.empty-icon {
font-size: 56px;
display: block;
margin-bottom: 32px;
opacity: 0.8;
}
.empty-text {
font-size: 24px;
color: #B9B9B9;
display: block;
margin-bottom: 16px;
}
.empty-desc {
font-size: 28px;
color: #666;
display: block;
opacity: 0.8;
line-height: 1.6;
white-space: pre-line;
text-align: center;
}
.history-item {
background: #fff;
border-radius: 12px;
padding: 20px;
margin-bottom: 8px;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}
.item-thumbnail {
width: 160px;
height: 160px;
border-radius: 12px;
margin-right: 20px;
flex-shrink: 0;
overflow: hidden;
position: relative;
}
.thumbnail-image {
width: 100%;
height: 100%;
border-radius: 12px;
background: #f5f5f5;
}
.thumbnail-placeholder {
width: 100%;
height: 100%;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background: linear-gradient(135deg, #007aff, #5ac8fa);
}
/* 生成中状态 */
.thumbnail-placeholder.generating {
background: linear-gradient(135deg, #ff9500, #ffb84d);
}
/* 失败状态 */
.thumbnail-placeholder.failed {
background: linear-gradient(135deg, #ff3b30, #ff6b6b);
}
.thumbnail-icon {
font-size: 40px;
filter: drop-shadow(0 2px 4px rgb(0 0 0 / 20%));
}
.item-content {
flex: 1;
min-width: 0;
position: relative;
}
.item-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 8px;
}
.item-title {
font-size: 28px;
font-weight: 600;
color: #333;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.3;
margin-right: 16px;
}
.item-right {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}
.item-status {
font-size: 22px;
font-weight: 600;
padding: 8px 16px;
border-radius: 24px;
flex-shrink: 0;
text-transform: uppercase;
letter-spacing: 0.5px;
position: relative;
overflow: hidden;
}
.item-status::before {
content: '';
position: absolute;
left: -8px;
top: 50%;
transform: translateY(-50%);
width: 6px;
height: 6px;
border-radius: 50%;
background: currentcolor;
}
/* 生成中状态 */
.item-status[style*='color: rgb(255, 149, 0)'],
.item-status[style*='color: #FF9500'] {
background: linear-gradient(135deg, #ff9500 0%, #ffb84d 100%);
color: #fff !important;
box-shadow: 0 2px 8px rgb(255 149 0 / 30%);
}
.item-status[style*='color: rgb(255, 149, 0)']::before,
.item-status[style*='color: #FF9500']::before {
background: #fff;
}
/* 已完成状态 */
.item-status[style*='color: rgb(52, 199, 89)'],
.item-status[style*='color: #34C759'] {
background: linear-gradient(135deg, #34c759 0%, #4cd964 100%);
color: #fff !important;
box-shadow: 0 2px 8px rgb(52 199 89 / 30%);
}
.item-status[style*='color: rgb(52, 199, 89)']::before,
.item-status[style*='color: #34C759']::before {
background: #fff;
}
/* 失败状态 */
.item-status[style*='color: rgb(255, 59, 48)'],
.item-status[style*='color: #FF3B30'] {
background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
color: #fff !important;
box-shadow: 0 2px 8px rgb(255 59 48 / 30%);
}
.item-status[style*='color: rgb(255, 59, 48)']::before,
.item-status[style*='color: #FF3B30']::before {
background: #fff;
}
.item-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 8px;
}
.item-type {
font-size: 22px;
font-weight: 600;
background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
color: #fff;
padding: 8px 16px;
border-radius: 20px;
box-shadow: 0 2px 8px rgb(0 122 255 / 20%);
letter-spacing: 0.5px;
}
.item-time {
font-size: 22px;
color: #999;
font-weight: 400;
opacity: 0.7;
}
/* 加载指示器 */
.loading-indicator {
display: flex;
align-items: center;
gap: 4px;
}
.loading-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #ff9500;
font-size: 0;
}
/* 操作提示 */
.action-hint {
display: flex;
align-items: center;
}
.hint-text {
font-size: 20px;
color: #007aff;
background: rgb(0 122 255 / 10%);
padding: 4px 12px;
border-radius: 16px;
font-weight: 500;
letter-spacing: 0.5px;
}
/* 缩略图毛玻璃蒙版 */
.thumbnail-overlay {
position: absolute;
inset: 0;
border-radius: 12px;
overflow: hidden;
z-index: 10;
pointer-events: none;
}
.thumbnail-glassmorphism {
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgb(255 255 255 / 80%) 0%, rgb(255 255 255 / 70%) 50%, rgb(255 255 255 / 85%) 100%);
backdrop-filter: blur(6px);
}
.thumbnail-progress {
position: relative;
z-index: 2;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.thumbnail-progress-circle {
width: 100px;
height: 100px;
border-radius: 50%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
animation: pulse 2s ease-in-out infinite;
}
.thumbnail-progress-fill {
position: absolute;
inset: 0;
border-radius: 50%;
background: conic-gradient(#ff9500 0deg, transparent 0deg);
transition: all 0.3s ease;
mask: radial-gradient(circle at center, transparent 42px, black 45px);
}
.thumbnail-progress-inner {
width: 90px;
height: 90px;
border-radius: 50%;
background: transparent;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 2;
}
.thumbnail-progress-text {
font-size: 28px;
color: #ff9500;
text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}
/* 动画效果 */
@keyframes pulse {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.8;
}
}
@keyframes shimmer {
0% {
background-position: -200px 0;
}
100% {
background-position: calc(200px + 100%) 0;
}
}