:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
}

body {
    margin: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e0e6ff 0%, #e8f2ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1e293b;
}

/* 玻璃拟态容器 */
.container {
    width: min(90vw, 800px);   /* 控制最大宽度 */
    aspect-ratio: 1.618 / 1;    /* 黄金比例 */

    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 56px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* 上传卡片 */
.upload-card {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.upload-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-5px);
}

.upload-card.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.card-desc {
    font-size: 12px;
    color: #64748b;
}

input[type="file"] {
    display: none;
}

/* 按钮 */
.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.btn-submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

/* 进度条 */
#progress-area {
    display: none;
    margin-top: 60px;
    text-align: center;
}

.progress-container {
    height: 16px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s ease;
}

.status-text {
    margin-top: 15px;
    font-size: 14px;
    color: #475569;
}

/* 背景光晕 */
.blob {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: move 10s infinite alternate;
}

@keyframes move {
    from { transform: translate(-20%, -20%); }
    to { transform: translate(20%, 20%); }
}
