/* ====== 颜色选择器 ====== */
#color-palette > div {
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid transparent;
}
#color-palette > div:hover { transform: scale(1.15); }
#color-palette > div.selected { border-color: #3b82f6; box-shadow: 0 0 0 2px #3b82f6; }

.color-swatch {
    width: 2.5rem;
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    box-sizing: border-box;
}

#color-gradient {
    background: linear-gradient(to right,
        rgba(255,0,0,1), rgba(255,255,0,1),
        rgba(0,255,0,1), rgba(0,255,255,1),
        rgba(0,0,255,1), rgba(255,0,255,1),
        rgba(255,0,0,1));
    background-image:
        linear-gradient(to top, rgba(0,0,0,1), transparent),
        linear-gradient(to right,
            rgba(255,0,0,1), rgba(255,255,0,1),
            rgba(0,255,0,1), rgba(0,255,255,1),
            rgba(0,0,255,1), rgba(255,0,255,1),
            rgba(255,0,0,1));
}

/* ====== 特殊符号按钮 ====== */
.char-btn {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 44px;
    font-size: 1.1rem;
}
.char-btn:hover { background-color: #f3f4f6; }