#color-palette-inline {
  margin: 20px 0;
  padding: 14px 16px;
  background: #f9f9fb;
  border-radius: 12px;
  border: 1px solid #eee;
  box-sizing: border-box;
}
.cp-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}
.cp-title-text {
  color: #e67e22;
}
.cp-hint {
  font-size: 12px;
  font-weight: normal;
  color: #999;
  margin-left: 6px;
}
.cp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-swatch {
  position: relative;
  flex: 1 1 calc(16.66% - 8px);
  min-width: 60px;
  height: 68px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  outline: none;
}
.cp-swatch:hover,
.cp-swatch:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cp-hex {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.cp-label {
  font-size: 10px;
  opacity: 0.8;
  margin-top: 2px;
}
.cp-copied {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}
.cp-swatch.is-copied .cp-copied {
  display: flex;
}

/* 移动端：一行 3 个 */
@media (max-width: 768px) {
  .cp-swatch {
    flex: 1 1 calc(33.33% - 8px);
    height: 60px;
  }
  .cp-hex { font-size: 11px; }
  .cp-title { font-size: 13px; }
  .cp-hint { display: block; margin-left: 0; margin-top: 2px; }
}