* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 80px 1.5rem 2rem;
    margin: 0;
}

.navbar {
    height: 80px !important;
}
.container-main {
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 5px 15px 2px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
	margin-top: 20px;
}


.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: #333;
    text-align: center;
	margin-bottom:20px;
}

.header h1 i {
    color: #0D6EFD;
    margin-right: 10px;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.main-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

/* ===== 左侧面板 ===== */
.picker-panel {
    flex: 0 0 380px;
    background: #f8f9fa;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e9edf4;
}

.panel-title {
    font-weight: 600;
    color: #0b1a33;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0D6EFD;
    padding-bottom: 0.4rem;
    display: inline-block;
}

.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 色相滑块 */
.hue-slider-container {
    width: 100%;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(to right, 
        #FF0000, #FF8800, #FFFF00, #00FF00, #0088FF, #0000FF, #8800FF, #FF00FF, #FF0000);
    position: relative;
    cursor: pointer;
    border: 2px solid #dce2ec;
    user-select: none;
}

.hue-slider-thumb {
    position: absolute;
    top: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 3px solid #0D6EFD;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
    transform: translateX(-50%);
    transition: left 0.05s;
}

/* SV 选择器 */
.sv-picker-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #dce2ec;
    cursor: crosshair;
    background: #ff0000;
    user-select: none;
}

#svCanvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.sv-picker-circle {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    display: block;
    transition: left 0.05s, top 0.05s;
}

/* 颜色控制 */
.color-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.color-preview-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #dce2ec;
    flex-shrink: 0;
}

.color-input-group {
    flex: 1;
    min-width: 70px;
}

.color-input-group label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.color-input-group input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #dce2ec;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    background: white;
    color: #0b1a33;
    outline: none;
}

.color-input-group input:focus {
    border-color: #0D6EFD;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* 快捷色板 */
.quick-swatches {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    margin-top: 4px;
}

.swatch {
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid rgba(0,0,0,0.1);
}

.swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

/* ===== 右侧面板 ===== */
.values-panel {
    flex: 1;
    background: #f8f9fa;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e9edf4;
}

.color-preview {
    width: 100%;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border: 2px solid #dce2ec;
}

.color-preview span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
}

.format-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0b1a33;
    margin: 0 0 0.8rem 0;
    border-bottom: 1px dashed #dce2ec;
    padding-bottom: 0.3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.value-item {
    background: #ffffff;
    border-radius: 0.8rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid #e2e8f0;
}

.value-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.value-input-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.value-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.5rem;
	font-weight:800;
    font-family: 'Courier New', monospace;
    color: #0b1a33;
    padding: 0.2rem 0;
    outline: none;
    width: 100%;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    border-radius: 4px;
    transition: 0.15s;
    font-size: 0.8rem;
    flex-shrink: 0;
	
}
.fa-copy{
	width:40px !important;
	height:20px  !important;
	align-items:center;
}
.copy-btn:hover {
    color: #0D6EFD;
    background: #f0f4ff;
}

.copy-btn.copied {
    color: #10b981;
}

/* ===== 颜色表格 ===== */
.color-table-section {
    margin-top: 2rem;
    border-top: 1px solid #e9edf4;
    padding-top: 1.2rem;
}

.table-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0b1a33;
    margin: 0 0 0.8rem 0;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid #e9edf4;
}

.color-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.color-table td {
    padding: 6px 10px;
    text-align: center;
    border: 1px solid #e9edf4;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    min-width: 60px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.color-table td:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #0D6EFD, 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2;
}
