/* eraser-online.css */

/* 若希望区分“低配版”，可给卡片加个小角标 */
.eraser-content-card::before {
    content: "低配版（MI-GAN）";
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e67e22;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 其余样式保持不变 */
.eraser-content-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    position: relative; /* 配合 ::before 角标 */
}

/* 以下为你原有的 CSS，可以原样保留 */
.eraser-form-group {
    margin-bottom: 25px;
}

.eraser-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.eraser-upload-wrapper {
    position: relative;
}

#eraser-upload-input {
    width: 100%;
    padding: 20px;
    border: 2px dashed #dce4ec;
    border-radius: 6px;
    background: #fcfdfe;
    cursor: pointer;
    box-sizing: border-box;
}

#eraser-upload-input:hover {
    border-color: #3498db;
}

.eraser-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #95a5a6;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background-color: #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #2ecc71;
    transition: width 0.3s ease;
}

.eraser-persistent-hint {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 15px;
}

.brush-controls {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.canvas-container {
    position: relative;
    max-width: 100%;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    overflow: hidden;
    background:
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    cursor: crosshair;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

#mask-canvas {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
}

#processing-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}
.btn-primary:hover { background-color: #2980b9; }

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}
.btn-secondary:hover { background-color: #7f8c8d; }

.eraser-info-box {
    margin-top: 30px;
    max-width: 800px;
    background: #ebf5fb;
    padding: 20px;
    border-radius: 8px;
    color: #2980b9;
}

.eraser-info-box h3 {
    margin-top: 0;
    font-size: 16px;
}

.eraser-info-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.8;
}
