* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 25px;
    text-align: center;
}

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

.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 25px;
    flex: 1;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

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

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

select, input[type="text"], input[type="number"], input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

select:focus, input[type="text"]:focus, input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.preview-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.preview-item {
    position: relative;
    text-align: center;
}

.preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.preview-name {
    font-size: 12px;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.placeholder {
    color: #7f8c8d;
    text-align: center;
    width: 100%;
    padding: 40px 0;
    grid-column: 1 / -1;
}

.results-container {
    padding: 20px;
}

.progress-container {
    margin-top: 20px;
    background: #f0f0f0;
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #3498db;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.results-list {
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item.success {
    background-color: rgba(46, 204, 113, 0.1);
}

.result-item.error {
    background-color: rgba(231, 76, 60, 0.1);
}

.file-name {
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}

.status {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.status-processing {
    background-color: #3498db;
    color: white;
}

.status-success {
    background-color: #2ecc71;
    color: white;
}

.status-error {
    background-color: #e74c3c;
    color: white;
}

.message {
    color: #7f8c8d;
    font-size: 14px;
    margin-left: 15px;
    flex: 2;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f0f0f0;
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
}