.price-keyboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-keyboard-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-keyboard-inputs-default {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-keyboard-input-wrapper {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #f9fafb;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  transition: all 0.2s ease;

  &:hover {
    border-color: #98a2b3;
  }

  &:focus-within {
    border-color: #1570ef;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.1);
  }
}

.price-keyboard-input {
  flex: 1;
}

.price-keyboard-keyboard {
  display: flex;
  gap: 12px;
}

.price-keyboard-keyboard-numbers {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.price-keyboard-keyboard-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80px;
}

.price-keyboard-key {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background-color: #ffffff;
  color: #344054;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;

  &:hover {
    background-color: #f9fafb;
    border-color: #98a2b3;
  }

  &:active {
    background-color: #f2f4f7;
    transform: translateY(1px);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    
    &:hover {
      background-color: #ffffff;
      border-color: #d0d5dd;
      transform: none;
    }
  }

  &.price-keyboard-key-primary {
    background-color: #1570ef;
    color: #ffffff;
    border-color: #1570ef;

    &:hover {
      background-color: #1366d9;
      border-color: #1366d9;
    }

    &:active {
      background-color: #0f5bc4;
      border-color: #0f5bc4;
    }
  }

  &.price-keyboard-key-size-2 {
    height: 104px; /* 48px * 2 + 8px gap */
  }

  &.price-keyboard-key-size-3 {
    height: 160px; /* 48px * 3 + 16px gap */
  }
}

.price-keyboard-delete-icon {
  width: 20px;
  height: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .price-keyboard {
    padding: 16px;
    gap: 16px;
  }

  .price-keyboard-keyboard {
    flex-direction: column;
    gap: 16px;
  }

  .price-keyboard-keyboard-actions {
    flex-direction: row;
    width: auto;
    height: auto;
  }

  .price-keyboard-key {
    height: 44px;
    font-size: 14px;
  }

  .price-keyboard-key.price-keyboard-key-size-2 {
    height: 44px;
    flex: 2;
  }

  .price-keyboard-key.price-keyboard-key-size-3 {
    height: 44px;
    flex: 3;
  }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
  .price-keyboard {
    background-color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .price-keyboard-input-wrapper {
    background-color: #374151;
    border-color: #4b5563;

    &:hover {
      border-color: #6b7280;
    }

    &:focus-within {
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
  }

  .price-keyboard-key {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;

    &:hover {
      background-color: #4b5563;
      border-color: #6b7280;
    }

    &:active {
      background-color: #6b7280;
    }

    &.price-keyboard-key-primary {
      background-color: #3b82f6;
      border-color: #3b82f6;

      &:hover {
        background-color: #2563eb;
        border-color: #2563eb;
      }

      &:active {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
      }
    }
  }
}