blob: 70a9aeabfa60f7eaac8671d275037fc4c360ab40 [file] [log] [blame]
.upload-page {
max-width: 800px;
margin: 0 auto;
padding: 16px;
font-family: sans-serif;
color: #333;
}
.upload-tabs {
display: flex;
margin-bottom: 16px;
}
.upload-tab {
flex: 1;
padding: 8px 16px;
border: 1px solid #ddd;
background: #f9f9f9;
cursor: pointer;
text-align: center;
}
.upload-tab.active {
background: #fff;
border-bottom: 2px solid #1890ff;
color: #1890ff;
}
.upload-area {
border: 2px dashed #ccc;
padding: 40px;
text-align: center;
transition: background 0.3s;
}
.upload-area.drag-over {
background: #eef6ff;
}
.upload-btn {
margin-top: 16px;
padding: 8px 24px;
border: none;
background: #1890ff;
color: #fff;
cursor: pointer;
}
.upload-btn:disabled {
background: #aaa;
cursor: not-allowed;
}
/* 如果有 upload-table 相关,用类似方式定义 */
.upload-table {
width: 100%;
border-collapse: collapse;
margin-top: 24px;
}
.upload-table th,
.upload-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
.upload-table th {
background: #f5f5f5;
}
/* 文件预览区域 */
.file-preview-area {
background: #fff;
border-radius: 8px;
padding: 20px;
margin-bottom: 40px;
border: 1px solid #e8eaed;
}
.preview-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.preview-title {
font-size: 16px;
color: #333;
margin: 0;
font-weight: 500;
}
.clear-files-btn {
background: #ff4757;
color: white;
padding: 6px 12px;
border: none;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
transition: background 0.2s;
}
.clear-files-btn:hover {
background: #ff3742;
}
.file-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 16px;
}
.file-item {
position: relative;
background: #fff;
border: 1px solid #e8eaed;
border-radius: 8px;
padding: 12px;
text-align: center;
transition: all 0.2s;
}
.file-item:hover {
border-color: #1890ff;
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}
.file-item:hover .remove-file-btn {
opacity: 1;
}
.remove-file-btn {
position: absolute;
top: 4px;
right: 4px;
background: rgba(255, 71, 87, 0.8);
color: white;
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: bold;
opacity: 0;
transition: all 0.2s;
cursor: pointer;
}
.file-thumbnail {
width: 80px;
height: 80px;
border-radius: 6px;
overflow: hidden;
margin: 0 auto 8px;
display: flex;
align-items: center;
justify-content: center;
background: #f8f9fa;
position: relative;
}
.file-thumbnail img,
.file-thumbnail video {
width: 100%;
height: 100%;
object-fit: cover;
}
.video-thumbnail {
color: #666;
position: relative;
}
.video-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.6);
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
color: white;
pointer-events: none;
}
.file-info {
text-align: center;
width: 100%;
}
.file-name {
font-size: 12px;
color: #333;
margin-bottom: 4px;
font-weight: 500;
word-break: break-all;
}
.file-size {
font-size: 11px;
color: #999;
}
/* 进度条 */
.progress-container {
margin-top: 20px;
width: 100%;
max-width: 400px;
}
.progress-bar {
width: 100%;
height: 8px;
background-color: #f0f0f0;
border-radius: 4px;
overflow: hidden;
margin-bottom: 8px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #1890ff, #40a9ff);
transition: width 0.3s ease;
}
.progress-text {
text-align: center;
font-size: 12px;
color: #666;
}
/* 上传信息区域 */
.upload-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 40px;
}
.info-item {
background: #f8f9fa;
padding: 16px;
border-radius: 8px;
text-align: center;
}
.info-title {
font-size: 14px;
color: #333;
margin-bottom: 8px;
font-weight: 500;
}
.info-desc {
font-size: 12px;
color: #666;
margin: 0;
}
.fade-in {
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}