- 将CSS样式中的rpx单位替换为px,提升样式一致性 - 在TypeScript文件中添加缺失的分号,优化代码可读性 - 删除不再使用的组件及其样式,简化项目结构 - 更新生成页面和结果页面的样式,提升用户体验
299 lines
5.0 KiB
CSS
299 lines
5.0 KiB
CSS
.generate {
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
|
|
}
|
|
|
|
.generate-loading {
|
|
text-align: center;
|
|
padding: 30px;
|
|
}
|
|
|
|
.progress-container {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 250px;
|
|
height: 6px;
|
|
background-color: #e9ecef;
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #007aff 0%, #34c759 100%);
|
|
border-radius: 3px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-text {
|
|
font-size: 14px;
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.loading-text {
|
|
font-size: 16px;
|
|
color: #333;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.generate-success {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
|
|
padding: 20px 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 成功页面头部 */
|
|
.success-header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
padding-top: 40px;
|
|
}
|
|
|
|
.success-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.success-icon {
|
|
font-size: 32px;
|
|
filter: drop-shadow(0 2px 4px rgb(0 0 0 / 10%));
|
|
}
|
|
|
|
.success-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
letter-spacing: -0.25px;
|
|
}
|
|
|
|
.success-subtitle {
|
|
font-size: 14px;
|
|
color: #666;
|
|
font-weight: 500;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 预览区域 */
|
|
.result-preview {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
min-height: 0;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.preview-container {
|
|
border-radius: 16px;
|
|
padding: 0;
|
|
box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
|
|
border: 0.5px solid #f0f0f0;
|
|
position: relative;
|
|
overflow: hidden;
|
|
width: 90%;
|
|
max-width: 300px;
|
|
min-height: 340px;
|
|
height: 60vh;
|
|
display: block;
|
|
}
|
|
|
|
.preview-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 340px;
|
|
object-fit: cover;
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
display: block;
|
|
transform: translateZ(0);
|
|
image-rendering: optimizespeed;
|
|
backface-visibility: hidden;
|
|
}
|
|
|
|
.preview-video {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 340px;
|
|
object-fit: cover;
|
|
border-radius: 16px;
|
|
display: block;
|
|
transform: translateZ(0);
|
|
backface-visibility: hidden;
|
|
}
|
|
|
|
/* 底部操作区域 */
|
|
.success-actions {
|
|
margin-top: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.result-media {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.result-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.result-image image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.result-video {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.generate-error {
|
|
text-align: center;
|
|
padding: 30px;
|
|
background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.error-container {
|
|
margin-bottom: 30px;
|
|
background: #fff;
|
|
border-radius: 16px;
|
|
padding: 30px 20px;
|
|
box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
|
|
border: 0.5px solid #f0f0f0;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.error-text {
|
|
font-size: 20px;
|
|
color: #ff3b30;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.error-text::before {
|
|
content: '⚠️';
|
|
font-size: 18px;
|
|
}
|
|
|
|
.error-message {
|
|
font-size: 15px;
|
|
color: #666;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 12px;
|
|
width: 100%;
|
|
max-width: 300px;
|
|
margin: 0 auto 16px;
|
|
}
|
|
|
|
.success-actions .action-buttons {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* 结果提示 */
|
|
.result-tips {
|
|
text-align: center;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.tips-text {
|
|
font-size: 12px;
|
|
color: #999;
|
|
background: rgb(255 255 255 / 80%);
|
|
padding: 6px 12px;
|
|
border-radius: 10px;
|
|
display: inline-block;
|
|
backdrop-filter: blur(5px);
|
|
box-shadow: 0 1px 4px rgb(0 0 0 / 5%);
|
|
}
|
|
|
|
.btn-primary {
|
|
flex: 1;
|
|
background: linear-gradient(135deg, #ffd67a 0%, #ffc947 100%);
|
|
color: #333;
|
|
border-radius: 12px;
|
|
height: 48px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
border: none;
|
|
box-shadow: 0 4px 12px rgb(255 214 122 / 30%);
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-primary::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgb(255 255 255 / 30%), transparent);
|
|
z-index: 1;
|
|
}
|
|
|
|
.btn-primary::after {
|
|
border: none;
|
|
}
|
|
|
|
.btn-secondary {
|
|
flex: 1;
|
|
background: rgb(255 255 255 / 90%);
|
|
color: #333;
|
|
border: 1px solid rgb(255 214 122 / 60%);
|
|
border-radius: 12px;
|
|
height: 48px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
|
|
backdrop-filter: blur(5px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-secondary::after {
|
|
border: none;
|
|
}
|
|
|
|
.btn-text {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|