.edit-controls {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: white; padding: 15px 25px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 1000;
    display: flex; align-items: center; gap: 15px;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUp { from { transform: translate(-50%, 100%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.edit-controls button {
    background: #f0f0f0; border: none; padding: 10px 15px; border-radius: 10px;
    cursor: pointer; font-size: 14px; font-weight: 500; color: #333; transition: background-color 0.2s, transform 0.2s; white-space: nowrap;
}
.edit-controls button:hover { background: #e0e0e0; transform: translateY(-2px); }
.edit-controls .done-btn { background: #007AFF; color: white; padding: 10px 20px; }
.edit-controls .done-btn:hover { background: #0066d6; box-shadow: 0 4px 10px rgba(0,122,255,0.3); }

.theme-swatches { display: flex; gap: 8px; margin-right: 5px; }
.swatch {
    width: 24px; height: 24px;
    border-radius: 50%; /* 改回圆形 */
    cursor: pointer;
    border: none; /* 去掉边框 */
    transition: transform 0.2s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); /* 保留内阴影以区分浅色背景 */
}
.swatch:hover { transform: scale(1.1); }
.swatch.active {
    transform: scale(1.2); /* 稍微放大一点表示选中 */
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2); /* 加深阴影表示选中 */
}

.control-divider {
    width: 1px; height: 24px; background: #eee; margin: 0 5px;
}

.theme-patterns {
    display: flex; gap: 8px;
}
.pattern-btn {
    background: transparent; border: 1px solid #ddd; padding: 6px 12px;
    border-radius: 8px; font-size: 13px; color: #555; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pattern-btn:hover { background: #f5f5f5; }
.pattern-btn.active { background: #007AFF; color: white; border-color: #007AFF; }
