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

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

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h1 {
    color: #2c3e50;
}

h2 {
    color: #34495e;
    margin-bottom: 15px;
}

/* 上传区域 */
.upload-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-area {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.upload-area:hover, .upload-area.dragover {
    background-color: #e3f2fd;
    border-color: #2980b9;
}

.upload-btn-container {
    margin-top: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.upload-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

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

/* 设置区域 */
.settings-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.setting {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.setting label {
    width: 150px;
    margin-right: 10px;
}

.setting input, .setting select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    min-width: 100px;
}

#processBtn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

#processBtn:hover {
    background-color: #27ae60;
}

#processBtn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 预览区域 */
.preview-section, .results-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preview-container, .results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.preview-item, .result-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: calc(25% - 15px);
    min-width: 200px;
}

.preview-item img, .result-item img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-item .info, .result-item .info {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.preview-item .remove-btn:hover {
    background-color: rgba(192, 57, 43, 1);
}

#downloadAllBtn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

#downloadAllBtn:hover {
    background-color: #2980b9;
}

.download-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .preview-item, .result-item {
        width: calc(50% - 15px);
    }
    
    .setting {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .setting label {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .preview-item, .result-item {
        width: 100%;
    }
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 14px;
} 