/* 颜色选择器区域 */
.color-picker-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.color-picker-section {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
}

.color-picker-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker-section h3 i {
    color: var(--primary-color);
}

/* Canvas容器 */
.color-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

#colorWheel {
    border-radius: 50%;
    cursor: crosshair;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* 颜色预览 */
.color-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

/* RGB滑块 */
.color-slider-group {
    margin-bottom: 12px;
}

.color-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.color-slider-label span:first-child {
    font-weight: 500;
}

.color-slider-label span:last-child {
    color: var(--text-light);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#redSlider { background: linear-gradient(to right, #000, #ff0000); }
#greenSlider { background: linear-gradient(to right, #000, #00ff00); }
#blueSlider { background: linear-gradient(to right, #000, #0000ff); }

/* 颜色输入框 */
.color-input-group {
    margin-bottom: 15px;
}

.color-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.color-input-row {
    display: flex;
    gap: 10px;
}

.color-input-row input {
    flex: 1;
}

.color-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.color-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 颜色格式显示 */
.color-formats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.color-format-item {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
}

.color-format-item label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.color-format-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-format-value input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: var(--white);
}

.color-copy-btn {
    padding: 8px 12px;
    background: var(--info-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    white-space: nowrap;
}

.color-copy-btn:hover {
    background: var(--info-hover);
}

/* 配色方案 */
.color-schemes {
    margin-bottom: 25px;
}

.color-schemes h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-schemes h3 i {
    color: var(--purple-color);
}

.color-scheme-type {
    margin-bottom: 20px;
}

.color-scheme-type h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.color-scheme-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-scheme-color {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

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

.color-scheme-color::after {
    content: attr(data-hex);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--text-light);
    white-space: nowrap;
}

/* 历史记录 */
.color-history-section {
    margin-bottom: 25px;
}

.color-history-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-history-section h3 i {
    color: var(--warning-color);
}

.color-history-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-history-color {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.color-history-color:hover {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .color-picker-container {
        grid-template-columns: 1fr;
    }

    .color-formats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .color-scheme-color {
        width: 50px;
        height: 50px;
    }
}