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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

h2 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.upload-section,
.preview-section,
.print-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upload-area {
    position: relative;
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.upload-area:hover {
    border-color: #2980b9;
    background-color: #f0f8ff;
}

.upload-area.dragover {
    border-color: #27ae60;
    background-color: #e8f5e8;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.upload-label p {
    margin: 5px 0;
    color: #555;
}

.file-types {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: #f9f9f9;
    border-color: #ddd;
}

.file-item.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.file-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    width: 40px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.file-size {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-preview {
    background-color: #3498db;
    color: white;
}

.btn-preview:hover {
    background-color: #2980b9;
}

.btn-remove {
    background-color: #e74c3c;
    color: white;
}

.btn-remove:hover {
    background-color: #c0392b;
}

.preview-container {
    min-height: 300px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    background-color: #fafafa;
}

.preview-container img,
.preview-container iframe {
    max-width: 100%;
    max-height: 500px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.no-preview {
    color: #7f8c8d;
    font-style: italic;
}

.print-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.print-btn,
.clear-btn {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.print-btn {
    background-color: #27ae60;
    color: white;
}

.print-btn:hover:not(:disabled) {
    background-color: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.print-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.clear-btn {
    background-color: #95a5a6;
    color: white;
}

.clear-btn:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .file-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .print-section {
        flex-direction: column;
        align-items: center;
    }
    
    .print-btn,
    .clear-btn {
        width: 100%;
        max-width: 300px;
    }
}