/* ico-converter.css - ICO转换工具特定样式 */

/* 主容器样式 */
.ico-converter-container {
    transition: all 0.3s ease;
}

/* 文件上传区域 */
.ico-file-drop-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.ico-file-drop-area:hover, .ico-file-drop-area.dragover {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
}

/* 尺寸选择器 */
.ico-size-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.ico-size-selector:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.ico-size-selector.selected {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.ico-size-selector .size-label {
    font-weight: 600;
    color: #475569;
    z-index: 1;
}

.ico-size-selector.selected .size-label {
    color: #2563eb;
}

.ico-size-selector .size-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.ico-size-selector.selected .size-badge {
    opacity: 1;
    transform: scale(1);
}

/* 预览网格 */
.ico-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.ico-preview-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s ease;
    background-color: white;
}

.ico-preview-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ico-preview-item .preview-canvas {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

.ico-preview-item .size-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.ico-preview-item .download-btn {
    width: 100%;
    padding: 4px;
    font-size: 0.7rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ico-preview-item .download-btn:hover {
    background-color: #1e40af;
}

/* 转换步骤指示器 */
.conversion-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.conversion-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.conversion-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 70px;
}

.conversion-step .step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.conversion-step.active .step-icon {
    background-color: #2563eb;
    color: white;
}

.conversion-step.completed .step-icon {
    background-color: #10b981;
    color: white;
}

.conversion-step .step-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.conversion-step.active .step-label {
    color: #2563eb;
    font-weight: 600;
}

.conversion-step.completed .step-label {
    color: #10b981;
}

/* 转换进度 */
.conversion-progress {
    margin: 20px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-percent {
    font-weight: 600;
    color: #2563eb;
}

.progress-time {
    font-size: 0.875rem;
    color: #64748b;
}

/* 结果展示 */
.conversion-results {
    margin-top: 30px;
}

.result-summary {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #64748b;
}

.result-value {
    font-weight: 600;
    color: #1e293b;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ico-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }
    
    .conversion-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .conversion-step {
        width: auto;
        flex: 1;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .ico-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .conversion-step .step-label {
        font-size: 0.7rem;
    }
}