* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

/* 上传区域 */
.upload-area {
    margin-bottom: 30px;
}

/* 统一附加值输入区域 */
.global-input-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.global-input-label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.global-additional-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.global-additional-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.drop-zone:hover {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.drop-zone.dragover {
    border-color: #667eea;
    background-color: #e6eeff;
    transform: scale(1.02);
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.drop-zone p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
}

.select-btn {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.select-btn:hover {
    background-color: #5a6fd8;
}

/* 图片列表 */
.image-list {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    max-height: calc(100vh - 400px);
}

.image-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.image-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.image-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.image-info {
    margin-bottom: 10px;
}

.image-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-size {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.additional-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.additional-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.image-actions {
    display: flex;
    justify-content: space-between;
}

.remove-btn {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #ff3742;
}

.upload-btn {
    background-color: #2ed573;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: #27ae60;
}

.upload-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 上传操作 */
.upload-actions {
    text-align: center;
    margin-bottom: 30px;
}

.upload-all-btn {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-all-btn:hover:not(:disabled) {
    background-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.upload-all-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 上传结果 */
.upload-results {
    margin-top: 30px;
}

.result-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 14px;
}

.result-item.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-item.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .image-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .drop-zone {
        padding: 40px 20px;
    }
    
    .upload-all-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .image-list {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 24px;
    }
}