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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.4;
}

.drop-zone {
    border: 2px dashed #ccc;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #000;
}

.drop-zone input {
    display: none;
}

.drop-zone p {
    font-size: 16px;
    margin-bottom: 8px;
}

.drop-zone p:last-child {
    font-size: 14px;
    color: #666;
}

.controls {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    min-height: 40px;
}


.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* 主标签固定宽度对齐 */
.control-group > label:first-child {
    min-width: 80px;
    flex-shrink: 0;
}


.control-group input[type="number"],
.control-group input[type="text"] {
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 14px;
    width: 120px;
    height: 40px;
    box-sizing: border-box;
}

.control-group input[type="range"] {
    width: 100px;
}


.control-group span {
    font-size: 14px;
    color: #666;
}

.btn-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.progress {
    width: 100%;
    height: 4px;
    background: #eee;
    margin: 20px 0;
}

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

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-card {
    border: 1px solid #ddd;
    position: relative;
}

.image-preview {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f9f9f9;
    display: block;
}

.image-info {
    padding: 15px;
    border-top: 1px solid #eee;
}

.image-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    word-break: break-all;
    height: 34px;
    line-height: 17px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.image-details {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.3;
}

.batch-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

/* 删除按钮样式 */
.image-card .btn-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.image-card .btn-icon:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 30px 0 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.footer p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.footer a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 768px) {
    .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .control-group input[type="number"],
    .control-group input[type="text"] {
        width: 100%;
        max-width: 200px;
    }
    
    .batch-actions {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .batch-actions .btn {
        flex: 0 0 auto;
        min-width: 100px;
    }
}
