/* ===== 卡片容器 ===== */
.upload-card {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 40px 36px 44px;
    transition: box-shadow 0.3s ease;
}
.upload-card:hover {
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.12);
}

/* ===== 表单标签===== */
.upload-card .field-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 22px;
    font-weight: 600;
    color: #1a2634;
    letter-spacing: 0.3px;
}
.upload-card .field-label .required {
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
    margin-left: 4px;
}
.upload-card .field-label .label-icon {
    width: 32px;
    height: 32px;
    color: #2d6cf0;
    flex-shrink: 0;
}

/* ===== 拖拽上传区域===== */
.drop-zone {
    position: relative;
    border: 2px dashed #d0d7e2;
    border-radius: 16px;
    padding: 20px 20px 20px;
    text-align: center;
    background: #fafcff;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease,
        transform 0.15s ease, box-shadow 0.25s ease;
    user-select: none;
    width: 454px;
}
.drop-zone:hover {
    border-color: #8aa4e8;
    background: #f6f9ff;
}
.drop-zone.dragover {
    border-color: #2d6cf0;
    background: #edf3ff;
    box-shadow: 0 0 0 4px rgba(45, 108, 240, 0.10);
    transform: scale(1.01);
}
.drop-zone.dragover .drop-icon {
    transform: scale(1.08);
}

.drop-zone .drop-icon {
    width: 50px;
    height: 50px;
    color: #7e92b0;
    margin-bottom: 6px;
    transition: transform 0.25s ease, color 0.25s ease;
}
.drop-zone.dragover .drop-icon {
    color: #2d6cf0;
}

.drop-zone .main-text {
    font-size: 17px;
    font-weight: 500;
    color: #1f2a3a;
    margin-bottom: 12px;
}
.drop-zone .main-text .highlight {
    color: #2d6cf0;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.drop-zone .sub-text {
    font-size: 14px;
    color: #7e8ea8;
    line-height: 1.6;
    margin-top: 4px;
}
.drop-zone .sub-text .format {
    font-weight: 500;
    color: #4a5a72;
    background: #eef2f7;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
}
.drop-zone .sub-text .size-limit {
    font-weight: 500;
    color: #4a5a72;
}

/* ===== 隐藏的 file input ===== */
#fileInput {
    display: none;
}

/* ===== 文件信息区域===== */
.file-info-area {
    margin-top: 28px;
    display: none;
    animation: fadeUp 0.3s ease;
}
.file-info-area.visible {
    display: block;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info-area .file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: #f8faff;
    border-radius: 14px;
    border: 1px solid #e9eef4;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.file-info-area .file-item:hover {
    background: #f2f7ff;
    border-color: #d0ddee;
}

.file-info-area .file-item .file-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #2d6cf0;
}

.file-info-area .file-item .file-detail {
    flex: 1;
    min-width: 0;
}

.file-info-area .file-item .file-name {
    font-size: 15px;
    font-weight: 500;
    color: #1a2634;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-info-area .file-item .file-meta {
    font-size: 13px;
    color: #7e8ea8;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.file-info-area .file-item .file-meta .badge {
    display: inline-block;
    background: #eef2f7;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5a72;
    line-height: 20px;
}
.file-info-area .file-item .file-meta .badge.success {
    background: #e3f5e9;
    color: #0f7b3a;
}

.file-info-area .file-item .file-size {
    font-size: 13px;
    color: #7e8ea8;
    white-space: nowrap;
}

.file-info-area .file-item .btn-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}
.file-info-area .file-item .btn-remove:hover {
    background: #fde8e8;
    color: #d14545;
}
.file-info-area .file-item .btn-remove svg {
    width: 20px;
    height: 20px;
}

/* ===== 报错信息 ===== */
.error-message {
    display: none;
    color: red;
    font-size: 15px;
    margin-top: 5px;
}
.error-message.visible {
    display: block;
}

/* ===== 底部提示 ===== */
.upload-footnote {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
    font-size: 14px;
    color: #7e8ea8;
    line-height: 1.6;
}
.upload-footnote .note-list {
    padding-left: 18px;
    margin: 4px 0 0 0;
}
.upload-footnote .note-list li {
    list-style: disc;
}
.upload-footnote .note-list strong {
    color: #1a2634;
    font-weight: 600;
}

/* ===== 响应式 ===== */
@media (max-width: 520px) {
    .upload-card {
        padding: 28px 18px 32px;
    }
    .drop-zone {
        padding: 36px 16px 30px;
    }
    .drop-zone .drop-icon {
        width: 52px;
        height: 52px;
    }
    .drop-zone .main-text {
        font-size: 15px;
    }
    .file-info-area .file-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .file-info-area .file-item .file-detail {
        flex: 1 1 100%;
        order: 2;
    }
    .file-info-area .file-item .file-icon {
        order: 1;
    }
    .file-info-area .file-item .btn-remove {
        order: 3;
    }
}
