/* 颜色切换器样式 */
.color-switcher {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10000;
    font-family: 'Arial', sans-serif;
}

.color-switcher-toggle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.color-switcher-toggle:hover {
    width: 55px;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.2);
}

.color-switcher-panel {
    position: absolute;
    right: 60px;
    top: 0;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.color-switcher-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.color-switcher-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.color-scheme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.color-scheme-btn {
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.color-scheme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-scheme-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.2);
}

.color-scheme-preview {
    display: flex;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.color-scheme-preview .color-1 {
    flex: 1;
}

.color-scheme-preview .color-2 {
    flex: 1;
}

.color-scheme-preview .color-3 {
    flex: 1;
}

.color-scheme-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.current-scheme-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.current-scheme-info p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.color-code {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

@media (max-width: 768px) {
    .color-switcher {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .color-switcher-panel {
        right: 60px;
        top: auto;
        bottom: 0;
        min-width: 260px;
    }
}