* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px;
}

.color-picker-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
}

h2 {
  margin-bottom: 25px;
  color: #333;
  font-weight: 600;
  text-align: center;
}

/* 颜色预览区域 */
.color-preview {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  margin-bottom: 25px;
  background-color: #3498db;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

/* 滑块区域 */
.slider-group {
  margin-bottom: 18px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.slider-value {
  font-weight: 600;
  color: #333;
}

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

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* RGB 滑块颜色 */
#r-slider::-webkit-slider-thumb {
  background: #e74c3c;
}
#g-slider::-webkit-slider-thumb {
  background: #2ecc71;
}
#b-slider::-webkit-slider-thumb {
  background: #3498db;
}

/* 色值显示区域 */
.color-values {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.value-box {
  flex: 1;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.value-box:hover {
  border-color: #3498db;
  background: #fff;
}

.value-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.value-text {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  font-family: "Courier New", monospace;
}

/* 复制提示 */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  transition: transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
}