/* 圆角图片处理容器 */
.rcimg-main-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 工具区域 */
.rcimg-tool-area {
    width: 100%;
    background: #fff;
}

/* 上传区域 */
.rcimg-upload-zone {
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.rcimg-upload-zone:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.rcimg-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.rcimg-upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #94a3b8;
    transition: color 0.2s;
}

.rcimg-upload-zone:hover .rcimg-upload-icon {
    color: #3b82f6;
}

.rcimg-upload-text {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.rcimg-upload-hint {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 8px;
}

/* 预览区域 */
.rcimg-preview-wrapper {
    display: none;
    border-top: 1px solid #e2e8f0;
    padding: 24px 0;
}

.rcimg-content-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* 图片预览 */
.rcimg-preview-box {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.rcimg-preview-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
    font-size: 14px;
}

.rcimg-image-container {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.rcimg-preview-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: border-radius 0.2s;
}

/* 控制区域 */
.rcimg-control-box {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.rcimg-slider-group {
    margin-bottom: 24px;
}

.rcimg-slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rcimg-slider-title {
    font-size: 14px;
    color: #334155;
}

.rcimg-slider-value {
    font-weight: 600;
    color: #3b82f6;
    font-size: 14px;
}

.rcimg-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.rcimg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.rcimg-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.rcimg-number-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.rcimg-number-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rcimg-input-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

/* 按钮组 */
.rcimg-button-group {
    display: flex;
    gap: 12px;
}

.rcimg-download-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.rcimg-download-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.rcimg-download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rcimg-reset-btn {
    padding: 12px 20px;
    background: #fff;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.rcimg-reset-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.rcimg-btn-icon {
    width: 18px;
    height: 18px;
}

/* 响应式 */
@media (max-width: 768px) {
    .rcimg-content-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rcimg-image-container {
        min-height: 240px;
    }
    
    .rcimg-upload-zone {
        padding: 32px 16px;
    }
}
.rcimg-article {
    margin-top: 32px;
    background: #fff;
}

.rcimg-article-content {
    padding: 24px;
}

.rcimg-article-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.rcimg-article-section {
    margin-bottom: 24px;
}

.rcimg-article-section h3 {
    font-size: 17px;
    color: #444;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.rcimg-article-section p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-size: 14px;
}

.rcimg-step {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.rcimg-step-number {
    width: 24px;
    height: 24px;
    background: #4a9eff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
}

.rcimg-step-content h4 {
    font-size: 15px;
    color: #333;
    margin: 0 0 6px 0;
    font-weight: 500;
}

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

.rcimg-tips {
    margin: 0;
    padding-left: 20px;
    color: #666;
    line-height: 1.6;
}

.rcimg-tips li {
    margin-bottom: 8px;
    font-size: 14px;
}

.rcimg-explanation {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #4a9eff;
}

.rcimg-explanation p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.rcimg-explanation p:last-child {
    margin-bottom: 0;
}

.rcimg-article-footer {
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .rcimg-article-content {
        padding: 16px;
    }
    
    .rcimg-article-title {
        font-size: 18px;
    }
    
    .rcimg-step {
        flex-direction: column;
        gap: 8px;
    }
    
    .rcimg-step-number {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    
    .rcimg-explanation {
        padding: 10px;
    }
}