/* 广西工资合并工具 · 样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "微软雅黑", "PingFang SC", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4472C4 0%, #70AD47 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-section h2 {
    font-size: 18px;
    color: #1F4E79;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4472C4;
}

.hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label span {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.form-row input[type="text"] {
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-row input[type="text"]:focus {
    outline: none;
    border-color: #4472C4;
    box-shadow: 0 0 0 3px rgba(68, 114, 196, 0.1);
}

/* 上传网格 */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.upload-item {
    background: white;
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.upload-item:hover {
    border-color: #4472C4;
    background: #f0f6ff;
}

.upload-item.loaded {
    border-style: solid;
    border-color: #70AD47;
    background: #e8f5e9;
}

.upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.upload-label {
    font-size: 14px;
    font-weight: 600;
    color: #1F4E79;
    margin-bottom: 8px;
}

.upload-item input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-status {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

.upload-item.loaded .file-status {
    color: #2e7d32;
    font-weight: 500;
}

/* 按钮 */
.action-section {
    text-align: center;
    background: transparent;
    border: none;
    padding: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #4472C4 0%, #70AD47 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(68, 114, 196, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(68, 114, 196, 0.4);
}

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

.progress {
    margin-top: 20px;
    padding: 16px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
}

.result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.result.success {
    background: #d4edda;
    color: #155724;
}

.result.error {
    background: #f8d7da;
    color: #721c24;
}

.hidden {
    display: none;
}

/* 页脚 */
footer {
    padding: 24px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
    font-size: 13px;
    color: #666;
}

footer p {
    margin: 4px 0;
}

.version {
    color: #999;
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 600px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 24px;
    }
}