* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: #4a6ee0;
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.upload-area {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.file-input {
    display: none;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a6ee0;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 110, 224, 0.4);
    border: none;
}

.upload-btn:hover {
    background: #3a5ec0;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

.file-info {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    word-break: break-all;
}

.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a6ee0, #2575fc);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #4a6ee0;
    font-weight: 600;
}

.submit-btn {
    margin-top: 20px;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:not(:disabled):hover {
    background: #218838;
    transform: translateY(-2px);
}

.storage-info {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.storage-info h3 {
    margin-bottom: 15px;
    color: #4a6ee0;
    font-size: 1.2rem;
}

.storage-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.storage-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.storage-label {
    font-weight: 600;
    color: #555;
}

.history-section {
    padding: 20px;
}

.history-section h3 {
    margin-bottom: 15px;
    color: #4a6ee0;
    font-size: 1.2rem;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f9f9f9;
    transition: all 0.2s;
}

.history-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.empty-history {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

footer {
    padding: 15px;
    text-align: center;
    background: #f5f5f5;
    color: #666;
    font-size: 0.8rem;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 响应式调整 */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    header {
        padding: 15px;
    }

    h1 {
        font-size: 1.3rem;
    }

    .upload-area {
        padding: 20px 15px;
    }

    .storage-info, .history-section {
        padding: 15px;
    }
}