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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.input-section, .output-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.input-section:hover, .output-section:hover {
    transform: translateY(-5px);
}

h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

/* 输入方式选择器 */
.input-method-selector {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: #f7fafc;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #edf2f7;
}

/* 输入区域 */
.input-area {
    display: none;
}

.input-area.active {
    display: block;
}

.paste-area {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.format-example {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.format-example h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1rem;
}

.format-example p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* 文件上传区域 */
.upload-area {
    margin-bottom: 20px;
}

.upload-box {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.upload-box:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.upload-box.dragover {
    border-color: #667eea;
    background: #e6fffa;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #a0aec0;
}

.upload-text p {
    margin: 5px 0;
    color: #4a5568;
    font-size: 1rem;
}

.upload-hint {
    color: #a0aec0 !important;
    font-size: 0.9rem !important;
}

.file-info {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-name {
    font-weight: 600;
    color: #22543d;
}

.file-size {
    color: #718096;
    font-size: 0.9rem;
}

.upload-format-example {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.upload-format-example h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1rem;
}

.upload-format-example p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary, .btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.result-area {
    min-height: 200px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder {
    color: #a0aec0;
    font-style: italic;
}

.download-section {
    margin-top: 20px;
    text-align: center;
}

.employee-list {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.list-container {
    max-height: 300px;
    overflow-y: auto;
}

.employee-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.employee-item:hover {
    background: #edf2f7;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.employee-details {
    color: #718096;
    font-size: 0.9rem;
}

.employee-id {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.success-message {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.error-message {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #742a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.warning-message {
    background: #fef5e7;
    border: 1px solid #fbd38d;
    color: #744210;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .input-section, .output-section {
        padding: 20px;
    }
    
    textarea {
        min-height: 200px;
    }
} 