/* 颜色工具页面专用样式 */
.color-picker-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.color-display {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  border: 3px solid #ddd;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-inputs {
  flex: 1;
  min-width: 300px;
}

.color-input {
  width: 80px;
  height: 50px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.color-formats {
  margin-top: 20px;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.format-item label {
  width: 50px;
  font-weight: bold;
  color: #333;
}

.format-input {
  flex: 1;
  padding: 10px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-family: monospace;
}

.converter-container {
  max-width: 600px;
}

.conversion-result {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.color-preview {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
}

.converted-formats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.converted-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

.copy-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.copy-btn:hover {
  background: #5a6fd8;
}

.palette-generator {
  max-width: 600px;
}

.palette-display {
  margin-top: 20px;
}

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

.palette-color {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  border: 2px solid #ddd;
  transition: transform 0.2s;
  display: flex;
  align-items: end;
  justify-content: center;
}

.palette-color:hover {
  transform: scale(1.05);
}

.color-code {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px;
  font-size: 0.8rem;
  border-radius: 4px;
  margin-bottom: 5px;
  font-family: monospace;
}

.common-colors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.common-color {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid #ddd;
  transition: transform 0.2s;
}

.common-color:hover {
  transform: scale(1.1);
  border-color: #667eea;
}

@media (max-width: 768px) {
  .color-picker-container {
    flex-direction: column;
    align-items: center;
  }

  .color-display {
    width: 150px;
    height: 150px;
  }

  .color-inputs {
    min-width: auto;
    width: 100%;
  }

  .palette-colors {
    justify-content: center;
  }

  .palette-color {
    width: 80px;
    height: 80px;
  }

  .common-colors {
    grid-template-columns: repeat(4, 1fr);
  }

  .converted-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
