You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
446 lines
7.1 KiB
446 lines
7.1 KiB
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 20px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
header {
|
|
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
|
|
color: white;
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
header .subtitle {
|
|
font-size: 1.1rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.control-panel {
|
|
padding: 30px;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn {
|
|
padding: 12px 24px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.btn-warning {
|
|
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-warning:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #64748b;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #475569;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 8px 16px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.status {
|
|
margin-left: auto;
|
|
padding: 10px 20px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #10b981;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.folders-container {
|
|
padding: 30px;
|
|
}
|
|
|
|
.folders-container h2 {
|
|
color: #334155;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.folders-list {
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
|
|
.folder-item {
|
|
background: white;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.folder-item:hover {
|
|
border-color: #94a3b8;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.folder-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.folder-title {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.folder-stats {
|
|
display: flex;
|
|
gap: 20px;
|
|
color: #64748b;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.progress-container {
|
|
width: 200px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.progress-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.progress {
|
|
flex: 1;
|
|
height: 8px;
|
|
background: #e2e8f0;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
|
|
border-radius: 4px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-text {
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
min-width: 50px;
|
|
}
|
|
|
|
.folder-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.no-folders {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.no-folders i {
|
|
font-size: 4rem;
|
|
color: #10b981;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.no-folders p {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.api-info {
|
|
padding: 30px;
|
|
background: #f1f5f9;
|
|
border-top: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.api-info h3 {
|
|
color: #334155;
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.api-info code {
|
|
background: #e2e8f0;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.api-info p {
|
|
margin: 10px 0;
|
|
color: #475569;
|
|
}
|
|
|
|
/* 模态框样式 */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
border-radius: 15px;
|
|
width: 90%;
|
|
max-width: 600px;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 20px;
|
|
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
|
|
color: white;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 1.8rem;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.progress-container {
|
|
background: #f8fafc;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 10px;
|
|
background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
|
|
border-radius: 5px;
|
|
width: 0%;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-text {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 20px;
|
|
transform: translateY(-50%);
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.download-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 15px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.stat-item {
|
|
background: #f8fafc;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
color: #64748b;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.stat-value.success {
|
|
color: #10b981;
|
|
}
|
|
|
|
.stat-value.pending {
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.log-container {
|
|
background: #f8fafc;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.log-container h4 {
|
|
color: #334155;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.log-content {
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
color: #475569;
|
|
}
|
|
|
|
.log-entry {
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.log-entry.success {
|
|
color: #10b981;
|
|
}
|
|
|
|
.log-entry.error {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.log-entry.info {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 20px;
|
|
background: #f8fafc;
|
|
border-top: 1px solid #e2e8f0;
|
|
text-align: right;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
border-radius: 10px;
|
|
}
|
|
|
|
header {
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.control-panel {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.status {
|
|
margin-left: 0;
|
|
margin-top: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.folder-item {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 15px;
|
|
}
|
|
|
|
.folder-actions {
|
|
justify-content: center;
|
|
}
|
|
|
|
.download-stats {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
} |