@charset "UTF-8";

/* 数据入库区域样式 */

.upload-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: calc(var(--admin-panel-min-height) - 24px);
    box-sizing: border-box;
}

.upload-card-head {
    display: block;
}

.upload-head-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.upload-tip {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.upload-tip-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.upload-tip-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.upload-layout {
    display: grid;
    grid-template-columns: minmax(430px, 1.35fr) minmax(200px, 0.65fr);
    gap: 24px;
    align-items: stretch;
    flex: 1;
}

.upload-layout > * {
    min-width: 0;
}

.upload-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-sizing: border-box;
    min-height: 100%;
}

.upload-panel-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.upload-panel-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.upload-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: start;
}

.upload-options .field {
    margin: 0;
}

.upload-form-panel .field {
    display: flex;
    flex-direction: column;
}

.upload-form-panel .field label {
    margin-bottom: 10px;
}

.upload-form-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    width: 100%;
}

.upload-form-panel .field select {
    appearance: none;
    width: 180px;
    max-width: 100%;
    padding-right: 52px;
    border-color: var(--border);
    background-color: var(--card);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%),
        linear-gradient(to right, var(--border), var(--border));
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px),
        calc(100% - 40px) 50%;
    background-size: 6px 6px, 6px 6px, 1px 22px;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.upload-form-panel .field select:hover {
    border-color: var(--muted);
    background-color: var(--bg-secondary);
}

.upload-form-panel .field select::-ms-expand {
    display: none;
}

#upload-year {
    width: 180px;
    max-width: 100%;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 28px;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    min-height: 28px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.2;
}

.radio-label input {
    margin: 0;
    width: 14px;
    height: 14px;
}

.upload-dropzone-panel {
    display: grid;
    grid-template-rows: auto minmax(240px, 1fr) auto;
    align-content: stretch;
    gap: 14px;
}

.upload-dropzone {
    background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-height: 240px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover,
.upload-dropzone.has-file {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.upload-dropzone-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 40px;
    line-height: 1;
}

.drop-text {
    font-weight: 600;
    margin: 0;
    color: var(--text-secondary);
}

.drop-subtext {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.file-name-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--primary-light);
    background: var(--primary-light);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    word-break: break-all;
}

.file-name-text {
    min-width: 0;
    flex: 1;
    word-break: break-all;
}

.file-name-clear-btn {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.file-name-clear-btn:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.upload-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
    background: var(--primary-light);
}

.upload-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-progress-text {
    font-weight: 500;
}

.upload-progress-percent {
    color: var(--primary);
    font-weight: 700;
}

.upload-progress-track {
    position: relative;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}

.upload-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    transition: width 0.2s ease;
}

.upload-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.upload-footer-text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.upload-actions {
    margin-top: 0;
    flex-shrink: 0;
}

.upload-actions .btn {
  min-width: 220px;
}

.upload-grid-one-column {
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 560px;
}

#upload-modal {
    max-width: 830px;
}

.upload-modal-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.35fr) minmax(300px, 0.85fr);
    gap: 20px;
    align-items: stretch;
}

.upload-modal-layout > * {
    min-width: 0;
}
